diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 00000000..351f8945 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,89 @@ + + + + + + + RapiDoc + + + + + + + + + + + \ No newline at end of file diff --git a/dist/index.html.gz b/dist/index.html.gz new file mode 100644 index 00000000..037b1a23 Binary files /dev/null and b/dist/index.html.gz differ diff --git a/dist/rapidoc-min.js b/dist/rapidoc-min.js new file mode 100644 index 00000000..c746bba7 --- /dev/null +++ b/dist/rapidoc-min.js @@ -0,0 +1,168 @@ +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!x[e]||!w[e])return;for(var n in w[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,o="af7fa662e67345cb38e9",i=1e4,a={},s=[],u=[];function c(e){var t=A[e];if(!t)return T;var r=function(r){return t.hot.active?(A[r]?-1===A[r].parents.indexOf(e)&&A[r].parents.push(e):(s=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),s=[]),T(r)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var i in T)Object.prototype.hasOwnProperty.call(T,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(r,i,o(i));return r.e=function(e){return"ready"===p&&h("prepare"),g++,T.e(e).then(t,function(e){throw t(),e});function t(){g--,"prepare"===p&&(b[e]||O(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function l(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:n!==e,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},check:S,apply:E,status:function(e){if(!e)return p;f.push(e)},addStatusHandler:function(e){f.push(e)},removeStatusHandler:function(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)},data:a[e]};return n=void 0,t}var f=[],p="idle";function h(e){p=e;for(var t=0;t0;){var o=r.pop(),i=o.id,a=o.chain;if((u=A[i])&&!u.hot._selfAccepted){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 ")),S.type){case"self-declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of self decline: "+S.moduleId+j));break;case"declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+S.moduleId+" in "+S.parentId+j));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(S),t.ignoreUnaccepted||(O=new Error("Aborted because "+c+" is not accepted"+j));break;case"accepted":t.onAccepted&&t.onAccepted(S),k=!0;break;case"disposed":t.onDisposed&&t.onDisposed(S),E=!0;break;default:throw new Error("Unexception type "+S.type)}if(O)return h("abort"),Promise.reject(O);if(k)for(c in g[c]=v[c],f(y,S.outdatedModules),S.outdatedDependencies)Object.prototype.hasOwnProperty.call(S.outdatedDependencies,c)&&(d[c]||(d[c]=[]),f(d[c],S.outdatedDependencies[c]));E&&(f(y,[S.moduleId]),g[c]=b)}var C,P=[];for(r=0;r0;)if(c=N.pop(),u=A[c]){var M={},I=u.hot._disposeHandlers;for(i=0;i=0&&U.parents.splice(C,1))}}for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c]))for(L=d[c],i=0;i=0&&u.children.splice(C,1);for(c in h("apply"),o=m,g)Object.prototype.hasOwnProperty.call(g,c)&&(e[c]=g[c]);var D=null;for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c])){L=d[c];var q=[];for(r=0;r ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\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:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._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",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._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:m,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,a,s,u,c,f,p,h,d,v,m,y,w,x;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var _=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),_&&"paragraph"===_.type?_.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:b(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(u={type:"table",header:g(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(i[0].length),d=0;d ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),c={type:"list_start",ordered:y=(a=i[2]).length>1,start:y?+a:"",loose:!1},this.tokens.push(c),f=[],r=!1,m=(i=i[0].match(this.rules.item)).length,d=0;d1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=i.slice(d+1).join("\n")+e,d=m-1)),o=r||/\n\n(?!\s*$)/.test(u),d!==m-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),o&&(c.loose=!0),x=void 0,(w=/^\[[ xX]\] /.test(u))&&(x=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:w,checked:x,loose:o},f.push(p),this.tokens.push(p),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(m=f.length,d=0;d?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=p(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._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])?)+(?![-_])/,o.autolink=p(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=p(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=p(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=p(o.reflink).replace("label",o._label).getRegex(),o.normal=y({},o),o.pedantic=y({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=y({},o.normal,{escape:p(o.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=w(a[2],"()");if(c>-1){var f=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,f).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],o=t[3]):o="":o=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(a,{href:i.escapes(r),title:i.escapes(o)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),u+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),u+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),u+=this.renderer.codespan(l(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),u+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),u+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=l(this.mangle(a[1]))):n=l(a[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?u+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0]):u+=this.renderer.text(l(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=l(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=l(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),u+=this.renderer.link(r,null,n)}return u},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return r?'
'+(n?e:l(e,!0))+"
\n":"
"+(n?e:l(e,!0))+"
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,y({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop(),this.token},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function y(e){for(var t,n,r=1;r=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}m.exec=m,_.options=_.setOptions=function(e){return y(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=u,_.parser=u.parse,_.Renderer=a,_.TextRenderer=s,_.Lexer=r,_.lexer=r.lex,_.InlineLexer=i,_.inlineLexer=i.output,_.Slugger=c,_.parse=_,e.exports=_}(this||"undefined"!=typeof window&&window)}).call(this,n(10))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0;t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Type={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"}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(329)),l=r(n(11)),f=function(e){function t(e,n,r){var i;if((0,o.default)(this,t),!(r&&n instanceof l.default))throw new Error("Invalid arguments for new ".concat(e));return(i=(0,a.default)(this,(0,s.default)(t).call(this))).name=e,i.message=r,i.source=n,i}return(0,u.default)(t,e),(0,i.default)(t,[{key:"makePretty",value:function(){this.source&&(this.nodeType=this.source.type,this.range=this.source.range,this.linePos=this.source.rangeAsLinePos,delete this.source)}}]),t}((0,c.default)(Error));t.YAMLError=f;var p=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLReferenceError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLReferenceError=p;var h=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSemanticError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSemanticError=h;var d=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSyntaxError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSyntaxError=d;var v=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLWarning",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLWarning=v},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=n(8),u=r(n(333)),c=r(n(12)),l=function(){function e(t,n,r){(0,i.default)(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return(0,a.default)(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var o=e.endOfWhiteSpace(t,n);return o>=t.length||"\n"===t[o]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==s.Char.DIRECTIVES_END&&r!==s.Char.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==r||a!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var o=e.endOfIndent(t,r);if(o>r+n)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1,!0)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var o=0,i=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":o=0,n+=1,a+="\n";break;case"\t":o<=r&&(i=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":o+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&o<=r&&(i=!0),{fold:a,offset:n,error:i}}}]),(0,a.default)(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===s.Char.COMMENT){var r=e.endOfLine(n,t+1),o=new c.default(t,r);return this.props.push(o),r}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(n){return n.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var o=t.slice(n.start,n.end);return e.addStringTerminator(t,n.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;tn);)++o;this.origStart=n+o;for(var i=o;o=r);)++o;return this.origEnd=r+o,i}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(32)),l=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).value=e,n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:(0,c.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}(r(n(33)).default);t.default=l},function(e,t,n){var r;try{r={clone:n(175),constant:n(113),each:n(233),filter:n(239),has:n(262),isArray:n(7),isEmpty:n(264),isFunction:n(44),isUndefined:n(265),keys:n(23),map:n(266),reduce:n(268),size:n(271),transform:n(277),union:n(278),values:n(297)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n,r,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(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"addToJSMap",value:function(e,t){var n=(0,f.default)(this.key,"",e);if(t instanceof Map){var r=(0,f.default)(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==(0,c.default)(t)?String(t):e instanceof h.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t)}(this.key,n,e);t[o]=(0,f.default)(this.value,o,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,o=this.value,i=r instanceof h.default&&r.comment,a=!r||i||r instanceof p.default,s=e,u=s.doc,f=s.indent;e=Object.assign({},e,{implicitKey:!a,indent:f+" "});var d=!1,v=u.schema.stringify(r,e,function(){return i=null},function(){return d=!0});if(v=(0,l.default)(v,e.indent,i),e.allNullValues)return this.comment?(v=(0,l.default)(v,e.indent,this.comment),t&&t()):d&&!i&&n&&n(),e.inFlow?v:"? ".concat(v);v=a?"? ".concat(v,"\n").concat(f,":"):"".concat(v,":"),this.comment&&(v=(0,l.default)(v,e.indent,this.comment),t&&t());var m="",y=null;if(o instanceof h.default){if(o.spaceBefore&&(m="\n"),o.commentBefore){var g=o.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));m+="\n".concat(g)}y=o.comment}else o&&"object"===(0,c.default)(o)&&(o=u.schema.createNode(o,!0));e.implicitKey=!1,d=!1;var b=u.schema.stringify(o,e,function(){return y=null},function(){return d=!0}),w=" ";if(m||this.comment)w="".concat(m,"\n").concat(e.indent);else if(!a&&o instanceof p.default){("["===b[0]||"{"===b[0])&&!b.includes("\n")||(w="\n".concat(e.indent))}return d&&!y&&n&&n(),(0,l.default)(v+w+b,e.indent,y)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new d.default(null)),this.key.commentBefore=e}}]),t}(h.default);t.default=v},function(e,t,n){var r=n(96),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(328);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(187),o=n(192);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(101),o=n(75),i=n(24);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(44),o=n(72);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var o=r(n(343)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(86)),l=r(n(5)),f=r(n(20)),p=r(n(25)),h=r(n(58)),d=r(n(33)),v=r(n(16)),m=r(n(13)),y=function(e){return null==e||"object"===(0,p.default)(e)&&e[Symbol.iterator]().next().done};t.isEmptyPath=y;var g=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,o=new Array(r),a=0;at.maxFlowStringSingleLineLength){m=w;var S=!0,O=!1,k=void 0;try{for(var E,A=_[Symbol.iterator]();!(S=(E=A.next()).done);S=!0){var T=E.value;m+=T?"\n ".concat(p).concat(T):"\n"}}catch(e){O=!0,k=e}finally{try{S||null==A.return||A.return()}finally{if(O)throw k}}m+="\n".concat(p).concat(x)}else m="".concat(w," ").concat(_.join(" ")," ").concat(x)}else{var j=b.map(a);m=j.shift();var C=!0,P=!1,R=void 0;try{for(var L,N=j[Symbol.iterator]();!(C=(L=N.next()).done);C=!0){var M=L.value;m+=M?"\n".concat(p).concat(M):"\n"}}catch(e){P=!0,R=e}finally{try{C||null==N.return||N.return()}finally{if(P)throw R}}}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),r&&r()):y&&o&&o(),m}}]),t}(d.default);t.default=g,(0,f.default)(g,"maxFlowStringSingleLineLength",60)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=h,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(26)),f=r(n(16)),p=r(n(13));function h(e,t){var n=t instanceof p.default?t.value:t,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u instanceof f.default){if(u.key===t||u.key===n)return u;if(u.key&&u.key.value===n)return u}}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){if(e?e instanceof f.default||(e=new f.default(e.key||e,e.value)):e=new f.default(e),h(this.items,e.key))throw new Error("Key ".concat(e.key," already set"));this.items.push(e)}},{key:"delete",value:function(e){var t=h(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=h(this.items,e),r=n&&n.value;return!t&&r instanceof p.default?r.value:r}},{key:"has",value:function(e){return!!h(this.items,e)}},{key:"set",value:function(e,t){var n=h(this.items,e);n?n.value=t:this.items.push(new f.default(e,t))}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var o=!0,i=!1,a=void 0;try{for(var s,u=this.items[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){s.value.addToJSMap(t,r)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return r}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);var o=!0,i=!1,a=void 0;try{for(var c,l=this.items[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var p=c.value;if(!(p instanceof f.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(p)," instead"))}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return(0,u.default)((0,s.default)(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}}]),t}(l.default);t.default=d},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(30),o=n(188),i=n(189),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(17).Symbol;e.exports=r},function(e,t,n){var r=n(219),o=n(69),i=n(220),a=n(110),s=n(221),u=n(29),c=n(97),l=c(r),f=c(o),p=c(i),h=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(function(t,n){return e(t,String(n),r)});if(t&&"function"==typeof t.toJSON){var o=r&&r.anchors&&r.anchors.find(function(e){return e.node===t});o&&(r.onCreate=function(e){o.res=e,delete r.onCreate});var i=t.toJSON(n,r);return o&&r.onCreate&&r.onCreate(i),i}return t}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1));t.default=function e(){(0,o.default)(this,e)}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(32)),f=r(n(26)),p=r(n(13));function h(e){var t=e instanceof p.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=h(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=h(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof p.default?r.value:r}}},{key:"has",value:function(e){var t=h(e);return"number"==typeof t&&t0;)i+="0"}return i},t.stringifyString=function(e,t,n,r){var f=s.strOptions.defaultType,p=t.implicitKey,h=t.inFlow,d=e,v=d.type,m=d.value;"string"!=typeof m&&(m=String(m),e=Object.assign({},e,{value:m}));var y=function(f){switch(f){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return l(e,t,n,r);case i.Type.QUOTE_DOUBLE:return u(m,t);case i.Type.QUOTE_SINGLE:return c(m,t);case i.Type.PLAIN:return function(e,t,n,r){var f=e.comment,p=e.type,h=e.value,d=t.actualString,v=t.implicitKey,m=t.indent,y=t.inFlow,g=t.tags;if(v&&/[\n[\]{},]/.test(h)||y&&/[[\]{},]/.test(h))return u(h,t);if(!h||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(h))return v||y||-1===h.indexOf("\n")?-1!==h.indexOf('"')&&-1===h.indexOf("'")?c(h,t):u(h,t):l(e,t,n,r);if(!v&&!y&&p!==i.Type.PLAIN&&-1!==h.indexOf("\n"))return l(e,t,n,r);var b=h.replace(/\n+/g,"$&\n".concat(m));if(d&&/^[\w.+-]+$/.test(b)&&"string"!=typeof g.resolveScalar(b).value)return u(h,t);var w=v?b:(0,a.default)(b,m,a.FOLD_FLOW,s.strOptions.fold);if(f&&!y&&(-1!==w.indexOf("\n")||-1!==f.indexOf("\n")))return n&&n(),(0,o.addCommentBefore)(w,m,f);return w}(e,t,n,r);default:return null}};v!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(m)?v=i.Type.QUOTE_DOUBLE:!p&&!h||v!==i.Type.BLOCK_FOLDED&&v!==i.Type.BLOCK_LITERAL||(v=i.Type.QUOTE_DOUBLE);var g=y(v);if(null===g&&null===(g=y(f)))throw new Error("Unsupported default string type ".concat(f));return g};var o=n(58),i=n(8),a=r(n(347)),s=n(40);function u(e,t){var n=t.implicitKey,r=t.indent,o=s.strOptions.doubleQuoted,i=o.jsonEncoding,u=o.minMultiLineLength,c=JSON.stringify(e);if(i)return c;for(var l="",f=0,p=0,h=c[p];h;h=c[++p])if(" "===h&&"\\"===c[p+1]&&"n"===c[p+2]&&(l+=c.slice(f,p)+"\\ ",f=p+=1,h="\\"),"\\"===h)switch(c[p+1]){case"u":l+=c.slice(f,p);var d=c.substr(p+2,4);switch(d){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===d.substr(0,2)?l+="\\x"+d.substr(2):l+=c.substr(p,6)}f=(p+=5)+1;break;case"n":if(n||'"'===c[p+2]||c.lengtht)return!0;if(n-(o=r+1)<=t)return!1}return!0}(l,s.strOptions.fold.lineWidth-f.length)),d=h?"|":">";if(!l)return d+"\n";var v="",m="";if(l=l.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?d+="-":l!==e&&t===e.length-1||(d+="+",r&&r()),m=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(d+=p);var t=e.match(/ +$/);return t?(v=e.slice(0,-t[0].length),t[0]):(v=e,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,"$&".concat(f))),v&&(v=v.replace(/\n+/g,"$&".concat(f))),o&&(d+=" #"+o.replace(/ ?[\r\n]+/g," "),n&&n()),!l)return"".concat(d).concat(p,"\n").concat(f).concat(m);if(h)return l=l.replace(/\n+/g,"$&".concat(f)),"".concat(d,"\n").concat(f).concat(v).concat(l).concat(m);l=l.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(f));var y=(0,a.default)("".concat(v).concat(l).concat(m),f,a.FOLD_BLOCK,s.strOptions.fold);return"".concat(d,"\n").concat(f).concat(y)}},function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(352),o=n(353),i=n(148);function a(){return u.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 d(e,t){if(u.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.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 N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-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+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(10))},function(e,t,n){"use strict";var r=n(63),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(41);i.inherits=n(28);var a=n(156),s=n(160);i.inherits(f,a);for(var u=o(s.prototype),c=0;co&&(o=l)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return o}if(t instanceof v.default){var f=e(t.key,n),p=e(t.value,n);return Math.max(f,p)}return 1},y=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,a.default)(t).call(this))).source=e,n.type=l.Type.ALIAS,n}return(0,u.default)(t,e),(0,s.default)(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,u=Object.keys(o).find(function(e){return o[e]===r});if(!u&&s&&(u=i.anchors.getName(r)||i.anchors.newName()),u)return"*".concat(u).concat(a?" ":"");var c=i.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(c," [").concat(n,"]"))}}]),(0,s.default)(t,[{key:"toJSON",value:function(e,t){var n=this;if(!t)return(0,p.default)(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.find(function(e){return e.node===n.source});if(!i||!i.res){var a="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,a):new ReferenceError(a)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=m(this.source,r)),i.count*i.aliasCount>o)){var s="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,s):new ReferenceError(s)}return i.res}},{key:"toString",value:function(e){return t.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}(d.default);t.default=y,(0,c.default)(y,"default",!0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;var r=n(35),o=n(40),i=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.resolveString=i;var a={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:i,stringify:function(e,t,n,o){return t=Object.assign({actualString:!0},t),(0,r.stringifyString)(e,t,n,o)},options:o.strOptions};t.default=a},function(e,t,n){"use strict";function r(e){return e=(e=e.split("~1").join("/")).split("~0").join("~")}e.exports={jptr:function(e,t,n){if(void 0===e)return!1;if(!t||"#"===t)return void 0!==n?n:e;if(t.indexOf("#")>=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]=n),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[t]]=n),e=e[o[t]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?n:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,t,n){"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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map(r=>({[r]:e(t[r],n)})))}}},function(e,t,n){"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,n,r,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,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;au){var c=s;s=u,u=c}return s+a+u+a+(r.isUndefined(i)?o:i)}function f(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function p(e,t){return l(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},s.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,function(e){n.length>1?o.setNode(e,t):o.setNode(e)}),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var o={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=f(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.v===t}):o}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.w===t}):o}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(42),o=n(182),i=n(183),a=n(184),s=n(185),u=n(186);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(21)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(193),o=n(200),i=n(202),a=n(203),s=n(204);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(96),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.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,n(38)(e))},function(e,t,n){var r=n(50),o=n(210),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(105),o=n(106),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-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=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(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(r(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,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(15))},function(e,t,n){"use strict";var r=n(322),o=n(323);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]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(133);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?L+="x":L+=R[N];if(!L.match(h)){var I=C.slice(0,A),U=C.slice(A+1),D=R.match(d);D&&(I.push(D[1]),U.unshift(D[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[_])for(A=0,P=l.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],E=(n.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,A=0,T=S.length;T>=0;T--)"."===(k=S[T])?S.splice(T,1):".."===k?(S.splice(T,1),A++):A&&(S.splice(T,1),A--);if(!x&&!_)for(;A--;A)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var j,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(n.hostname=n.host=C?"":S.length?S.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(x=x||n.host&&S.length)&&!C&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},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){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(8),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,c.Type.COMMENT))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new f.default(t,n),n}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(90)),i=r(n(91)),a=r(n(60)),s=[o.default,i.default,a.default];t.default=s},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(55)),a=r(n(27)),s=r(n(144));var u={createNode:function(e,t,n){var r=new a.default;if(t instanceof Map){var s=!0,u=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=(0,i.default)(l.value,2),h=p[0],d=p[1];r.items.push(e.createPair(h,d,n))}}catch(e){u=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(u)throw c}}}else if(t&&"object"===(0,o.default)(t))for(var v=0,m=Object.keys(t);v1){throw new o.YAMLSemanticError(t,"Each pair must have its own sequence indicator")}var c=u.items[0]||new a.default;u.commentBefore&&(c.commentBefore=c.commentBefore?"".concat(u.commentBefore,"\n").concat(c.commentBefore):u.commentBefore),u.comment&&(c.comment=c.comment?"".concat(u.comment,"\n").concat(c.comment):u.comment),u=c}n.items[r]=u instanceof a.default?u:new a.default(u)}}return n}function l(e,t,n){var r=new u.default;r.tag="tag:yaml.org,2002:pairs";var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=void 0,p=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));f=l[0],p=l[1]}else if(l&&l instanceof Object){var h=Object.keys(l);if(1!==h.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));p=l[f=h[0]]}else f=l;var d=e.createPair(f,p,n);r.items.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}var f={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:c,createNode:l};t.default=f},function(e,t,n){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},function(e,t,n){"use strict";const r=n(61).jpescape;e.exports={recurse:function e(t,n,o){if(n||(n={depth:0}),n.depth||(n=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},n)),"object"!=typeof t)return;let i=n.path;for(let a in t){if(n.key=a,n.path=n.path+"/"+encodeURIComponent(r(a)),n.identityPath=n.seen.get(t[a]),n.identity=void 0!==n.identityPath,o(t,a,n),"object"==typeof t[a]&&!n.identity){n.identityDetection&&!Array.isArray(t[a])&&null!==t[a]&&n.seen.set(t[a],n.path);let r={};r.parent=t,r.path=n.path,r.depth=n.depth?n.depth+1:1,r.pkey=a,r.payload=n.payload,r.seen=n.seen,r.identity=!1,r.identityDetection=n.identityDetection,e(t[a],r,o)}n.path=i}}}},function(e,t,n){"use strict";const r=n(134),o=n(85),i=(n(84),n(324)),a=n(135),s=n(136),u=n(61),c=u.jptr,l=n(93).isRef,f=n(62).clone,p=n(62).circularClone,h=n(94).recurse,d=n(354),v=n(357),m=n(152),y=n(358).statusCodes,g=n(371).version,b="3.0.0";let w;class x extends Error{constructor(e){super(e),this.name="S2OError"}}function _(e,t){let n=new x(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function S(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:_(e,n)}function O(e,t){v.walkSchema(e,{},{},function(e,n,r){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of m.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&S("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else _("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"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)}(e,n,t)})}function k(e,t,n){let r=n.payload.options;if(l(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.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 n=f(u.jptr(r.openapi,e[t]));if(!1===n)S("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t],a="schemas",s=(i=(i=(i=(i=i.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(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")&&O(n,r),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&n.name&&n.name===m.sanitise(n.name)&&(i=encodeURIComponent(n.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="");u.jptr(r.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let c="#/components/"+a+"/"+i+s,l="";"examples"===a&&(n={value:n},l="/value"),u.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(i&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:o},e]}):n.parent[n.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=m.sanitise(n);n!=r&&(e[t][r]=e[t][n],delete e[t][n])}}function A(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?delete e.name:_("(Patchable) oauth2 securitySchemes should not have name property",t))}}function T(e){return e&&!e["x-s2o-delete"]}function j(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&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&S("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),void 0!==e.collectionFormat&&("array"!=e.type&&(t.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to header.type array",t)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&S("collectionFormat:ssv is no longer supported for headers",e,t),"pipes"===e.collectionFormat&&S("collectionFormat:pipes is no longer supported for headers",e,t),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),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 C(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&&S("Definition used as parameter",e,t)}function P(e,t,n,r,o,i,a){let s,u={},l=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return _("(Patchable) operation.consumes must be an array",a);t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let p=((t?t.consumes:null)||i.consumes||[]).filter(m.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){C(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=i.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=c(i,e.$ref);!n&&t.startsWith("#/")?S("Could not resolve reference "+t,e,a):n&&(e=n)}}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?e.type="string":_("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(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=c(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(a.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":S("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":S("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"object"!=e.type&&"body"!=e.type&&"formData"!=e.in)if(e.items&&e.schema)S("parameter has array,items and schema",e,a);else{e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,function(n,r,o){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&S("Nested collectionFormats are not supported",e,a),delete n[r])}));for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(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){l=!1,u.content={};let t="application/x-www-form-urlencoded";if(p.length&&p.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),u.content[t]={},e.schema)u.content[t].schema=e.schema,e.schema.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{u.content[t].schema={},u.content[t].schema.type="object",u.content[t].schema.properties={},u.content[t].schema.properties[e.name]={};let n=u.content[t].schema,r=u.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of m.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name)),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),R(e,r)}}else e&&"file"===e.type&&(e.required&&(u.required=e.required),u.content={},u.content["application/octet-stream"]={},u.content["application/octet-stream"].schema={},u.content["application/octet-stream"].schema.type="string",u.content["application/octet-stream"].schema.format="binary",R(e,u));if(e&&"body"===e.in){u.content={},e.name&&(u["x-s2o-name"]=(t&&t.operationId?m.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(u.description=e.description),e.required&&(u.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),p.length||p.push("application/json");for(let t of p)u.content[t]={},u.content[t].schema=f(e.schema||{}),O(u.content[t].schema,a);R(e,u)}if(Object.keys(u).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&l){t.requestBody["x-s2o-overloaded"]=!0,S("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(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&&u.content["multipart/form-data"]&&u.content["multipart/form-data"].schema&&u.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,u.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(u.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&&u.content["application/x-www-form-urlencoded"]&&u.content["application/x-www-form-urlencoded"].schema&&u.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,u.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(u.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,u),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?e.required=!0:_("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function R(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function L(e,t,n,r,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?S("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)||(e.description=y[e]||""):_("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(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/","")))),n&&n.produces&&"string"==typeof n.produces){if(!o.patch)return _("(Patchable) operation.produces must be an array",o);n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(m.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=f(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].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?delete e.headers[t]:_('(Patchable) "Status Code" is not a valid header',o):j(e.headers[t],o)}}function N(e,t,n,r,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 l=s[e];if(l&&l.parameters&&Array.isArray(l.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(C(t,n),t=c(i,t.$ref)),l.parameters.find(function(e,n,r){return e.name===t.name&&e.in===t.in})||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(l=P(t,l,s,e,a,i,n),n.rbname&&""===l[n.rbname]&&delete l[n.rbname])}for(let t of l.parameters)l=P(t,l,s,e,e+":"+a,i,n);n.rbname&&""===l[n.rbname]&&delete l[n.rbname],n.debug||(l.parameters=l.parameters.filter(T))}if(l&&l.security&&E(l.security),"object"==typeof l){if(!l.responses){let e={description:"Default response"};l.responses={default:e}}for(let e in l.responses){L(l.responses[e],0,l,i,n)}}if(l&&l["x-servers"]&&Array.isArray(l["x-servers"]))l.servers=l["x-servers"],delete l["x-servers"];else if(l&&l.schemes&&l.schemes.length)for(let e of l.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(l.servers||(l.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let n=f(t),r=o.parse(n.url);r.protocol=e,n.url=r.format(),l.servers.push(n)}if(n.debug&&(l["x-s2o-consumes"]=l.consumes||[],l["x-s2o-produces"]=l.produces||[]),l){if(delete l.consumes,delete l.produces,delete l.schemes,l["x-ms-examples"]){for(let e in l["x-ms-examples"]){let t=l["x-ms-examples"][e],n=m.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(l.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=u.jptr(i,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in l.responses[r].headers)if(t===e){l.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:f(t.responses[r].body)},l.responses[r]&&l.responses[r].content))for(let t in l.responses[r].content){let o=l.responses[r].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+n}}}}delete l["x-ms-examples"]}if(l.parameters&&0===l.parameters.length&&delete l.parameters,l.requestBody){let n=l.operationId?m.sanitiseAll(l.operationId):m.sanitiseAll(e+a).toCamelCase(),o=m.sanitise(l.requestBody["x-s2o-name"]||n||"");delete l.requestBody["x-s2o-name"];let i=JSON.stringify(l.requestBody),s=m.hash(i);if(!r[s]){let e={};e.name=o,e.body=l.requestBody,e.refs=[],r[s]=e}let c="#/"+t+"/"+encodeURIComponent(u.jpescape(a))+"/"+e+"/requestBody";r[s].refs.push(c)}}}if(s&&s.parameters){for(let e in s.parameters){P(s.parameters[e],null,s,null,a,i,n)}!n.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(T))}}}function M(e,t){let n={};w={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=m.sanitise(n);n!=r&&(e.components.securitySchemes[r]&&_("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),A(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=m.sanitiseAll(n),o="";if(n!=r){for(;e.components.schemas[r+o];)o=o?++o:2;e.components.schemas[r+o]=e.components.schemas[n],delete e.components.schemas[n]}w.schemas[n]=r+o,O(e.components.schemas[r+o],t)}t.refmap={},h(e,{payload:{options:t}},k),function(e,t){for(let n in t.refmap)u.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=m.sanitise(n);n!=r&&(e.components.parameters[r]&&_("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),P(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=m.sanitise(n);n!=r&&(e.components.responses[r]&&_("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let o=e.components.responses[r];if(L(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?delete o.headers[e]:_('(Patchable) "Status Code" is not a valid header',t):j(o.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],o=JSON.stringify(r),i=m.hash(o),a={};a.name=t,a.body=r,a.refs=[],n[i]=a}if(N(e.paths,"paths",t,n,e),e["x-ms-paths"]&&N(e["x-ms-paths"],"x-ms-paths",t,n,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 r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in n){let i=n[o];if(i.refs.length>1){let n="";for(i.name||(i.name="requestBody",n=t++);r.indexOf(i.name+n)>=0;)n=n?++n:2;i.name=i.name+n,r.push(i.name),e.components.requestBodies[i.name]=f(i.body);for(let t in i.refs){let n={};n.$ref="#/components/requestBodies/"+i.name,u.jptr(e,i.refs[t],n)}}}}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 I(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,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}}),e):e}function U(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new x("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new x("(Patchable) info.title cannot be null"));e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new x("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new x("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new x("(Patchable) info should not have logo property"));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 n(new x("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(o.URL&&t.whatwg)try{o.URL.parse(e.info.termsOfService)}catch(r){if(!t.patch)return n(new x("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function D(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new x("(Patchable) paths object is mandatory"));e.paths={}}}function q(e,t,n){return i(n,new Promise(function(n,r){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=n,t.promise.reject=r,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=p(e),U(t.openapi,t,r),D(t.openapi,t,r),void d.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)});if(!e.swagger||"2.0"!=e.swagger)return r(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:b,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=g,o["x-origin"].push(n)}if(delete(o=Object.assign(o,p(e))).swagger,h(o,{},function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={};n.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),I(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,I(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"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};for(let e in t.parameters){let r=t.parameters[e];r.$ref&&(r=f(c(o,r.$ref))),e.startsWith("x-")||(delete r.required,delete r.type,delete r.in,void 0===r.default&&(r.enum?r.default=r.enum[0]:r.default=""),n.variables[r.name]=r,delete r.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach(e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))}),delete o["x-ms-parameterized-host"]}U(o,t,r),D(o,t,r),"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,d.optionalResolve(t).then(function(){M(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)})}))}function B(e,t,n){return i(n,new Promise(function(n,r){let o=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){try{o=s.parse(e,{schema:"core"}),t.sourceYaml=!0,t.text=e}catch(e){}}o?q(o,t).then(e=>n(e)).catch(e=>r(e)):r(new x("Could not parse string"))}))}e.exports={S2OError:x,targetVersion:b,convert:q,convertObj:q,convertUrl:function(e,t,n){return i(n,new Promise(function(n,r){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),a(e,{agent:t.agent}).then(function(e){if(200!==e.status)throw new x(`Received status code ${e.status}`);return e.text()}).then(function(e){B(e,t).then(e=>n(e)).catch(e=>r(e))}).catch(function(e){r(e)})}))},convertStr:B,convertFile:function(e,t,n){return i(n,new Promise(function(n,o){r.readFile(e,t.encoding||"utf8",function(r,i){r?o(r):(t.sourceFile=e,B(i,t).then(e=>n(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,n){return i(n,new Promise(function(n,r){let o="";e.on("data",function(e){o+=e}).on("end",function(){B(o,t).then(e=>n(e)).catch(e=>r(e))})}))}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(10))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(99),o=n(68),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(100);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(21),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(206),o=n(48),i=n(7),a=n(39),s=n(102),u=n(49),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),h=n||l||f||p,d=h?r(e.length,String):[],v=d.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||d.push(m);return d}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&ep))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,m=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(14);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority=0;--o){var i=t.items[o];if(i.type===l.Type.COMMENT){var a=i.context,s=a.indent,u=a.lineStart;if(s>0&&i.range.start>=u+s)break;r=o}else{if(i.type!==l.Type.BLANK_LINE)break;r=o}}if(-1===r)return null;for(var c=t.items.splice(r,n-r),f=c[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return c}var y=function(e){function t(e){var n;(0,o.default)(this,t),n=(0,i.default)(this,(0,a.default)(t).call(this,e.type===l.Type.SEQ_ITEM?l.Type.SEQ:l.Type.MAP));for(var r=e.props.length-1;r>=0;--r)if(e.props[r].start=o+r||("#"===i||"\n"===i)&&t.nextContentHasIndent(e,n,r))}}]),(0,u.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.parseNode,o=e.src,i=d.default.startOfLine(o,n),a=this.items[0];a.context.parent=this,this.valueRange=v.default.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,u=n,c=o[u=d.default.normalizeOffset(o,u)],p=d.default.endOfWhiteSpace(o,i)===u,y=!1;c;){for(;"\n"===c||"#"===c;){if(p&&"\n"===c&&!y){var g=new f.default;if(u=g.parse({src:o},u),this.valueRange.end=u,u>=o.length){c=null;break}this.items.push(g),u-=1}else if("#"===c){if(u=o.length){c=null;break}}if(i=u+1,u=d.default.endOfIndent(o,i),d.default.atBlank(o,u)){var w=d.default.endOfWhiteSpace(o,u),x=o[w];x&&"\n"!==x&&"#"!==x||(u=w)}c=o[u],p=!0}if(!c)break;if(u!==i+s&&(p||":"!==c)){i>n&&(u=i);break}if(a.type===l.Type.SEQ_ITEM!=("-"===c)){var _=!0;if("-"===c){var S=o[u+1];_=!S||"\n"===S||"\t"===S||" "===S}if(_){i>n&&(u=i);break}}var O=r({atLineStart:p,inCollection:!0,indent:s,lineStart:i,parent:this},u);if(!O)return u;if(this.items.push(O),this.valueRange.end=O.valueRange.end,c=o[u=d.default.normalizeOffset(o,O.range.end)],p=!1,y=O.includesTrailingLines,c){for(var k=u-1,E=o[k];" "===E||"\t"===E;)E=o[--k];"\n"===E&&(i=k+1,p=!0)}var A=m(O);A&&Array.prototype.push.apply(this.items,A)}return u}},{key:"setOrigRanges",value:function(e,n){return n=(0,s.default)((0,a.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){n=t.setOrigRanges(e,n)}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i0}}]),t}(d.default);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(8),f=n(9),p=r(n(56)),h=r(n(11)),d=r(n(12)),v=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).node=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.atLineStart,i=e.lineStart;o||this.type!==l.Type.SEQ_ITEM||(this.error=new f.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=h.default.endOfWhiteSpace(r,t+1),u=r[s];"\n"===u||"#"===u;){if("#"===u){var c=h.default.endOfLine(r,s+1);this.props.push(new d.default(s,c)),s=c}else{if(o=!0,i=s+1,"\n"===r[h.default.endOfWhiteSpace(r,i)]){var v=new p.default;i=v.parse({src:r},i),(e.parent.items||e.parent.contents).push(v)}s=h.default.endOfIndent(r,i)}u=r[s]}h.default.nextNodeIsIndented(u,s-(i+a),this.type!==l.Type.SEQ_ITEM)?(this.node=n({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s),this.node&&(s=this.node.range.end)):u&&i>t+1&&(s=i-1);var m=this.node?this.node.valueRange.end:s;return this.valueRange=new d.default(t,m),s}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.node?this.node.setOrigRanges(e,n):n}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return h.default.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),t}(h.default);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseBlockValue",value:function(e){for(var n=this.context,r=n.indent,o=n.inFlow,i=n.src,a=e,s=e,u=i[a];"\n"===u&&!c.default.atDocumentBoundary(i,a+1);u=i[a]){var l=c.default.endOfBlockIndent(i,r,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=t.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,n){this.context=e;var r=e.inFlow,o=e.src,i=n,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=t.endOfLine(o,n,r)),this.valueRange=new l.default(n,i),i=c.default.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,n=e.end,r=this.context.src,o=r[n-1];tl?r.slice(l,a+1):s)}else i+=s}return i}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var i=e[o+1];if(":"===r&&("\n"===i||"\t"===i||" "===i||n&&","===i))break;if((" "===r||"\t"===r)&&"#"===i)break;o+=1,r=i}return o}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(19)),l=r(n(5)),f=r(n(27)),p=r(n(16)),h=r(n(13)),d=r(n(34)),v="<<";t.MERGE_KEY=v;var m=function(e){function t(e){var n;if((0,i.default)(this,t),e instanceof p.default){var r=e.value;r instanceof d.default||((r=new d.default).items.push(e.value),r.range=e.value.range),(n=(0,s.default)(this,(0,u.default)(t).call(this,e.key,r))).range=e.range}else n=(0,s.default)(this,(0,u.default)(t).call(this,new h.default(v),new d.default));return n.type="MERGE_PAIR",(0,s.default)(n)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"addToJSMap",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=this.value.items[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value.source;if(!(u instanceof f.default))throw new Error("Merge sources must be maps");var c=u.toJSON(null,e,Map),l=!0,p=!1,h=void 0;try{for(var d,v=c[Symbol.iterator]();!(l=(d=v.next()).done);l=!0){var m=(0,o.default)(d.value,2),y=m[0],g=m[1];t instanceof Map?t.has(y)||t.set(y,g):t instanceof Set?t.add(y):t.hasOwnProperty(y)||(t[y]=g)}}catch(e){p=!0,h=e}finally{try{l||null==v.return||v.return()}finally{if(p)throw h}}}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return t}},{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}]),t}(p.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=r(n(20)),u=n(346),c=n(8),l=n(9),f=n(35),p=n(348),h=n(60),d=r(n(59)),v=r(n(26)),m=r(n(33)),y=r(n(16)),g=r(n(13)),b=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.tags;if((0,i.default)(this,e),this.merge=!!r,this.name=o,this.tags=p.schemas[o.replace(/\W/g,"")],!this.tags){var s=Object.keys(p.schemas).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown schema "'.concat(o,'"; use one of ').concat(s))}if(!n&&a&&(n=a,(0,u.warnOptionDeprecation)("tags","customTags")),Array.isArray(n)){var c=!0,l=!1,f=void 0;try{for(var h,d=n[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;this.tags=this.tags.concat(v)}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}}else"function"==typeof n&&(this.tags=n(this.tags.slice()));for(var m=0;m0&&(t.resolved=this.resolveScalar(a,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(t,n,r){var o=this.resolveNode(t,n,r);if(n.hasOwnProperty("resolved"))return o;var i,a=(i=n.type)===c.Type.FLOW_MAP||i===c.Type.MAP?e.defaultTags.MAP:function(e){var t=e.type;return t===c.Type.FLOW_SEQ||t===c.Type.SEQ}(n)?e.defaultTags.SEQ:e.defaultTags.STR;if(a){t.warnings.push(new l.YAMLWarning(n,"The tag ".concat(r," is unavailable, falling back to ").concat(a)));var s=this.resolveNode(t,n,a);return s.tag=r,s}return t.errors.push(new l.YAMLReferenceError(n,"The tag ".concat(r," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof d.default)return d.default;if(e.tag){var t=this.tags.filter(function(t){return t.tag===e.tag});if(t.length>0)return t.find(function(t){return t.format===e.format})||t[0]}var n,r;if(e instanceof g.default){r=e.value;var i=this.tags.filter(function(e){return e.identify&&e.identify(r)||e.class&&r instanceof e.class});n=i.find(function(t){return t.format===e.format})||i.find(function(e){return!e.format})}else r=e,n=this.tags.find(function(e){return e.nodeClass&&r instanceof e.nodeClass});if(!n){var a=r&&r.constructor?r.constructor.name:(0,o.default)(r);throw new Error("Tag not resolved for ".concat(a," value"))}return n}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,i=[],a=o.anchors.getName(e);return a&&(r[a]=e,i.push("&".concat(a))),e.tag?i.push(o.stringifyTag(e.tag)):t.default||i.push(o.stringifyTag(t.tag)),i.join(" ")}},{key:"stringify",value:function(e,t,n,r){var o;if(!(e instanceof m.default)){var i={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:[]};e=this.createNode(e,!0,null,i);var a=t.doc.anchors,s=!0,u=!1,c=void 0;try{for(var l,p=i.aliasNodes[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){var h=l.value;h.source=h.source.node;var d=a.getName(h.source);d||(d=a.newName(),a.map[d]=h.source)}}catch(e){u=!0,c=e}finally{try{s||null==p.return||p.return()}finally{if(u)throw c}}}if(t.tags=this,e instanceof y.default)return e.toString(t,n,r);o||(o=this.getTagObject(e));var g=this.stringifyProps(e,o,t),b="function"==typeof o.stringify?o.stringify(e,t,n,r):e instanceof v.default?e.toString(t,n,r):(0,f.stringifyString)(e,t,n,r);return g?e instanceof v.default&&"{"!==b[0]&&"["!==b[0]?"".concat(g,"\n").concat(t.indent).concat(b):"".concat(g," ").concat(b):b}}]),e}();t.default=b,(0,s.default)(b,"defaultPrefix","tag:yaml.org,2002:"),(0,s.default)(b,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new s.YAMLSyntaxError(t,n)),null}var r=t.type===i.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],o=void 0,a=null,u=!1,c="{",p=0;p0){(h=new a.default(i.Type.PLAIN,[])).context={parent:p,src:p.context.src};var v=p.range.start+1;if(h.range={start:v,end:v},h.valueRange={start:v,end:v},"number"==typeof p.range.origStart){var m=p.range.origStart+1;h.range.origStart=h.range.origEnd=m,h.valueRange.origStart=h.valueRange.origEnd=m}}var y=new l.default(o,e.resolveNode(h));d(p,y),r.push(y),(0,f.checkKeyLength)(e.errors,t,c,o,u),o=void 0,u=null;break;default:void 0!==o&&r.push(new l.default(o)),o=e.resolveNode(p),u=p.range.start,p.error&&e.errors.push(p.error);e:for(var g=c+1;;++g){var b=t.items[g];switch(b&&b.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be followed by map values"));break e}}if(p.valueRangeContainsNewline){e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be on a single line"))}}}void 0!==o&&r.push(new l.default(o));return{comments:n,items:r}}(e,t),o=r.comments,h=r.items,v=new u.default;v.items=h,(0,f.resolveComments)(v,o);for(var m=0;mr.valueRange.start)return!1;if(o[s]!==i.Char.COMMENT)return!1;for(var u=n;u=0;--u){var c=t.items[u];if(c&&c.range){s=c.range.end+2*(n-u);break}}if(s>i+1024){var l=String(o).substr(0,8)+"..."+String(o).substr(-8);e.push(new r.YAMLSemanticError(t,'The "'.concat(l,'" key is too long')))}},t.resolveComments=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.afterKey,c=s.before,l=s.comment,f=e.items[c];f?(u&&f.value&&(f=f.value),void 0===l?!u&&f.commentBefore||(f.spaceBefore=!0):f.commentBefore?f.commentBefore+="\n"+l:f.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}};var r=n(9)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==o.Type.SEQ&&t.type!==o.Type.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new i.YAMLSyntaxError(t,n)),null}var r=t.type===o.Type.FLOW_SEQ?function(e,t){for(var n=[],r=[],u=!1,c=void 0,l=null,f="[",p=0;p=60&&(t=Math.round((t-o[0])/60),o.unshift(t))),n+o.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},a={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,n){return o(t,n.replace(/_/g,""))},stringify:i};t.intTime=a;var s={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,n){return o(t,n.replace(/_/g,""))},stringify:i};t.floatTime=s;var u={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,n,r,i,a,s,u,c){u&&(u=(u+"00").substr(1,3));var l=Date.UTC(t,n-1,r,i||0,a||0,s||0,u||0);if(c&&"Z"!==c){var f=o(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=u},function(e,t,n){"use strict";(function(t){const r=n(356),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(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,n){return n.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 n of e){t.find(function(e,t,r){return i(e,n)})||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find(function(t,n,r){return e.indexOf(t)e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(15),n(36).Buffer,n(10))},function(e,t,n){(t=e.exports=n(156)).Stream=t,t.Readable=t,t.Writable=n(160),t.Duplex=n(37),t.Transform=n(162),t.PassThrough=n(367)},function(e,t,n){"use strict";(function(t,r){var o=n(63);e.exports=b;var i,a=n(148);b.ReadableState=g;n(157).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(158),c=n(64).Buffer,l=t.Uint8Array||function(){};var f=n(41);f.inherits=n(28);var p=n(361),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,v=n(362),m=n(159);f.inherits(b,u);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(37));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(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&&(d||(d=n(161).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(37),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,O(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(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 O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),C(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(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(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):O(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=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,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",v),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",f);var p=!1;var d=!1;function v(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==N(i.pipes,e))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function m(t){h("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",y),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",y),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=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 u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(){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 u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=v(u,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(157).EventEmitter},function(e,t,n){"use strict";var r=n(63);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=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||r.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?(r.nextTick(o,n,e),n._writableState&&(n._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,n){"use strict";(function(t,r,o){var i=n(63);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;g.WritableState=y;var c=n(41);c.inherits=n(28);var l={deprecate:n(366)},f=n(158),p=n(64).Buffer,h=o.Uint8Array||function(){};var d,v=n(159);function m(){}function y(e,t){s=s||n(37),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}(e,n,r,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?u(w,e,n,a,o):w(e,n,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 g(e){if(s=s||n(37),!(d.call(g,this)||this instanceof s))return new g(e);this._writableState=new y(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)),f.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,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(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function O(e,t){var n=_(t);return n&&(!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"))),n}c.inherits(g,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:l.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]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof y)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,p.isBuffer(r)||r instanceof h);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=m),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(15),n(364).setImmediate,n(10))},function(e,t,n){"use strict";var r=n(64).Buffer,o=r.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&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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,n=function(e,t,n){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!==n?n: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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=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=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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,n){"use strict";e.exports=a;var r=n(37),o=n(41);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length-1?o=a:(n=r.isUndefined(e)?void 0:k(e),r.isUndefined(n)?o=a:((o=n).path=u(i.join(n.path,a.path)),o.query=function(e,t){var n={};function o(e){r.forOwn(e,function(e,t){n[t]=e})}return o(s.parse(e||"")),o(s.parse(t||"")),0===Object.keys(n).length?void 0:s.stringify(n)}(n.query,a.query))),o.fragment=void 0,(-1===h.indexOf(o.reference)&&0===o.path.indexOf("../")?"../":"")+c.serialize(o)}function m(e){return p.indexOf(w(e))>-1}function y(e){return r.isUndefined(e.error)&&"invalid"!==e.type}function g(e,t){var n=e;return t.forEach(function(e){if(!(e in n))throw Error("JSON Pointer points to missing location: "+L(t));n=n[e]}),n}function b(e){return Object.keys(e).filter(function(e){return"$ref"!==e})}function w(e){var t;switch(e.uriDetails.reference){case"absolute":case"uri":t="remote";break;case"same-document":t="local";break;default:t=e.uriDetails.reference}return t}function x(e,t){var n=f[e],o=Promise.resolve(),i=r.cloneDeep(t.loaderOptions||{});return r.isUndefined(n)?(r.isUndefined(i.processContent)&&(i.processContent=function(e,t){t(void 0,JSON.parse(e.text))}),o=(o=a.load(decodeURI(e),i)).then(function(t){return f[e]={value:t},t}).catch(function(t){throw f[e]={error:t},t})):o=o.then(function(){if(r.isError(n.error))throw n.error;return n.value}),o=o.then(function(e){return r.cloneDeep(e)})}function _(e,t){var n=!0;try{if(!r.isPlainObject(e))throw new Error("obj is not an Object");if(!r.isString(e.$ref))throw new Error("obj.$ref is not a String")}catch(e){if(t)throw e;n=!1}return n}function S(e){return-1!==e.indexOf("://")||i.isAbsolute(e)?e:i.resolve(t.cwd(),e)}function O(e,t){e.error=t.message,e.missing=!0}function k(e){return c.parse(e)}function E(e,t){var n,o;if(e=r.isUndefined(e)?{}:r.cloneDeep(e),!r.isObject(e))throw new TypeError("options must be an Object");if(!r.isUndefined(e.resolveCirculars)&&!r.isBoolean(e.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(r.isUndefined(e.filter)||r.isArray(e.filter)||r.isFunction(e.filter)||r.isString(e.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!r.isUndefined(e.includeInvalid)&&!r.isBoolean(e.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!r.isUndefined(e.location)&&!r.isString(e.location))throw new TypeError("options.location must be a String");if(!r.isUndefined(e.refPreProcessor)&&!r.isFunction(e.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!r.isUndefined(e.refPostProcessor)&&!r.isFunction(e.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!r.isUndefined(e.subDocPath)&&!r.isArray(e.subDocPath)&&!P(e.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(r.isUndefined(e.resolveCirculars)&&(e.resolveCirculars=!1),e.filter=function(e){var t,n;return r.isArray(e.filter)||r.isString(e.filter)?(n=r.isString(e.filter)?[e.filter]:e.filter,t=function(e){return n.indexOf(e.type)>-1||n.indexOf(w(e))>-1}):r.isFunction(e.filter)?t=e.filter:r.isUndefined(e.filter)&&(t=function(){return!0}),function(n,r){return("invalid"!==n.type||!0===e.includeInvalid)&&t(n,r)}}(e),r.isUndefined(e.location)&&(e.location=S("./root.json")),(n=e.location.split("#")).length>1&&(e.subDocPath="#"+n[1]),o=decodeURI(e.location)===e.location,e.location=v(e.location,void 0),o&&(e.location=decodeURI(e.location)),e.subDocPath=function(e){var t;return r.isArray(e.subDocPath)?t=e.subDocPath:r.isString(e.subDocPath)?t=R(e.subDocPath):r.isUndefined(e.subDocPath)&&(t=[]),t}(e),!r.isUndefined(t))try{g(t,e.subDocPath)}catch(e){throw e.message=e.message.replace("JSON Pointer","options.subDocPath"),e}return e}function A(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~1/g,"/").replace(/~0/g,"~")})}function T(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~/g,"~0").replace(/\//g,"~1")})}function j(e,t){var n={};if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");return function e(t,n,o,i){var a=!0;function s(n,r){o.push(r),e(t,n,o,i),o.pop()}r.isFunction(i)&&(a=i(t,n,o)),-1===t.indexOf(n)&&(t.push(n),!1!==a&&(r.isArray(n)?n.forEach(function(e,t){s(e,t.toString())}):r.isObject(n)&&r.forOwn(n,function(e,t){s(e,t)})),t.pop())}(function(e,t){var n,r=[];return t.length>0&&(n=e,t.slice(0,t.length-1).forEach(function(e){e in n&&(n=n[e],r.push(n))})),r}(e,(t=E(t,e)).subDocPath),g(e,t.subDocPath),r.cloneDeep(t.subDocPath),function(e,o,i){var a,s,u=!0;return _(o)&&(r.isUndefined(t.refPreProcessor)||(o=t.refPreProcessor(r.cloneDeep(o),i)),a=C(o),r.isUndefined(t.refPostProcessor)||(a=t.refPostProcessor(a,i)),t.filter(a,i)&&(s=L(i),n[s]=a),b(o).length>0&&(u=!1)),u}),n}function C(e){var t,n,o,i={def:e};try{if(_(e,!0)){if(t=e.$ref,o=d[t],r.isUndefined(o)&&(o=d[t]=k(t)),i.uri=t,i.uriDetails=o,r.isUndefined(o.error)){i.type=w(i);try{["#","/"].indexOf(t[0])>-1?P(t,!0):t.indexOf("#")>-1&&P(o.fragment,!0)}catch(e){i.error=e.message,i.type="invalid"}}else i.error=i.uriDetails.error,i.type="invalid";(n=b(e)).length>0&&(i.warning="Extra JSON Reference properties will be ignored: "+n.join(", "))}else i.type="invalid"}catch(e){i.error=e.message,i.type="invalid"}return i}function P(e,t){var n,o=!0;try{if(!r.isString(e))throw new Error("ptr is not a String");if(""!==e){if(n=e.charAt(0),-1===["#","/"].indexOf(n))throw new Error("ptr must start with a / or #/");if("#"===n&&"#"!==e&&"/"!==e.charAt(1))throw new Error("ptr must start with a / or #/");if(e.match(l))throw new Error("ptr has invalid token(s)")}}catch(e){if(!0===t)throw e;o=!1}return o}function R(e){try{P(e,!0)}catch(e){throw new Error("ptr must be a JSON Pointer: "+e.message)}var t=e.split("/");return t.shift(),A(t)}function L(e,t){if(!r.isArray(e))throw new Error("path must be an Array");return(!1!==t?"#":"")+(e.length>0?"/":"")+T(e).join("/")}function N(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");t=E(t,e),e=r.cloneDeep(e)}).then(function(){var n={deps:{},docs:{},refs:{}};return function e(t,n,o){var a,s,u=Promise.resolve(),c=L(n.subDocPath),l=S(n.location),f=i.dirname(n.location),p=l+c;return r.isUndefined(o.docs[l])&&(o.docs[l]=t),r.isUndefined(o.deps[p])&&(o.deps[p]={},a=j(t,n),r.forOwn(a,function(i,a){var l,h,d=S(n.location)+a,g=i.refdId=decodeURI(S(m(i)?v(f,i.uri):n.location)+"#"+(i.uri.indexOf("#")>-1?i.uri.split("#")[1]:""));(o.refs[d]=i,y(i))&&(i.fqURI=g,o.deps[p][a===c?"#":a.replace(c+"/","#/")]=g,0!==d.indexOf(g+"/")?((s=r.cloneDeep(n)).subDocPath=r.isUndefined(i.uriDetails.fragment)?[]:R(decodeURI(i.uriDetails.fragment)),m(i)?(delete s.filter,s.location=g.split("#")[0],u=u.then((l=o,h=s,function(){var e=S(h.location),t=l.docs[e];return r.isUndefined(t)?x(e,h).catch(function(t){return l.docs[e]=t,t}):Promise.resolve().then(function(){return t})}))):u=u.then(function(){return t}),u=u.then(function(t,n,o){return function(i){if(r.isError(i))O(o,i);else try{return e(i,n,t).catch(function(e){O(o,e)})}catch(e){O(o,e)}}}(o,s,i))):i.circular=!0)})),u}(e,t,n).then(function(){return n})}).then(function(e){var n={},a=[],s=[],u=new o.Graph,c=S(t.location),l=c+L(t.subDocPath),f=i.dirname(c);return Object.keys(e.deps).forEach(function(e){u.setNode(e)}),r.forOwn(e.deps,function(e,t){r.forOwn(e,function(e){u.setEdge(t,e)})}),(a=o.alg.findCycles(u)).forEach(function(e){e.forEach(function(e){-1===s.indexOf(e)&&s.push(e)})}),r.forOwn(e.deps,function(t,n){r.forOwn(t,function(t,r){var o,i=!1,u=n+r.slice(1),c=e.refs[n+r.slice(1)],l=m(c);s.indexOf(t)>-1&&a.forEach(function(e){i||(o=e.indexOf(t))>-1&&e.forEach(function(n){i||0===u.indexOf(n+"/")&&(l&&o!==e.length-1&&"#"===t[t.length-1]||(i=!0))})}),i&&(c.circular=!0)})}),r.forOwn(Object.keys(e.deps).reverse(),function(n){var o=e.deps[n],i=n.split("#"),a=e.docs[i[0]],s=R(i[1]);r.forOwn(o,function(n,o){var u=n.split("#"),c=e.docs[u[0]],l=s.concat(R(o)),f=e.refs[i[0]+L(l)];if(r.isUndefined(f.error)&&r.isUndefined(f.missing))if(!t.resolveCirculars&&f.circular)f.value=f.def;else{try{f.value=g(c,R(u[1]))}catch(e){return void O(f,e)}""===i[1]&&"#"===o?e.docs[i[0]]=f.value:function(e,t,n){g(e,t.slice(0,t.length-1))[t[t.length-1]]=n}(a,l,f.value)}})}),Object.keys(e.refs).forEach(function(o){var i,a,s=e.refs[o];"invalid"!==s.type&&("#"===s.fqURI[s.fqURI.length-1]&&"#"!==s.uri[s.uri.length-1]&&(s.fqURI=s.fqURI.substr(0,s.fqURI.length-1)),i=s.fqURI.split("/"),a=s.uri.split("/"),r.times(a.length-1,function(e){var t=a[a.length-e-1],n=i.length-e-1,r=i[n];"."!==t&&".."!==t||(t=r),i[n]=t}),s.fqURI=i.join("/"),0===s.fqURI.indexOf(c)?s.fqURI=s.fqURI.replace(c,""):0===s.fqURI.indexOf(f)&&(s.fqURI=s.fqURI.replace(f,"")),"/"===s.fqURI[0]&&(s.fqURI="."+s.fqURI)),0===o.indexOf(l)&&function r(o,i,a){var s,u=i.split("#"),c=e.refs[i];n[u[0]===t.location?"#"+u[1]:L(t.subDocPath.concat(a))]=c,!c.circular&&y(c)?(s=e.deps[c.refdId],0!==c.refdId.indexOf(o)&&Object.keys(s).forEach(function(e){r(c.refdId,c.refdId+e.substr(1),a.concat(R(e)))})):!c.circular&&c.error&&(c.error=c.error.replace("options.subDocPath","JSON Pointer"),c.error.indexOf("#")>-1&&(c.error=c.error.replace(c.uri.substr(c.uri.indexOf("#")),c.uri)),0!==c.error.indexOf("ENOENT:")&&0!==c.error.indexOf("Not Found")||(c.error="JSON Pointer points to missing location: "+c.uri))}(l,o,R(o.substr(l.length)))}),r.forOwn(e.refs,function(e){delete e.refdId,e.missing&&(e.error=e.error.split(": ")[0]+": "+e.def.$ref)}),{refs:n,resolved:e.docs[c]}})}"undefined"==typeof Promise&&n(132),e.exports.clearCache=function(){f={}},e.exports.decodePath=function(e){return A(e)},e.exports.encodePath=function(e){return T(e)},e.exports.findRefs=function(e,t){return j(e,t)},e.exports.findRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(f[t.location]),o=r.cloneDeep(t),i=k(t.location);return r.isUndefined(n.refs)&&(delete o.filter,delete o.subDocPath,o.includeInvalid=!0,f[t.location].refs=j(e,o)),r.isUndefined(t.filter)||(o.filter=t.filter),r.isUndefined(i.fragment)?r.isUndefined(i.subDocPath)||(o.subDocPath=t.subDocPath):o.subDocPath=R(decodeURI(i.fragment)),{refs:j(e,o),value:e}})}(e,t)},e.exports.getRefDetails=function(e){return C(e)},e.exports.isPtr=function(e,t){return P(e,t)},e.exports.isRef=function(e,t){return function(e,t){return _(e,t)&&"invalid"!==C(e).type}(e,t)},e.exports.pathFromPtr=function(e){return R(e)},e.exports.pathToPtr=function(e,t){return L(e,t)},e.exports.resolveRefs=function(e,t){return N(e,t)},e.exports.resolveRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(t),o=k(t.location);return r.isUndefined(o.fragment)||(n.subDocPath=R(decodeURI(o.fragment))),N(e,n).then(function(t){return{refs:t.refs,resolved:t.resolved,value:e}})})}(e,t)}}).call(this,n(15))},function(e,t,n){var r=n(65);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},i=n(171)(r,o);r.locals&&(e.exports=r.locals),r.locals||e.hot.accept(65,function(){var t=n(65);"string"==typeof t&&(t=[[e.i,t,""]]),i(t)}),e.hot.dispose(function(){i()})},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o + * Copyright JS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,h=2,d=4,v=1,m=2,y=1,g=2,b=4,w=8,x=16,_=32,S=64,O=128,k=256,E=512,A=30,T="...",j=800,C=16,P=1,R=2,L=1/0,N=9007199254740991,M=17976931348623157e292,I=NaN,U=4294967295,D=U-1,q=U>>>1,B=[["ary",O],["bind",y],["bindKey",g],["curry",w],["curryRight",x],["flip",E],["partial",_],["partialRight",S],["rearg",k]],z="[object Arguments]",F="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",H="[object Date]",Y="[object DOMException]",V="[object Error]",K="[object Function]",J="[object GeneratorFunction]",G="[object Map]",Q="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",ve="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Oe=RegExp(_e.source),ke=RegExp(Se.source),Ee=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Re.source),Ne=/^\s+|\s+$/g,Me=/^\s+/,Ie=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ge=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Xe+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Xe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",ht="(?:"+ft+"|"+at+")",dt="(?:"+nt+"|"+st+")"+"?",vt="[\\ufe0e\\ufe0f]?"+dt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+dt+")*"),mt="(?:"+[ot,ct,lt].join("|")+")"+vt,yt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+yt+vt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,Et={};Et[le]=Et[fe]=Et[pe]=Et[he]=Et[de]=Et[ve]=Et[me]=Et[ye]=Et[ge]=!0,Et[z]=Et[F]=Et[ue]=Et[W]=Et[ce]=Et[H]=Et[V]=Et[K]=Et[G]=Et[Q]=Et[X]=Et[te]=Et[ne]=Et[re]=Et[ae]=!1;var At={};At[z]=At[F]=At[ue]=At[ce]=At[W]=At[H]=At[le]=At[fe]=At[pe]=At[he]=At[de]=At[G]=At[Q]=At[X]=At[te]=At[ne]=At[re]=At[oe]=At[ve]=At[me]=At[ye]=At[ge]=!0,At[V]=At[K]=At[ae]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jt=parseFloat,Ct=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Rt="object"==typeof self&&self&&self.Object===Object&&self,Lt=Pt||Rt||Function("return this")(),Nt=t&&!t.nodeType&&t,Mt=Nt&&"object"==typeof r&&r&&!r.nodeType&&r,It=Mt&&Mt.exports===Nt,Ut=It&&Pt.process,Dt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),qt=Dt&&Dt.isArrayBuffer,Bt=Dt&&Dt.isDate,zt=Dt&&Dt.isMap,Ft=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Wt=Dt&&Dt.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var _n=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Sn=hn({"&":"&","<":"<",">":">",'"':""","'":"'"});function On(e){return"\\"+Tt[e]}function kn(e){return _t.test(e)}function En(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function Tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Nn=function e(t){var n,r=(t=null==t?Lt:Nn.defaults(Lt.Object(),t,Nn.pick(Lt,Ot))).Array,o=t.Date,Ze=t.Error,Xe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Xe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=st.toString,dt=ct.call(tt),vt=Lt._,mt=nt("^"+ct.call(lt).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=It?t.Buffer:i,wt=t.Symbol,_t=t.Uint8Array,Tt=yt?yt.allocUnsafe:i,Pt=An(tt.getPrototypeOf,tt),Rt=tt.create,Nt=st.propertyIsEnumerable,Mt=it.splice,Ut=wt?wt.isConcatSpreadable:i,Dt=wt?wt.iterator:i,on=wt?wt.toStringTag:i,hn=function(){try{var e=qi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mn=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,In=o&&o.now!==Lt.Date.now&&o.now,Un=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Dn=et.ceil,qn=et.floor,Bn=tt.getOwnPropertySymbols,zn=yt?yt.isBuffer:i,Fn=t.isFinite,$n=it.join,Wn=An(tt.keys,tt),Hn=et.max,Yn=et.min,Vn=o.now,Kn=t.parseInt,Jn=et.random,Gn=it.reverse,Qn=qi(t,"DataView"),Zn=qi(t,"Map"),Xn=qi(t,"Promise"),er=qi(t,"Set"),tr=qi(t,"WeakMap"),nr=qi(tt,"create"),rr=tr&&new tr,or={},ir=fa(Qn),ar=fa(Zn),sr=fa(Xn),ur=fa(er),cr=fa(tr),lr=wt?wt.prototype:i,fr=lr?lr.valueOf:i,pr=lr?lr.toString:i;function hr(e){if(Ts(e)&&!ys(e)&&!(e instanceof yr)){if(e instanceof mr)return e;if(lt.call(e,"__wrapped__"))return pa(e)}return new mr(e)}var dr=function(){function e(){}return function(t){if(!As(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function vr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Mr(e,t,n,r,o,a){var s,u=t&p,c=t&h,l=t&d;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!As(e))return e;var f=ys(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ri(e,s)}else{var v=Fi(e),m=v==K||v==J;if(xs(e))return Qo(e,u);if(v==X||v==z||m&&!o){if(s=c||m?{}:Wi(e),!u)return c?function(e,t){return oi(e,zi(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,Bi(e),t)}(e,Pr(s,e))}else{if(!At[v])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ue:return Zo(e);case W:case H:return new r(+e);case ce:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case fe:case pe:case he:case de:case ve:case me:case ye:case ge:return Xo(e,n);case G:return new r;case Q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,fr?tt(fr.call(o)):{}}var o}(e,v,u)}}a||(a=new _r);var y=a.get(e);if(y)return y;if(a.set(e,s),Ls(e))return e.forEach(function(r){s.add(Mr(r,t,n,r,e,a))}),s;if(js(e))return e.forEach(function(r,o){s.set(o,Mr(r,t,n,o,e,a))}),s;var g=f?i:(l?c?Ri:Pi:c?iu:ou)(e);return Vt(g||e,function(r,o){g&&(r=e[o=r]),Tr(s,o,Mr(r,t,n,o,e,a))}),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Ur(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Qt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Xt(t,yn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=bn,s=!1,t=new xr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Zn||br),string:new gr}},wr.prototype.delete=function(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ui(this,e).get(e)},wr.prototype.has=function(e){return Ui(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,c),this},xr.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new br,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Wr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Hr=ui(),Yr=ui(!0);function Vr(e,t){return e&&Hr(e,t,ou)}function Kr(e,t){return e&&Yr(e,t,ou)}function Jr(e,t){return Gt(t,function(t){return Os(e[t])})}function Gr(e,t){for(var n=0,r=(t=Vo(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&<.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Zt:Qt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Xt(p,yn(t))),l=Yn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var h=-1,d=c[0];e:for(;++h=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Mt.call(s,u,1),Mt.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Yi(o)?Mt.call(e,o,1):qo(e,o)}}return e}function _o(e,t){return e+qn(Jn()*(t-e+1))}function So(e,t){var n="";if(!e||t<1||t>N)return n;do{t%2&&(n+=e),(t=qn(t/2))&&(e+=e)}while(t);return n}function Oo(e,t){return ia(ea(e,t,Cu),e+"")}function ko(e){return Or(hu(e))}function Eo(e,t){var n=hu(e);return ua(n,Nr(t,0,n.length))}function Ao(e,t,n,r){if(!As(e))return e;for(var o=-1,a=(t=Vo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Ms(a)&&(n?a<=t:a=a){var l=t?null:Si(e);if(l)return jn(l);s=!1,o=bn,c=new xr}else c=t?[]:u;e:for(;++r=r?e:Po(e,t,n)}var Go=Mn||function(e){return Lt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Xo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Ms(e),s=t!==i,u=null===t,c=t==t,l=Ms(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Vi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r-1?o[a?t[s]:s]:i}}function hi(e){return Ci(function(t){var n=t.length,r=n,o=mr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==Ni(a))var s=new mr([],!0)}for(r=s?r:n;++r1&&w.reverse(),p&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,p=!0,h=n&m?new xr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Vt(B,function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(qe):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Vn(),o=C-(r-n);if(n=r,o>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ra(e,n)});function qa(e){var t=hr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var za=Ci(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[o],thisArg:i}),new mr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Fa=ii(function(e,t,n){lt.call(e,n)?++e[n]:Rr(e,n,1)});var $a=pi(ma),Wa=pi(ya);function Ha(e,t){return(ys(e)?Vt:qr)(e,Ii(t,3))}function Ya(e,t){return(ys(e)?Kt:Br)(e,Ii(t,3))}var Va=ii(function(e,t,n){lt.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Ka=Oo(function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return qr(e,function(e){a[++o]=i?Ht(t,e,n):ro(e,t,n)}),a}),Ja=ii(function(e,t,n){Rr(e,n,t)});function Ga(e,t){return(ys(e)?Xt:po)(e,Ii(t,3))}var Qa=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=Oo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Vi(e,t[0],t[1])?t=[]:n>2&&Vi(t[0],t[1],t[2])&&(t=[t[0]]),go(e,Wr(t,1),[])}),Xa=In||function(){return Lt.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,ki(e,O,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=zs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Oo(function(e,t,n){var r=y;if(n.length){var o=Tn(n,Mi(ns));r|=_}return ki(e,r,t,n,o)}),rs=Oo(function(e,t,n){var r=y|g;if(n.length){var o=Tn(n,Mi(rs));r|=_}return ki(t,r,e,n,o)});function os(e,t,n){var r,o,a,s,c,l,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new ot(u);function v(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function m(e){var n=e-l;return l===i||n>=t||n<0||h&&e-f>=a}function y(){var e=Xa();if(m(e))return g(e);c=oa(y,function(e){var n=t-(e-l);return h?Yn(n,a-(e-f)):n}(e))}function g(e){return c=i,d&&r?v(e):(r=o=i,s)}function b(){var e=Xa(),n=m(e);if(r=arguments,o=this,l=e,n){if(c===i)return function(e){return f=e,c=oa(y,t),p?v(e):s}(l);if(h)return c=oa(y,t),v(l)}return c===i&&(c=oa(y,t)),s}return t=$s(t)||0,As(n)&&(p=!!n.leading,a=(h="maxWait"in n)?Hn($s(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==i&&Go(c),f=0,r=l=o=c=i},b.flush=function(){return c===i?s:g(Xa())},b}var is=Oo(function(e,t){return Ur(e,1,t)}),as=Oo(function(e,t,n){return Ur(e,$s(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||wr),n}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var cs=Ko(function(e,t){var n=(t=1==t.length&&ys(t[0])?Xt(t[0],yn(Ii())):Xt(Wr(t,1),yn(Ii()))).length;return Oo(function(r){for(var o=-1,i=Yn(r.length,n);++o=t}),ms=oo(function(){return arguments}())?oo:function(e){return Ts(e)&<.call(e,"callee")&&!Nt.call(e,"callee")},ys=r.isArray,gs=qt?yn(qt):function(e){return Ts(e)&&Zr(e)==ue};function bs(e){return null!=e&&Es(e.length)&&!Os(e)}function ws(e){return Ts(e)&&bs(e)}var xs=zn||$u,_s=Bt?yn(Bt):function(e){return Ts(e)&&Zr(e)==H};function Ss(e){if(!Ts(e))return!1;var t=Zr(e);return t==V||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Os(e){if(!As(e))return!1;var t=Zr(e);return t==K||t==J||t==$||t==ee}function ks(e){return"number"==typeof e&&e==zs(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var js=zt?yn(zt):function(e){return Ts(e)&&Fi(e)==G};function Cs(e){return"number"==typeof e||Ts(e)&&Zr(e)==Q}function Ps(e){if(!Ts(e)||Zr(e)!=X)return!1;var t=Pt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Rs=Ft?yn(Ft):function(e){return Ts(e)&&Zr(e)==te};var Ls=$t?yn($t):function(e){return Ts(e)&&Fi(e)==ne};function Ns(e){return"string"==typeof e||!ys(e)&&Ts(e)&&Zr(e)==re}function Ms(e){return"symbol"==typeof e||Ts(e)&&Zr(e)==oe}var Is=Wt?yn(Wt):function(e){return Ts(e)&&Es(e.length)&&!!Et[Zr(e)]};var Us=wi(fo),Ds=wi(function(e,t){return e<=t});function qs(e){if(!e)return[];if(bs(e))return Ns(e)?Rn(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=Fi(e);return(t==G?En:t==ne?jn:hu)(e)}function Bs(e){return e?(e=$s(e))===L||e===-L?(e<0?-1:1)*M:e==e?e:0:0===e?e:0}function zs(e){var t=Bs(e),n=t%1;return t==t?n?t-n:t:0}function Fs(e){return e?Nr(zs(e),0,U):0}function $s(e){if("number"==typeof e)return e;if(Ms(e))return I;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var n=He.test(e);return n||Ve.test(e)?Ct(e.slice(2),n?2:8):We.test(e)?I:+e}function Ws(e){return oi(e,iu(e))}function Hs(e){return null==e?"":Uo(e)}var Ys=ai(function(e,t){if(Qi(t)||bs(t))oi(t,ou(t),e);else for(var n in t)lt.call(t,n)&&Tr(e,n,t[n])}),Vs=ai(function(e,t){oi(t,iu(t),e)}),Ks=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),Js=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),Gs=Ci(Lr);var Qs=Oo(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Vi(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Ri(e),n),r&&(n=Mr(n,p|h|d,Ti));for(var o=t.length;o--;)qo(n,t[o]);return n});var cu=Ci(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Xt(Ri(e),function(e){return[e]});return t=Ii(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Oi(ou),pu=Oi(iu);function hu(e){return null==e?[]:gn(e,ou(e))}var du=li(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return Su(Hs(e).toLowerCase())}function mu(e){return(e=Hs(e))&&e.replace(Je,_n).replace(bt,"")}var yu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ci("toLowerCase");var wu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=li(function(e,t,n){return e+(n?" ":"")+Su(t)});var _u=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Su=ci("toUpperCase");function Ou(e,t,n){return e=Hs(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var ku=Oo(function(e,t){try{return Ht(e,i,t)}catch(e){return Ss(e)?e:new Ze(e)}}),Eu=Ci(function(e,t){return Vt(t,function(t){t=la(t),Rr(e,t,ns(e[t],e))}),e});function Au(e){return function(){return e}}var Tu=hi(),ju=hi(!0);function Cu(e){return e}function Pu(e){return uo("function"==typeof e?e:Mr(e,p))}var Ru=Oo(function(e,t){return function(n){return ro(n,e,t)}}),Lu=Oo(function(e,t){return function(n){return ro(e,n,t)}});function Nu(e,t,n){var r=ou(t),o=Jr(t,r);null!=n||As(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,ou(t)));var i=!(As(n)&&"chain"in n&&!n.chain),a=Os(e);return Vt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Mu(){}var Iu=yi(Xt),Uu=yi(Jt),Du=yi(rn);function qu(e){return Ki(e)?pn(la(e)):function(e){return function(t){return Gr(t,e)}}(e)}var Bu=bi(),zu=bi(!0);function Fu(){return[]}function $u(){return!1}var Wu=mi(function(e,t){return e+t},0),Hu=_i("ceil"),Yu=mi(function(e,t){return e/t},1),Vu=_i("floor");var Ku,Ju=mi(function(e,t){return e*t},1),Gu=_i("round"),Qu=mi(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=zs(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=es,hr.assign=Ys,hr.assignIn=Vs,hr.assignInWith=Ks,hr.assignWith=Js,hr.at=Gs,hr.before=ts,hr.bind=ns,hr.bindAll=Eu,hr.bindKey=rs,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},hr.chain=qa,hr.chunk=function(e,t,n){t=(n?Vi(e,t,n):t===i)?1:Hn(zs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Dn(o/t));ao?0:o+n),(r=r===i||r>o?o:zs(r))<0&&(r+=o),r=n>r?0:Fs(r);n>>0)?(e=Hs(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Uo(t))&&kn(e)?Jo(Rn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Hn(zs(t),0),Oo(function(n){var r=n[t],o=Jo(n,0,t);return r&&en(o,r),Ht(e,this,o)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:zs(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:zs(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return As(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},hr.thru=Ba,hr.toArray=qs,hr.toPairs=fu,hr.toPairsIn=pu,hr.toPath=function(e){return ys(e)?Xt(e,la):Ms(e)?[e]:ri(ca(Hs(e)))},hr.toPlainObject=Ws,hr.transform=function(e,t,n){var r=ys(e),o=r||xs(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:As(e)&&Os(i)?dr(Pt(e)):{}}return(o?Vt:Vr)(e,function(e,r,o){return t(n,e,r,o)}),n},hr.unary=function(e){return es(e,1)},hr.union=Ta,hr.unionBy=ja,hr.unionWith=Ca,hr.uniq=function(e){return e&&e.length?Do(e):[]},hr.uniqBy=function(e,t){return e&&e.length?Do(e,Ii(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},hr.unset=function(e,t){return null==e||qo(e,t)},hr.unzip=Pa,hr.unzipWith=Ra,hr.update=function(e,t,n){return null==e?e:Bo(e,t,Yo(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Bo(e,t,Yo(n),r)},hr.values=hu,hr.valuesIn=function(e){return null==e?[]:gn(e,iu(e))},hr.without=La,hr.words=Ou,hr.wrap=function(e,t){return ls(Yo(t),e)},hr.xor=Na,hr.xorBy=Ma,hr.xorWith=Ia,hr.zip=Ua,hr.zipObject=function(e,t){return Wo(e||[],t||[],Tr)},hr.zipObjectDeep=function(e,t){return Wo(e||[],t||[],Ao)},hr.zipWith=Da,hr.entries=fu,hr.entriesIn=pu,hr.extend=Vs,hr.extendWith=Ks,Nu(hr,hr),hr.add=Wu,hr.attempt=ku,hr.camelCase=du,hr.capitalize=vu,hr.ceil=Hu,hr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=$s(n))==n?n:0),t!==i&&(t=(t=$s(t))==t?t:0),Nr($s(e),t,n)},hr.clone=function(e){return Mr(e,d)},hr.cloneDeep=function(e){return Mr(e,p|d)},hr.cloneDeepWith=function(e,t){return Mr(e,p|d,t="function"==typeof t?t:i)},hr.cloneWith=function(e,t){return Mr(e,d,t="function"==typeof t?t:i)},hr.conformsTo=function(e,t){return null==t||Ir(e,t,ou(t))},hr.deburr=mu,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=Yu,hr.endsWith=function(e,t,n){e=Hs(e),t=Uo(t);var r=e.length,o=n=n===i?r:Nr(zs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=hs,hr.escape=function(e){return(e=Hs(e))&&ke.test(e)?e.replace(Se,Sn):e},hr.escapeRegExp=function(e){return(e=Hs(e))&&Le.test(e)?e.replace(Re,"\\$&"):e},hr.every=function(e,t,n){var r=ys(e)?Jt:zr;return n&&Vi(e,t,n)&&(t=i),r(e,Ii(t,3))},hr.find=$a,hr.findIndex=ma,hr.findKey=function(e,t){return an(e,Ii(t,3),Vr)},hr.findLast=Wa,hr.findLastIndex=ya,hr.findLastKey=function(e,t){return an(e,Ii(t,3),Kr)},hr.floor=Vu,hr.forEach=Ha,hr.forEachRight=Ya,hr.forIn=function(e,t){return null==e?e:Hr(e,Ii(t,3),iu)},hr.forInRight=function(e,t){return null==e?e:Yr(e,Ii(t,3),iu)},hr.forOwn=function(e,t){return e&&Vr(e,Ii(t,3))},hr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},hr.get=Xs,hr.gt=ds,hr.gte=vs,hr.has=function(e,t){return null!=e&&$i(e,t,eo)},hr.hasIn=eu,hr.head=ba,hr.identity=Cu,hr.includes=function(e,t,n,r){e=bs(e)?e:hu(e),n=n&&!r?zs(n):0;var o=e.length;return n<0&&(n=Hn(o+n,0)),Ns(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:zs(n);return o<0&&(o=Hn(r+o,0)),un(e,t,o)},hr.inRange=function(e,t,n){return t=Bs(t),n===i?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Yn(t,n)&&e=-N&&e<=N},hr.isSet=Ls,hr.isString=Ns,hr.isSymbol=Ms,hr.isTypedArray=Is,hr.isUndefined=function(e){return e===i},hr.isWeakMap=function(e){return Ts(e)&&Fi(e)==ae},hr.isWeakSet=function(e){return Ts(e)&&Zr(e)==se},hr.join=function(e,t){return null==e?"":$n.call(e,t)},hr.kebabCase=yu,hr.last=Sa,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=zs(n))<0?Hn(r+o,0):Yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,ln,o,!0)},hr.lowerCase=gu,hr.lowerFirst=bu,hr.lt=Us,hr.lte=Ds,hr.max=function(e){return e&&e.length?Fr(e,Cu,Xr):i},hr.maxBy=function(e,t){return e&&e.length?Fr(e,Ii(t,2),Xr):i},hr.mean=function(e){return fn(e,Cu)},hr.meanBy=function(e,t){return fn(e,Ii(t,2))},hr.min=function(e){return e&&e.length?Fr(e,Cu,fo):i},hr.minBy=function(e,t){return e&&e.length?Fr(e,Ii(t,2),fo):i},hr.stubArray=Fu,hr.stubFalse=$u,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Ju,hr.nth=function(e,t){return e&&e.length?yo(e,zs(t)):i},hr.noConflict=function(){return Lt._===this&&(Lt._=vt),this},hr.noop=Mu,hr.now=Xa,hr.pad=function(e,t,n){e=Hs(e);var r=(t=zs(t))?Pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gi(qn(o),n)+e+gi(Dn(o),n)},hr.padEnd=function(e,t,n){e=Hs(e);var r=(t=zs(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Yn(e+o*(t-e+jt("1e-"+((o+"").length-1))),t)}return _o(e,t)},hr.reduce=function(e,t,n){var r=ys(e)?tn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,qr)},hr.reduceRight=function(e,t,n){var r=ys(e)?nn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Br)},hr.repeat=function(e,t,n){return t=(n?Vi(e,t,n):t===i)?1:zs(t),So(Hs(e),t)},hr.replace=function(){var e=arguments,t=Hs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Vo(t,e)).length;for(o||(o=1,e=i);++rN)return[];var n=U,r=Yn(e,U);t=Ii(t),e-=U;for(var o=mn(r,t);++n=a)return e;var u=n-Pn(r);if(u<1)return r;var c=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),Rs(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=nt(o.source,Hs($e.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(Uo(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},hr.unescape=function(e){return(e=Hs(e))&&Oe.test(e)?e.replace(_e,Ln):e},hr.uniqueId=function(e){var t=++ft;return Hs(e)+t},hr.upperCase=_u,hr.upperFirst=Su,hr.each=Ha,hr.eachRight=Ya,hr.first=ba,Nu(hr,(Ku={},Vr(hr,function(e,t){lt.call(hr.prototype,t)||(Ku[t]=e)}),Ku),{chain:!1}),hr.VERSION="4.17.11",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Vt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:Hn(zs(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Yn(n,r.__takeCount__):r.__views__.push({size:Yn(n,U),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Vt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==P||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Cu)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Oo(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ro(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(us(Ii(e)))},yr.prototype.slice=function(e,t){e=zs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=zs(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(U)},Vr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof yr,c=s[0],l=u||ys(t),f=function(e){var t=o.apply(hr,en([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,h=!!this.__actions__.length,d=a&&!p,v=u&&!h;if(!a&&l){t=v?t:new yr(this);var m=e.apply(t,s);return m.__actions__.push({func:Ba,args:[f],thisArg:i}),new mr(m,p)}return d&&v?e.apply(this,s):(m=this.thru(f),d?r?m.value()[0]:m.value():m)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ys(o)?o:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Vr(yr.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[di(i,g).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Aa],thisArg:i}),new mr(t,this.__chain__)}return this.thru(Aa)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Fo(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,Dt&&(hr.prototype[Dt]=function(){return this}),hr}();Lt._=Nn,(o=function(){return Nn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(10),n(38)(e))},function(e,t,n){var r=n(174);e.exports={Graph:r.Graph,json:n(300),alg:n(301),version:r.version}},function(e,t,n){e.exports={Graph:n(66),version:n(299)}},function(e,t,n){var r=n(176),o=4;e.exports=function(e){return r(e,o)}},function(e,t,n){var r=n(67),o=n(71),i=n(98),a=n(205),s=n(211),u=n(214),c=n(215),l=n(216),f=n(217),p=n(108),h=n(218),d=n(31),v=n(222),m=n(223),y=n(228),g=n(7),b=n(39),w=n(229),x=n(22),_=n(231),S=n(23),O=1,k=2,E=4,A="[object Arguments]",T="[object Function]",j="[object GeneratorFunction]",C="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[C]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[T]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,R,L,N,M){var I,U=n&O,D=n&k,q=n&E;if(R&&(I=N?R(t,L,N,M):R(t)),void 0!==I)return I;if(!x(t))return t;var B=g(t);if(B){if(I=v(t),!U)return c(t,I)}else{var z=d(t),F=z==T||z==j;if(b(t))return u(t,U);if(z==C||z==A||F&&!N){if(I=D||F?{}:y(t),!U)return D?f(t,s(I,t)):l(t,a(I,t))}else{if(!P[z])return N?t:{};I=m(t,z,U)}}M||(M=new r);var $=M.get(t);if($)return $;if(M.set(t,I),_(t))return t.forEach(function(r){I.add(e(r,n,R,r,t,M))}),I;if(w(t))return t.forEach(function(r,o){I.set(o,e(r,n,R,o,t,M))}),I;var W=q?D?h:p:D?keysIn:S,H=B?void 0:W(t);return o(H||t,function(r,o){H&&(r=t[o=r]),i(I,o,e(r,n,R,o,t,M))}),I}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(43),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(43);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(42);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(42),o=n(69),i=n(70),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length0&&i(l)?n>1?e(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){var r=n(30),o=n(48),i=n(7),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(52),o=n(282),i=n(284);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(283),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(117),o=n(288),i=n(293),a=n(118),s=n(294),u=n(80),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,h=!0,d=[],v=d;if(n)h=!1,f=i;else if(p>=c){var m=t?null:s(e);if(m)return u(m);h=!1,f=a,v=new r}else v=t?[]:d;e:for(;++l-1}},function(e,t,n){var r=n(290),o=n(291),i=n(292);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1||1===t.length&&e.hasEdge(t[0],t[0])})}},function(e,t,n){var r=n(14);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(n).forEach(c)}return a}},function(e,t,n){"use strict";var r={file:n(311),http:n(130),https:n(130)},o="object"==typeof window||"function"==typeof importScripts?r.http:r.file;"undefined"==typeof Promise&&n(132),e.exports.load=function(e,t){var n=Promise.resolve();return void 0===t&&(t={}),n=(n=n.then(function(){if(void 0===e)throw new TypeError("location is required");if("string"!=typeof e)throw new TypeError("location must be a string");if(void 0!==t){if("object"!=typeof t)throw new TypeError("options must be an object");if(void 0!==t.processContent&&"function"!=typeof t.processContent)throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(n,i){(function(e){var t=function(e){return void 0!==e&&(e=-1===e.indexOf("://")?"":e.split("://")[0]),e}(e),n=r[t];if(void 0===n){if(""!==t)throw new Error("Unsupported scheme: "+t);n=o}return n})(e).load(e,t||{},function(e,t){e?i(e):n(t)})})}).then(function(n){return t.processContent?new Promise(function(r,o){"object"!=typeof n&&(n={text:n}),n.location=e,t.processContent(n,function(e,t){e?o(e):r(t)})}):"object"==typeof n?n.text:n})}},function(e,t,n){"use strict";var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var e=arguments[arguments.length-1];if("function"!=typeof e)throw r;e(r)}},function(e,t,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n(313),i=n(314),a=n(131),s=n(315),u=n(317);function c(){}var l=t=e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1==arguments.length?new t.Request("GET",e):new t.Request(e,n)};t.Request=y,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function p(e){if(!a(e))return e;var t=[];for(var n in e)h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(a(n))for(var r in n)h(e,t+"["+r+"]",n[r]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(n));else null===n&&e.push(encodeURIComponent(t))}function d(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&v(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new l.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),u.prototype.del=u.prototype.delete,l.get=function(e,t,n){var r=l("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.head=function(e,t,n){var r=l("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.options=function(e,t,n){var r=l("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.del=g,l.delete=g,l.patch=function(e,t,n){var r=l("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.post=function(e,t,n){var r=l("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.put=function(e,t,n){var r=l("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){"use strict";var r=n(316);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)this[o]=n[o];this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,t.arguments)})},e.exports=n},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=v.substr(0,m),p=v.substr(m+1)):(f=v,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?o(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r{const t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){ +/** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ +!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,v=String.fromCharCode;function m(e){throw new RangeError(h[e])}function y(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(p,".")).split("."),t).join(".");return r+o}function g(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,o=0,i=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var u=0;u=128&&m("not-basic"),n.push(e.charCodeAt(u));for(var l=s>0?s+1:0;l=r&&m("invalid-input");var v=(t=e.charCodeAt(l++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(v>=36||v>d((c-o)/p))&&m("overflow"),o+=v*p;var y=h<=a?1:h>=a+26?26:h-a;if(vd(c/g)&&m("overflow"),p*=g}var b=n.length+1;a=w(o-f,b,0==f),d(o/b)>c-i&&m("overflow"),i+=d(o/b),o%=b,n.splice(o++,0,i)}return String.fromCodePoint.apply(String,n)},_=function(e){var t=[],n=(e=g(e)).length,r=128,o=0,i=72,a=!0,s=!1,u=void 0;try{for(var l,f=e[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var p=l.value;p<128&&t.push(v(p))}}catch(e){s=!0,u=e}finally{try{!a&&f.return&&f.return()}finally{if(s)throw u}}var h=t.length,y=h;for(h&&t.push("-");y=r&&Ad((c-o)/T)&&m("overflow"),o+=(x-r)*T,r=x;var j=!0,C=!1,P=void 0;try{for(var R,L=e[Symbol.iterator]();!(j=(R=L.next()).done);j=!0){var N=R.value;if(Nc&&m("overflow"),N==r){for(var M=o,I=36;;I+=36){var U=I<=i?1:I>=i+26?26:I-i;if(M>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function E(e){for(var t="",n=0,r=e.length;n=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function A(e,t){function n(e){var n=E(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,k).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,k).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,k).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,k).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,k).replace(t.PCT_ENCODED,o)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function j(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(T).join("."):e}function C(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=u(n,3),o=r[1],i=r[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],f=l?l.split(":").map(T):[],p=c.split(":").map(T),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,v=p.length-d,m=Array(d),y=0;y1){var w=m.slice(0,g.index),x=m.slice(g.index+g.length);b=w.join(":")+"::"+x.join(":")}else b=m.join(":");return i&&(b+="%"+i),b}return e}var P=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R=void 0==="".match(/(){0}/)[1];function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(P);if(o){R?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=C(j(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=O[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)A(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=S.toASCII(n.host.replace(r.PCT_ENCODED,E).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(n,a)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var N=/^\.\.?\//,M=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function D(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(U);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],o=O[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?S.toUnicode(e.host):S.toASCII(e.host.replace(n.PCT_ENCODED,E).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}A(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(C(j(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"})),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var u=e.path;t.absolutePath||o&&o.absolutePath||(u=D(u)),void 0===i&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=L(q(e,n),n),t=L(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=D(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=D(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function z(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,E)}var F={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:F.domainHost,parse:F.parse,serialize:F.serialize},W={},H="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",V=n(n("%[EFef][0-9A-Fa-f]%"+Y+Y+"%"+Y+Y)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+Y+Y)+"|"+n("%"+Y+Y)),K=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=new RegExp(H,"g"),G=new RegExp(V,"g"),Q=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',K),"g"),Z=new RegExp(t("[^]",H,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),X=Z;function ee(e){var t=E(e);return t.match(J)?t:e}var te={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},a=n.query.split("&"),s=0,u=a.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-l,_=Math.floor,S=String.fromCharCode;function O(e){throw new RangeError(w[e])}function k(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+k((e=e.replace(b,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?_(e/h):e>>1,e+=_(e/t);e>x*f>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+p))}function P(e){var t,n,r,o,i,a,s,p,h,y,g,b=[],w=e.length,x=0,S=v,k=d;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&O("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=w&&O("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||p>_((u-x)/a))&&O("overflow"),x+=p*a,!(p<(h=s<=k?l:s>=k+f?f:s-k));s+=c)a>_(u/(y=c-h))&&O("overflow"),a*=y;k=C(x-i,t=b.length+1,0==i),_(x/t)>u-S&&O("overflow"),S+=_(x/t),x%=t,b.splice(x++,0,S)}return T(b)}function R(e){var t,n,r,o,i,a,s,p,h,y,g,b,w,x,k,E=[];for(b=(e=A(e)).length,t=v,n=0,i=d,a=0;a=t&&g_((u-n)/(w=r+1))&&O("overflow"),n+=(s-t)*w,t=s,a=0;au&&O("overflow"),g==t){for(p=n,h=c;!(p<(y=h<=i?l:h>=i+f?f:h-i));h+=c)k=p-y,x=c-y,E.push(S(j(y+k%x,0))),p=_(k/x);E.push(S(j(p,0))),i=C(n,w,r==o),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:T},decode:P,encode:R,toASCII:function(e){return E(e,function(e){return g.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return E(e,function(e){return y.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(38)(e),n(10))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(t,n){var r=t.process&&n.nextTick||t.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then(function(t){r(function(){e(null,t)})},function(t){r(function(){e(t)})}):t}}).call(this,n(10),n(15))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(4)),a=r(n(3)),s=r(n(5)),u=r(n(326)),c=r(n(341)),l=n(9),f=r(n(143)),p={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,version:"1.2"};var h=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,a.default)(t).call(this,Object.assign({},p,e)))}return(0,s.default)(t,e),t}(c.default);function d(e,t){var n=(0,u.default)(e),r=new h(t).parse(n[0]);if(n.length>1){r.errors.unshift(new l.YAMLSemanticError(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return r}var v={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},c.default.defaults[p.version],p);return new f.default(r).createNode(e,t,n)},defaultOptions:p,Document:h,parse:function(e,t){var n=d(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r=[],o=!0,i=!1,a=void 0;try{for(var s,c=(0,u.default)(e)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=new h(t);f.parse(l,n),r.push(f),n=f}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r},parseCST:u.default,parseDocument:d,stringify:function(e,t){var n=new h(t);return n.contents=e,String(n)}};t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,n){return e.length>1&&t.push(n),"\n"}));var n=[],r=0;do{var a=new o.default,s=new i.default({src:e});r=a.parse(s,r),n.push(a)}while(r0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new y.default(i,i+3),i+3):(o?this.error=new f.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}},{key:"parseContents",value:function(e){var n=this.context,r=n.parseNode,o=n.src;this.contents||(this.contents=[]);for(var i=e;"-"===o[i-1];)i-=1;var a=m.default.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new y.default(a);!m.default.atDocumentBoundary(o,a,l.Char.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var u=new p.default;(a=u.parse({src:o},a))0&&((t.length>0||e[0].type===l.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}(m.default);t.default=g},function(e,t,n){var r=n(3);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(3),o=n(87),i=n(330),a=n(331);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(87);function o(t,n,i){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=o=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i}:e.exports=o=Reflect.construct,o.apply(null,arguments)}e.exports=o},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";function r(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("number"==typeof e&&e>=0){var n,o;if("string"==typeof t?(n=r(t),o=t.length):(Array.isArray(t)&&(t=t[0]),t&&(t.lineStarts||(t.lineStarts=r(t.context.src)),n=t.lineStarts,o=t.context.src.length)),n&&e<=o){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.atLineStart,b=r.inCollection,w=r.inFlow,x=r.indent,_=r.lineStart,S=r.parent;(0,o.default)(this,e),(0,a.default)(this,"parseNode",function(n,r){if(d.default.atDocumentBoundary(t.src,r))return null;var o,i=new e(t,n),a=i.parseProps(r),b=a.props,w=a.type,x=a.valueStart;switch(w){case s.Type.ALIAS:o=new c.default(w,b);break;case s.Type.BLOCK_FOLDED:case s.Type.BLOCK_LITERAL:o=new l.default(w,b);break;case s.Type.FLOW_MAP:case s.Type.FLOW_SEQ:o=new h.default(w,b);break;case s.Type.MAP_KEY:case s.Type.MAP_VALUE:case s.Type.SEQ_ITEM:o=new p.default(w,b);break;case s.Type.COMMENT:case s.Type.PLAIN:o=new v.default(w,b);break;case s.Type.QUOTE_DOUBLE:o=new m.default(w,b);break;case s.Type.QUOTE_SINGLE:o=new y.default(w,b);break;default:return o.error=new u.YAMLSyntaxError(o,"Unknown node type: ".concat(JSON.stringify(w))),o.range=new g.default(r,r+1),o}var _=o.parse(i,x);if(o.range=new g.default(r,_),_<=r&&(o.error=new Error("Node#parse consumed no characters"),o.error.parseEnd=_,o.error.source=o,o.range.end=r+1),i.nodeStartsCollection(o)){o.error||i.atLineStart||i.parent.type!==s.Type.DOCUMENT||(o.error=new u.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var S=new f.default(o);return _=S.parse(new e(i),_),S.range=new g.default(r,_),S}return o}),this.atLineStart=null!=i?i:n.atLineStart||!1,this.inCollection=null!=b?b:n.inCollection||!1,this.inFlow=null!=w?w:n.inFlow||!1,this.indent=null!=x?x:n.indent,this.lineStart=null!=_?_:n.lineStart,this.parent=null!=S?S:n.parent||{},this.root=n.root,this.src=n.src}return(0,i.default)(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return s.Type.ALIAS;case">":return s.Type.BLOCK_FOLDED;case"|":return s.Type.BLOCK_LITERAL;case"{":return s.Type.FLOW_MAP;case"[":return s.Type.FLOW_SEQ;case"?":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_KEY:s.Type.PLAIN;case":":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_VALUE:s.Type.PLAIN;case"-":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.SEQ_ITEM:s.Type.PLAIN;case'"':return s.Type.QUOTE_DOUBLE;case"'":return s.Type.QUOTE_SINGLE;default:return s.Type.PLAIN}}}]),(0,i.default)(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof p.default)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=d.default.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,i=[],a=!1,u=o[t=d.default.endOfWhiteSpace(o,t)];u===s.Char.ANCHOR||u===s.Char.COMMENT||u===s.Char.TAG||"\n"===u;){if("\n"===u){var c=t+1,l=d.default.endOfIndent(o,c),f=l-(c+this.indent),p=r.type===s.Type.SEQ_ITEM&&r.context.atLineStart;if(!d.default.nextNodeIsIndented(o[l],f,!p))break;this.atLineStart=!0,this.lineStart=c,a=!1,t=l}else if(u===s.Char.COMMENT){var h=d.default.endOfLine(o,t+1);i.push(new g.default(t,h)),t=h}else{var v=d.default.endOfIdentifier(o,t+1);u===s.Char.TAG&&","===o[v]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,v+13))&&(v=d.default.endOfIdentifier(o,v+5)),i.push(new g.default(t,v)),a=!0,t=d.default.endOfWhiteSpace(o,v)}u=o[t]}return a&&":"===u&&d.default.atBlank(o,t+1,!0)&&(t-=1),{props:i,type:e.parseType(o,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=c.default.endOfIdentifier(n,t+1);return this.valueRange=new l.default(t+1,r),r=c.default.endOfWhiteSpace(n,r),r=this.parseComment(r)}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(8),f=r(n(11)),p=r(n(12)),h={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=h;var d=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).blockIndent=null,r.chomping=h.CLIP,r.header=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var o=t[n];switch(o){case"-":this.chomping=h.STRIP;break;case"+":this.chomping=h.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new p.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,o=e,i=e,a=this.blockIndent?n+this.blockIndent-1:n,s=1,u=r[o];"\n"===u&&(o+=1,!f.default.atDocumentBoundary(r,o));u=r[o]){var c=f.default.endOfBlockIndent(r,a,o);if(null===c)break;if(!this.blockIndent){var l=c-(o+n);if("\n"!==r[c]){if(ls&&(s=l)}o="\n"===r[c]?c:i=f.default.endOfLine(r,c)}return this.chomping!==h.KEEP&&(o=r[i]?i+1:i),this.valueRange=new p.default(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=f.default.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"includesTrailingLines",get:function(){return this.chomping===h.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,o=r.indent,i=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===h.KEEP)break;return""}"\n"===s&&(a=n),s=i[n-1]}var u=n+1;a&&(this.chomping===h.KEEP?(u=a,n=this.valueRange.end):n=a);for(var c=o+this.blockIndent,p=this.type===l.Type.BLOCK_FOLDED,d=!0,v="",m="",y=!1,g=t;g0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===l.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.indent,i=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=d.default.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(i=s+1,"\n"===r[d.default.endOfWhiteSpace(r,i)]){var u=new p.default;i=u.parse({src:r},i),this.items.push(u)}if((s=d.default.endOfIndent(r,i))<=i+o&&(a=r[s],st.offset);)++r;t.origOffset=t.offset+r,n=r}}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var o=t.filter(function(e){return e instanceof d.default}),i="",a=n.start;return o.forEach(function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(i+=n+String(t))[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,n.end),d.default.addStringTerminator(e,n.end,i)}}]),t}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new c.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(i)}},{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;'"'!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;"'"!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(55)),a=o(n(1)),s=o(n(2)),u=o(n(20)),c=o(n(58)),l=o(n(342)),f=n(8),p=n(9),h=o(n(345)),d=o(n(143)),v=o(n(59)),m=r(n(26)),y=o(n(33)),g=o(n(13)),b=o(n(32)),w=function(){function e(t){(0,a.default)(this,e),this.anchors=new l.default(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return(0,s.default)(e,[{key:"assertCollectionContents",value:function(){if(this.contents instanceof m.default)return!0;throw new Error("Expected a YAML collection as document contents")}},{key:"add",value:function(e){return this.assertCollectionContents(),this.contents.add(e)}},{key:"addIn",value:function(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return this.assertCollectionContents(),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return(0,m.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof m.default?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return(0,m.isEmptyPath)(e)?!t&&this.contents instanceof g.default?this.contents.value:this.contents:this.contents instanceof m.default?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof m.default&&this.contents.has(e)}},{key:"hasIn",value:function(e){return(0,m.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof m.default&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){this.assertCollectionContents(),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){(0,m.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}},{key:"setSchema",value:function(){this.schema||(this.schema=new d.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,o=e.contents,i=void 0===o?[]:o,a=e.directivesEndMarker,s=e.error,u=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(r,t),a&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(i),this.anchors.resolveNodes(),this.options.prettyErrors){var c=!0,l=!1,f=void 0;try{for(var h,d=this.errors[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;v instanceof p.YAMLError&&v.makePretty()}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}var m=!0,y=!1,g=void 0;try{for(var b,w=this.warnings[Symbol.iterator]();!(m=(b=w.next()).done);m=!0){var x=b.value;x instanceof p.YAMLError&&x.makePretty()}}catch(e){y=!0,g=e}finally{try{m||null==w.return||w.return()}finally{if(y)throw g}}}return this}},{key:"parseDirectives",value:function(e,t){var n=this,r=[],o=!1;if(e.forEach(function(e){var t=e.comment,i=e.name;switch(i){case"TAG":n.resolveTagDirective(e),o=!0;break;case"YAML":case"YAML:1.0":n.resolveYamlDirective(e),o=!0;break;default:if(i){var a="YAML only supports %TAG and %YAML directives, and not %".concat(i);n.warnings.push(new p.YAMLWarning(e,a))}}t&&r.push(t)}),t&&!o&&"1.1"===(this.version||t.version||this.options.version)){this.tagPrefixes=t.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),this.version=t.version}this.commentBefore=r.join("\n")||null}},{key:"parseContents",value:function(e){var t=this,n={before:[],after:[]},r=[],o=!1;switch(e.forEach(function(e){if(e.valueRange){if(1===r.length){t.errors.push(new p.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}var i=t.resolveNode(e);o&&(i.spaceBefore=!0,o=!1),r.push(i)}else if(null!==e.comment){(0===r.length?n.before:n.after).push(e.comment)}else e.type===f.Type.BLANK_LINE&&(o=!0,0===r.length&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join("\n"),n.before=[]))}),r.length){case 0:this.contents=null,n.after=n.before;break;case 1:if(this.contents=r[0],this.contents){var i=n.before.join("\n")||null;if(i){var a=this.contents instanceof m.default&&this.contents.items[0]?this.contents.items[0]:this.contents;a.commentBefore=a.commentBefore?"".concat(i,"\n").concat(a.commentBefore):i}}else n.after=n.before.concat(n.after);break;default:this.contents=r,this.contents[0]?this.contents[0].commentBefore=n.before.join("\n")||null:n.after=n.before.concat(n.after)}this.comment=n.after.join("\n")||null}},{key:"resolveTagDirective",value:function(e){var t=(0,i.default)(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new p.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new p.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=(0,i.default)(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new p.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new p.YAMLWarning(t,o))}this.version=n}else{this.errors.push(new p.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,a=t.verbatim;if(a){if("!"!==a&&"!!"!==a)return a;var s="Verbatim tags aren't resolved, so ".concat(a," is invalid.");this.errors.push(new p.YAMLSemanticError(e,s))}else if("!"!==o||i){var u=this.tagPrefixes.find(function(e){return e.handle===o});if(!u){var c=this.getDefaults().tagPrefixes;c&&(u=c.find(function(e){return e.handle===o}))}if(u){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:\/]/.test(i)){var l=i.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(i)}}return u.prefix+decodeURIComponent(i)}this.errors.push(new p.YAMLSemanticError(e,"The ".concat(o," tag has no suffix.")))}else{var h="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new p.YAMLSemanticError(e,h))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return d.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return d.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return d.default.defaultTags.SEQ;case f.Type.PLAIN:return r?d.default.defaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,i=!1,a=!1,s={before:[],after:[]},u=function(e){return e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props,c=!0,l=!1,h=void 0;try{for(var d,m=u[Symbol.iterator]();!(c=(d=m.next()).done);c=!0){var y=d.value,g=y.start,b=y.end;switch(e.context.src[g]){case f.Char.COMMENT:if(!e.commentHasRequiredWhitespace(g)){r.push(new p.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var w=e.context.src.slice(g+1,b),x=e.header,_=e.valueRange;_&&(g>_.start||x&&g>x.start)?s.after.push(w):s.before.push(w);break;case f.Char.ANCHOR:if(i){r.push(new p.YAMLSemanticError(e,"A node can have at most one anchor"))}i=!0;break;case f.Char.TAG:if(a){r.push(new p.YAMLSemanticError(e,"A node can have at most one tag"))}a=!0}}}catch(e){l=!0,h=e}finally{try{c||null==m.return||m.return()}finally{if(l)throw h}}if(i){var S=e.anchor,O=n.getNode(S);O&&(n.map[n.newName(S)]=O),n.map[S]=e}if(e.type===f.Type.ALIAS){if(i||a){r.push(new p.YAMLSemanticError(e,"An alias node must not specify any properties"))}var k=e.rawValue,E=n.getNode(k);if(!E){var A="Aliased anchor not found: ".concat(k);return r.push(new p.YAMLReferenceError(e,A)),null}t=new v.default(E),n._cstAliases.push(t)}else{var T=this.resolveTagName(e);if(T)t=o.resolveNodeWithFallback(this,e,T);else{if(e.type!==f.Type.PLAIN){var j="Failed to resolve ".concat(e.type," node here");return r.push(new p.YAMLSyntaxError(e,j)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var C=s.before.join("\n");C&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(C):C);var P=s.after.join("\n");P&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(P):P)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,h.default)(this.contents).filter(function(e){return 0!==e.indexOf(d.default.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var i=e.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+i}},{key:"toJSON",value:function(e){var t=this,n=this.options,r=n.keepBlobsInJSON,o=n.mapAsMap,i=n.maxAliasCount,a=r&&("string"!=typeof e||!(this.contents instanceof g.default)),s={doc:this,keep:a,mapAsMap:a&&!!o,maxAliasCount:i},u=Object.keys(this.anchors.map);return u.length>0&&(s.anchors=u.map(function(e){return{alias:[],aliasCount:0,count:1,node:t.anchors.map[e]}})),(0,b.default)(this.contents,e,s)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[],t=!1;if(this.version){var n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}var r=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var o=n.handle,i=n.prefix;r.some(function(e){return 0===e.indexOf(i)})&&(e.push("%TAG ".concat(o," ").concat(i)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));var o={anchors:{},doc:this,indent:""},i=!1,a=null;if(this.contents){this.contents instanceof y.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);var s=a?null:function(){return i=!0},u=this.schema.stringify(this.contents,o,function(){return a=null},s);e.push((0,c.default)(u,"",a))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(i&&!a||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}]),e}();t.default=w,(0,u.default)(w,"defaults",{"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:d.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]}})},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(20)),s=r(n(59)),u=r(n(27)),c=r(n(142)),l=r(n(13)),f=r(n(34)),p=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"map",{}),this.prefix=t}return(0,i.default)(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof l.default||e instanceof f.default||e instanceof u.default}}]),(0,i.default)(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new s.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new c.default,n=arguments.length,r=new Array(n),o=0;o=g)if(b)m.push(b),g=b+d,b=void 0;else if(n===o){for(;" "===w||"\t"===w;)w=v,v=e[_+=1],x=!0;m.push(_-2),y[_-2]=!0,g=_-2+d,b=void 0}else x=!0}w=v}x&&h&&h();if(0===m.length)return e;p&&p();for(var O=e.slice(0,m[0]),k=0;k0?r-4:r,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,c-=8);e[n+h-d]|=128*v}},function(e,t,n){"use strict";const r=n(134),o=n(84),i=n(85),a=n(135),s=n(136),u=n(61).jptr,c=n(94).recurse,l=n(62).clone,f=n(355).dereference,p=n(93).isRef,h=n(152);function d(e,t,n,r,o,a){let s=a.externalRefs[n+r].paths[0],f=i.parse(o),d={},v=1;for(;v;)v=0,c(e,{identityDetection:!0},function(e,n,r){if(p(e,n))if(e[n].startsWith("#"))if(d[e[n]]||e.$fixed){if(!e.$fixed){let t=(s+"/"+d[e[n]]).split("/#/").join("/");r.parent[r.pkey]={$ref:t,"x-miro":e[n],$fixed:!0},a.verbose>1&&console.warn("Replacing with",t),v++}}else{let o=l(u(t,e[n]));if(a.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[n],h.colour.normal),!1===o){if(r.parent[r.pkey]={},a.fatal){let t=new Error("Fragment $ref resolution failed "+e[n]);if(!a.promise)throw t;a.promise.reject(t)}}else v++,r.parent[r.pkey]=o,d[e[n]]=r.path.replace("/%24ref","")}else if(f.protocol){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}});return c(e,{},function(e,t,n){p(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function v(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function m(e,t,n,c){var f=i.parse(n.source),p=n.source.split("\\").join("/").split("/");p.pop()||p.pop();let h="",m=t.split("#");m.length>1&&(h="#"+m[1],t=m[0]),p=p.join("/");let y=i.parse(t),g=(b=y.protocol,w=f.protocol,b&&b.length>2?b:w&&w.length>2?w:"file:");var b,w;let x;if(x="file:"===g?o.resolve(p?p+"/":"",t):i.resolve(p?p+"/":"",t),n.cache[x]){n.verbose&&console.warn("CACHED",x,h);let e=l(n.cache[x]),r=n.externalRef=e;if(h&&!1===(r=u(r,h))&&(r={},n.fatal)){let e=new Error("Cached $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}return r=v(r=d(r,e,t,h,x,n),n),c(l(r),x,n),Promise.resolve(r)}return n.verbose&&console.warn("GET",x,h),n.handlers&&n.handlers[g]?n.handlers[g](p,t,h,n).then(function(e){return n.externalRef=e,e=v(e,n),n.cache[x]=e,c(e,x,n),e}).catch(function(e){throw n.verbose&&console.warn(e),e}):g&&g.startsWith("http")?a(x,{agent:n.agent}).then(function(e){if(200!==e.status)throw new Error(`Received status code ${e.status}`);return e.text()}).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("Remote $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),n.cache[x]={},!n.promise||!n.fatal)throw e;n.promise.reject(e)}):(_=x,S=n.encoding||"utf8",new Promise(function(e,t){r.readFile(_,S,function(n,r){n?t(n):e(r)})})).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("File $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)});var _,S}function y(e){return new Promise(function(t,n){(function(e){return new Promise(function(t,n){function r(t,n,r){if(t[n]&&p(t[n],"$ref")){let i=t[n].$ref;if(!i.startsWith("#")){let a="";if(!o[i]){let t=Object.keys(o).find(function(e,t,n){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),a=(a="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||"")).split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[n].description}),o[i].resolved)if(e.rewriteRefs){let r=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,r),t[n]["x-miro"]=i,t[n].$ref=r+a}else t[n]=l(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),t(o)})})(e).then(function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return m(e.openapi,n,e,function(e,r,o){if(!t[n].resolved){let i={};i.context=t[n],i.$ref=n,i.original=l(e),i.updated=e,i.source=r,o.externals.push(i),t[n].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let a=(s=t[n].paths,[...new Set(s)]);var s;a=a.sort(function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0});for(let r of a)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",r),u(o.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,o.verbose>1&&console.warn("Creating initial clone of data at",r));let i=l(e);u(o.openapi,r,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return y(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),n(t)});let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)})}const g=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function b(e,t,n){e.resolver.actions.push([]),y(e).then(function(r){g(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){b(r.options,t,n)},0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=f(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},function(t,n,r){p(t,n)&&(e.preserveMiro||delete t["x-miro"])}),t(e))}).catch(function(t){e.verbose&&console.warn(t),n(t)})}).catch(function(t){e.verbose&&console.warn(t),n(t)})}function w(e){if(e.cache||(e.cache={}),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals||(e.externals=[]),e.externalRefs||(e.externalRefs=[]),e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return w(e),new Promise(function(t,n){e.resolve?b(e,t,n):t(e)})},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,w(n),new Promise(function(e,t){b(n,e,t)})}}},function(e,t,n){"use strict";const r=n(94).recurse,o=n(62).shallowClone,i=n(61).jptr,a=n(93).isRef;var s=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}};e.exports={dereference:function e(t,n,u){u||(u={}),u.cache||(u.cache={}),u.state||(u.state={}),u.state.identityDetection=!0,u.depth=u.depth?u.depth+1:1;let c=u.depth>1?t:o(t),l={data:c},f=u.depth>1?n:o(n);u.master||(u.master=c);let p=s(u),h=1;for(;h>0;)h=0,r(l,u.state,function(t,n,r){if(a(t,n)){let o=t[n];if(h++,u.cache[o]){let e=u.cache[o];if(e.resolved)p.warn("Patching %s for %s",o,e.path),r.parent[r.pkey]=e.data,u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);p.warn("Unresolved ref"),r.parent[r.pkey]=i(e.source,e.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(e.source,e.key)),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[u.$ref]=o)}}else{let t={};t.path=r.path.split("/$ref")[0],t.key=o,p.warn("Dereffing %s at %s",o,t.path),t.source=f,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(u.master,t.key),t.source=u.master),!1===t.data&&p.warn("Missing $ref target",t.key),u.cache[o]=t,t.data=r.parent[r.pkey]=e(i(t.source,t.key),t.source,u),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o),t.resolved=!0}}});return l.data}}},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(o){if(null===o||"object"!=typeof o)return o;if(-1!==t.indexOf(o))return"[Circular]";if(t.push(o),"function"==typeof o.toJSON)try{var i=e(o.toJSON());return t.pop(),i}catch(e){return r(e)}if(Array.isArray(o)){var a=o.map(e);return t.pop(),a}var s=Object.keys(o).reduce(function(t,i){return t[i]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return r(e)}return e[t]}(o,i)),t},{});return t.pop(),s}(e)}e.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},e.exports.ensureProperties=o},function(e,t,n){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(t,n,o,i){if(void 0===o.depth&&(o=r()),null==t)return t;if(void 0!==t.$ref){let e={$ref:t.$ref};return o.allowRefSiblings&&t.description&&(e.description=t.description),i(e,n,o),e}if(o.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t=Object.assign({},t.allOf[0],t)).allOf,t.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t=Object.assign({},t.anyOf[0],t)).anyOf,t.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t=Object.assign({},t.oneOf[0],t)).oneOf),i(t,n,o),o.seen.has(t))return t;if("object"==typeof t&&null!==t&&o.seen.set(t,!0),o.top=!1,o.depth++,void 0!==t.items&&(o.property="items",e(t.items,t,o,i)),t.additionalItems&&"object"==typeof t.additionalItems&&(o.property="additionalItems",e(t.additionalItems,t,o,i)),t.additionalProperties&&"object"==typeof t.additionalProperties&&(o.property="additionalProperties",e(t.additionalProperties,t,o,i)),t.properties)for(let n in t.properties){let r=t.properties[n];o.property="properties/"+n,e(r,t,o,i)}if(t.patternProperties)for(let n in t.patternProperties){let r=t.patternProperties[n];o.property="patternProperties/"+n,e(r,t,o,i)}if(t.allOf)for(let n in t.allOf){let r=t.allOf[n];o.property="allOf/"+n,e(r,t,o,i)}if(t.anyOf)for(let n in t.anyOf){let r=t.anyOf[n];o.property="anyOf/"+n,e(r,t,o,i)}if(t.oneOf)for(let n in t.oneOf){let r=t.oneOf[n];o.property="oneOf/"+n,e(r,t,o,i)}return t.not&&(o.property="not",e(t.not,t,o,i)),o.depth--,t}}},function(e,t,n){"use strict";const r=n(359);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},r.STATUS_CODES)}},function(e,t,n){(function(e){var r=n(360),o=n(154),i=n(369),a=n(370),s=n(85),u=t;u.request=function(t,n){t="string"==typeof t?s.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||o,u=t.hostname||t.host,c=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(10))},function(e,t,n){(function(t,r,o){var i=n(153),a=n(28),s=n(154),u=n(155),c=n(368),l=s.IncomingMessage,f=s.readyStates;var p=e.exports=function(e){var n,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(p,u.Writable),p.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){u.push([t,e])}):u.push([t,n])}),"fetch"===e._mode){var l=null;if(i.abortController){var p=new AbortController;l=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var h=e._xhr=new r.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(h.timeout=n.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach(function(e){h.setRequestHeader(e[0],e[1])}),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(s)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,n){this._body.push(e),n()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(36).Buffer,n(10),n(15))},function(e,t){},function(e,t,n){"use strict";var r=n(64).Buffer,o=n(363);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,o=s,t.copy(n,o),s+=a.data.length,a=a.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(365),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,u=1,c={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n","license":"BSD-3-Clause","dependencies":{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.2.5","oas-schema-walker":"^1.1.2","oas-validator":"^3.3.1","reftools":"^1.0.8","yaml":"^1.3.1","yargs":"^12.0.5"},"keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"gitHead":"bb9737783f5c8e192bdf2cc33edcaec1f7fa5720"}')},function(e,t,n){"use strict";n.r(t);n(164); +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 r=new WeakMap,o=e=>"function"==typeof e&&r.has(e),i=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,a=(e,t,n=null)=>{let r=t;for(;r!==n;){const t=r.nextSibling;e.removeChild(r),r=t}},s={},u={},c=`{{lit-${String(Math.random()).slice(2)}}}`,l=`\x3c!--${c}--\x3e`,f=new RegExp(`${c}|${l}`),p="$lit$";class h{constructor(e,t){this.parts=[],this.element=t;let n=-1,r=0;const o=[],i=t=>{const a=t.content,s=document.createTreeWalker(a,133,null,!1);let u=0;for(;s.nextNode();){n++;const t=s.currentNode;if(1===t.nodeType){if(t.hasAttributes()){const o=t.attributes;let i=0;for(let e=0;e=0&&i++;for(;i-- >0;){const o=e.strings[r],i=m.exec(o)[2],a=i.toLowerCase()+p,s=t.getAttribute(a).split(f);this.parts.push({type:"attribute",index:n,name:i,strings:s}),t.removeAttribute(a),r+=s.length-1}}"TEMPLATE"===t.tagName&&i(t)}else if(3===t.nodeType){const e=t.data;if(e.indexOf(c)>=0){const i=t.parentNode,a=e.split(f),s=a.length-1;for(let e=0;e-1!==e.index,v=()=>document.createComment(""),m=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/; +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 + */ +class y{constructor(e,t,n){this._parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this._parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this._parts)void 0!==e&&e.commit()}_clone(){const e=i?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=this.template.parts;let n=0,r=0;const o=e=>{const i=document.createTreeWalker(e,133,null,!1);let a=i.nextNode();for(;nnull===e||!("object"==typeof e||"function"==typeof e);class w{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;ethis.handleEvent(e)}setValue(e){this._pendingValue=e}commit(){for(;o(this._pendingValue);){const e=this._pendingValue;this._pendingValue=s,e(this)}if(this._pendingValue===s)return;const e=this._pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),r&&(this._options=T(e),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=e,this._pendingValue=s}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const T=e=>e&&(E?{capture:e.capture,passive:e.passive,once:e.once}:e.capture); +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 j=new class{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new O(e,t.slice(1),n).parts}return"@"===o?[new A(e,t.slice(1),r.eventContext)]:"?"===o?[new S(e,t.slice(1),n)]:new w(e,t,n).parts}handleTextExpression(e){return new _(e)}}; +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 + */function C(e){let t=P.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},P.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(c);return void 0===(n=t.keyString.get(r))&&(n=new h(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const P=new Map,R=new WeakMap; +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 + */ +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 + */ +(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.0.0");const L=(e,...t)=>new g(e,t,"html",j),N=133;function M(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,N,null,!1);let i=U(r),a=r[i],s=-1,u=0;const c=[];let l=null;for(;o.nextNode();){s++;const e=o.currentNode;for(e.previousSibling===l&&(l=null),t.has(e)&&(c.push(e),null===l&&(l=e)),null!==l&&u++;void 0!==a&&a.index===s;)a.index=null!==l?-1:a.index-u,a=r[i=U(r,i)]}c.forEach(e=>e.parentNode.removeChild(e))}const I=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,N,null,!1);for(;n.nextNode();)t++;return t},U=(e,t=-1)=>{for(let n=t+1;n`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),q=!1);const B=e=>t=>{const n=D(t.type,e);let r=P.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},P.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(c);if(void 0===(o=r.keyString.get(i))){const n=t.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(n,e),o=new h(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},z=["html","svg"],F=new Set,$=(e,t,n)=>{F.add(n);const r=e.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(t.element,n);const o=document.createElement("style");for(let e=0;e{z.forEach(t=>{const n=P.get(D(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),M(e,n)})})})(n),function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,N,null,!1);let a=U(o),s=0,u=-1;for(;i.nextNode();){for(u++,i.currentNode===n&&(s=I(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===u;){if(s>0){for(;-1!==a;)o[a].index+=s,a=U(o,a);return}a=U(o,a)}}}(t,o,t.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(t.element,n),window.ShadyCSS.nativeShadow){const n=t.element.content.querySelector("style");e.insertBefore(n.cloneNode(!0),e.firstChild)}else{t.element.content.insertBefore(o,t.element.content.firstChild);const e=new Set;e.add(o),M(t,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const W={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},H=(e,t)=>t!==e&&(t==t||e==e),Y={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:H},V=Promise.resolve(!0),K=1,J=4,G=8,Q=16,Z=32,X="finalized";class ee extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=V,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=Y){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`;Object.defineProperty(this.prototype,e,{get(){return this[n]},set(t){const r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(X)||e.finalize(),this[X]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=H){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||W,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||W.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|Z,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=Y){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|G,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=this._updateState&~G}}_attributeToProperty(e,t){if(this._updateState&G)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n._classProperties.get(r)||Y;this._updateState=this._updateState|Q,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~Q}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r._classProperties.get(e)||Y;r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||this._updateState&Q||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){let e,t;this._updateState=this._updateState|J;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{e=n,t=r});try{await n}catch(e){}this._hasConnected||await new Promise(e=>this._hasConnectedResolver=e);try{const e=this.performUpdate();null!=e&&await e}catch(e){t(e)}e(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&Z}get _hasRequestedUpdate(){return this._updateState&J}get hasUpdated(){return this._updateState&K}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(this._updateState&K||(this._updateState=this._updateState|K,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~J}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0)}updated(e){}firstUpdated(e){}}ee[X]=!0;const te="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol();class re{constructor(e,t){if(t!==ne)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(te?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const oe=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof re)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new re(n,ne)}; +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 + */ +(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ie=e=>e.flat?e.flat(1/0):function e(t,n=[]){for(let r=0,o=t.length;r(e.add(t),e),new Set).forEach(e=>t.unshift(e))}else e&&t.push(e);return t}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?te?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){super.update(e);const t=this.render();t instanceof g&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){}}ae.finalized=!0,ae.render=(e,t,n)=>{const r=n.scopeName,o=R.has(t),i=t instanceof ShadowRoot&&q&&e instanceof g,s=i&&!F.has(r),u=s?document.createDocumentFragment():t;if(((e,t,n)=>{let r=R.get(t);void 0===r&&(a(t,t.firstChild),R.set(t,r=new _(Object.assign({templateFactory:C},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,u,Object.assign({templateFactory:B(r)},n)),s){const e=R.get(u);R.delete(u),e.value instanceof y&&$(u,e.value.template,r),a(t,t.firstChild),t.appendChild(u),R.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)}; +/** + * @license + * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. + * This code may only be used under the BSD style license found at + * http://polymer.github.io/LICENSE.txt + * The complete set of authors may be found at + * http://polymer.github.io/AUTHORS.txt + * The complete set of contributors may be found at + * http://polymer.github.io/CONTRIBUTORS.txt + * 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 se=new WeakMap,ue=(e=>(...t)=>{const n=e(...t);return r.set(n,!0),n})(e=>t=>{if(!(t instanceof _))throw new Error("unsafeHTML can only be used in text bindings");const n=se.get(t);if(void 0!==n&&b(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const o=document.importNode(r.content,!0);t.setValue(o),se.set(t,{value:e,fragment:o})});var ce=n(6),le=n.n(ce);function fe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return fe=function(){return e},e}var pe=L(fe()),he={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},invert(e){var t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b>186?"#333":"#fff"},opacity(e,t){var n=this.getRgb(e);return"rgba(".concat(n.r,", ").concat(n.r,", ").concat(n.r,", ").concat(t,")")},brightness(e,t){var n=this.getRgb(e);return n.r+=t,n.g+=t,n.b+=t,n.r>255?n.r=255:n.r<0&&(n.r=0),n.g>255?n.g=255:n.g<0&&(n.g=0),n.b>255?n.b=255:n.b<0&&(n.b=0),"#".concat(n.r.toString(16).padStart(2,"0")).concat(n.g.toString(16).padStart(2,"0")).concat(n.b.toString(16).padStart(2,"0"))}}};function de(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return de=function(){return e},e}var ve=L(de(),he.color.inputReverseBg,he.color.inputReverseFg);function me(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return me=function(){return e},e}var ye=L(me());function ge(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return ge=function(){return e},e}var be=L(ge()),we=n(163),xe=n.n(we),_e=n(95),Se=n.n(_e);function Oe(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function ke(){var e;return e=function*(e){var t,n,r,o="",i={patch:!0,warnOnly:!0};try{"string"==typeof e?(o=(n=yield Se.a.convertUrl(e,i)).source.trim()).startsWith("/")&&(o=new URL(".".concat(o),window.location.href).pathname):(n=yield Se.a.convertObj(e,i),o=new URL(window.location.href).pathname),r={resolveCirculars:!1,location:o},t=(yield xe.a.resolveRefs(n.openapi,r)).resolved}catch(e){console.info("%c There was an issue while parsing the spec %o ","color:orangered",e)}var a,s,u=function(e){var t=["get","put","post","delete","patch","head"],n=[],r=function(r){var o=e.paths[r].parameters,i={summary:e.paths[r].summary,description:e.paths[r].description,servers:e.paths[r].servers?e.paths[r].servers:[],parameters:e.paths[r].parameters?e.paths[r].parameters:[]};t.forEach(t=>{var a,s,u;if(e.paths[r][t]){var c=e.paths[r][t];if(c.tags)s=c.tags[0],e.tags&&(u=e.tags.find(e=>e.name===s));else{var l=r.indexOf("/",1);-1===l?l=r.length-1:l-=1,s=r.substr(1,l)}(a=n.find(e=>e.name===s))||(a={show:!0,name:s,description:u?u.description:"",paths:[]},n.push(a));var f=c.summary?c.summary:"",p=c.description?c.description:"";if(!f&&p)if(p.length>100){var h=-1;(-1===(h=p.indexOf("\n"))||h>100)&&(h=p.indexOf(". ")),(-1===h||h>100)&&(h=p.indexOf(".")),f=-1===h||h>100?p:p.substr(0,h)}else f=p;var d=[];d=o?c.parameters?o.filter(e=>{if(!c.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(c.parameters):o.slice(0):c.parameters?c.parameters.slice(0):[],a.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:f,method:t,description:c.description,path:r,operationId:c.operationId,requestBody:c.requestBody,parameters:d,servers:c.servers?i.servers.concat(c.servers):i.servers,responses:c.responses,deprecated:c.deprecated,security:c.security,commonSummary:i.summary,commonDescription:i.description})}})};for(var o in e.paths)r(o);return n.sort((e,t)=>e.namet.name?1:0),n}(t),c=function(e){var t=[];for(var n in e.paths)e.paths[n].path=n,e.paths[n].expanded=!1,e.paths[n].activeMethod="no-active-method",t.push(e.paths[n]);return t}(t);return a=t.components?t.components.securitySchemes:{},t.servers?t.servers.map(e=>{var t=e.url.trim().toLowerCase();e.url&&"http"!==t.substr(0,4)&&("//"===t.substr(0,2)?e.url=window.location.protocol+e.url:e.url=window.location.origin+e.url)}):t.servers=[{url:window.location.origin}],s=t.servers,{info:t.info,tags:u,pathGroups:c,externalDocs:t.externalDocs,securitySchemes:a,servers:s,basePath:t.basePath}},(ke=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Oe(i,r,o,a,s,"next",e)}function s(e){Oe(i,r,o,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}function Ee(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return Ee=function(){return e},e}function Ae(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Ae=function(){return e},e}customElements.define("m-logo",class extends ae{render(){return L(Ee())}});var Te=L(Ae());function je(e){if(e){var t={type:e.$ref?"{recursive}":e.enum?"enum":e.type,format:e.format?e.format:"",constrain:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOnly:e.readOnly?"🆁":"",writeOnly:e.writeOnly?"🆆":"",depricated:e.deprecated?"❌":"",default:0===e.default?"0 ":e.default?e.default:"",arrayType:"",allowedValues:"",description:e.description?e.description:"",html:""};if("{recursive}"===t.type&&(t.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1)),e.enum){var n="";e.enum.map(e=>{n+="".concat(e,", ")}),t.allowedValues=n.slice(0,-2)}if("array"===e.type&&e.items){var r=e.items;if(t.arrayType="".concat(e.type," of ").concat(r.type),t.default=0===r.default?"0 ":r.default?r.default:"",r.enum){var o="";r.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," ⋯ ").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")));var i="".concat(t.format?t.format:t.type),a="";return t.readOnly&&(a+="🆁"),t.writeOnly&&(a+="🆆"),t.deprecated&&(a+="❌"),i+="~|~".concat(a," ").concat(t.constrain,"~|~").concat("enum"===t.type?t.allowedValues:t.pattern,"~|~").concat(t.description),t.html=i,t}}function Ce(e){if(e.example)return e.example;if(0===Object.keys(e).length)return null;var t=e.format||e.type||(e.enum?"enum":null);switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":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 Pe(e,t){if(null!=e){if("object"===e.type||e.properties)for(var n in e.description&&(t[":description"]=e.description),e.properties)e.required&&e.required.includes(n)?t["".concat(n,"*")]=Pe(e.properties[n],{}):t[n]=Pe(e.properties[n],{});else if("array"===e.type||e.items)t=[Pe(e.items,{})];else if(e.allOf){var r={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){var o=e.allOf[0];return"".concat(je(o).html)}e.allOf.map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=Pe(e,{});Object.assign(r,t)}else if("array"===e.type||e.items){var n=[Pe(e,{})];Object.assign(r,n)}else{if(!e.type)return"";var o="prop".concat(Object.keys(r).length),i=je(e);r[o]="".concat(i.html)}}),t=r}else{if(!e.anyOf&&!e.oneOf){var i=je(e);return i.html?"".concat(i.html):""}var a=1,s={};e[e.anyOf?"anyOf":"oneOf"].map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=Pe(e,{});s["OPTION_".concat(a)]=t,a++}else if("array"===e.type||e.items){var n=[Pe(e,{})];Object.assign(s,n)}else{var r="prop".concat(Object.keys(s).length);s[r]="".concat(je(e).html)}}),t[e.anyOf?"ANY_OF":"ONE_OF"]=s}return t}}function Re(e,t,n,r){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 u="";u=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(e[s].value,void 0,2):e[s].value,a.push({exampleType:r,exampleValue:u})}else if(t){var c="";c=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(t,void 0,2):t,a.push({exampleType:r,exampleValue:c})}if(0===a.length)if(n)if(r.toLowerCase().includes("json")||r.toLowerCase().includes("*/*")){var l=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==t){if("object"===t.type||t.properties)for(var o in t.properties)t.properties[o].deprecated||t.properties[o].readOnly&&!r.includeReadOnly||t.properties[o].writeOnly&&!r.includeWriteOnly||(n[o]=e(t.properties[o],{},r));else if("array"===t.type||t.items)n=[e(t.items,{},r)];else if(t.allOf){var i={};if(1===t.allOf.length&&!t.allOf[0].properties&&!t.allOf[0].items)return t.allOf[0].$ref?"{ }":t.allOf[0].readOnly&&r.includeReadOnly?Ce(t.allOf[0]):void 0;t.allOf.map(t=>{if("object"===t.type||t.properties||t.allOf||t.anyOf||t.oneOf){var n=e(t,{},r);Object.assign(i,n)}else if("array"===t.type||t.items){var o=[e(t,{},r)];Object.assign(i,o)}else{if(!t.type)return"";var a="prop".concat(Object.keys(i).length);i[a]=Ce(t)}}),n=i}else if(t.oneOf)t.oneOf.length>0&&(n=e(t.oneOf[0],{},r));else{if(!t.anyOf)return Ce(t);t.anyOf.length>0&&(n=e(t.anyOf[0],{},r))}return n}}(n,{},{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});a.push({exampleType:r,exampleValue:"text"===i?JSON.stringify(l,void 0,2):l})}else a.push({exampleType:r,exampleValue:""});else a.push({exampleType:r,exampleValue:""});return a}function Le(){var e=ze(['',""]);return Le=function(){return e},e}function Ne(){var e=ze(['"','"']);return Ne=function(){return e},e}function Me(){var e=ze(["",":"]);return Me=function(){return e},e}function Ie(){var e=ze(['
    ',"","
    "]);return Ie=function(){return e},e}function Ue(){var e=ze(['
    ','
    ','
    ',"
    "]);return Ue=function(){return e},e}function De(){var e=ze(["",""]);return De=function(){return e},e}function qe(){var e=ze(['
    null
    ']);return qe=function(){return e},e}function Be(){var e=ze(["",'
    ',"
    "]);return Be=function(){return e},e}function ze(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Fe(){var e=ft(["",""]);return Fe=function(){return e},e}function $e(){var e=ft(["",""]);return $e=function(){return e},e}function We(){var e=ft(['
    ',"
    "]);return We=function(){return e},e}function He(){var e=ft(["",""]);return He=function(){return e},e}function Ye(){var e=ft(["",""]);return Ye=function(){return e},e}function Ve(){var e=ft(['',""]);return Ve=function(){return e},e}function Ke(){var e=ft(["",":"]);return Ke=function(){return e},e}function Je(){var e=ft(['*',":"]);return Je=function(){return e},e}function Ge(){var e=ft(['',""]);return Ge=function(){return e},e}function Qe(){var e=ft(['',""]);return Qe=function(){return e},e}function Ze(){var e=ft(['
    '," ","
    "]);return Ze=function(){return e},e}function Xe(){var e=ft(["",""]);return Xe=function(){return e},e}function et(){var e=ft(['',""]);return et=function(){return e},e}function tt(){var e=ft([""," ",'
    ',"
    ",""]);return tt=function(){return e},e}function nt(){var e=ft(['
    ',"
    "]);return nt=function(){return e},e}function rt(){var e=ft(['
    ',"
    "]);return rt=function(){return e},e}function ot(){var e=ft(['
    ']);return ot=function(){return e},e}function it(){var e=ft(['
    ']);return it=function(){return e},e}function at(){var e=ft(["[ ]"]);return at=function(){return e},e}function st(){var e=ft(['{ } ',""]);return st=function(){return e},e}function ut(){var e=ft(["",""]);return ut=function(){return e},e}function ct(){var e=ft(['
    null
    ']);return ct=function(){return e},e}function lt(){var e=ft(["",'
    ',"
    "]);return lt=function(){return e},e}function ft(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("json-tree",class extends ae{render(){return L(Be(),pe,this.generateTree(this.data))}generateTree(e){if(null===e)return L(qe());if("object"==typeof e){var t=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(De(),Array.isArray(e)?"[ ]":"{ }"):L(Ue(),"array"===t?"array":"object",this.toggleExpand,"array"===t?"[":"{",Object.keys(e).map(n=>L(Ie(),"pure_object"===t?L(Me(),n):"",this.generateTree(e[n]))),"array"===t?"]":"}")}return L("string"==typeof e?Ne():Le(),typeof e,e)}static get properties(){return{data:{type:Object}}}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.nextElementSibling.style.display="none",e.target.nextElementSibling.nextElementSibling.style.display="none"):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.nextElementSibling.style.display="block",e.target.nextElementSibling.nextElementSibling.style.display="block")}});function pt(){var e=dt([".tags{\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--input-border-color);\n cursor:text;\n overflow:hidden;\n }\n .tag, .editor{\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg2);\n color:var(--fg2);\n border-radius:var(--border-radius);\n word-break: break-all;\n cursor: none;\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor{\n flex:1;\n border:1px solid transparent;\n background:var(--input-bg);\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n font-size:inherit;\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }"]);return pt=function(){return e},e}function ht(){var e=dt(['
    ']);return ht=function(){return e},e}function dt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ae{render(){return L(lt(),pe,this.generateTree(this.data))}generateTree(e){if(null===e)return L(ct());if("object"==typeof e){var t,n,r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(ut(),Array.isArray(e)?"[ ]":"{ }"):1===Object.keys(e).length&&":description"===Object.keys(e)[0]?L(st(),e[":description"]):"array"===r&&"~|~"===e[0]?L(at()):(Object.keys(e)[0].startsWith("OPTION")||"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?(t=L(it()),n=L(ot())):(n="",t=""):(t=L(rt(),"array"===r?"array":"object",this.toggleExpand,"array"===r?"[":"{"),n=L(nt(),"array"===r?"]":"}")),L(tt(),t,e[":description"]?L(et(),e[":description"]):"",Object.keys(e)[0].startsWith("OPTION")?"":"inside-bracket",Object.keys(e).map(t=>L(Xe(),":description"!==t?L(Ze(),"pure_object"===r?"ANY_OF"===t||"ONE_OF"===t?L(Qe(),t.replace("_"," ")):t.startsWith("OPTION")?L(Ge(),t.replace("OPTION_"," ")):t.endsWith("*")?L(Je(),t.substring(0,t.length-1)):L(Ke(),t):"",this.generateTree(e[t])):"")),n))}return L(Ve(),e?L(Ye(),e.split("~|~").map((e,t)=>L(He(),e?L(We(),0===t?"item-type ".concat(e.replace("{","").substring(0,4)):1===t||2===t?"item-constraints":"m-markdown-small item-descr",3===t?L($e(),ue(le()(e))):L(Fe(),e)):""))):"")}static get properties(){return{data:{type:Object}}}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>{e.style.display="none"})):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>{e.style.display=e.classList.contains("obj-descr")?"inline":"block"}))}});function vt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function mt(){var e=Kt(['"]);return mt=function(){return e},e}function yt(){var e=Kt(['
    ']);return yt=function(){return e},e}function gt(){var e=Kt(['
    Response Status: ','
    ','
    "]);return gt=function(){return e},e}function bt(){var e=Kt(['
    No Authentication Token provided
    ']);return bt=function(){return e},e}function wt(){var e=Kt(['
    Authentication:  
    send
    \'',"'
    in
    '","'
    with value
    '","'
    "]);return wt=function(){return e},e}function xt(){var e=Kt(['
    Not Set
    ']);return xt=function(){return e},e}function _t(){var e=Kt(["",""]);return _t=function(){return e},e}function St(){var e=Kt(['
    API_Server:
    ','
    ','
    ',""]);return St=function(){return e},e}function Ot(){var e=Kt(['']);return Ot=function(){return e},e}function kt(){var e=Kt(['']);return kt=function(){return e},e}function Et(){var e=Kt(['']);return Et=function(){return e},e}function At(){var e=Kt([""," ",""]);return At=function(){return e},e}function Tt(){var e=Kt(["",""]);return Tt=function(){return e},e}function jt(){var e=Kt(['
    ','
    ','
    "]);return jt=function(){return e},e}function Ct(){var e=Kt(["",""]);return Ct=function(){return e},e}function Pt(){var e=Kt(['
    '," DATA ","
    "," ",""]);return Pt=function(){return e},e}function Rt(){var e=Kt(['
    ',"
    "]);return Rt=function(){return e},e}function Lt(){var e=Kt(['',""]);return Lt=function(){return e},e}function Nt(){var e=Kt(['']);return Nt=function(){return e},e}function Mt(){var e=Kt([''],['']);return Mt=function(){return e},e}function It(){var e=Kt(['
    ','
    ','
    ','
    ',""]);return It=function(){return e},e}function Ut(){var e=Kt(['
    ',"
    "]);return Ut=function(){return e},e}function Dt(){var e=Kt(['
    ','
    ',"
    "]);return Dt=function(){return e},e}function qt(){var e=Kt(['',""]);return qt=function(){return e},e}function Bt(){var e=Kt(["",""]);return Bt=function(){return e},e}function zt(){var e=Kt(["","
    "]);return zt=function(){return e},e}function Ft(){var e=Kt(['']);return Ft=function(){return e},e}function $t(){var e=Kt([''],['']);return $t=function(){return e},e}function Wt(){var e=Kt(['*']);return Wt=function(){return e},e}function Ht(){var e=Kt(['
    ',"",'
    ','
    ','
    '," ","
    ",""]);return Ht=function(){return e},e}function Yt(){var e=Kt(["",""]);return Yt=function(){return e},e}function Vt(){var e=Kt([""," "," "," "," ",'
    REQUEST
    '," "," "," "," "," ","
    "]);return Vt=function(){return e},e}function Kt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("tag-input",class extends ae{render(){return L(ht(),this.afterPaste,this.afterKeyDown,this.placeholder)}static get styles(){return[oe(pt())]}static get properties(){return{placeholder:{type:String}}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=document.createElement("span");""!==e.target.value.trim()&&(t.innerText=e.target.value,e.target.value="",t.classList.add("tag"),t.setAttribute("contenteditable","false"),this.shadowRoot.querySelector(".tags").insertBefore(t,e.target))}else 8===e.keyCode&&0===e.target.selectionStart&&e.target.previousSibling&&e.target.previousSibling.remove()}getValues(){var e=[],t=this.shadowRoot.querySelectorAll(".tag");for(var n of t)e.push(n.innerText);return e}});function Jt(){var e=sn(['
    ','
    ']);return Jt=function(){return e},e}function Gt(){var e=sn(['
    Content-Type: '," (Binary Data)
    "]);return Gt=function(){return e},e}function Qt(){var e=sn(['
    EXAMPLE: ',""]);return Qt=function(){return e},e}function Zt(){var e=sn(['',''," ",""]);return Zt=function(){return e},e}function Xt(){var e=sn(['
    Response Headers:
    ',"
    "]);return Xt=function(){return e},e}function en(){var e=sn(['
    ',': '," ","
    ",""]);return en=function(){return e},e}function tn(){var e=sn(["",""]);return tn=function(){return e},e}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t.title{\n font-family:var(--font-regular);\n font-size:var(--title-font-size);\n font-weight:bold;\n margin-bottom:8px;\n }\n .resp-head{\n vertical-align: middle;\n padding:16px 0 8px;\n }\n .resp-head.divider{\n border-top: 1px solid var(--border-color);\n margin-top:10px;\n }\n .resp-status{ \n font-weight:bold;\n font-size:calc(var(--small-font-size) + 1px);\n }\n .resp-descr{\n font-size:calc(var(--small-font-size) + 1px);\n color:var(--light-fg);\n }\n .top-gap{margin-top:16px;}\n .tab-buttons{\n height:30px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n }\n .tab-btn{\n color:var(--fg);\n border:none;\n background-color:transparent;\n cursor:pointer;\n padding:1px;\n outline:none;\n font-size:var(--small-font-size);\n margin-right:16px;\n padding:1px;\n }\n .tab-btn.active{\n border-bottom: 3px solid var(--primary-color);\n font-weight:bold;\n color:var(--primary-color);\n }\n\n .tab-btn:hover{\n color:var(--primary-color);\n }\n .tab-content{\n margin:-1px 0 0 0;\n }\n .descr-text{\n color:var(--light-fg);\n font-family:var(--font-regular);\n }\n .tree{\n padding:16px 2px;\n }\n @media only screen and (min-width: 768px){\n .tree {\n padding:16px;\n }\n }
    RESPONSE
    ',"
    "]);return an=function(){return e},e}function sn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ae{render(){return L(Vt(),be,ve,pe,ye,Te,this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":L(Yt(),this.apiCallTemplate()))}constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},parser:{type:Object},accept:{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},allowTry:{type:String,attribute:"allow-try"}}}inputParametersTemplate(e){var t="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===n.length)return"";"path"===e?t="PATH PARAMETERS":"query"===e?t="QUERY-STRING PARAMETERS":"header"===e?t="REQUEST HEADERS":"cookie"===e&&(t="COOKIES");var r=[];for(var o of n)if(o.schema){var i=je(o.schema),a="";a=o.example?"0"===o.example||0===o.example?"0":o.example:i.default,r.push(L(Ht(),o.required?L(Wt()):"",o.name,"array"===i.type?"".concat(i.arrayType):"".concat(i.type).concat(i.format?" (".concat(i.format,")"):""),"array"===i.type?L($t(),e,o.name):L(Ft(),o.name,e,a),i.constrain?L(zt(),i.constrain):"",i.allowedValues?L(Bt(),i.allowedValues):"",o.description?L(qt(),ue(le()(o.description||""))):""))}return L(Dt(),t,r)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";var e=0,t={},n=this.request_body.description?L(Ut(),ue(le()(this.request_body.description||""))):"",r="",o="",i=[],a=!1,s={json:"",xml:""},u=this.request_body.content;for(var c in u){c.includes("json")?t[c]="json":c.includes("xml")?t[c]="xml":c.includes("text/plain")?t[c]="text":c.includes("form-urlencoded")?t[c]="form-urlencoded":c.includes("multipart/form-data")?t[c]="multipart-form-data":c.includes("application/octet-stream")&&(t[c]="octet-stream");var l=u[c],f="";if(c.includes("json")||c.includes("xml")||c.includes("text/plain")){try{l.schema=JSON.parse(JSON.stringify(l.schema))}catch(e){return void console.error("Unable to resolve circular refs in schema",l.schema)}c.includes("json")?s.json=Pe(l.schema,{}):c.includes("xml")&&(s.xml=Pe(l.schema,{})),f=Re(l.schema?l.schema.examples:"",l.schema?l.schema.example:"",l.schema,c,!1,"text"),r+='\n ")}else if(c.includes("form")||c.includes("multipart-form")){for(var p in a=!0,l.schema.properties){var h=l.schema.properties[p],d=h.type,v="array"===h.type?h.items.type:"";i.push(L(It(),p,"array"===d?"".concat(d," of ").concat(v):"".concat(d," ").concat(h.format?" (".concat(h.format,")"):""),"array"===d?L(Mt(),d,p):L(Nt(),"binary"===h.format?"file":"text",p,d),h.description?L(Lt(),ue(le()(h.description||""))):""))}o=L(Rt(),t[c],i)}e++}return L(Pt(),a?"form_data":"body_data",a?"FORM":"BODY",this.request_body.required?"(required)":"",n,a?L(Ct(),o):L(jt(),this.activateTab,1===e?"".concat(Object.keys(t)[0]):L(Tt(),Object.keys(t).map(e=>L(At(),"json"===t[e]?L(Et(),t[e],this.onMimeTypeChange):L(kt(),t[e],this.onMimeTypeChange),t[e]))),ue(r),Object.keys(t).map(e=>L(Ot(),t[e],"json"===t[e]?"block":"none",s[t[e]]))))}apiCallTemplate(){return L(St(),this.selectedServer?L(_t(),this.selectedServer):L(xt()),this.apiKeyValue&&this.apiKeyName?L(wt(),this.apiKeyName,this.apiKeyLocation,"".concat(this.apiKeyValue.substring(0,3),"***")):L(bt()),this.onTryClick,""===this.responseMessage?"":L(gt(),this.responseStatus,this.responseMessage,this.clearResponseData,this.activateTab,this.responseIsBlob?L(yt(),this.downloadResponseBlob):L(mt(),this.responseText),this.responseHeaders,this.curlSyntax))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){var t=e.currentTarget.parentNode.querySelector(".tab-btn.active"),n=e.target;t.classList.remove("active"),e.target.classList.add("active");var r=this.shadowRoot.getElementById(n.attributes.content_id.value),o=e.currentTarget.parentNode.querySelectorAll(".tab-content");r&&(r.style.display="flex",o.forEach(e=>{e.attributes.id.value!==n.attributes.content_id.value&&(e.style.display="none")}))}}onMimeTypeChange(e){var t=e.target.closest(".tab-panel").querySelectorAll("textarea.request-body-param"),n=e.target.closest(".tab-panel").querySelectorAll("schema-tree");[...t].map(t=>{t.style.display=t.classList.contains(e.target.value)?"block":"none"}),[...n].map(t=>{t.style.display=t.classList.contains(e.target.value)?"block":"none"})}onTryClick(e){var t,n=this;return(t=function*(){var t,r,o,i=n,a=e.target,s="",u="",c="",l=e.target.closest(".request-panel"),f=[...l.querySelectorAll(".request-param[data-ptype='path']")],p=[...l.querySelectorAll(".request-param[data-ptype='query']")],h=[...l.querySelectorAll(".request-param[data-ptype='header']")],d=[...l.querySelectorAll(".request-form-param")],v=[...l.querySelectorAll(".request-body-param")];t=i.path;var m={mode:"cors",method:n.method.toUpperCase(),headers:{}};if(f.map(e=>{t=t.replace("{".concat(e.dataset.pname,"}"),e.value)}),p.length>0){var y=new URLSearchParams("");p.map(e=>{if("false"===e.dataset.array)""!==e.value&&y.append(e.dataset.pname,e.value);else{var t=e.getValues();for(var n of t)y.append(e.dataset.pname,n)}}),t="".concat(t,"?").concat(y.toString())}if(n.apiKeyValue&&n.apiKeyName&&"query"===n.apiKeyLocation&&(t="".concat(t).concat(t.includes("?")?"&":"?").concat(n.apiKeyName,"=").concat(encodeURIComponent(n.apiKeyValue))),r=!1===(t="".concat(n.selectedServer.replace(/\/$/,"")).concat(t)).startsWith("http")?new URL(t,window.location.href).href:t,o="curl -X ".concat(n.method.toUpperCase(),' "').concat(r,'" '),n.accept&&(m.headers.Accept=n.accept,s+=' -H "Accept: '.concat(n.accept,'"')),h.map(e=>{e.value&&(m.headers[e.dataset.pname]=e.value,s+=' -H "'.concat(m.headers[e.dataset.pname],": ").concat(e.value,'"'))}),n.apiKeyValue&&n.apiKeyName&&"header"===n.apiKeyLocation&&(m.headers[n.apiKeyName]=n.apiKeyValue,s+=' -H "'.concat(n.apiKeyName,": ").concat(n.apiKeyValue,'"')),d.length>=1){var g=l.querySelector("form"),b=new URLSearchParams,w=new FormData;d.map(e=>{if("false"===e.dataset.array)"file"!==e.type?""!==e.value&&(b.append(e.dataset.pname,e.value),w.append(e.dataset.pname,e.value),c+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'"')):e.files[0]&&(b.append(e.dataset.pname,e.files[0]),w.append(e.dataset.pname,e.files[0]),c="".concat(c,' -F "').concat(e.dataset.pname,"=@").concat(e.value,'"'));else{var t=e.getValues();for(var n of t)b.append(e.dataset.pname,n),w.append(e.dataset.pname,n),c+=' -F "'.concat(e.dataset.pname,"=").concat(n,'"')}}),g.classList.contains("form-urlencoded")?(m.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",s+=' -H "Content-Type: application/x-www-form-urlencoded"',m.body=b):(s+=' -H "Content-Type: multipart/form-data"',m.body=w)}if(v.length>=1)if(1===v.length)m.headers["Content-Type"]=v[0].dataset.ptype,s+=' -H "Content-Type: '.concat(v[0].dataset.ptype,'"'),m.body=v[0].value,u=" -d ".concat(JSON.stringify(v[0].value.replace(/(\r\n|\n|\r)/gm,"")));else{var x=e.target.closest(".request-panel").querySelector("input[name='request_body_type']:checked"),_=null===x?"json":x.value,S="";"json"===_?(S=l.querySelector(".request-body-param.json").value,m.headers["Content-Type"]="application/json; charset=utf-8",s+=' -H "Content-Type: application/json"'):"xml"===_?(S=l.querySelector(".request-body-param.xml").value,m.headers["Content-Type"]="application/xml; charset=utf-8",s+=' -H "Content-Type: application/xml"'):"text"===_&&(S=l.querySelector(".request-body-param.text").value,m.headers["Content-Type"]="text/plain; charset=utf-8",s+=' -H "Content-Type: text/plain"'),m.body=S,u=" -d ".concat(JSON.stringify(S.replace(/(\r\n|\n|\r)/gm,"")))}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(u," ").concat(c);try{a.disabled=!0;var O=yield fetch(t,m);a.disabled=!1,i.responseStatus=O.ok?"success":"error",i.responseMessage="".concat(O.statusText,":").concat(O.status),i.responseUrl=O.url,O.headers.forEach((e,t)=>{i.responseHeaders="".concat(i.responseHeaders).concat(t.trim(),": ").concat(e,"\n")});var k=O.headers.get("content-type");if(k)if(k.includes("json"))O.json().then(e=>{i.responseText=JSON.stringify(e,null,2)});else if(k.includes("octet-stream")){i.responseIsBlob=!0;var E=O.headers.get("content-disposition");i.respContentDisposition=E?E.split("filename=")[1]:"filename",O.blob().then(e=>{i.responseBlobUrl=URL.createObjectURL(e)})}else O.text().then(e=>{i.responseText=e});else O.text().then(e=>{i.responseText=e})}catch(e){a.disabled=!1,i.responseMessage="".concat(e.message," (CORS or Network Issue)")}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){vt(i,r,o,a,s,"next",e)}function s(e){vt(i,r,o,a,s,"throw",e)}a(void 0)})})()}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()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}});function un(){var e=gn([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .head .descr{\n font-size: var(--small-font-size);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n }\n .m-endpoint > .head.put:hover,\n .m-endpoint > .head.put.expanded{\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.post:hover,\n .m-endpoint > .head.post.expanded{\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.get:hover,\n .m-endpoint > .head.get.expanded{\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n .m-endpoint > .head.delete:hover,\n .m-endpoint > .head.delete.expanded{\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch:hover,\n .m-endpoint > .head.patch.expanded{\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n }\n .method.delete{ border: 2px solid var(--delete-color);}\n .method.patch{ border: 2px solid var(--patch-color); }\n .method.put{ border: 2px solid var(--put-color); }\n .method.post{ border: 2px solid var(--post-color); }\n .method.get{ border: 2px solid var(--get-color); }\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .descr{\n display: flex;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return un=function(){return e},e}function cn(){var e=gn(['
    ',"
    "]);return cn=function(){return e},e}function ln(){var e=gn(['
    ',"
    ","
    "]);return ln=function(){return e},e}function fn(){var e=gn(['
    ','
    ']);return fn=function(){return e},e}function pn(){var e=gn(['deprecated']);return pn=function(){return e},e}function hn(){var e=gn(['
    ','
    ',"
    ",'
    ',"
    "]);return hn=function(){return e},e}function dn(){var e=gn([""]);return dn=function(){return e},e}function vn(){var e=gn([""]);return vn=function(){return e},e}function mn(){var e=gn(["",""]);return mn=function(){return e},e}function yn(){var e=gn([""," ",'
    '," ","
    "]);return yn=function(){return e},e}function gn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-response",class extends ae{render(){return L(an(),pe,ye,be,ve,this.responseTemplate())}static get properties(){return{responses:{type:Object},parser:{type:Object}}}responseTemplate(){if(!this.responses)return"";var e={},t={},n={};for(var r in this.responses){var o={};for(var i in this.responses[r].content){var a=this.responses[r].content[i],s=Pe(a.schema,{}),u=Re(a.schema?a.schema.examples:"",a.schema?a.schema.example:"",a.schema,i,!0,"json");o[i]={description:this.responses[r].description,examples:u,schemaTree:s},e[r]=i}var c=[];for(var l in this.responses[r].headers)c.push(rn({name:l},this.responses[r].headers[l]));t[r]=c,n[r]=o}return L(tn(),Object.keys(this.responses).map((e,r)=>L(en(),0===r?"top-gap":"divider",e,this.responses[e].description,t[e]&&t[e].length>0?L(Xt(),t[e].map(e=>L(Zt(),e.name,ue(le()(e.description||"")),e.schema&&e.schema.example?L(Qt(),e.schema.example):""))):"",Object.keys(n[e]).map(t=>t.includes("octet-stream")?L(Gt(),t):L(Jt(),e,t,this.activateTab,e,t,e,t,t,e,t,n[e][t].examples[0].exampleValue,e,t,n[e][t].schemaTree)))))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){e.currentTarget.parentNode.querySelector(".tab-btn.active").classList.remove("active"),e.target.classList.add("active");var t=e.target.attributes.content_id.value,n=e.currentTarget.parentNode.querySelectorAll(".tab-content");t&&n.forEach(e=>{e.style.display=e.attributes.id.value===t?"flex":"none"})}}});function bn(){var e=xn(['']);return bn=function(){return e},e}function wn(){var e=xn(["",""]);return wn=function(){return e},e}function xn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-point",class extends ae{render(){return L(yn(),pe,window.innerWidth>=768?L(mn(),"row"===this.layout?L(vn()):L(dn())):"",this.path.method,this.path.expanded?"expanded":"collapsed",this.endpointHeadTemplate(),this.path.expanded?this.endpointBodyTemplate():"")}endpointHeadTemplate(){return L(hn(),this.toggleExpand,this.path.method,this.path.expanded?"expanded":"collapsed",this.path.method,this.path.method,this.path.deprecated?"deprecated":"",this.path.path,this.path.deprecated?L(pn()):"",ue(le()(this.path.summary||"")))}endpointBodyTemplate(){return L(fn(),this.path.method,this.path.summary||this.path.description?L(ln(),ue(le()(this.path.summary||"")),this.path.summary!==this.path.description?L(cn(),ue(le()(this.path.description||""))):""):"",this.path.method,this.path.path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,this.path.parameters,this.path.requestBody,this.allowTry,this.accept,this.path.responses)}static get styles(){return[oe(un())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}toggleExpand(){if(this.path.expanded)this.path.expanded=!1;else{this.path.expanded=!0;var e="";for(var t in this.path.responses)for(var n in this.path.responses[t].content)e="".concat(e+n,", ");e=e.replace(/,\s*$/,""),this.accept=e}this.requestUpdate()}});function _n(){var e=In([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n }\n .m-endpoint > .head:hover{\n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.expanded{\n cursor: pointer;\n }\n .m-endpoint > .head.get {\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n\n .m-endpoint > .head.put {\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n\n .m-endpoint > .head.post {\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.delete {\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch {\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n\n\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n cursor: pointer;\n }\n\n .method.get{ \n border: 1px solid var(--get-color);\n }\n .get.expanded .method.get,\n .method.get:hover{ \n background-color:var(--get-color);\n color:#333;\n }\n\n .method.put{ \n border: 1px solid var(--put-color); \n }\n .put.expanded .method.put,\n .method.put:hover{ \n background-color:var(--put-color);\n color:#333;\n }\n\n .method.post{ \n border: 1px solid var(--post-color); \n }\n .post.expanded .method.post,\n .method.post:hover{ \n background-color:var(--post-color);\n color:#333;\n }\n\n .method.delete{ \n border: 1px solid var(--delete-color);\n }\n .delete.expanded .method.delete,\n .method.delete:hover{\n background-color:var(--delete-color);\n color:#333;\n }\n\n .method.patch{ \n border: 1px solid var(--patch-color); \n }\n .patch.expanded .method.patch,\n .method.patch:hover{ \n background-color:var(--patch-color);\n color:#333;\n }\n\n .method-text { margin-right:5px; }\n .head.get .method-text { color:var(--get-color);}\n .head.put .method-text { color:var(--put-color);}\n .head.post .method-text { color:var(--post-color);}\n .head.delete .method-text { color:var(--delete-color);}\n .head.patch .method-text { color:var(--patch-color);}\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return _n=function(){return e},e}function Sn(){var e=In(['
    ',"
    "]);return Sn=function(){return e},e}function On(){var e=In(['
    ',"
    ","
    "]);return On=function(){return e},e}function kn(){var e=In(['
    ','
    ']);return kn=function(){return e},e}function En(){var e=In(['
    PATCH
    ']);return En=function(){return e},e}function An(){var e=In(['
    HEAD
    ']);return An=function(){return e},e}function Tn(){var e=In(['
    DELETE
    ']);return Tn=function(){return e},e}function jn(){var e=In(['
    POST
    ']);return jn=function(){return e},e}function Cn(){var e=In(['
    PUT
    ']);return Cn=function(){return e},e}function Pn(){var e=In(['
    GET
    ']);return Pn=function(){return e},e}function Rn(){var e=In([""]);return Rn=function(){return e},e}function Ln(){var e=In([""]);return Ln=function(){return e},e}function Nn(){var e=In(["",""]);return Nn=function(){return e},e}function Mn(){var e=In([""," ",'
    \x3c!-- Endpoint Head --\x3e
    '," ",'
    '," "," "," "," "," ","
    \x3c!-- Endpoint Body --\x3e ","
    "]);return Mn=function(){return e},e}function In(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-points",class extends ae{render(){return L(wn(),this.paths.filter(e=>!this.matchPaths||"".concat(e.method," ").concat(e.path).includes(this.matchPaths)).map(e=>L(bn(),this.selectedServer,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation,this.layout,e,this.allowTry?this.allowTry:"true")))}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},paths:{type:Object},matchPaths:{type:String,attribute:"match-paths"},allowTry:{type:String,attribute:"allow-try"}}}});function Un(){var e=Kn(['
    Refresh URL: ',"
    "]);return Un=function(){return e},e}function Dn(){var e=Kn(['
    Token URL: ',"
    "]);return Dn=function(){return e},e}function qn(){var e=Kn(['
    Auth URL: ',"
    "]);return qn=function(){return e},e}function Bn(){var e=Kn([""," "," ",'
    ']);return Bn=function(){return e},e}function zn(){var e=Kn(["
    ","
    "]);return zn=function(){return e},e}function Fn(){var e=Kn(["Send 'Authorization' in header which will contains the word 'Bearer' followed by a space and a Token String.
    "]);return Fn=function(){return e},e}function $n(){var e=Kn(["Send 'Authorization' in header which will contains the word 'Basic' followed by a space and a base64-encoded string username:password.
    "]);return $n=function(){return e},e}function Wn(){var e=Kn(["Send '","' in '","' with the given value
    "]);return Wn=function(){return e},e}function Hn(){var e=Kn(['
    ',"
    "]);return Hn=function(){return e},e}function Yn(){var e=Kn(['
    ',": ","
    ",""," "," "," ",""]);return Yn=function(){return e},e}function Vn(){var e=Kn([""," "," ",'',"
    TypeAuthentication Procedure
    "]);return Vn=function(){return e},e}function Kn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("path-and-methods",class extends ae{render(){return L(Mn(),pe,window.innerWidth>=768?L(Nn(),"row"===this.layout?L(Ln()):L(Rn())):"",this.path.activeMethod,this.path.expanded?"expanded":"collapsed",this.path.activeMethod,this.path.expanded?"expanded":"collapsed",()=>this.collapse(),"no-active-method"===this.path.activeMethod?"":this.path.activeMethod.toUpperCase(),this.path.path,this.path.get?L(Pn(),e=>this.expand("get",e)):"",this.path.put?L(Cn(),e=>this.expand("put",e)):"",this.path.post?L(jn(),e=>this.expand("post",e)):"",this.path.delete?L(Tn(),e=>this.expand("delete",e)):"",this.path.head?L(An(),e=>this.expand("head",e)):"",this.path.patch?L(En(),e=>this.expand("patch",e)):"",this.pathBodyTemplate())}pathBodyTemplate(){var e=[],t=this.path.parameters&&this.path.parameters.length>0?this.path.parameters:null,n=this.path[this.path.activeMethod]&&this.path[this.path.activeMethod].parameters&&this.path[this.path.activeMethod].parameters.length>0?this.path[this.path.activeMethod].parameters:void 0;return e=t?n&&n.length>0?t.filter(e=>{if(!n.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(n):t.slice(0):[],this.path.expanded?L(kn(),this.path.activeMethod,this.path[this.path.activeMethod].summary||this.path[this.path.activeMethod].description?L(On(),ue(le()(this.path[this.path.activeMethod].summary||"")),this.path[this.path.activeMethod].summary!==this.path[this.path.activeMethod].description?L(Sn(),ue(le()(this.path[this.path.activeMethod].description||""))):""):"",this.path.activeMethod,this.path[this.path.activeMethod].path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,e,this.path[this.path.activeMethod].requestBody,this.allowTry,this.accept,this.path[this.path.activeMethod].responses):""}static get styles(){return[oe(_n())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}collapse(){this.path.expanded&&(this.path.expanded=!1,this.path.activeMethod="no-active-method"),this.requestUpdate()}expand(e,t){this.path.expanded=!0,this.path.activeMethod=e;var n="";for(var r in this.path.responses)for(var o in this.path.responses[r].content)n="".concat(n+o,", ");n=n.replace(/,\s*$/,""),this.accept=n,t.stopPropagation(),this.requestUpdate()}});function Jn(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Gn(){var e=kr(['']);return Gn=function(){return e},e}function Qn(){var e=kr(['
    PATHS
    ']);return Qn=function(){return e},e}function Zn(){var e=kr([""," ",""]);return Zn=function(){return e},e}function Xn(){var e=kr(['
    ','
    ','
    ']);return Xn=function(){return e},e}function er(){var e=kr(["",""]);return er=function(){return e},e}function tr(){var e=kr(['
    GROUP API BY:
    Tag Path
    ']);return tr=function(){return e},e}function nr(){var e=kr(['
    AUTHENTICATION
    ']);return nr=function(){return e},e}function rr(){var e=kr([' ',"
    "]);return rr=function(){return e},e}function or(){var e=kr(["- ",""]);return or=function(){return e},e}function ir(){var e=kr([' '," ","
    "]);return ir=function(){return e},e}function ar(){var e=kr(["",""]);return ar=function(){return e},e}function sr(){var e=kr(['
    "]);return sr=function(){return e},e}function ur(){var e=kr(['
    URL: ',"
    "]);return ur=function(){return e},e}function cr(){var e=kr(['
    Name: ',"
    "]);return cr=function(){return e},e}function lr(){var e=kr(['
    Email: ',"
    "]);return lr=function(){return e},e}function fr(){var e=kr(['
    '," "," ","
    "]);return fr=function(){return e},e}function pr(){var e=kr(['
    ']);return pr=function(){return e},e}function hr(){var e=kr([' ']);return hr=function(){return e},e}function dr(){var e=kr(['
    ']);return dr=function(){return e},e}function vr(){var e=kr(['
    ','
    '," ",'',"
    "]);return vr=function(){return e},e}function mr(){var e=kr(["",""]);return mr=function(){return e},e}function yr(){var e=kr(["",""]);return yr=function(){return e},e}function gr(){var e=kr(['',""]);return gr=function(){return e},e}function br(){var e=kr(['
    '," ","
    "," "," ","
    "]);return br=function(){return e},e}function wr(){var e=kr(['
    Unable to load the Spec
    ']);return wr=function(){return e},e}function xr(){var e=kr(['
    Loading ...
    ']);return xr=function(){return e},e}function _r(){var e=kr([""]);return _r=function(){return e},e}function Sr(){var e=kr([""]);return Sr=function(){return e},e}function Or(){var e=kr([""," "," "," "," ","",'
    '," "," "," "," "," "," ",'
    ']);return Or=function(){return e},e}function kr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("security-schemes",class extends ae{render(){return L(Vn(),pe,be,ve,Object.keys(this.schemes).map(e=>L(Yn(),this.schemes[e].type,this.schemes[e].scheme,this.schemes[e].description?L(Hn(),ue(le()(this.schemes[e].description||""))):"","apiKey"===this.schemes[e].type?L(Wn(),this.schemes[e].name,this.schemes[e].in,e,this.schemes[e].type,this.schemes[e].in,this.schemes[e].name,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"basic"===this.schemes[e].scheme?L($n(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"bearer"===this.schemes[e].scheme?L(Fn(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","oauth2"===this.schemes[e].type?L(zn(),Object.keys(this.schemes[e].flows).map(t=>L(Bn(),this.schemes[e].flows[t].authorizationUrl?L(qn(),this.schemes[e].flows[t].authorizationUrl):"",this.schemes[e].flows[t].tokenUrl?L(Dn(),this.schemes[e].flows[t].tokenUrl):"",this.schemes[e].flows[t].refreshUrl?L(Un(),this.schemes[e].flows[t].refreshUrl):"",e,e))):"")))}static get properties(){return{schemes:{type:Object},selectedApiKeyName:{type:String,attribute:"selected-api-key-name"},selectedApiKeyValue:{type:String,attribute:"selected-api-key-value"}}}dispatchChange(e){var t=e.target.closest(".".concat(e.target.dataset.class));if(t){var n=t.dataset.type,r=t.dataset.in,o=t.dataset.name,i=t.dataset.inputname,a="";if("CLEAR"===e.target.dataset.action){var s=t.querySelector("input[name=".concat(i,"-token]"));s&&(s.value="")}else if("apiKey"===n){var u=t.querySelector("input[name=".concat(i,"-token]"));u&&(a=u.value)}else if("http"===n){var c=t.dataset.scheme;if("basic"===c){var l=t.querySelector("input[name=".concat(i,"-username]")),f=t.querySelector("input[name=".concat(i,"-password]"));l&&f&&(a="Basic ".concat(btoa("".concat(l.value,":").concat(f.value))))}else if("bearer"===c){var p=t.querySelector("input[name=".concat(i,"-bearer-token]"));p&&(a="Bearer ".concat(p.value))}}var h=new CustomEvent("change",{detail:{keyType:n,keyName:o,keyValue:a,keyLocation:r}});this.dispatchEvent(h)}}});class Er extends ae{render(){return L(Or(),pe,ve,ye,be,"dark"===this.theme?L(Sr()):L(_r()),this.primaryColor?"".concat(this.primaryColor):"#FF791A",he.color.brightness(this.primaryColor?this.primaryColor:"#FF791A",-30),this.primaryColor?"".concat(he.color.invert(this.primaryColor)):"#ffffff",this.headerColor?"".concat(this.headerColor):"#444",this.headerColor?"".concat(he.color.invert(this.headerColor)):"#ccc",this.layout?"".concat(this.layout):"row",this.monoFont?"".concat(this.monoFont):"Monaco, 'Andale Mono', 'Roboto Mono', Consolas",this.regularFont?"".concat(this.regularFont):"rapidoc, Helvetica, Arial",this.headerColor?he.color.brightness(this.headerColor,-20):he.color.inputReverseBg,"false"===this.showHeader?"":this.headerTemplate(),!0===this.loading?L(xr()):"",!0===this.loadFailed?L(wr()):"","false"!==this.showInfo&&this.resolvedSpec&&this.resolvedSpec.info?L(br(),this.resolvedSpec.info.title,this.resolvedSpec.info.version?L(gr(),this.resolvedSpec.info.version):"",this.resolvedSpec.info.description?L(yr(),ue("
    ".concat(le()(this.resolvedSpec.info.description),"
    "))):"",this.resolvedSpec.info.termsOfService?L(mr(),ue("
    Terms:
    ".concat(le()(this.resolvedSpec.info.termsOfService),""))):"",this.resolvedSpec.info.contact?this.contactInfoTemplate():""):"","false"!==this.allowTry&&"false"!==this.allowServerSelection&&this.resolvedSpec?this.apiServerListTemplate():"","false"!==this.allowAuthentication&&this.resolvedSpec&&this.resolvedSpec.securitySchemes?this.securitySchemeTemplate():"","false"===this.allowApiListStyleSelection?"":this.apiListingStyleSelectionTemplate(),this.resolvedSpec&&this.resolvedSpec.tags&&this.resolvedSpec.pathGroups?"group-by-path"!==this.apiListStyle&&this.resolvedSpec?this.endpointsGroupedByTagTemplate():this.endpointsGroupedByPathTemplate():"")}headerTemplate(){return L(vr(),this.headingText,"false"===this.allowSpecUrlLoad?"":L(dr(),this.specUrl?this.specUrl:"",this.onSepcUrlChange),"false"===this.allowSpecFileLoad?"":L(hr(),this.specFile?this.specFile:"",this.onSepcFileChange,this.onFileLoadClick),"false"===this.allowSearch?"":L(pr(),this.onSearchChange))}contactInfoTemplate(){return L(fr(),this.resolvedSpec.info.contact.email?L(lr(),this.resolvedSpec.info.contact.email):"",this.resolvedSpec.info.contact.name?L(cr(),this.resolvedSpec.info.contact.name):"",this.resolvedSpec.info.contact.url?L(ur(),this.resolvedSpec.info.contact.url):"")}apiServerListTemplate(){return L(sr(),this.resolvedSpec.servers&&0!==this.resolvedSpec.servers.length?L(ar(),this.resolvedSpec.servers.map(e=>L(ir(),e.url,this.onApiServerChange,e.url,e.description?L(or(),e.description):""))):"",this.serverUrl?L(rr(),this.serverUrl,this.onApiServerChange,this.serverUrl):"")}securitySchemeTemplate(){return L(nr(),this.resolvedSpec.securitySchemes,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.onSecurityChange)}apiListingStyleSelectionTemplate(){return L(tr(),()=>this.onListStyleChange("group-by-tag"),"group-by-tag"===this.apiListStyle,()=>this.onListStyleChange("group-by-path"),"group-by-path"===this.apiListStyle)}endpointsGroupedByTagTemplate(){return L(er(),this.resolvedSpec.tags.map(e=>L(Xn(),e.name,ue("
    ".concat(le()(e.description?e.description:""),"
    ")),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e.paths,this.allowTry?this.allowTry:"true",this.matchPaths)))}endpointsGroupedByPathTemplate(){return L(Zn(),"false"!==this.allowApiListStyleSelection&&this.resolvedSpec?L(Qn()):"",this.resolvedSpec.pathGroups.filter(e=>!this.matchPaths||e.path.includes(this.matchPaths)).map(e=>L(Gn(),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e,this.allowTry?this.allowTry:"true",this.matchPaths)))}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},specFile:{type:String,attribute:!1},serverUrl:{type:String,attribute:"server-url"},matchPaths:{type:String,attribute:"match-paths"},headingText:{type:String,attribute:"heading-text"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},showHeader:{type:String,attribute:"show-header"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSearch:{type:String,attribute:"allow-search"},allowApiListStyleSelection:{type:String,attribute:"allow-api-list-style-selection"},layout:{type:String},theme:{type:String},logoUrl:{type:String,attribute:"logo-url"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiListStyle:{type:String,attribute:"api-list-style"}}}attributeChangedCallback(e,t,n){"spec-url"===e&&t!==n&&this.loadSpec(n),super.attributeChangedCallback(e,t,n)}onSepcUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSepcFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);var t=e.target.files[0],n=new FileReader;n.onload=()=>{try{var e=JSON.parse(n.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){console.log("Unable to read or parse json")}},n.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onApiServerChange(){var e=this.shadowRoot.querySelector("input[name='api_server']:checked");null!==e&&(this.selectedServer=e.value,this.requestUpdate())}onListStyleChange(e){this.apiListStyle=e,this.requestUpdate()}onSecurityChange(e){this.apiKeyName=e.detail.keyName,this.apiKeyValue=e.detail.keyValue,this.apiKeyLocation=e.detail.keyLocation}onSearchChange(e){this.matchPaths=e.target.value}loadSpec(e){var t,n=this;return(t=function*(){if(e){n.apiKeyName="",n.apiKeyValue="",n.apiKeyLocation="",n.selectedServer="",n.matchPaths="";try{n.loading=!0,n.loadFailed=!1;var t=yield function(e){return ke.apply(this,arguments)}(e);n.loading=!1,null==t&&console.error("Unable to resolve the API spec. "),n.afterSpecParsedAndValidated(t)}catch(e){n.loading=!1,n.loadFailed=!0,n.resolvedSpec=null,n.requestUpdate(),console.error("Unable to resolve the API spec.. ".concat(e.message))}}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Jn(i,r,o,a,s,"next",e)}function s(e){Jn(i,r,o,a,s,"throw",e)}a(void 0)})})()}afterSpecParsedAndValidated(e){this.resolvedSpec=e,"false"===this.allowServerSelection&&(this.serverUrl?this.selectedServer=this.serverUrl:this.resolvedSpec&&this.resolvedSpec.servers&&this.resolvedSpec.servers.length>0&&(this.selectedServer=this.resolvedSpec.servers[0].url)),this.apiListStyle||(this.apiListStyle="group-by-tag"),this.requestUpdate(),window.setTimeout(()=>{this.onApiServerChange()},0)}}customElements.define("rapi-doc",Er);t.default={RapiDoc:Er}}]); +//# sourceMappingURL=rapidoc-min.js.map \ No newline at end of file diff --git a/dist/rapidoc-min.js.gz b/dist/rapidoc-min.js.gz new file mode 100644 index 00000000..c475cbaf Binary files /dev/null and b/dist/rapidoc-min.js.gz differ diff --git a/dist/rapidoc-min.js.map b/dist/rapidoc-min.js.map new file mode 100644 index 00000000..d2c5860f --- /dev/null +++ b/dist/rapidoc-min.js.map @@ -0,0 +1 @@ +{"version":3,"file":"rapidoc-min.js","sources":["webpack:///rapidoc-min.js"],"mappings":"AAAA;;;;;;;AA4lKA;;;;;;;;AAu6fA;;AAiuvBA;;;;;;;;;;;;;AAw1PA;;;;;;;;;;;;;;AA2TA;;;;;;;;;;;;;AAuGA;;;;;;;;;;;;;;AA0FA;;;;;;;;;;;;;AA8cA;;;;;;;;;;;;;AAqBA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4HA;;;;;;;;;;;;;;AA+KA;;;;;;;;;;;;;;AA4nCA;;;;;;;;;;;;;;AA0MA","sourceRoot":""} \ No newline at end of file diff --git a/dist/rapidoc-min.js.map.gz b/dist/rapidoc-min.js.map.gz new file mode 100644 index 00000000..3ef92c8d Binary files /dev/null and b/dist/rapidoc-min.js.map.gz differ diff --git a/dist/rapidoc-regular.woff2 b/dist/rapidoc-regular.woff2 new file mode 100644 index 00000000..40417bff Binary files /dev/null and b/dist/rapidoc-regular.woff2 differ diff --git a/dist/rapidoc-semi-bold.woff2 b/dist/rapidoc-semi-bold.woff2 new file mode 100644 index 00000000..2ad1a7e0 Binary files /dev/null and b/dist/rapidoc-semi-bold.woff2 differ diff --git a/dist/report.html b/dist/report.html new file mode 100644 index 00000000..b2fb3f6a --- /dev/null +++ b/dist/report.html @@ -0,0 +1,65 @@ + + + + + + rapidoc [29 Sep 2019 at 18:47] + + + + + + + + + + +
    + + + diff --git a/dist/roboto-mono-bold.woff2 b/dist/roboto-mono-bold.woff2 new file mode 100644 index 00000000..125f0983 Binary files /dev/null and b/dist/roboto-mono-bold.woff2 differ diff --git a/dist/roboto-mono-regular.woff2 b/dist/roboto-mono-regular.woff2 new file mode 100644 index 00000000..6163de7b Binary files /dev/null and b/dist/roboto-mono-regular.woff2 differ diff --git a/docs/examples/example1.html b/docs/examples/example1.html index a5988f7d..4e705b49 100644 --- a/docs/examples/example1.html +++ b/docs/examples/example1.html @@ -20,6 +20,6 @@ - + \ No newline at end of file diff --git a/docs/examples/group-by-path.html b/docs/examples/group-by-path.html new file mode 100644 index 00000000..ca9aed39 --- /dev/null +++ b/docs/examples/group-by-path.html @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/index.css b/docs/index.css index 04299af8..dda311f4 100644 --- a/docs/index.css +++ b/docs/index.css @@ -220,7 +220,7 @@ code{ font-family: 'Roboto Mono', monospace;} font-size:12px; width:650px; } - .attr-col{ width:180px;} + .attr-col{ width:260px;} .default-col{ width:100px;} diff --git a/docs/index.html b/docs/index.html index 59c6af52..ad4497e9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -146,22 +146,20 @@

    Web Component for OpenAPI Spec Viewing

    Quickstart (DEMO)

    Just copy the below code and save it in an html file. Then open it using a browser - -
    
    -  <!doctype html> <!-- Important: must specify -->
    -  <html>
    -  <head>
    -    <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 charecters -->
    -    <script src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
    -  </head>
    -  <body>
    -    <rapi-doc 
    -      spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json" 
    -    > </rapi-doc>
    -  </body> 
    -  </html>
    -  
    -
    +
    <!doctype html> <!-- Important: must specify -->
    +<html>
    +<head>
    +  <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 charecters -->
    +  <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
    +</head>
    +<body>
    +  <rapi-doc 
    +    spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json" 
    +  > </rapi-doc>
    +</body> 
    +</html>
    +
    +
    @@ -203,7 +201,7 @@

    Mix your own HTML ( Attributes

    (empty) + + api-list-style + + can be either group-by-tag or group-by-path . This controls how the API litings are grouped. + this can be changed from the UI too + + group-by-tag + + allow-authentication @@ -342,6 +349,14 @@

    Attributes

    true + + allow-api-list-style-selection + + If set to 'false', user will not be able to change api list style + + true + + show-info diff --git a/docs/list.html b/docs/list.html index 0934ad8d..2a6e74d7 100644 --- a/docs/list.html +++ b/docs/list.html @@ -64,6 +64,11 @@

    Web Component for OpenAPI Spec Viewing

    Dark Theme + + + API listing grouped by path + + Change Header Color diff --git a/docs/rapidoc-min.js b/docs/rapidoc-min.js index 341889bf..c746bba7 100644 --- a/docs/rapidoc-min.js +++ b/docs/rapidoc-min.js @@ -1,11 +1,11 @@ -!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!x[e]||!w[e])return;for(var n in w[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,o="88cac58d6b4b23bf44e8",i=1e4,a={},s=[],u=[];function c(e){var t=A[e];if(!t)return T;var r=function(r){return t.hot.active?(A[r]?-1===A[r].parents.indexOf(e)&&A[r].parents.push(e):(s=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),s=[]),T(r)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var i in T)Object.prototype.hasOwnProperty.call(T,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(r,i,o(i));return r.e=function(e){return"ready"===p&&h("prepare"),g++,T.e(e).then(t,function(e){throw t(),e});function t(){g--,"prepare"===p&&(b[e]||O(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function l(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:n!==e,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},check:S,apply:E,status:function(e){if(!e)return p;f.push(e)},addStatusHandler:function(e){f.push(e)},removeStatusHandler:function(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)},data:a[e]};return n=void 0,t}var f=[],p="idle";function h(e){p=e;for(var t=0;t0;){var o=r.pop(),i=o.id,a=o.chain;if((u=A[i])&&!u.hot._selfAccepted){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 ")),S.type){case"self-declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of self decline: "+S.moduleId+j));break;case"declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+S.moduleId+" in "+S.parentId+j));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(S),t.ignoreUnaccepted||(O=new Error("Aborted because "+c+" is not accepted"+j));break;case"accepted":t.onAccepted&&t.onAccepted(S),k=!0;break;case"disposed":t.onDisposed&&t.onDisposed(S),E=!0;break;default:throw new Error("Unexception type "+S.type)}if(O)return h("abort"),Promise.reject(O);if(k)for(c in g[c]=v[c],f(y,S.outdatedModules),S.outdatedDependencies)Object.prototype.hasOwnProperty.call(S.outdatedDependencies,c)&&(d[c]||(d[c]=[]),f(d[c],S.outdatedDependencies[c]));E&&(f(y,[S.moduleId]),g[c]=b)}var C,P=[];for(r=0;r0;)if(c=N.pop(),u=A[c]){var M={},I=u.hot._disposeHandlers;for(i=0;i=0&&U.parents.splice(C,1))}}for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c]))for(L=d[c],i=0;i=0&&u.children.splice(C,1);for(c in h("apply"),o=m,g)Object.prototype.hasOwnProperty.call(g,c)&&(e[c]=g[c]);var D=null;for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c])){L=d[c];var q=[];for(r=0;r ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\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:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._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",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._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:m,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,a,s,u,c,f,p,h,d,v,m,y,w,x;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var _=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),_&&"paragraph"===_.type?_.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:b(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(u={type:"table",header:g(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(i[0].length),d=0;d ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),c={type:"list_start",ordered:y=(a=i[2]).length>1,start:y?+a:"",loose:!1},this.tokens.push(c),f=[],r=!1,m=(i=i[0].match(this.rules.item)).length,d=0;d1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=i.slice(d+1).join("\n")+e,d=m-1)),o=r||/\n\n(?!\s*$)/.test(u),d!==m-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),o&&(c.loose=!0),x=void 0,(w=/^\[[ xX]\] /.test(u))&&(x=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:w,checked:x,loose:o},f.push(p),this.tokens.push(p),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(m=f.length,d=0;d?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=p(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._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])?)+(?![-_])/,o.autolink=p(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=p(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=p(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=p(o.reflink).replace("label",o._label).getRegex(),o.normal=y({},o),o.pedantic=y({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=y({},o.normal,{escape:p(o.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=w(a[2],"()");if(c>-1){var f=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,f).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],o=t[3]):o="":o=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(a,{href:i.escapes(r),title:i.escapes(o)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),u+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),u+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),u+=this.renderer.codespan(l(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),u+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),u+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=l(this.mangle(a[1]))):n=l(a[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?u+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0]):u+=this.renderer.text(l(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=l(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=l(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),u+=this.renderer.link(r,null,n)}return u},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return r?'
    '+(n?e:l(e,!0))+"
    \n":"
    "+(n?e:l(e,!0))+"
    "},a.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,y({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop(),this.token},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function y(e){for(var t,n,r=1;r=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}m.exec=m,_.options=_.setOptions=function(e){return y(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=u,_.parser=u.parse,_.Renderer=a,_.TextRenderer=s,_.Lexer=r,_.lexer=r.lex,_.InlineLexer=i,_.inlineLexer=i.output,_.Slugger=c,_.parse=_,e.exports=_}(this||"undefined"!=typeof window&&window)}).call(this,n(10))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(329)),l=r(n(11)),f=function(e){function t(e,n,r){var i;if((0,o.default)(this,t),!(r&&n instanceof l.default))throw new Error("Invalid arguments for new ".concat(e));return(i=(0,a.default)(this,(0,s.default)(t).call(this))).name=e,i.message=r,i.source=n,i}return(0,u.default)(t,e),(0,i.default)(t,[{key:"makePretty",value:function(){this.source&&(this.nodeType=this.source.type,this.range=this.source.range,this.linePos=this.source.rangeAsLinePos,delete this.source)}}]),t}((0,c.default)(Error));t.YAMLError=f;var p=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLReferenceError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLReferenceError=p;var h=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSemanticError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSemanticError=h;var d=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSyntaxError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSyntaxError=d;var v=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLWarning",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLWarning=v},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=n(7),u=r(n(333)),c=r(n(12)),l=function(){function e(t,n,r){(0,i.default)(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return(0,a.default)(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var o=e.endOfWhiteSpace(t,n);return o>=t.length||"\n"===t[o]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==s.Char.DIRECTIVES_END&&r!==s.Char.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==r||a!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var o=e.endOfIndent(t,r);if(o>r+n)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1,!0)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var o=0,i=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":o=0,n+=1,a+="\n";break;case"\t":o<=r&&(i=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":o+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&o<=r&&(i=!0),{fold:a,offset:n,error:i}}}]),(0,a.default)(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===s.Char.COMMENT){var r=e.endOfLine(n,t+1),o=new c.default(t,r);return this.props.push(o),r}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(n){return n.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var o=t.slice(n.start,n.end);return e.addStringTerminator(t,n.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;tn);)++o;this.origStart=n+o;for(var i=o;o=r);)++o;return this.origEnd=r+o,i}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(32)),l=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).value=e,n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:(0,c.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}(r(n(33)).default);t.default=l},function(e,t,n){var r;try{r={clone:n(175),constant:n(113),each:n(233),filter:n(239),has:n(262),isArray:n(6),isEmpty:n(264),isFunction:n(44),isUndefined:n(265),keys:n(23),map:n(266),reduce:n(268),size:n(271),transform:n(277),union:n(278),values:n(297)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n,r,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(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"addToJSMap",value:function(e,t){var n=(0,f.default)(this.key,"",e);if(t instanceof Map){var r=(0,f.default)(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==(0,c.default)(t)?String(t):e instanceof h.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t)}(this.key,n,e);t[o]=(0,f.default)(this.value,o,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,o=this.value,i=r instanceof h.default&&r.comment,a=!r||i||r instanceof p.default,s=e,u=s.doc,f=s.indent;e=Object.assign({},e,{implicitKey:!a,indent:f+" "});var d=!1,v=u.schema.stringify(r,e,function(){return i=null},function(){return d=!0});if(v=(0,l.default)(v,e.indent,i),e.allNullValues)return this.comment?(v=(0,l.default)(v,e.indent,this.comment),t&&t()):d&&!i&&n&&n(),e.inFlow?v:"? ".concat(v);v=a?"? ".concat(v,"\n").concat(f,":"):"".concat(v,":"),this.comment&&(v=(0,l.default)(v,e.indent,this.comment),t&&t());var m="",y=null;if(o instanceof h.default){if(o.spaceBefore&&(m="\n"),o.commentBefore){var g=o.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));m+="\n".concat(g)}y=o.comment}else o&&"object"===(0,c.default)(o)&&(o=u.schema.createNode(o,!0));e.implicitKey=!1,d=!1;var b=u.schema.stringify(o,e,function(){return y=null},function(){return d=!0}),w=" ";if(m||this.comment)w="".concat(m,"\n").concat(e.indent);else if(!a&&o instanceof p.default){("["===b[0]||"{"===b[0])&&!b.includes("\n")||(w="\n".concat(e.indent))}return d&&!y&&n&&n(),(0,l.default)(v+w+b,e.indent,y)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new d.default(null)),this.key.commentBefore=e}}]),t}(h.default);t.default=v},function(e,t,n){var r=n(96),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(328);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(187),o=n(192);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(101),o=n(75),i=n(24);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(44),o=n(72);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var o=r(n(343)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(86)),l=r(n(5)),f=r(n(20)),p=r(n(25)),h=r(n(58)),d=r(n(33)),v=r(n(16)),m=r(n(13)),y=function(e){return null==e||"object"===(0,p.default)(e)&&e[Symbol.iterator]().next().done};t.isEmptyPath=y;var g=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,o=new Array(r),a=0;at.maxFlowStringSingleLineLength){m=w;var S=!0,O=!1,k=void 0;try{for(var E,A=_[Symbol.iterator]();!(S=(E=A.next()).done);S=!0){var T=E.value;m+=T?"\n ".concat(p).concat(T):"\n"}}catch(e){O=!0,k=e}finally{try{S||null==A.return||A.return()}finally{if(O)throw k}}m+="\n".concat(p).concat(x)}else m="".concat(w," ").concat(_.join(" ")," ").concat(x)}else{var j=b.map(a);m=j.shift();var C=!0,P=!1,R=void 0;try{for(var L,N=j[Symbol.iterator]();!(C=(L=N.next()).done);C=!0){var M=L.value;m+=M?"\n".concat(p).concat(M):"\n"}}catch(e){P=!0,R=e}finally{try{C||null==N.return||N.return()}finally{if(P)throw R}}}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),r&&r()):y&&o&&o(),m}}]),t}(d.default);t.default=g,(0,f.default)(g,"maxFlowStringSingleLineLength",60)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=h,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(26)),f=r(n(16)),p=r(n(13));function h(e,t){var n=t instanceof p.default?t.value:t,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u instanceof f.default){if(u.key===t||u.key===n)return u;if(u.key&&u.key.value===n)return u}}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){if(e?e instanceof f.default||(e=new f.default(e.key||e,e.value)):e=new f.default(e),h(this.items,e.key))throw new Error("Key ".concat(e.key," already set"));this.items.push(e)}},{key:"delete",value:function(e){var t=h(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=h(this.items,e),r=n&&n.value;return!t&&r instanceof p.default?r.value:r}},{key:"has",value:function(e){return!!h(this.items,e)}},{key:"set",value:function(e,t){var n=h(this.items,e);n?n.value=t:this.items.push(new f.default(e,t))}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var o=!0,i=!1,a=void 0;try{for(var s,u=this.items[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){s.value.addToJSMap(t,r)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return r}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);var o=!0,i=!1,a=void 0;try{for(var c,l=this.items[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var p=c.value;if(!(p instanceof f.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(p)," instead"))}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return(0,u.default)((0,s.default)(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}}]),t}(l.default);t.default=d},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(30),o=n(188),i=n(189),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(17).Symbol;e.exports=r},function(e,t,n){var r=n(219),o=n(69),i=n(220),a=n(110),s=n(221),u=n(29),c=n(97),l=c(r),f=c(o),p=c(i),h=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(function(t,n){return e(t,String(n),r)});if(t&&"function"==typeof t.toJSON){var o=r&&r.anchors&&r.anchors.find(function(e){return e.node===t});o&&(r.onCreate=function(e){o.res=e,delete r.onCreate});var i=t.toJSON(n,r);return o&&r.onCreate&&r.onCreate(i),i}return t}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1));t.default=function e(){(0,o.default)(this,e)}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(32)),f=r(n(26)),p=r(n(13));function h(e){var t=e instanceof p.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=h(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=h(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof p.default?r.value:r}}},{key:"has",value:function(e){var t=h(e);return"number"==typeof t&&t0;)i+="0"}return i},t.stringifyString=function(e,t,n,r){var f=s.strOptions.defaultType,p=t.implicitKey,h=t.inFlow,d=e,v=d.type,m=d.value;"string"!=typeof m&&(m=String(m),e=Object.assign({},e,{value:m}));var y=function(f){switch(f){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return l(e,t,n,r);case i.Type.QUOTE_DOUBLE:return u(m,t);case i.Type.QUOTE_SINGLE:return c(m,t);case i.Type.PLAIN:return function(e,t,n,r){var f=e.comment,p=e.type,h=e.value,d=t.actualString,v=t.implicitKey,m=t.indent,y=t.inFlow,g=t.tags;if(v&&/[\n[\]{},]/.test(h)||y&&/[[\]{},]/.test(h))return u(h,t);if(!h||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(h))return v||y||-1===h.indexOf("\n")?-1!==h.indexOf('"')&&-1===h.indexOf("'")?c(h,t):u(h,t):l(e,t,n,r);if(!v&&!y&&p!==i.Type.PLAIN&&-1!==h.indexOf("\n"))return l(e,t,n,r);var b=h.replace(/\n+/g,"$&\n".concat(m));if(d&&/^[\w.+-]+$/.test(b)&&"string"!=typeof g.resolveScalar(b).value)return u(h,t);var w=v?b:(0,a.default)(b,m,a.FOLD_FLOW,s.strOptions.fold);if(f&&!y&&(-1!==w.indexOf("\n")||-1!==f.indexOf("\n")))return n&&n(),(0,o.addCommentBefore)(w,m,f);return w}(e,t,n,r);default:return null}};v!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(m)?v=i.Type.QUOTE_DOUBLE:!p&&!h||v!==i.Type.BLOCK_FOLDED&&v!==i.Type.BLOCK_LITERAL||(v=i.Type.QUOTE_DOUBLE);var g=y(v);if(null===g&&null===(g=y(f)))throw new Error("Unsupported default string type ".concat(f));return g};var o=n(58),i=n(7),a=r(n(347)),s=n(40);function u(e,t){var n=t.implicitKey,r=t.indent,o=s.strOptions.doubleQuoted,i=o.jsonEncoding,u=o.minMultiLineLength,c=JSON.stringify(e);if(i)return c;for(var l="",f=0,p=0,h=c[p];h;h=c[++p])if(" "===h&&"\\"===c[p+1]&&"n"===c[p+2]&&(l+=c.slice(f,p)+"\\ ",f=p+=1,h="\\"),"\\"===h)switch(c[p+1]){case"u":l+=c.slice(f,p);var d=c.substr(p+2,4);switch(d){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===d.substr(0,2)?l+="\\x"+d.substr(2):l+=c.substr(p,6)}f=(p+=5)+1;break;case"n":if(n||'"'===c[p+2]||c.lengtht)return!0;if(n-(o=r+1)<=t)return!1}return!0}(l,s.strOptions.fold.lineWidth-f.length)),d=h?"|":">";if(!l)return d+"\n";var v="",m="";if(l=l.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?d+="-":l!==e&&t===e.length-1||(d+="+",r&&r()),m=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(d+=p);var t=e.match(/ +$/);return t?(v=e.slice(0,-t[0].length),t[0]):(v=e,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,"$&".concat(f))),v&&(v=v.replace(/\n+/g,"$&".concat(f))),o&&(d+=" #"+o.replace(/ ?[\r\n]+/g," "),n&&n()),!l)return"".concat(d).concat(p,"\n").concat(f).concat(m);if(h)return l=l.replace(/\n+/g,"$&".concat(f)),"".concat(d,"\n").concat(f).concat(v).concat(l).concat(m);l=l.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(f));var y=(0,a.default)("".concat(v).concat(l).concat(m),f,a.FOLD_BLOCK,s.strOptions.fold);return"".concat(d,"\n").concat(f).concat(y)}},function(e,t,n){"use strict";(function(e){ +!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!x[e]||!w[e])return;for(var n in w[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===g&&k()}(e,n),t&&t(e,n)};var n,r=!0,o="af7fa662e67345cb38e9",i=1e4,a={},s=[],u=[];function c(e){var t=A[e];if(!t)return T;var r=function(r){return t.hot.active?(A[r]?-1===A[r].parents.indexOf(e)&&A[r].parents.push(e):(s=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),s=[]),T(r)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return T[e]},set:function(t){T[e]=t}}};for(var i in T)Object.prototype.hasOwnProperty.call(T,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(r,i,o(i));return r.e=function(e){return"ready"===p&&h("prepare"),g++,T.e(e).then(t,function(e){throw t(),e});function t(){g--,"prepare"===p&&(b[e]||O(e),0===g&&0===y&&k())}},r.t=function(e,t){return 1&t&&(e=r(e)),T.t(e,-2&t)},r}function l(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:n!==e,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r=0&&t._disposeHandlers.splice(n,1)},check:S,apply:E,status:function(e){if(!e)return p;f.push(e)},addStatusHandler:function(e){f.push(e)},removeStatusHandler:function(e){var t=f.indexOf(e);t>=0&&f.splice(t,1)},data:a[e]};return n=void 0,t}var f=[],p="idle";function h(e){p=e;for(var t=0;t0;){var o=r.pop(),i=o.id,a=o.chain;if((u=A[i])&&!u.hot._selfAccepted){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 ")),S.type){case"self-declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of self decline: "+S.moduleId+j));break;case"declined":t.onDeclined&&t.onDeclined(S),t.ignoreDeclined||(O=new Error("Aborted because of declined dependency: "+S.moduleId+" in "+S.parentId+j));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(S),t.ignoreUnaccepted||(O=new Error("Aborted because "+c+" is not accepted"+j));break;case"accepted":t.onAccepted&&t.onAccepted(S),k=!0;break;case"disposed":t.onDisposed&&t.onDisposed(S),E=!0;break;default:throw new Error("Unexception type "+S.type)}if(O)return h("abort"),Promise.reject(O);if(k)for(c in g[c]=v[c],f(y,S.outdatedModules),S.outdatedDependencies)Object.prototype.hasOwnProperty.call(S.outdatedDependencies,c)&&(d[c]||(d[c]=[]),f(d[c],S.outdatedDependencies[c]));E&&(f(y,[S.moduleId]),g[c]=b)}var C,P=[];for(r=0;r0;)if(c=N.pop(),u=A[c]){var M={},I=u.hot._disposeHandlers;for(i=0;i=0&&U.parents.splice(C,1))}}for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c]))for(L=d[c],i=0;i=0&&u.children.splice(C,1);for(c in h("apply"),o=m,g)Object.prototype.hasOwnProperty.call(g,c)&&(e[c]=g[c]);var D=null;for(c in d)if(Object.prototype.hasOwnProperty.call(d,c)&&(u=A[c])){L=d[c];var q=[];for(r=0;r ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\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:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||_.defaults,this.rules=n.normal,this.options.pedantic?this.rules=n.pedantic:this.options.gfm&&(this.rules=n.gfm)}n._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,n.def=p(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d{1,9}\.)/,n.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,n.item=p(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=p(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._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",n._comment=//,n.html=p(n.html,"i").replace("comment",n._comment).replace("tag",n._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),n.paragraph=p(n._paragraph).replace("hr",n.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",n._tag).getRegex(),n.blockquote=p(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=y({},n),n.gfm=y({},n.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),n.pedantic=y({},n.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",n._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:m,paragraph:p(n.normal._paragraph).replace("hr",n.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",n.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,a,s,u,c,f,p,h,d,v,m,y,w,x;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var _=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),_&&"paragraph"===_.type?_.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:b(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(u={type:"table",header:g(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){for(e=e.substring(i[0].length),d=0;d ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),c={type:"list_start",ordered:y=(a=i[2]).length>1,start:y?+a:"",loose:!1},this.tokens.push(c),f=[],r=!1,m=(i=i[0].match(this.rules.item)).length,d=0;d1?1===s.length:s.length>1||this.options.smartLists&&s!==a)&&(e=i.slice(d+1).join("\n")+e,d=m-1)),o=r||/\n\n(?!\s*$)/.test(u),d!==m-1&&(r="\n"===u.charAt(u.length-1),o||(o=r)),o&&(c.loose=!0),x=void 0,(w=/^\[[ xX]\] /.test(u))&&(x=" "!==u[1],u=u.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:w,checked:x,loose:o},f.push(p),this.tokens.push(p),this.token(u,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(m=f.length,d=0;d?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",o.em=p(o.em).replace(/punctuation/g,o._punctuation).getRegex(),o._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._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])?)+(?![-_])/,o.autolink=p(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,o.tag=p(o.tag).replace("comment",n._comment).replace("attribute",o._attribute).getRegex(),o._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,o._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,o._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,o.link=p(o.link).replace("label",o._label).replace("href",o._href).replace("title",o._title).getRegex(),o.reflink=p(o.reflink).replace("label",o._label).getRegex(),o.normal=y({},o),o.pedantic=y({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",o._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",o._label).getRegex()}),o.gfm=y({},o.normal,{escape:p(o.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)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),u+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=w(a[2],"()");if(c>-1){var f=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,f).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(t=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r))?(r=t[1],o=t[3]):o="":o=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),u+=this.outputLink(a,{href:i.escapes(r),title:i.escapes(o)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){u+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,u+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),u+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),u+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),u+=this.renderer.codespan(l(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),u+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),u+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),r="@"===a[2]?"mailto:"+(n=l(this.mangle(a[1]))):n=l(a[1]),u+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?u+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):l(a[0]):a[0]):u+=this.renderer.text(l(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])r="mailto:"+(n=l(a[0]));else{do{s=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(s!==a[0]);n=l(a[0]),r="www."===a[1]?"http://"+n:n}e=e.substring(a[0].length),u+=this.renderer.link(r,null,n)}return u},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return r?'
    '+(n?e:l(e,!0))+"
    \n":"
    "+(n?e:l(e,!0))+"
    "},a.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return t&&(t=""+t+""),"\n\n"+e+"\n"+t+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r='
    "},a.prototype.image=function(e,t,n){if(null===(e=h(this.options.sanitize,this.options.baseUrl,e)))return n;var r=''+n+'":">"},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},u.parse=function(e,t){return new u(t).parse(e)},u.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,y({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},u.prototype.next=function(){return this.token=this.tokens.pop(),this.token},u.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},u.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},u.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,f(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},l.escapeTest=/[&<>"']/,l.escapeReplace=/[&<>"']/g,l.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},l.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,l.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var d={},v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function y(e){for(var t,n,r=1;r=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.lengthAn error occurred:

    "+l(e.message+"",!0)+"
    ";throw e}}m.exec=m,_.options=_.setOptions=function(e){return y(_.defaults,e),_},_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},_.defaults=_.getDefaults(),_.Parser=u,_.parser=u.parse,_.Renderer=a,_.TextRenderer=s,_.Lexer=r,_.lexer=r.lex,_.InlineLexer=i,_.inlineLexer=i.output,_.Slugger=c,_.parse=_,e.exports=_}(this||"undefined"!=typeof window&&window)}).call(this,n(10))},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Type=t.Char=void 0;t.Char={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."};t.Type={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"}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.YAMLWarning=t.YAMLSyntaxError=t.YAMLSemanticError=t.YAMLReferenceError=t.YAMLError=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(329)),l=r(n(11)),f=function(e){function t(e,n,r){var i;if((0,o.default)(this,t),!(r&&n instanceof l.default))throw new Error("Invalid arguments for new ".concat(e));return(i=(0,a.default)(this,(0,s.default)(t).call(this))).name=e,i.message=r,i.source=n,i}return(0,u.default)(t,e),(0,i.default)(t,[{key:"makePretty",value:function(){this.source&&(this.nodeType=this.source.type,this.range=this.source.range,this.linePos=this.source.rangeAsLinePos,delete this.source)}}]),t}((0,c.default)(Error));t.YAMLError=f;var p=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLReferenceError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLReferenceError=p;var h=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSemanticError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSemanticError=h;var d=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLSyntaxError",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLSyntaxError=d;var v=function(e){function t(e,n){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,"YAMLWarning",e,n))}return(0,u.default)(t,e),t}(f);t.YAMLWarning=v},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=n(8),u=r(n(333)),c=r(n(12)),l=function(){function e(t,n,r){(0,i.default)(this,e),this.context=r||null,this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return(0,a.default)(e,null,[{key:"addStringTerminator",value:function(t,n,r){if("\n"===r[r.length-1])return r;var o=e.endOfWhiteSpace(t,n);return o>=t.length||"\n"===t[o]?r+"\n":r}},{key:"atDocumentBoundary",value:function(e,t,n){var r=e[t];if(!r)return!0;var o=e[t-1];if(o&&"\n"!==o)return!1;if(n){if(r!==n)return!1}else if(r!==s.Char.DIRECTIVES_END&&r!==s.Char.DOCUMENT_END)return!1;var i=e[t+1],a=e[t+2];if(i!==r||a!==r)return!1;var u=e[t+3];return!u||"\n"===u||"\t"===u||" "===u}},{key:"endOfIdentifier",value:function(e,t){for(var n=e[t],r="<"===n,o=r?["\n","\t"," ",">"]:["\n","\t"," ","[","]","{","}",","];n&&-1===o.indexOf(n);)n=e[t+=1];return r&&">"===n&&(t+=1),t}},{key:"endOfIndent",value:function(e,t){for(var n=e[t];" "===n;)n=e[t+=1];return t}},{key:"endOfLine",value:function(e,t){for(var n=e[t];n&&"\n"!==n;)n=e[t+=1];return t}},{key:"endOfWhiteSpace",value:function(e,t){for(var n=e[t];"\t"===n||" "===n;)n=e[t+=1];return t}},{key:"startOfLine",value:function(e,t){var n=e[t-1];if("\n"===n)return t;for(;n&&"\n"!==n;)n=e[t-=1];return t+1}},{key:"endOfBlockIndent",value:function(t,n,r){var o=e.endOfIndent(t,r);if(o>r+n)return o;var i=e.endOfWhiteSpace(t,o),a=t[i];return a&&"\n"!==a?null:i}},{key:"atBlank",value:function(e,t,n){var r=e[t];return"\n"===r||"\t"===r||" "===r||n&&!r}},{key:"atCollectionItem",value:function(t,n){var r=t[n];return("?"===r||":"===r||"-"===r)&&e.atBlank(t,n+1,!0)}},{key:"nextNodeIsIndented",value:function(e,t,n){return!(!e||t<0)&&(t>0||n&&"-"===e)}},{key:"normalizeOffset",value:function(t,n){var r=t[n];return r?"\n"!==r&&"\n"===t[n-1]?n-1:e.endOfWhiteSpace(t,n):n}},{key:"foldNewline",value:function(t,n,r){for(var o=0,i=!1,a="",s=t[n+1];" "===s||"\t"===s||"\n"===s;){switch(s){case"\n":o=0,n+=1,a+="\n";break;case"\t":o<=r&&(i=!0),n=e.endOfWhiteSpace(t,n+2)-1;break;case" ":o+=1,n+=1}s=t[n+1]}return a||(a=" "),s&&o<=r&&(i=!0),{fold:a,offset:n,error:i}}}]),(0,a.default)(e,[{key:"getPropValue",value:function(e,t,n){if(!this.context)return null;var r=this.context.src,o=this.props[e];return o&&r[o.start]===t?r.slice(o.start+(n?1:0),o.end):null}},{key:"commentHasRequiredWhitespace",value:function(t){var n=this.context.src;if(this.header&&t===this.header.end)return!1;if(!this.valueRange)return!1;var r=this.valueRange.end;return t!==r||e.atBlank(n,r-1)}},{key:"parseComment",value:function(t){var n=this.context.src;if(n[t]===s.Char.COMMENT){var r=e.endOfLine(n,t+1),o=new c.default(t,r);return this.props.push(o),r}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(n){return n.setOrigRange(e,t)}),t}},{key:"toString",value:function(){var t=this.context.src,n=this.range,r=this.value;if(null!=r)return r;var o=t.slice(n.start,n.end);return e.addStringTerminator(t,n.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;tn);)++o;this.origStart=n+o;for(var i=o;o=r);)++o;return this.origEnd=r+o,i}}]),e}();t.default=a},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(32)),l=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).value=e,n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:(0,c.default)(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}(r(n(33)).default);t.default=l},function(e,t,n){var r;try{r={clone:n(175),constant:n(113),each:n(233),filter:n(239),has:n(262),isArray:n(7),isEmpty:n(264),isFunction:n(44),isUndefined:n(265),keys:n(23),map:n(266),reduce:n(268),size:n(271),transform:n(277),union:n(278),values:n(297)}}catch(e){}r||(r=window._),e.exports=r},function(e,t){var n,r,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(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&h())}function h(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f1)for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:null;return(0,o.default)(this,t),(n=(0,a.default)(this,(0,s.default)(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return(0,u.default)(t,e),(0,i.default)(t,[{key:"addToJSMap",value:function(e,t){var n=(0,f.default)(this.key,"",e);if(t instanceof Map){var r=(0,f.default)(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==(0,c.default)(t)?String(t):e instanceof h.default&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t)}(this.key,n,e);t[o]=(0,f.default)(this.value,o,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var r=this.key,o=this.value,i=r instanceof h.default&&r.comment,a=!r||i||r instanceof p.default,s=e,u=s.doc,f=s.indent;e=Object.assign({},e,{implicitKey:!a,indent:f+" "});var d=!1,v=u.schema.stringify(r,e,function(){return i=null},function(){return d=!0});if(v=(0,l.default)(v,e.indent,i),e.allNullValues)return this.comment?(v=(0,l.default)(v,e.indent,this.comment),t&&t()):d&&!i&&n&&n(),e.inFlow?v:"? ".concat(v);v=a?"? ".concat(v,"\n").concat(f,":"):"".concat(v,":"),this.comment&&(v=(0,l.default)(v,e.indent,this.comment),t&&t());var m="",y=null;if(o instanceof h.default){if(o.spaceBefore&&(m="\n"),o.commentBefore){var g=o.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));m+="\n".concat(g)}y=o.comment}else o&&"object"===(0,c.default)(o)&&(o=u.schema.createNode(o,!0));e.implicitKey=!1,d=!1;var b=u.schema.stringify(o,e,function(){return y=null},function(){return d=!0}),w=" ";if(m||this.comment)w="".concat(m,"\n").concat(e.indent);else if(!a&&o instanceof p.default){("["===b[0]||"{"===b[0])&&!b.includes("\n")||(w="\n".concat(e.indent))}return d&&!y&&n&&n(),(0,l.default)(v+w+b,e.indent,y)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new d.default(null)),this.key.commentBefore=e}}]),t}(h.default);t.default=v},function(e,t,n){var r=n(96),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(328);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(187),o=n(192);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){var r=n(101),o=n(75),i=n(24);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){var r=n(44),o=n(72);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(e){return n(e)}:e.exports=r=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":n(e)},r(t)}e.exports=r},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.isEmptyPath=void 0;var o=r(n(343)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(86)),l=r(n(5)),f=r(n(20)),p=r(n(25)),h=r(n(58)),d=r(n(33)),v=r(n(16)),m=r(n(13)),y=function(e){return null==e||"object"===(0,p.default)(e)&&e[Symbol.iterator]().next().done};t.isEmptyPath=y;var g=function(e){function t(){var e,n;(0,i.default)(this,t);for(var r=arguments.length,o=new Array(r),a=0;at.maxFlowStringSingleLineLength){m=w;var S=!0,O=!1,k=void 0;try{for(var E,A=_[Symbol.iterator]();!(S=(E=A.next()).done);S=!0){var T=E.value;m+=T?"\n ".concat(p).concat(T):"\n"}}catch(e){O=!0,k=e}finally{try{S||null==A.return||A.return()}finally{if(O)throw k}}m+="\n".concat(p).concat(x)}else m="".concat(w," ").concat(_.join(" ")," ").concat(x)}else{var j=b.map(a);m=j.shift();var C=!0,P=!1,R=void 0;try{for(var L,N=j[Symbol.iterator]();!(C=(L=N.next()).done);C=!0){var M=L.value;m+=M?"\n".concat(p).concat(M):"\n"}}catch(e){P=!0,R=e}finally{try{C||null==N.return||N.return()}finally{if(P)throw R}}}return this.comment?(m+="\n"+this.comment.replace(/^/gm,"".concat(p,"#")),r&&r()):y&&o&&o(),m}}]),t}(d.default);t.default=g,(0,f.default)(g,"maxFlowStringSingleLineLength",60)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.findPair=h,t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(26)),f=r(n(16)),p=r(n(13));function h(e,t){var n=t instanceof p.default?t.value:t,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(u instanceof f.default){if(u.key===t||u.key===n)return u;if(u.key&&u.key.value===n)return u}}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){if(e?e instanceof f.default||(e=new f.default(e.key||e,e.value)):e=new f.default(e),h(this.items,e.key))throw new Error("Key ".concat(e.key," already set"));this.items.push(e)}},{key:"delete",value:function(e){var t=h(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=h(this.items,e),r=n&&n.value;return!t&&r instanceof p.default?r.value:r}},{key:"has",value:function(e){return!!h(this.items,e)}},{key:"set",value:function(e,t){var n=h(this.items,e);n?n.value=t:this.items.push(new f.default(e,t))}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var o=!0,i=!1,a=void 0;try{for(var s,u=this.items[Symbol.iterator]();!(o=(s=u.next()).done);o=!0){s.value.addToJSMap(t,r)}}catch(e){i=!0,a=e}finally{try{o||null==u.return||u.return()}finally{if(i)throw a}}return r}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);var o=!0,i=!1,a=void 0;try{for(var c,l=this.items[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var p=c.value;if(!(p instanceof f.default))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(p)," instead"))}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return(0,u.default)((0,s.default)(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}}]),t}(l.default);t.default=d},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(30),o=n(188),i=n(189),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(17).Symbol;e.exports=r},function(e,t,n){var r=n(219),o=n(69),i=n(220),a=n(110),s=n(221),u=n(29),c=n(97),l=c(r),f=c(o),p=c(i),h=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,n,r){if(Array.isArray(t))return t.map(function(t,n){return e(t,String(n),r)});if(t&&"function"==typeof t.toJSON){var o=r&&r.anchors&&r.anchors.find(function(e){return e.node===t});o&&(r.onCreate=function(e){o.res=e,delete r.onCreate});var i=t.toJSON(n,r);return o&&r.onCreate&&r.onCreate(i),i}return t}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1));t.default=function e(){(0,o.default)(this,e)}},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=r(n(32)),f=r(n(26)),p=r(n(13));function h(e){var t=e instanceof p.default?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var d=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,c.default)(t,e),(0,i.default)(t,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=h(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=h(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof p.default?r.value:r}}},{key:"has",value:function(e){var t=h(e);return"number"==typeof t&&t0;)i+="0"}return i},t.stringifyString=function(e,t,n,r){var f=s.strOptions.defaultType,p=t.implicitKey,h=t.inFlow,d=e,v=d.type,m=d.value;"string"!=typeof m&&(m=String(m),e=Object.assign({},e,{value:m}));var y=function(f){switch(f){case i.Type.BLOCK_FOLDED:case i.Type.BLOCK_LITERAL:return l(e,t,n,r);case i.Type.QUOTE_DOUBLE:return u(m,t);case i.Type.QUOTE_SINGLE:return c(m,t);case i.Type.PLAIN:return function(e,t,n,r){var f=e.comment,p=e.type,h=e.value,d=t.actualString,v=t.implicitKey,m=t.indent,y=t.inFlow,g=t.tags;if(v&&/[\n[\]{},]/.test(h)||y&&/[[\]{},]/.test(h))return u(h,t);if(!h||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(h))return v||y||-1===h.indexOf("\n")?-1!==h.indexOf('"')&&-1===h.indexOf("'")?c(h,t):u(h,t):l(e,t,n,r);if(!v&&!y&&p!==i.Type.PLAIN&&-1!==h.indexOf("\n"))return l(e,t,n,r);var b=h.replace(/\n+/g,"$&\n".concat(m));if(d&&/^[\w.+-]+$/.test(b)&&"string"!=typeof g.resolveScalar(b).value)return u(h,t);var w=v?b:(0,a.default)(b,m,a.FOLD_FLOW,s.strOptions.fold);if(f&&!y&&(-1!==w.indexOf("\n")||-1!==f.indexOf("\n")))return n&&n(),(0,o.addCommentBefore)(w,m,f);return w}(e,t,n,r);default:return null}};v!==i.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(m)?v=i.Type.QUOTE_DOUBLE:!p&&!h||v!==i.Type.BLOCK_FOLDED&&v!==i.Type.BLOCK_LITERAL||(v=i.Type.QUOTE_DOUBLE);var g=y(v);if(null===g&&null===(g=y(f)))throw new Error("Unsupported default string type ".concat(f));return g};var o=n(58),i=n(8),a=r(n(347)),s=n(40);function u(e,t){var n=t.implicitKey,r=t.indent,o=s.strOptions.doubleQuoted,i=o.jsonEncoding,u=o.minMultiLineLength,c=JSON.stringify(e);if(i)return c;for(var l="",f=0,p=0,h=c[p];h;h=c[++p])if(" "===h&&"\\"===c[p+1]&&"n"===c[p+2]&&(l+=c.slice(f,p)+"\\ ",f=p+=1,h="\\"),"\\"===h)switch(c[p+1]){case"u":l+=c.slice(f,p);var d=c.substr(p+2,4);switch(d){case"0000":l+="\\0";break;case"0007":l+="\\a";break;case"000b":l+="\\v";break;case"001b":l+="\\e";break;case"0085":l+="\\N";break;case"00a0":l+="\\_";break;case"2028":l+="\\L";break;case"2029":l+="\\P";break;default:"00"===d.substr(0,2)?l+="\\x"+d.substr(2):l+=c.substr(p,6)}f=(p+=5)+1;break;case"n":if(n||'"'===c[p+2]||c.lengtht)return!0;if(n-(o=r+1)<=t)return!1}return!0}(l,s.strOptions.fold.lineWidth-f.length)),d=h?"|":">";if(!l)return d+"\n";var v="",m="";if(l=l.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?d+="-":l!==e&&t===e.length-1||(d+="+",r&&r()),m=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(d+=p);var t=e.match(/ +$/);return t?(v=e.slice(0,-t[0].length),t[0]):(v=e,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,"$&".concat(f))),v&&(v=v.replace(/\n+/g,"$&".concat(f))),o&&(d+=" #"+o.replace(/ ?[\r\n]+/g," "),n&&n()),!l)return"".concat(d).concat(p,"\n").concat(f).concat(m);if(h)return l=l.replace(/\n+/g,"$&".concat(f)),"".concat(d,"\n").concat(f).concat(v).concat(l).concat(m);l=l.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(f));var y=(0,a.default)("".concat(v).concat(l).concat(m),f,a.FOLD_BLOCK,s.strOptions.fold);return"".concat(d,"\n").concat(f).concat(y)}},function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ -var r=n(352),o=n(353),i=n(148);function a(){return u.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 d(e,t){if(u.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return F(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.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 N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-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+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(10))},function(e,t,n){"use strict";var r=n(63),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(41);i.inherits=n(28);var a=n(156),s=n(160);i.inherits(f,a);for(var u=o(s.prototype),c=0;co&&(o=l)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return o}if(t instanceof v.default){var f=e(t.key,n),p=e(t.value,n);return Math.max(f,p)}return 1},y=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,a.default)(t).call(this))).source=e,n.type=l.Type.ALIAS,n}return(0,u.default)(t,e),(0,s.default)(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,u=Object.keys(o).find(function(e){return o[e]===r});if(!u&&s&&(u=i.anchors.getName(r)||i.anchors.newName()),u)return"*".concat(u).concat(a?" ":"");var c=i.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(c," [").concat(n,"]"))}}]),(0,s.default)(t,[{key:"toJSON",value:function(e,t){var n=this;if(!t)return(0,p.default)(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.find(function(e){return e.node===n.source});if(!i||!i.res){var a="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,a):new ReferenceError(a)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=m(this.source,r)),i.count*i.aliasCount>o)){var s="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,s):new ReferenceError(s)}return i.res}},{key:"toString",value:function(e){return t.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}(d.default);t.default=y,(0,c.default)(y,"default",!0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;var r=n(35),o=n(40),i=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.resolveString=i;var a={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:i,stringify:function(e,t,n,o){return t=Object.assign({actualString:!0},t),(0,r.stringifyString)(e,t,n,o)},options:o.strOptions};t.default=a},function(e,t,n){"use strict";function r(e){return e=(e=e.split("~1").join("/")).split("~0").join("~")}e.exports={jptr:function(e,t,n){if(void 0===e)return!1;if(!t||"#"===t)return void 0!==n?n:e;if(t.indexOf("#")>=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]=n),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[t]]=n),e=e[o[t]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?n:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,t,n){"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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map(r=>({[r]:e(t[r],n)})))}}},function(e,t,n){"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,n,r,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,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;au){var c=s;s=u,u=c}return s+a+u+a+(r.isUndefined(i)?o:i)}function f(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function p(e,t){return l(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},s.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,function(e){n.length>1?o.setNode(e,t):o.setNode(e)}),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var o={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=f(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.v===t}):o}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.w===t}):o}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(42),o=n(182),i=n(183),a=n(184),s=n(185),u=n(186);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(21)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(193),o=n(200),i=n(202),a=n(203),s=n(204);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(96),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.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,n(38)(e))},function(e,t,n){var r=n(50),o=n(210),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(105),o=n(106),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-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=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(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(r(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,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(15))},function(e,t,n){"use strict";var r=n(322),o=n(323);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]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(133);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?L+="x":L+=R[N];if(!L.match(h)){var I=C.slice(0,A),U=C.slice(A+1),D=R.match(d);D&&(I.push(D[1]),U.unshift(D[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[_])for(A=0,P=l.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],E=(n.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,A=0,T=S.length;T>=0;T--)"."===(k=S[T])?S.splice(T,1):".."===k?(S.splice(T,1),A++):A&&(S.splice(T,1),A--);if(!x&&!_)for(;A--;A)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var j,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(n.hostname=n.host=C?"":S.length?S.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(x=x||n.host&&S.length)&&!C&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},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){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(7),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,c.Type.COMMENT))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new f.default(t,n),n}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(90)),i=r(n(91)),a=r(n(60)),s=[o.default,i.default,a.default];t.default=s},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(55)),a=r(n(27)),s=r(n(144));var u={createNode:function(e,t,n){var r=new a.default;if(t instanceof Map){var s=!0,u=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=(0,i.default)(l.value,2),h=p[0],d=p[1];r.items.push(e.createPair(h,d,n))}}catch(e){u=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(u)throw c}}}else if(t&&"object"===(0,o.default)(t))for(var v=0,m=Object.keys(t);v1){throw new o.YAMLSemanticError(t,"Each pair must have its own sequence indicator")}var c=u.items[0]||new a.default;u.commentBefore&&(c.commentBefore=c.commentBefore?"".concat(u.commentBefore,"\n").concat(c.commentBefore):u.commentBefore),u.comment&&(c.comment=c.comment?"".concat(u.comment,"\n").concat(c.comment):u.comment),u=c}n.items[r]=u instanceof a.default?u:new a.default(u)}}return n}function l(e,t,n){var r=new u.default;r.tag="tag:yaml.org,2002:pairs";var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=void 0,p=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));f=l[0],p=l[1]}else if(l&&l instanceof Object){var h=Object.keys(l);if(1!==h.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));p=l[f=h[0]]}else f=l;var d=e.createPair(f,p,n);r.items.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}var f={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:c,createNode:l};t.default=f},function(e,t,n){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},function(e,t,n){"use strict";const r=n(61).jpescape;e.exports={recurse:function e(t,n,o){if(n||(n={depth:0}),n.depth||(n=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},n)),"object"!=typeof t)return;let i=n.path;for(let a in t){if(n.key=a,n.path=n.path+"/"+encodeURIComponent(r(a)),n.identityPath=n.seen.get(t[a]),n.identity=void 0!==n.identityPath,o(t,a,n),"object"==typeof t[a]&&!n.identity){n.identityDetection&&!Array.isArray(t[a])&&null!==t[a]&&n.seen.set(t[a],n.path);let r={};r.parent=t,r.path=n.path,r.depth=n.depth?n.depth+1:1,r.pkey=a,r.payload=n.payload,r.seen=n.seen,r.identity=!1,r.identityDetection=n.identityDetection,e(t[a],r,o)}n.path=i}}}},function(e,t,n){"use strict";const r=n(134),o=n(85),i=(n(84),n(324)),a=n(135),s=n(136),u=n(61),c=u.jptr,l=n(93).isRef,f=n(62).clone,p=n(62).circularClone,h=n(94).recurse,d=n(354),v=n(357),m=n(152),y=n(358).statusCodes,g=n(371).version,b="3.0.0";let w;class x extends Error{constructor(e){super(e),this.name="S2OError"}}function _(e,t){let n=new x(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function S(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:_(e,n)}function O(e,t){v.walkSchema(e,{},{},function(e,n,r){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of m.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&S("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else _("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"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)}(e,n,t)})}function k(e,t,n){let r=n.payload.options;if(l(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.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 n=f(u.jptr(r.openapi,e[t]));if(!1===n)S("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t],a="schemas",s=(i=(i=(i=(i=i.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(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")&&O(n,r),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&n.name&&n.name===m.sanitise(n.name)&&(i=encodeURIComponent(n.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="");u.jptr(r.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let c="#/components/"+a+"/"+i+s,l="";"examples"===a&&(n={value:n},l="/value"),u.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(i&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:o},e]}):n.parent[n.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=m.sanitise(n);n!=r&&(e[t][r]=e[t][n],delete e[t][n])}}function A(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?delete e.name:_("(Patchable) oauth2 securitySchemes should not have name property",t))}}function T(e){return e&&!e["x-s2o-delete"]}function j(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&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&S("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),void 0!==e.collectionFormat&&("array"!=e.type&&(t.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to header.type array",t)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&S("collectionFormat:ssv is no longer supported for headers",e,t),"pipes"===e.collectionFormat&&S("collectionFormat:pipes is no longer supported for headers",e,t),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),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 C(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&&S("Definition used as parameter",e,t)}function P(e,t,n,r,o,i,a){let s,u={},l=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return _("(Patchable) operation.consumes must be an array",a);t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let p=((t?t.consumes:null)||i.consumes||[]).filter(m.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){C(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=i.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=c(i,e.$ref);!n&&t.startsWith("#/")?S("Could not resolve reference "+t,e,a):n&&(e=n)}}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?e.type="string":_("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(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=c(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(a.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":S("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":S("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"object"!=e.type&&"body"!=e.type&&"formData"!=e.in)if(e.items&&e.schema)S("parameter has array,items and schema",e,a);else{e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,function(n,r,o){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&S("Nested collectionFormats are not supported",e,a),delete n[r])}));for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(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){l=!1,u.content={};let t="application/x-www-form-urlencoded";if(p.length&&p.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),u.content[t]={},e.schema)u.content[t].schema=e.schema,e.schema.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{u.content[t].schema={},u.content[t].schema.type="object",u.content[t].schema.properties={},u.content[t].schema.properties[e.name]={};let n=u.content[t].schema,r=u.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of m.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name)),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),R(e,r)}}else e&&"file"===e.type&&(e.required&&(u.required=e.required),u.content={},u.content["application/octet-stream"]={},u.content["application/octet-stream"].schema={},u.content["application/octet-stream"].schema.type="string",u.content["application/octet-stream"].schema.format="binary",R(e,u));if(e&&"body"===e.in){u.content={},e.name&&(u["x-s2o-name"]=(t&&t.operationId?m.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(u.description=e.description),e.required&&(u.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),p.length||p.push("application/json");for(let t of p)u.content[t]={},u.content[t].schema=f(e.schema||{}),O(u.content[t].schema,a);R(e,u)}if(Object.keys(u).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&l){t.requestBody["x-s2o-overloaded"]=!0,S("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(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&&u.content["multipart/form-data"]&&u.content["multipart/form-data"].schema&&u.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,u.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(u.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&&u.content["application/x-www-form-urlencoded"]&&u.content["application/x-www-form-urlencoded"].schema&&u.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,u.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(u.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,u),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?e.required=!0:_("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function R(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function L(e,t,n,r,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?S("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)||(e.description=y[e]||""):_("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(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/","")))),n&&n.produces&&"string"==typeof n.produces){if(!o.patch)return _("(Patchable) operation.produces must be an array",o);n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(m.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=f(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].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?delete e.headers[t]:_('(Patchable) "Status Code" is not a valid header',o):j(e.headers[t],o)}}function N(e,t,n,r,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 l=s[e];if(l&&l.parameters&&Array.isArray(l.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(C(t,n),t=c(i,t.$ref)),l.parameters.find(function(e,n,r){return e.name===t.name&&e.in===t.in})||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(l=P(t,l,s,e,a,i,n),n.rbname&&""===l[n.rbname]&&delete l[n.rbname])}for(let t of l.parameters)l=P(t,l,s,e,e+":"+a,i,n);n.rbname&&""===l[n.rbname]&&delete l[n.rbname],n.debug||(l.parameters=l.parameters.filter(T))}if(l&&l.security&&E(l.security),"object"==typeof l){if(!l.responses){let e={description:"Default response"};l.responses={default:e}}for(let e in l.responses){L(l.responses[e],0,l,i,n)}}if(l&&l["x-servers"]&&Array.isArray(l["x-servers"]))l.servers=l["x-servers"],delete l["x-servers"];else if(l&&l.schemes&&l.schemes.length)for(let e of l.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(l.servers||(l.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let n=f(t),r=o.parse(n.url);r.protocol=e,n.url=r.format(),l.servers.push(n)}if(n.debug&&(l["x-s2o-consumes"]=l.consumes||[],l["x-s2o-produces"]=l.produces||[]),l){if(delete l.consumes,delete l.produces,delete l.schemes,l["x-ms-examples"]){for(let e in l["x-ms-examples"]){let t=l["x-ms-examples"][e],n=m.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(l.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=u.jptr(i,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in l.responses[r].headers)if(t===e){l.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:f(t.responses[r].body)},l.responses[r]&&l.responses[r].content))for(let t in l.responses[r].content){let o=l.responses[r].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+n}}}}delete l["x-ms-examples"]}if(l.parameters&&0===l.parameters.length&&delete l.parameters,l.requestBody){let n=l.operationId?m.sanitiseAll(l.operationId):m.sanitiseAll(e+a).toCamelCase(),o=m.sanitise(l.requestBody["x-s2o-name"]||n||"");delete l.requestBody["x-s2o-name"];let i=JSON.stringify(l.requestBody),s=m.hash(i);if(!r[s]){let e={};e.name=o,e.body=l.requestBody,e.refs=[],r[s]=e}let c="#/"+t+"/"+encodeURIComponent(u.jpescape(a))+"/"+e+"/requestBody";r[s].refs.push(c)}}}if(s&&s.parameters){for(let e in s.parameters){P(s.parameters[e],null,s,null,a,i,n)}!n.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(T))}}}function M(e,t){let n={};w={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=m.sanitise(n);n!=r&&(e.components.securitySchemes[r]&&_("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),A(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=m.sanitiseAll(n),o="";if(n!=r){for(;e.components.schemas[r+o];)o=o?++o:2;e.components.schemas[r+o]=e.components.schemas[n],delete e.components.schemas[n]}w.schemas[n]=r+o,O(e.components.schemas[r+o],t)}t.refmap={},h(e,{payload:{options:t}},k),function(e,t){for(let n in t.refmap)u.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=m.sanitise(n);n!=r&&(e.components.parameters[r]&&_("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),P(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=m.sanitise(n);n!=r&&(e.components.responses[r]&&_("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let o=e.components.responses[r];if(L(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?delete o.headers[e]:_('(Patchable) "Status Code" is not a valid header',t):j(o.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],o=JSON.stringify(r),i=m.hash(o),a={};a.name=t,a.body=r,a.refs=[],n[i]=a}if(N(e.paths,"paths",t,n,e),e["x-ms-paths"]&&N(e["x-ms-paths"],"x-ms-paths",t,n,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 r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in n){let i=n[o];if(i.refs.length>1){let n="";for(i.name||(i.name="requestBody",n=t++);r.indexOf(i.name+n)>=0;)n=n?++n:2;i.name=i.name+n,r.push(i.name),e.components.requestBodies[i.name]=f(i.body);for(let t in i.refs){let n={};n.$ref="#/components/requestBodies/"+i.name,u.jptr(e,i.refs[t],n)}}}}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 I(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,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}}),e):e}function U(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new x("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new x("(Patchable) info.title cannot be null"));e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new x("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new x("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new x("(Patchable) info should not have logo property"));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 n(new x("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(o.URL&&t.whatwg)try{o.URL.parse(e.info.termsOfService)}catch(r){if(!t.patch)return n(new x("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function D(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new x("(Patchable) paths object is mandatory"));e.paths={}}}function q(e,t,n){return i(n,new Promise(function(n,r){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=n,t.promise.reject=r,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=p(e),U(t.openapi,t,r),D(t.openapi,t,r),void d.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)});if(!e.swagger||"2.0"!=e.swagger)return r(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:b,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=g,o["x-origin"].push(n)}if(delete(o=Object.assign(o,p(e))).swagger,h(o,{},function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={};n.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),I(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,I(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"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};for(let e in t.parameters){let r=t.parameters[e];r.$ref&&(r=f(c(o,r.$ref))),e.startsWith("x-")||(delete r.required,delete r.type,delete r.in,void 0===r.default&&(r.enum?r.default=r.enum[0]:r.default=""),n.variables[r.name]=r,delete r.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach(e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))}),delete o["x-ms-parameterized-host"]}U(o,t,r),D(o,t,r),"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,d.optionalResolve(t).then(function(){M(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)})}))}function B(e,t,n){return i(n,new Promise(function(n,r){let o=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){try{o=s.parse(e,{schema:"core"}),t.sourceYaml=!0,t.text=e}catch(e){}}o?q(o,t).then(e=>n(e)).catch(e=>r(e)):r(new x("Could not parse string"))}))}e.exports={S2OError:x,targetVersion:b,convert:q,convertObj:q,convertUrl:function(e,t,n){return i(n,new Promise(function(n,r){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),a(e,{agent:t.agent}).then(function(e){if(200!==e.status)throw new x(`Received status code ${e.status}`);return e.text()}).then(function(e){B(e,t).then(e=>n(e)).catch(e=>r(e))}).catch(function(e){r(e)})}))},convertStr:B,convertFile:function(e,t,n){return i(n,new Promise(function(n,o){r.readFile(e,t.encoding||"utf8",function(r,i){r?o(r):(t.sourceFile=e,B(i,t).then(e=>n(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,n){return i(n,new Promise(function(n,r){let o="";e.on("data",function(e){o+=e}).on("end",function(){B(o,t).then(e=>n(e)).catch(e=>r(e))})}))}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(10))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(99),o=n(68),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(100);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(21),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(206),o=n(48),i=n(6),a=n(39),s=n(102),u=n(49),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),h=n||l||f||p,d=h?r(e.length,String):[],v=d.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||d.push(m);return d}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&ep))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,m=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(14);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority=0;--o){var i=t.items[o];if(i.type===l.Type.COMMENT){var a=i.context,s=a.indent,u=a.lineStart;if(s>0&&i.range.start>=u+s)break;r=o}else{if(i.type!==l.Type.BLANK_LINE)break;r=o}}if(-1===r)return null;for(var c=t.items.splice(r,n-r),f=c[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return c}var y=function(e){function t(e){var n;(0,o.default)(this,t),n=(0,i.default)(this,(0,a.default)(t).call(this,e.type===l.Type.SEQ_ITEM?l.Type.SEQ:l.Type.MAP));for(var r=e.props.length-1;r>=0;--r)if(e.props[r].start=o+r||("#"===i||"\n"===i)&&t.nextContentHasIndent(e,n,r))}}]),(0,u.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.parseNode,o=e.src,i=d.default.startOfLine(o,n),a=this.items[0];a.context.parent=this,this.valueRange=v.default.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,u=n,c=o[u=d.default.normalizeOffset(o,u)],p=d.default.endOfWhiteSpace(o,i)===u,y=!1;c;){for(;"\n"===c||"#"===c;){if(p&&"\n"===c&&!y){var g=new f.default;if(u=g.parse({src:o},u),this.valueRange.end=u,u>=o.length){c=null;break}this.items.push(g),u-=1}else if("#"===c){if(u=o.length){c=null;break}}if(i=u+1,u=d.default.endOfIndent(o,i),d.default.atBlank(o,u)){var w=d.default.endOfWhiteSpace(o,u),x=o[w];x&&"\n"!==x&&"#"!==x||(u=w)}c=o[u],p=!0}if(!c)break;if(u!==i+s&&(p||":"!==c)){i>n&&(u=i);break}if(a.type===l.Type.SEQ_ITEM!=("-"===c)){var _=!0;if("-"===c){var S=o[u+1];_=!S||"\n"===S||"\t"===S||" "===S}if(_){i>n&&(u=i);break}}var O=r({atLineStart:p,inCollection:!0,indent:s,lineStart:i,parent:this},u);if(!O)return u;if(this.items.push(O),this.valueRange.end=O.valueRange.end,c=o[u=d.default.normalizeOffset(o,O.range.end)],p=!1,y=O.includesTrailingLines,c){for(var k=u-1,E=o[k];" "===E||"\t"===E;)E=o[--k];"\n"===E&&(i=k+1,p=!0)}var A=m(O);A&&Array.prototype.push.apply(this.items,A)}return u}},{key:"setOrigRanges",value:function(e,n){return n=(0,s.default)((0,a.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){n=t.setOrigRanges(e,n)}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i0}}]),t}(d.default);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(7),f=n(9),p=r(n(56)),h=r(n(11)),d=r(n(12)),v=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).node=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.atLineStart,i=e.lineStart;o||this.type!==l.Type.SEQ_ITEM||(this.error=new f.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=h.default.endOfWhiteSpace(r,t+1),u=r[s];"\n"===u||"#"===u;){if("#"===u){var c=h.default.endOfLine(r,s+1);this.props.push(new d.default(s,c)),s=c}else{if(o=!0,i=s+1,"\n"===r[h.default.endOfWhiteSpace(r,i)]){var v=new p.default;i=v.parse({src:r},i),(e.parent.items||e.parent.contents).push(v)}s=h.default.endOfIndent(r,i)}u=r[s]}h.default.nextNodeIsIndented(u,s-(i+a),this.type!==l.Type.SEQ_ITEM)?(this.node=n({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s),this.node&&(s=this.node.range.end)):u&&i>t+1&&(s=i-1);var m=this.node?this.node.valueRange.end:s;return this.valueRange=new d.default(t,m),s}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.node?this.node.setOrigRanges(e,n):n}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return h.default.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),t}(h.default);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseBlockValue",value:function(e){for(var n=this.context,r=n.indent,o=n.inFlow,i=n.src,a=e,s=e,u=i[a];"\n"===u&&!c.default.atDocumentBoundary(i,a+1);u=i[a]){var l=c.default.endOfBlockIndent(i,r,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=t.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,n){this.context=e;var r=e.inFlow,o=e.src,i=n,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=t.endOfLine(o,n,r)),this.valueRange=new l.default(n,i),i=c.default.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,n=e.end,r=this.context.src,o=r[n-1];tl?r.slice(l,a+1):s)}else i+=s}return i}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var i=e[o+1];if(":"===r&&("\n"===i||"\t"===i||" "===i||n&&","===i))break;if((" "===r||"\t"===r)&&"#"===i)break;o+=1,r=i}return o}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(19)),l=r(n(5)),f=r(n(27)),p=r(n(16)),h=r(n(13)),d=r(n(34)),v="<<";t.MERGE_KEY=v;var m=function(e){function t(e){var n;if((0,i.default)(this,t),e instanceof p.default){var r=e.value;r instanceof d.default||((r=new d.default).items.push(e.value),r.range=e.value.range),(n=(0,s.default)(this,(0,u.default)(t).call(this,e.key,r))).range=e.range}else n=(0,s.default)(this,(0,u.default)(t).call(this,new h.default(v),new d.default));return n.type="MERGE_PAIR",(0,s.default)(n)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"addToJSMap",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=this.value.items[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value.source;if(!(u instanceof f.default))throw new Error("Merge sources must be maps");var c=u.toJSON(null,e,Map),l=!0,p=!1,h=void 0;try{for(var d,v=c[Symbol.iterator]();!(l=(d=v.next()).done);l=!0){var m=(0,o.default)(d.value,2),y=m[0],g=m[1];t instanceof Map?t.has(y)||t.set(y,g):t instanceof Set?t.add(y):t.hasOwnProperty(y)||(t[y]=g)}}catch(e){p=!0,h=e}finally{try{l||null==v.return||v.return()}finally{if(p)throw h}}}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return t}},{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}]),t}(p.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=r(n(20)),u=n(346),c=n(7),l=n(9),f=n(35),p=n(348),h=n(60),d=r(n(59)),v=r(n(26)),m=r(n(33)),y=r(n(16)),g=r(n(13)),b=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.tags;if((0,i.default)(this,e),this.merge=!!r,this.name=o,this.tags=p.schemas[o.replace(/\W/g,"")],!this.tags){var s=Object.keys(p.schemas).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown schema "'.concat(o,'"; use one of ').concat(s))}if(!n&&a&&(n=a,(0,u.warnOptionDeprecation)("tags","customTags")),Array.isArray(n)){var c=!0,l=!1,f=void 0;try{for(var h,d=n[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;this.tags=this.tags.concat(v)}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}}else"function"==typeof n&&(this.tags=n(this.tags.slice()));for(var m=0;m0&&(t.resolved=this.resolveScalar(a,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(t,n,r){var o=this.resolveNode(t,n,r);if(n.hasOwnProperty("resolved"))return o;var i,a=(i=n.type)===c.Type.FLOW_MAP||i===c.Type.MAP?e.defaultTags.MAP:function(e){var t=e.type;return t===c.Type.FLOW_SEQ||t===c.Type.SEQ}(n)?e.defaultTags.SEQ:e.defaultTags.STR;if(a){t.warnings.push(new l.YAMLWarning(n,"The tag ".concat(r," is unavailable, falling back to ").concat(a)));var s=this.resolveNode(t,n,a);return s.tag=r,s}return t.errors.push(new l.YAMLReferenceError(n,"The tag ".concat(r," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof d.default)return d.default;if(e.tag){var t=this.tags.filter(function(t){return t.tag===e.tag});if(t.length>0)return t.find(function(t){return t.format===e.format})||t[0]}var n,r;if(e instanceof g.default){r=e.value;var i=this.tags.filter(function(e){return e.identify&&e.identify(r)||e.class&&r instanceof e.class});n=i.find(function(t){return t.format===e.format})||i.find(function(e){return!e.format})}else r=e,n=this.tags.find(function(e){return e.nodeClass&&r instanceof e.nodeClass});if(!n){var a=r&&r.constructor?r.constructor.name:(0,o.default)(r);throw new Error("Tag not resolved for ".concat(a," value"))}return n}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,i=[],a=o.anchors.getName(e);return a&&(r[a]=e,i.push("&".concat(a))),e.tag?i.push(o.stringifyTag(e.tag)):t.default||i.push(o.stringifyTag(t.tag)),i.join(" ")}},{key:"stringify",value:function(e,t,n,r){var o;if(!(e instanceof m.default)){var i={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:[]};e=this.createNode(e,!0,null,i);var a=t.doc.anchors,s=!0,u=!1,c=void 0;try{for(var l,p=i.aliasNodes[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){var h=l.value;h.source=h.source.node;var d=a.getName(h.source);d||(d=a.newName(),a.map[d]=h.source)}}catch(e){u=!0,c=e}finally{try{s||null==p.return||p.return()}finally{if(u)throw c}}}if(t.tags=this,e instanceof y.default)return e.toString(t,n,r);o||(o=this.getTagObject(e));var g=this.stringifyProps(e,o,t),b="function"==typeof o.stringify?o.stringify(e,t,n,r):e instanceof v.default?e.toString(t,n,r):(0,f.stringifyString)(e,t,n,r);return g?e instanceof v.default&&"{"!==b[0]&&"["!==b[0]?"".concat(g,"\n").concat(t.indent).concat(b):"".concat(g," ").concat(b):b}}]),e}();t.default=b,(0,s.default)(b,"defaultPrefix","tag:yaml.org,2002:"),(0,s.default)(b,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new s.YAMLSyntaxError(t,n)),null}var r=t.type===i.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],o=void 0,a=null,u=!1,c="{",p=0;p0){(h=new a.default(i.Type.PLAIN,[])).context={parent:p,src:p.context.src};var v=p.range.start+1;if(h.range={start:v,end:v},h.valueRange={start:v,end:v},"number"==typeof p.range.origStart){var m=p.range.origStart+1;h.range.origStart=h.range.origEnd=m,h.valueRange.origStart=h.valueRange.origEnd=m}}var y=new l.default(o,e.resolveNode(h));d(p,y),r.push(y),(0,f.checkKeyLength)(e.errors,t,c,o,u),o=void 0,u=null;break;default:void 0!==o&&r.push(new l.default(o)),o=e.resolveNode(p),u=p.range.start,p.error&&e.errors.push(p.error);e:for(var g=c+1;;++g){var b=t.items[g];switch(b&&b.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be followed by map values"));break e}}if(p.valueRangeContainsNewline){e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be on a single line"))}}}void 0!==o&&r.push(new l.default(o));return{comments:n,items:r}}(e,t),o=r.comments,h=r.items,v=new u.default;v.items=h,(0,f.resolveComments)(v,o);for(var m=0;mr.valueRange.start)return!1;if(o[s]!==i.Char.COMMENT)return!1;for(var u=n;u=0;--u){var c=t.items[u];if(c&&c.range){s=c.range.end+2*(n-u);break}}if(s>i+1024){var l=String(o).substr(0,8)+"..."+String(o).substr(-8);e.push(new r.YAMLSemanticError(t,'The "'.concat(l,'" key is too long')))}},t.resolveComments=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.afterKey,c=s.before,l=s.comment,f=e.items[c];f?(u&&f.value&&(f=f.value),void 0===l?!u&&f.commentBefore||(f.spaceBefore=!0):f.commentBefore?f.commentBefore+="\n"+l:f.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}};var r=n(9)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==o.Type.SEQ&&t.type!==o.Type.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new i.YAMLSyntaxError(t,n)),null}var r=t.type===o.Type.FLOW_SEQ?function(e,t){for(var n=[],r=[],u=!1,c=void 0,l=null,f="[",p=0;p=60&&(t=Math.round((t-o[0])/60),o.unshift(t))),n+o.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},a={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,n){return o(t,n.replace(/_/g,""))},stringify:i};t.intTime=a;var s={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,n){return o(t,n.replace(/_/g,""))},stringify:i};t.floatTime=s;var u={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,n,r,i,a,s,u,c){u&&(u=(u+"00").substr(1,3));var l=Date.UTC(t,n-1,r,i||0,a||0,s||0,u||0);if(c&&"Z"!==c){var f=o(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=u},function(e,t,n){"use strict";(function(t){const r=n(356),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(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,n){return n.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 n of e){t.find(function(e,t,r){return i(e,n)})||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find(function(t,n,r){return e.indexOf(t)e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(15),n(36).Buffer,n(10))},function(e,t,n){(t=e.exports=n(156)).Stream=t,t.Readable=t,t.Writable=n(160),t.Duplex=n(37),t.Transform=n(162),t.PassThrough=n(367)},function(e,t,n){"use strict";(function(t,r){var o=n(63);e.exports=b;var i,a=n(148);b.ReadableState=g;n(157).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(158),c=n(64).Buffer,l=t.Uint8Array||function(){};var f=n(41);f.inherits=n(28);var p=n(361),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,v=n(362),m=n(159);f.inherits(b,u);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(37));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(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&&(d||(d=n(161).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(37),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,O(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(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 O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),C(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(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(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):O(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=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,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",v),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",f);var p=!1;var d=!1;function v(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==N(i.pipes,e))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function m(t){h("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",y),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",y),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=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 u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(){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 u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=v(u,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(157).EventEmitter},function(e,t,n){"use strict";var r=n(63);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=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||r.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?(r.nextTick(o,n,e),n._writableState&&(n._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,n){"use strict";(function(t,r,o){var i=n(63);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;g.WritableState=y;var c=n(41);c.inherits=n(28);var l={deprecate:n(366)},f=n(158),p=n(64).Buffer,h=o.Uint8Array||function(){};var d,v=n(159);function m(){}function y(e,t){s=s||n(37),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}(e,n,r,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?u(w,e,n,a,o):w(e,n,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 g(e){if(s=s||n(37),!(d.call(g,this)||this instanceof s))return new g(e);this._writableState=new y(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)),f.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,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(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function O(e,t){var n=_(t);return n&&(!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"))),n}c.inherits(g,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:l.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]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof y)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,p.isBuffer(r)||r instanceof h);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=m),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(15),n(364).setImmediate,n(10))},function(e,t,n){"use strict";var r=n(64).Buffer,o=r.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&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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,n=function(e,t,n){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!==n?n: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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=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=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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,n){"use strict";e.exports=a;var r=n(37),o=n(41);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length-1?o=a:(n=r.isUndefined(e)?void 0:k(e),r.isUndefined(n)?o=a:((o=n).path=u(i.join(n.path,a.path)),o.query=function(e,t){var n={};function o(e){r.forOwn(e,function(e,t){n[t]=e})}return o(s.parse(e||"")),o(s.parse(t||"")),0===Object.keys(n).length?void 0:s.stringify(n)}(n.query,a.query))),o.fragment=void 0,(-1===h.indexOf(o.reference)&&0===o.path.indexOf("../")?"../":"")+c.serialize(o)}function m(e){return p.indexOf(w(e))>-1}function y(e){return r.isUndefined(e.error)&&"invalid"!==e.type}function g(e,t){var n=e;return t.forEach(function(e){if(!(e in n))throw Error("JSON Pointer points to missing location: "+L(t));n=n[e]}),n}function b(e){return Object.keys(e).filter(function(e){return"$ref"!==e})}function w(e){var t;switch(e.uriDetails.reference){case"absolute":case"uri":t="remote";break;case"same-document":t="local";break;default:t=e.uriDetails.reference}return t}function x(e,t){var n=f[e],o=Promise.resolve(),i=r.cloneDeep(t.loaderOptions||{});return r.isUndefined(n)?(r.isUndefined(i.processContent)&&(i.processContent=function(e,t){t(void 0,JSON.parse(e.text))}),o=(o=a.load(decodeURI(e),i)).then(function(t){return f[e]={value:t},t}).catch(function(t){throw f[e]={error:t},t})):o=o.then(function(){if(r.isError(n.error))throw n.error;return n.value}),o=o.then(function(e){return r.cloneDeep(e)})}function _(e,t){var n=!0;try{if(!r.isPlainObject(e))throw new Error("obj is not an Object");if(!r.isString(e.$ref))throw new Error("obj.$ref is not a String")}catch(e){if(t)throw e;n=!1}return n}function S(e){return-1!==e.indexOf("://")||i.isAbsolute(e)?e:i.resolve(t.cwd(),e)}function O(e,t){e.error=t.message,e.missing=!0}function k(e){return c.parse(e)}function E(e,t){var n,o;if(e=r.isUndefined(e)?{}:r.cloneDeep(e),!r.isObject(e))throw new TypeError("options must be an Object");if(!r.isUndefined(e.resolveCirculars)&&!r.isBoolean(e.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(r.isUndefined(e.filter)||r.isArray(e.filter)||r.isFunction(e.filter)||r.isString(e.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!r.isUndefined(e.includeInvalid)&&!r.isBoolean(e.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!r.isUndefined(e.location)&&!r.isString(e.location))throw new TypeError("options.location must be a String");if(!r.isUndefined(e.refPreProcessor)&&!r.isFunction(e.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!r.isUndefined(e.refPostProcessor)&&!r.isFunction(e.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!r.isUndefined(e.subDocPath)&&!r.isArray(e.subDocPath)&&!P(e.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(r.isUndefined(e.resolveCirculars)&&(e.resolveCirculars=!1),e.filter=function(e){var t,n;return r.isArray(e.filter)||r.isString(e.filter)?(n=r.isString(e.filter)?[e.filter]:e.filter,t=function(e){return n.indexOf(e.type)>-1||n.indexOf(w(e))>-1}):r.isFunction(e.filter)?t=e.filter:r.isUndefined(e.filter)&&(t=function(){return!0}),function(n,r){return("invalid"!==n.type||!0===e.includeInvalid)&&t(n,r)}}(e),r.isUndefined(e.location)&&(e.location=S("./root.json")),(n=e.location.split("#")).length>1&&(e.subDocPath="#"+n[1]),o=decodeURI(e.location)===e.location,e.location=v(e.location,void 0),o&&(e.location=decodeURI(e.location)),e.subDocPath=function(e){var t;return r.isArray(e.subDocPath)?t=e.subDocPath:r.isString(e.subDocPath)?t=R(e.subDocPath):r.isUndefined(e.subDocPath)&&(t=[]),t}(e),!r.isUndefined(t))try{g(t,e.subDocPath)}catch(e){throw e.message=e.message.replace("JSON Pointer","options.subDocPath"),e}return e}function A(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~1/g,"/").replace(/~0/g,"~")})}function T(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~/g,"~0").replace(/\//g,"~1")})}function j(e,t){var n={};if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");return function e(t,n,o,i){var a=!0;function s(n,r){o.push(r),e(t,n,o,i),o.pop()}r.isFunction(i)&&(a=i(t,n,o)),-1===t.indexOf(n)&&(t.push(n),!1!==a&&(r.isArray(n)?n.forEach(function(e,t){s(e,t.toString())}):r.isObject(n)&&r.forOwn(n,function(e,t){s(e,t)})),t.pop())}(function(e,t){var n,r=[];return t.length>0&&(n=e,t.slice(0,t.length-1).forEach(function(e){e in n&&(n=n[e],r.push(n))})),r}(e,(t=E(t,e)).subDocPath),g(e,t.subDocPath),r.cloneDeep(t.subDocPath),function(e,o,i){var a,s,u=!0;return _(o)&&(r.isUndefined(t.refPreProcessor)||(o=t.refPreProcessor(r.cloneDeep(o),i)),a=C(o),r.isUndefined(t.refPostProcessor)||(a=t.refPostProcessor(a,i)),t.filter(a,i)&&(s=L(i),n[s]=a),b(o).length>0&&(u=!1)),u}),n}function C(e){var t,n,o,i={def:e};try{if(_(e,!0)){if(t=e.$ref,o=d[t],r.isUndefined(o)&&(o=d[t]=k(t)),i.uri=t,i.uriDetails=o,r.isUndefined(o.error)){i.type=w(i);try{["#","/"].indexOf(t[0])>-1?P(t,!0):t.indexOf("#")>-1&&P(o.fragment,!0)}catch(e){i.error=e.message,i.type="invalid"}}else i.error=i.uriDetails.error,i.type="invalid";(n=b(e)).length>0&&(i.warning="Extra JSON Reference properties will be ignored: "+n.join(", "))}else i.type="invalid"}catch(e){i.error=e.message,i.type="invalid"}return i}function P(e,t){var n,o=!0;try{if(!r.isString(e))throw new Error("ptr is not a String");if(""!==e){if(n=e.charAt(0),-1===["#","/"].indexOf(n))throw new Error("ptr must start with a / or #/");if("#"===n&&"#"!==e&&"/"!==e.charAt(1))throw new Error("ptr must start with a / or #/");if(e.match(l))throw new Error("ptr has invalid token(s)")}}catch(e){if(!0===t)throw e;o=!1}return o}function R(e){try{P(e,!0)}catch(e){throw new Error("ptr must be a JSON Pointer: "+e.message)}var t=e.split("/");return t.shift(),A(t)}function L(e,t){if(!r.isArray(e))throw new Error("path must be an Array");return(!1!==t?"#":"")+(e.length>0?"/":"")+T(e).join("/")}function N(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");t=E(t,e),e=r.cloneDeep(e)}).then(function(){var n={deps:{},docs:{},refs:{}};return function e(t,n,o){var a,s,u=Promise.resolve(),c=L(n.subDocPath),l=S(n.location),f=i.dirname(n.location),p=l+c;return r.isUndefined(o.docs[l])&&(o.docs[l]=t),r.isUndefined(o.deps[p])&&(o.deps[p]={},a=j(t,n),r.forOwn(a,function(i,a){var l,h,d=S(n.location)+a,g=i.refdId=decodeURI(S(m(i)?v(f,i.uri):n.location)+"#"+(i.uri.indexOf("#")>-1?i.uri.split("#")[1]:""));(o.refs[d]=i,y(i))&&(i.fqURI=g,o.deps[p][a===c?"#":a.replace(c+"/","#/")]=g,0!==d.indexOf(g+"/")?((s=r.cloneDeep(n)).subDocPath=r.isUndefined(i.uriDetails.fragment)?[]:R(decodeURI(i.uriDetails.fragment)),m(i)?(delete s.filter,s.location=g.split("#")[0],u=u.then((l=o,h=s,function(){var e=S(h.location),t=l.docs[e];return r.isUndefined(t)?x(e,h).catch(function(t){return l.docs[e]=t,t}):Promise.resolve().then(function(){return t})}))):u=u.then(function(){return t}),u=u.then(function(t,n,o){return function(i){if(r.isError(i))O(o,i);else try{return e(i,n,t).catch(function(e){O(o,e)})}catch(e){O(o,e)}}}(o,s,i))):i.circular=!0)})),u}(e,t,n).then(function(){return n})}).then(function(e){var n={},a=[],s=[],u=new o.Graph,c=S(t.location),l=c+L(t.subDocPath),f=i.dirname(c);return Object.keys(e.deps).forEach(function(e){u.setNode(e)}),r.forOwn(e.deps,function(e,t){r.forOwn(e,function(e){u.setEdge(t,e)})}),(a=o.alg.findCycles(u)).forEach(function(e){e.forEach(function(e){-1===s.indexOf(e)&&s.push(e)})}),r.forOwn(e.deps,function(t,n){r.forOwn(t,function(t,r){var o,i=!1,u=n+r.slice(1),c=e.refs[n+r.slice(1)],l=m(c);s.indexOf(t)>-1&&a.forEach(function(e){i||(o=e.indexOf(t))>-1&&e.forEach(function(n){i||0===u.indexOf(n+"/")&&(l&&o!==e.length-1&&"#"===t[t.length-1]||(i=!0))})}),i&&(c.circular=!0)})}),r.forOwn(Object.keys(e.deps).reverse(),function(n){var o=e.deps[n],i=n.split("#"),a=e.docs[i[0]],s=R(i[1]);r.forOwn(o,function(n,o){var u=n.split("#"),c=e.docs[u[0]],l=s.concat(R(o)),f=e.refs[i[0]+L(l)];if(r.isUndefined(f.error)&&r.isUndefined(f.missing))if(!t.resolveCirculars&&f.circular)f.value=f.def;else{try{f.value=g(c,R(u[1]))}catch(e){return void O(f,e)}""===i[1]&&"#"===o?e.docs[i[0]]=f.value:function(e,t,n){g(e,t.slice(0,t.length-1))[t[t.length-1]]=n}(a,l,f.value)}})}),Object.keys(e.refs).forEach(function(o){var i,a,s=e.refs[o];"invalid"!==s.type&&("#"===s.fqURI[s.fqURI.length-1]&&"#"!==s.uri[s.uri.length-1]&&(s.fqURI=s.fqURI.substr(0,s.fqURI.length-1)),i=s.fqURI.split("/"),a=s.uri.split("/"),r.times(a.length-1,function(e){var t=a[a.length-e-1],n=i.length-e-1,r=i[n];"."!==t&&".."!==t||(t=r),i[n]=t}),s.fqURI=i.join("/"),0===s.fqURI.indexOf(c)?s.fqURI=s.fqURI.replace(c,""):0===s.fqURI.indexOf(f)&&(s.fqURI=s.fqURI.replace(f,"")),"/"===s.fqURI[0]&&(s.fqURI="."+s.fqURI)),0===o.indexOf(l)&&function r(o,i,a){var s,u=i.split("#"),c=e.refs[i];n[u[0]===t.location?"#"+u[1]:L(t.subDocPath.concat(a))]=c,!c.circular&&y(c)?(s=e.deps[c.refdId],0!==c.refdId.indexOf(o)&&Object.keys(s).forEach(function(e){r(c.refdId,c.refdId+e.substr(1),a.concat(R(e)))})):!c.circular&&c.error&&(c.error=c.error.replace("options.subDocPath","JSON Pointer"),c.error.indexOf("#")>-1&&(c.error=c.error.replace(c.uri.substr(c.uri.indexOf("#")),c.uri)),0!==c.error.indexOf("ENOENT:")&&0!==c.error.indexOf("Not Found")||(c.error="JSON Pointer points to missing location: "+c.uri))}(l,o,R(o.substr(l.length)))}),r.forOwn(e.refs,function(e){delete e.refdId,e.missing&&(e.error=e.error.split(": ")[0]+": "+e.def.$ref)}),{refs:n,resolved:e.docs[c]}})}"undefined"==typeof Promise&&n(132),e.exports.clearCache=function(){f={}},e.exports.decodePath=function(e){return A(e)},e.exports.encodePath=function(e){return T(e)},e.exports.findRefs=function(e,t){return j(e,t)},e.exports.findRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(f[t.location]),o=r.cloneDeep(t),i=k(t.location);return r.isUndefined(n.refs)&&(delete o.filter,delete o.subDocPath,o.includeInvalid=!0,f[t.location].refs=j(e,o)),r.isUndefined(t.filter)||(o.filter=t.filter),r.isUndefined(i.fragment)?r.isUndefined(i.subDocPath)||(o.subDocPath=t.subDocPath):o.subDocPath=R(decodeURI(i.fragment)),{refs:j(e,o),value:e}})}(e,t)},e.exports.getRefDetails=function(e){return C(e)},e.exports.isPtr=function(e,t){return P(e,t)},e.exports.isRef=function(e,t){return function(e,t){return _(e,t)&&"invalid"!==C(e).type}(e,t)},e.exports.pathFromPtr=function(e){return R(e)},e.exports.pathToPtr=function(e,t){return L(e,t)},e.exports.resolveRefs=function(e,t){return N(e,t)},e.exports.resolveRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(t),o=k(t.location);return r.isUndefined(o.fragment)||(n.subDocPath=R(decodeURI(o.fragment))),N(e,n).then(function(t){return{refs:t.refs,resolved:t.resolved,value:e}})})}(e,t)}}).call(this,n(15))},function(e,t,n){var r=n(65);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},i=n(171)(r,o);r.locals&&(e.exports=r.locals),r.locals||e.hot.accept(65,function(){var t=n(65);"string"==typeof t&&(t=[[e.i,t,""]]),i(t)}),e.hot.dispose(function(){i()})},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.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 n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return j(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&c)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&c)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return x(this,e,t,n);case"latin1":case"binary":return _(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.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 N(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||R(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-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+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):N(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):N(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(10))},function(e,t,n){"use strict";var r=n(63),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(41);i.inherits=n(28);var a=n(156),s=n(160);i.inherits(f,a);for(var u=o(s.prototype),c=0;co&&(o=l)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return o}if(t instanceof v.default){var f=e(t.key,n),p=e(t.value,n);return Math.max(f,p)}return 1},y=function(e){function t(e){var n;return(0,o.default)(this,t),(n=(0,i.default)(this,(0,a.default)(t).call(this))).source=e,n.type=l.Type.ALIAS,n}return(0,u.default)(t,e),(0,s.default)(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,u=Object.keys(o).find(function(e){return o[e]===r});if(!u&&s&&(u=i.anchors.getName(r)||i.anchors.newName()),u)return"*".concat(u).concat(a?" ":"");var c=i.anchors.getName(r)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(c," [").concat(n,"]"))}}]),(0,s.default)(t,[{key:"toJSON",value:function(e,t){var n=this;if(!t)return(0,p.default)(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.find(function(e){return e.node===n.source});if(!i||!i.res){var a="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,a):new ReferenceError(a)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=m(this.source,r)),i.count*i.aliasCount>o)){var s="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new f.YAMLReferenceError(this.cstNode,s):new ReferenceError(s)}return i.res}},{key:"toString",value:function(e){return t.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}(d.default);t.default=y,(0,c.default)(y,"default",!0)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.resolveString=void 0;var r=n(35),o=n(40),i=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.resolveString=i;var a={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:i,stringify:function(e,t,n,o){return t=Object.assign({actualString:!0},t),(0,r.stringifyString)(e,t,n,o)},options:o.strOptions};t.default=a},function(e,t,n){"use strict";function r(e){return e=(e=e.split("~1").join("/")).split("~0").join("~")}e.exports={jptr:function(e,t,n){if(void 0===e)return!1;if(!t||"#"===t)return void 0!==n?n:e;if(t.indexOf("#")>=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]=n),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[t]]=n),e=e[o[t]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?n:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,t,n){"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 n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map(r=>({[r]:e(t[r],n)})))}}},function(e,t,n){"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,n,r,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,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;au){var c=s;s=u,u=c}return s+a+u+a+(r.isUndefined(i)?o:i)}function f(e,t,n,r){var o=""+t,i=""+n;if(!e&&o>i){var a=o;o=i,i=a}var s={v:o,w:i};return r&&(s.name=r),s}function p(e,t){return l(e,t.v,t.w,t.name)}s.prototype._nodeCount=0,s.prototype._edgeCount=0,s.prototype.isDirected=function(){return this._isDirected},s.prototype.isMultigraph=function(){return this._isMultigraph},s.prototype.isCompound=function(){return this._isCompound},s.prototype.setGraph=function(e){return this._label=e,this},s.prototype.graph=function(){return this._label},s.prototype.setDefaultNodeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultNodeLabelFn=e,this},s.prototype.nodeCount=function(){return this._nodeCount},s.prototype.nodes=function(){return r.keys(this._nodes)},s.prototype.sources=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._in[t])})},s.prototype.sinks=function(){var e=this;return r.filter(this.nodes(),function(t){return r.isEmpty(e._out[t])})},s.prototype.setNodes=function(e,t){var n=arguments,o=this;return r.each(e,function(e){n.length>1?o.setNode(e,t):o.setNode(e)}),this},s.prototype.setNode=function(e,t){return r.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=i,this._children[e]={},this._children[i][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)},s.prototype.node=function(e){return this._nodes[e]},s.prototype.hasNode=function(e){return r.has(this._nodes,e)},s.prototype.removeNode=function(e){var t=this;if(r.has(this._nodes,e)){var n=function(e){t.removeEdge(t._edgeObjs[e])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],r.each(this.children(e),function(e){t.setParent(e)}),delete this._children[e]),r.each(r.keys(this._in[e]),n),delete this._in[e],delete this._preds[e],r.each(r.keys(this._out[e]),n),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this},s.prototype.setParent=function(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(r.isUndefined(t))t=i;else{for(var n=t+="";!r.isUndefined(n);n=this.parent(n))if(n===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this},s.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]},s.prototype.parent=function(e){if(this._isCompound){var t=this._parent[e];if(t!==i)return t}},s.prototype.children=function(e){if(r.isUndefined(e)&&(e=i),this._isCompound){var t=this._children[e];if(t)return r.keys(t)}else{if(e===i)return this.nodes();if(this.hasNode(e))return[]}},s.prototype.predecessors=function(e){var t=this._preds[e];if(t)return r.keys(t)},s.prototype.successors=function(e){var t=this._sucs[e];if(t)return r.keys(t)},s.prototype.neighbors=function(e){var t=this.predecessors(e);if(t)return r.union(t,this.successors(e))},s.prototype.isLeaf=function(e){return 0===(this.isDirected()?this.successors(e):this.neighbors(e)).length},s.prototype.filterNodes=function(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var n=this;r.each(this._nodes,function(n,r){e(r)&&t.setNode(r,n)}),r.each(this._edgeObjs,function(e){t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,n.edge(e))});var o={};return this._isCompound&&r.each(t.nodes(),function(e){t.setParent(e,function e(r){var i=n.parent(r);return void 0===i||t.hasNode(i)?(o[r]=i,i):i in o?o[i]:e(i)}(e))}),t},s.prototype.setDefaultEdgeLabel=function(e){return r.isFunction(e)||(e=r.constant(e)),this._defaultEdgeLabelFn=e,this},s.prototype.edgeCount=function(){return this._edgeCount},s.prototype.edges=function(){return r.values(this._edgeObjs)},s.prototype.setPath=function(e,t){var n=this,o=arguments;return r.reduce(e,function(e,r){return o.length>1?n.setEdge(e,r,t):n.setEdge(e,r),r}),this},s.prototype.setEdge=function(){var e,t,n,o,i=!1,a=arguments[0];"object"==typeof a&&null!==a&&"v"in a?(e=a.v,t=a.w,n=a.name,2===arguments.length&&(o=arguments[1],i=!0)):(e=a,t=arguments[1],n=arguments[3],arguments.length>2&&(o=arguments[2],i=!0)),e=""+e,t=""+t,r.isUndefined(n)||(n=""+n);var s=l(this._isDirected,e,t,n);if(r.has(this._edgeLabels,s))return i&&(this._edgeLabels[s]=o),this;if(!r.isUndefined(n)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[s]=i?o:this._defaultEdgeLabelFn(e,t,n);var c=f(this._isDirected,e,t,n);return e=c.v,t=c.w,Object.freeze(c),this._edgeObjs[s]=c,u(this._preds[t],e),u(this._sucs[e],t),this._in[t][s]=c,this._out[e][s]=c,this._edgeCount++,this},s.prototype.edge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return this._edgeLabels[r]},s.prototype.hasEdge=function(e,t,n){var o=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n);return r.has(this._edgeLabels,o)},s.prototype.removeEdge=function(e,t,n){var r=1===arguments.length?p(this._isDirected,arguments[0]):l(this._isDirected,e,t,n),o=this._edgeObjs[r];return o&&(e=o.v,t=o.w,delete this._edgeLabels[r],delete this._edgeObjs[r],c(this._preds[t],e),c(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--),this},s.prototype.inEdges=function(e,t){var n=this._in[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.v===t}):o}},s.prototype.outEdges=function(e,t){var n=this._out[e];if(n){var o=r.values(n);return t?r.filter(o,function(e){return e.w===t}):o}},s.prototype.nodeEdges=function(e,t){var n=this.inEdges(e,t);if(n)return n.concat(this.outEdges(e,t))}},function(e,t,n){var r=n(42),o=n(182),i=n(183),a=n(184),s=n(185),u=n(186);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(21)(n(17),"Map");e.exports=r},function(e,t,n){var r=n(193),o=n(200),i=n(202),a=n(203),s=n(204);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(96),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.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,n(38)(e))},function(e,t,n){var r=n(50),o=n(210),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(105),o=n(106),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-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=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(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(r(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,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,u=0;u=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(15))},function(e,t,n){"use strict";var r=n(322),o=n(323);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]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),p=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g=n(133);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i127?L+="x":L+=R[N];if(!L.match(h)){var I=C.slice(0,A),U=C.slice(A+1),D=R.match(d);D&&(I.push(D[1]),U.unshift(D[2])),U.length&&(b="/"+U.join(".")+b),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=r.toASCII(this.hostname));var q=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+q,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[_])for(A=0,P=l.length;A0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=S.slice(-1)[0],E=(n.host||e.host||S.length>1)&&("."===k||".."===k)||""===k,A=0,T=S.length;T>=0;T--)"."===(k=S[T])?S.splice(T,1):".."===k?(S.splice(T,1),A++):A&&(S.splice(T,1),A--);if(!x&&!_)for(;A--;A)S.unshift("..");!x||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var j,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(n.hostname=n.host=C?"":S.length?S.shift():"",(j=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=j.shift(),n.host=n.hostname=j.shift()));return(x=x||n.host&&S.length)&&!C&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},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){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(8),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).call(this,c.Type.COMMENT))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new f.default(t,n),n}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(90)),i=r(n(91)),a=r(n(60)),s=[o.default,i.default,a.default];t.default=s},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(55)),a=r(n(27)),s=r(n(144));var u={createNode:function(e,t,n){var r=new a.default;if(t instanceof Map){var s=!0,u=!1,c=void 0;try{for(var l,f=t[Symbol.iterator]();!(s=(l=f.next()).done);s=!0){var p=(0,i.default)(l.value,2),h=p[0],d=p[1];r.items.push(e.createPair(h,d,n))}}catch(e){u=!0,c=e}finally{try{s||null==f.return||f.return()}finally{if(u)throw c}}}else if(t&&"object"===(0,o.default)(t))for(var v=0,m=Object.keys(t);v1){throw new o.YAMLSemanticError(t,"Each pair must have its own sequence indicator")}var c=u.items[0]||new a.default;u.commentBefore&&(c.commentBefore=c.commentBefore?"".concat(u.commentBefore,"\n").concat(c.commentBefore):u.commentBefore),u.comment&&(c.comment=c.comment?"".concat(u.comment,"\n").concat(c.comment):u.comment),u=c}n.items[r]=u instanceof a.default?u:new a.default(u)}}return n}function l(e,t,n){var r=new u.default;r.tag="tag:yaml.org,2002:pairs";var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=void 0,p=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));f=l[0],p=l[1]}else if(l&&l instanceof Object){var h=Object.keys(l);if(1!==h.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));p=l[f=h[0]]}else f=l;var d=e.createPair(f,p,n);r.items.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}var f={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:c,createNode:l};t.default=f},function(e,t,n){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},function(e,t,n){"use strict";const r=n(61).jpescape;e.exports={recurse:function e(t,n,o){if(n||(n={depth:0}),n.depth||(n=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},n)),"object"!=typeof t)return;let i=n.path;for(let a in t){if(n.key=a,n.path=n.path+"/"+encodeURIComponent(r(a)),n.identityPath=n.seen.get(t[a]),n.identity=void 0!==n.identityPath,o(t,a,n),"object"==typeof t[a]&&!n.identity){n.identityDetection&&!Array.isArray(t[a])&&null!==t[a]&&n.seen.set(t[a],n.path);let r={};r.parent=t,r.path=n.path,r.depth=n.depth?n.depth+1:1,r.pkey=a,r.payload=n.payload,r.seen=n.seen,r.identity=!1,r.identityDetection=n.identityDetection,e(t[a],r,o)}n.path=i}}}},function(e,t,n){"use strict";const r=n(134),o=n(85),i=(n(84),n(324)),a=n(135),s=n(136),u=n(61),c=u.jptr,l=n(93).isRef,f=n(62).clone,p=n(62).circularClone,h=n(94).recurse,d=n(354),v=n(357),m=n(152),y=n(358).statusCodes,g=n(371).version,b="3.0.0";let w;class x extends Error{constructor(e){super(e),this.name="S2OError"}}function _(e,t){let n=new x(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function S(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:_(e,n)}function O(e,t){v.walkSchema(e,{},{},function(e,n,r){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of m.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&S("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else _("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"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)}(e,n,t)})}function k(e,t,n){let r=n.payload.options;if(l(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=f(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.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 n=f(u.jptr(r.openapi,e[t]));if(!1===n)S("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t],a="schemas",s=(i=(i=(i=(i=i.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(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")&&O(n,r),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&n.name&&n.name===m.sanitise(n.name)&&(i=encodeURIComponent(n.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="");u.jptr(r.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let c="#/components/"+a+"/"+i+s,l="";"examples"===a&&(n={value:n},l="/value"),u.jptr(r.openapi,c,n),r.refmap[e[t]]=c+l,e[t]=c+l}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(i&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:o},e]}):n.parent[n.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=w.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=m.sanitise(n);n!=r&&(e[t][r]=e[t][n],delete e[t][n])}}function A(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?delete e.name:_("(Patchable) oauth2 securitySchemes should not have name property",t))}}function T(e){return e&&!e["x-s2o-delete"]}function j(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&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&S("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),void 0!==e.collectionFormat&&("array"!=e.type&&(t.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to header.type array",t)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&S("collectionFormat:ssv is no longer supported for headers",e,t),"pipes"===e.collectionFormat&&S("collectionFormat:pipes is no longer supported for headers",e,t),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),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 C(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&&S("Definition used as parameter",e,t)}function P(e,t,n,r,o,i,a){let s,u={},l=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return _("(Patchable) operation.consumes must be an array",a);t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let p=((t?t.consumes:null)||i.consumes||[]).filter(m.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){C(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=i.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=c(i,e.$ref);!n&&t.startsWith("#/")?S("Could not resolve reference "+t,e,a):n&&(e=n)}}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?e.type="string":_("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=c(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=c(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(a.patch?delete e.collectionFormat:_("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":S("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":S("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(S("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"object"!=e.type&&"body"!=e.type&&"formData"!=e.in)if(e.items&&e.schema)S("parameter has array,items and schema",e,a);else{e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,h(e.schema.items,null,function(n,r,o){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&S("Nested collectionFormats are not supported",e,a),delete n[r])}));for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(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){l=!1,u.content={};let t="application/x-www-form-urlencoded";if(p.length&&p.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),u.content[t]={},e.schema)u.content[t].schema=e.schema,e.schema.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{u.content[t].schema={},u.content[t].schema.type="object",u.content[t].schema.properties={},u.content[t].schema.properties[e.name]={};let n=u.content[t].schema,r=u.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of m.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name)),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),R(e,r)}}else e&&"file"===e.type&&(e.required&&(u.required=e.required),u.content={},u.content["application/octet-stream"]={},u.content["application/octet-stream"].schema={},u.content["application/octet-stream"].schema.type="string",u.content["application/octet-stream"].schema.format="binary",R(e,u));if(e&&"body"===e.in){u.content={},e.name&&(u["x-s2o-name"]=(t&&t.operationId?m.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(u.description=e.description),e.required&&(u.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?u["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(u["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),p.length||p.push("application/json");for(let t of p)u.content[t]={},u.content[t].schema=f(e.schema||{}),O(u.content[t].schema,a);R(e,u)}if(Object.keys(u).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&l){t.requestBody["x-s2o-overloaded"]=!0,S("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(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&&u.content["multipart/form-data"]&&u.content["multipart/form-data"].schema&&u.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,u.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(u.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&&u.content["application/x-www-form-urlencoded"]&&u.content["application/x-www-form-urlencoded"].schema&&u.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,u.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(u.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,u),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?e.required=!0:_("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function R(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function L(e,t,n,r,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?S("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)||(e.description=y[e]||""):_("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(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/","")))),n&&n.produces&&"string"==typeof n.produces){if(!o.patch)return _("(Patchable) operation.produces must be an array",o);n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(m.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=f(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].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?delete e.headers[t]:_('(Patchable) "Status Code" is not a valid header',o):j(e.headers[t],o)}}function N(e,t,n,r,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 l=s[e];if(l&&l.parameters&&Array.isArray(l.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(C(t,n),t=c(i,t.$ref)),l.parameters.find(function(e,n,r){return e.name===t.name&&e.in===t.in})||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(l=P(t,l,s,e,a,i,n),n.rbname&&""===l[n.rbname]&&delete l[n.rbname])}for(let t of l.parameters)l=P(t,l,s,e,e+":"+a,i,n);n.rbname&&""===l[n.rbname]&&delete l[n.rbname],n.debug||(l.parameters=l.parameters.filter(T))}if(l&&l.security&&E(l.security),"object"==typeof l){if(!l.responses){let e={description:"Default response"};l.responses={default:e}}for(let e in l.responses){L(l.responses[e],0,l,i,n)}}if(l&&l["x-servers"]&&Array.isArray(l["x-servers"]))l.servers=l["x-servers"],delete l["x-servers"];else if(l&&l.schemes&&l.schemes.length)for(let e of l.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(l.servers||(l.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let n=f(t),r=o.parse(n.url);r.protocol=e,n.url=r.format(),l.servers.push(n)}if(n.debug&&(l["x-s2o-consumes"]=l.consumes||[],l["x-s2o-produces"]=l.produces||[]),l){if(delete l.consumes,delete l.produces,delete l.schemes,l["x-ms-examples"]){for(let e in l["x-ms-examples"]){let t=l["x-ms-examples"][e],n=m.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(l.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=u.jptr(i,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in l.responses[r].headers)if(t===e){l.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:f(t.responses[r].body)},l.responses[r]&&l.responses[r].content))for(let t in l.responses[r].content){let o=l.responses[r].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+n}}}}delete l["x-ms-examples"]}if(l.parameters&&0===l.parameters.length&&delete l.parameters,l.requestBody){let n=l.operationId?m.sanitiseAll(l.operationId):m.sanitiseAll(e+a).toCamelCase(),o=m.sanitise(l.requestBody["x-s2o-name"]||n||"");delete l.requestBody["x-s2o-name"];let i=JSON.stringify(l.requestBody),s=m.hash(i);if(!r[s]){let e={};e.name=o,e.body=l.requestBody,e.refs=[],r[s]=e}let c="#/"+t+"/"+encodeURIComponent(u.jpescape(a))+"/"+e+"/requestBody";r[s].refs.push(c)}}}if(s&&s.parameters){for(let e in s.parameters){P(s.parameters[e],null,s,null,a,i,n)}!n.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(T))}}}function M(e,t){let n={};w={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=m.sanitise(n);n!=r&&(e.components.securitySchemes[r]&&_("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),A(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=m.sanitiseAll(n),o="";if(n!=r){for(;e.components.schemas[r+o];)o=o?++o:2;e.components.schemas[r+o]=e.components.schemas[n],delete e.components.schemas[n]}w.schemas[n]=r+o,O(e.components.schemas[r+o],t)}t.refmap={},h(e,{payload:{options:t}},k),function(e,t){for(let n in t.refmap)u.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=m.sanitise(n);n!=r&&(e.components.parameters[r]&&_("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),P(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=m.sanitise(n);n!=r&&(e.components.responses[r]&&_("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let o=e.components.responses[r];if(L(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?delete o.headers[e]:_('(Patchable) "Status Code" is not a valid header',t):j(o.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],o=JSON.stringify(r),i=m.hash(o),a={};a.name=t,a.body=r,a.refs=[],n[i]=a}if(N(e.paths,"paths",t,n,e),e["x-ms-paths"]&&N(e["x-ms-paths"],"x-ms-paths",t,n,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 r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in n){let i=n[o];if(i.refs.length>1){let n="";for(i.name||(i.name="requestBody",n=t++);r.indexOf(i.name+n)>=0;)n=n?++n:2;i.name=i.name+n,r.push(i.name),e.components.requestBodies[i.name]=f(i.body);for(let t in i.refs){let n={};n.$ref="#/components/requestBodies/"+i.name,u.jptr(e,i.refs[t],n)}}}}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 I(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,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}}),e):e}function U(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new x("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new x("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new x("(Patchable) info.title cannot be null"));e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new x("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new x("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new x("(Patchable) info should not have logo property"));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 n(new x("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(o.URL&&t.whatwg)try{o.URL.parse(e.info.termsOfService)}catch(r){if(!t.patch)return n(new x("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function D(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new x("(Patchable) paths object is mandatory"));e.paths={}}}function q(e,t,n){return i(n,new Promise(function(n,r){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=n,t.promise.reject=r,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=p(e),U(t.openapi,t,r),D(t.openapi,t,r),void d.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)});if(!e.swagger||"2.0"!=e.swagger)return r(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:b,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=g,o["x-origin"].push(n)}if(delete(o=Object.assign(o,p(e))).swagger,h(o,{},function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={};n.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),I(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,I(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"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};for(let e in t.parameters){let r=t.parameters[e];r.$ref&&(r=f(c(o,r.$ref))),e.startsWith("x-")||(delete r.required,delete r.type,delete r.in,void 0===r.default&&(r.enum?r.default=r.enum[0]:r.default=""),n.variables[r.name]=r,delete r.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach(e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))}),delete o["x-ms-parameterized-host"]}U(o,t,r),D(o,t,r),"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,d.optionalResolve(t).then(function(){M(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)})}))}function B(e,t,n){return i(n,new Promise(function(n,r){let o=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){try{o=s.parse(e,{schema:"core"}),t.sourceYaml=!0,t.text=e}catch(e){}}o?q(o,t).then(e=>n(e)).catch(e=>r(e)):r(new x("Could not parse string"))}))}e.exports={S2OError:x,targetVersion:b,convert:q,convertObj:q,convertUrl:function(e,t,n){return i(n,new Promise(function(n,r){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),a(e,{agent:t.agent}).then(function(e){if(200!==e.status)throw new x(`Received status code ${e.status}`);return e.text()}).then(function(e){B(e,t).then(e=>n(e)).catch(e=>r(e))}).catch(function(e){r(e)})}))},convertStr:B,convertFile:function(e,t,n){return i(n,new Promise(function(n,o){r.readFile(e,t.encoding||"utf8",function(r,i){r?o(r):(t.sourceFile=e,B(i,t).then(e=>n(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,n){return i(n,new Promise(function(n,r){let o="";e.on("data",function(e){o+=e}).on("end",function(){B(o,t).then(e=>n(e)).catch(e=>r(e))})}))}}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(10))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(99),o=n(68),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(100);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(21),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(206),o=n(48),i=n(7),a=n(39),s=n(102),u=n(49),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),f=!n&&!l&&a(e),p=!n&&!l&&!f&&u(e),h=n||l||f||p,d=h?r(e.length,String):[],v=d.length;for(var m in e)!t&&!c.call(e,m)||h&&("length"==m||f&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||d.push(m);return d}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&ep))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,m=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v0&&(i=u.removeMin(),(a=s[i]).distance!==Number.POSITIVE_INFINITY);)r(i).forEach(c);return s}(e,String(t),n||i,r||function(t){return e.outEdges(t)})};var i=r.constant(1)},function(e,t,n){var r=n(14);function o(){this._arr=[],this._keyIndices={}}e.exports=o,o.prototype.size=function(){return this._arr.length},o.prototype.keys=function(){return this._arr.map(function(e){return e.key})},o.prototype.has=function(e){return r.has(this._keyIndices,e)},o.prototype.priority=function(e){var t=this._keyIndices[e];if(void 0!==t)return this._arr[t].priority},o.prototype.min=function(){if(0===this.size())throw new Error("Queue underflow");return this._arr[0].key},o.prototype.add=function(e,t){var n=this._keyIndices;if(e=String(e),!r.has(n,e)){var o=this._arr,i=o.length;return n[e]=i,o.push({key:e,priority:t}),this._decrease(i),!0}return!1},o.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key},o.prototype.decrease=function(e,t){var n=this._keyIndices[e];if(t>this._arr[n].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[n].priority+" New: "+t);this._arr[n].priority=t,this._decrease(n)},o.prototype._heapify=function(e){var t=this._arr,n=2*e,r=n+1,o=e;n>1].priority=0;--o){var i=t.items[o];if(i.type===l.Type.COMMENT){var a=i.context,s=a.indent,u=a.lineStart;if(s>0&&i.range.start>=u+s)break;r=o}else{if(i.type!==l.Type.BLANK_LINE)break;r=o}}if(-1===r)return null;for(var c=t.items.splice(r,n-r),f=c[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return c}var y=function(e){function t(e){var n;(0,o.default)(this,t),n=(0,i.default)(this,(0,a.default)(t).call(this,e.type===l.Type.SEQ_ITEM?l.Type.SEQ:l.Type.MAP));for(var r=e.props.length-1;r>=0;--r)if(e.props[r].start=o+r||("#"===i||"\n"===i)&&t.nextContentHasIndent(e,n,r))}}]),(0,u.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.parseNode,o=e.src,i=d.default.startOfLine(o,n),a=this.items[0];a.context.parent=this,this.valueRange=v.default.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,u=n,c=o[u=d.default.normalizeOffset(o,u)],p=d.default.endOfWhiteSpace(o,i)===u,y=!1;c;){for(;"\n"===c||"#"===c;){if(p&&"\n"===c&&!y){var g=new f.default;if(u=g.parse({src:o},u),this.valueRange.end=u,u>=o.length){c=null;break}this.items.push(g),u-=1}else if("#"===c){if(u=o.length){c=null;break}}if(i=u+1,u=d.default.endOfIndent(o,i),d.default.atBlank(o,u)){var w=d.default.endOfWhiteSpace(o,u),x=o[w];x&&"\n"!==x&&"#"!==x||(u=w)}c=o[u],p=!0}if(!c)break;if(u!==i+s&&(p||":"!==c)){i>n&&(u=i);break}if(a.type===l.Type.SEQ_ITEM!=("-"===c)){var _=!0;if("-"===c){var S=o[u+1];_=!S||"\n"===S||"\t"===S||" "===S}if(_){i>n&&(u=i);break}}var O=r({atLineStart:p,inCollection:!0,indent:s,lineStart:i,parent:this},u);if(!O)return u;if(this.items.push(O),this.valueRange.end=O.valueRange.end,c=o[u=d.default.normalizeOffset(o,O.range.end)],p=!1,y=O.includesTrailingLines,c){for(var k=u-1,E=o[k];" "===E||"\t"===E;)E=o[--k];"\n"===E&&(i=k+1,p=!0)}var A=m(O);A&&Array.prototype.push.apply(this.items,A)}return u}},{key:"setOrigRanges",value:function(e,n){return n=(0,s.default)((0,a.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){n=t.setOrigRanges(e,n)}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i0}}]),t}(d.default);t.default=y},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(8),f=n(9),p=r(n(56)),h=r(n(11)),d=r(n(12)),v=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).node=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.atLineStart,i=e.lineStart;o||this.type!==l.Type.SEQ_ITEM||(this.error=new f.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=h.default.endOfWhiteSpace(r,t+1),u=r[s];"\n"===u||"#"===u;){if("#"===u){var c=h.default.endOfLine(r,s+1);this.props.push(new d.default(s,c)),s=c}else{if(o=!0,i=s+1,"\n"===r[h.default.endOfWhiteSpace(r,i)]){var v=new p.default;i=v.parse({src:r},i),(e.parent.items||e.parent.contents).push(v)}s=h.default.endOfIndent(r,i)}u=r[s]}h.default.nextNodeIsIndented(u,s-(i+a),this.type!==l.Type.SEQ_ITEM)?(this.node=n({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s),this.node&&(s=this.node.range.end)):u&&i>t+1&&(s=i-1);var m=this.node?this.node.valueRange.end:s;return this.valueRange=new d.default(t,m),s}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.node?this.node.setOrigRanges(e,n):n}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return h.default.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),t}(h.default);t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseBlockValue",value:function(e){for(var n=this.context,r=n.indent,o=n.inFlow,i=n.src,a=e,s=e,u=i[a];"\n"===u&&!c.default.atDocumentBoundary(i,a+1);u=i[a]){var l=c.default.endOfBlockIndent(i,r,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=t.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,n){this.context=e;var r=e.inFlow,o=e.src,i=n,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=t.endOfLine(o,n,r)),this.valueRange=new l.default(n,i),i=c.default.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,n=e.end,r=this.context.src,o=r[n-1];tl?r.slice(l,a+1):s)}else i+=s}return i}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var i=e[o+1];if(":"===r&&("\n"===i||"\t"===i||" "===i||n&&","===i))break;if((" "===r||"\t"===r)&&"#"===i)break;o+=1,r=i}return o}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.MERGE_KEY=void 0;var o=r(n(55)),i=r(n(1)),a=r(n(2)),s=r(n(4)),u=r(n(3)),c=r(n(19)),l=r(n(5)),f=r(n(27)),p=r(n(16)),h=r(n(13)),d=r(n(34)),v="<<";t.MERGE_KEY=v;var m=function(e){function t(e){var n;if((0,i.default)(this,t),e instanceof p.default){var r=e.value;r instanceof d.default||((r=new d.default).items.push(e.value),r.range=e.value.range),(n=(0,s.default)(this,(0,u.default)(t).call(this,e.key,r))).range=e.range}else n=(0,s.default)(this,(0,u.default)(t).call(this,new h.default(v),new d.default));return n.type="MERGE_PAIR",(0,s.default)(n)}return(0,l.default)(t,e),(0,a.default)(t,[{key:"addToJSMap",value:function(e,t){var n=!0,r=!1,i=void 0;try{for(var a,s=this.value.items[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var u=a.value.source;if(!(u instanceof f.default))throw new Error("Merge sources must be maps");var c=u.toJSON(null,e,Map),l=!0,p=!1,h=void 0;try{for(var d,v=c[Symbol.iterator]();!(l=(d=v.next()).done);l=!0){var m=(0,o.default)(d.value,2),y=m[0],g=m[1];t instanceof Map?t.has(y)||t.set(y,g):t instanceof Set?t.add(y):t.hasOwnProperty(y)||(t[y]=g)}}catch(e){p=!0,h=e}finally{try{l||null==v.return||v.return()}finally{if(p)throw h}}}}catch(e){r=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(r)throw i}}return t}},{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=(0,c.default)((0,u.default)(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}]),t}(p.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(25)),i=r(n(1)),a=r(n(2)),s=r(n(20)),u=n(346),c=n(8),l=n(9),f=n(35),p=n(348),h=n(60),d=r(n(59)),v=r(n(26)),m=r(n(33)),y=r(n(16)),g=r(n(13)),b=function(){function e(t){var n=t.customTags,r=t.merge,o=t.schema,a=t.tags;if((0,i.default)(this,e),this.merge=!!r,this.name=o,this.tags=p.schemas[o.replace(/\W/g,"")],!this.tags){var s=Object.keys(p.schemas).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown schema "'.concat(o,'"; use one of ').concat(s))}if(!n&&a&&(n=a,(0,u.warnOptionDeprecation)("tags","customTags")),Array.isArray(n)){var c=!0,l=!1,f=void 0;try{for(var h,d=n[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;this.tags=this.tags.concat(v)}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}}else"function"==typeof n&&(this.tags=n(this.tags.slice()));for(var m=0;m0&&(t.resolved=this.resolveScalar(a,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(t,n,r){var o=this.resolveNode(t,n,r);if(n.hasOwnProperty("resolved"))return o;var i,a=(i=n.type)===c.Type.FLOW_MAP||i===c.Type.MAP?e.defaultTags.MAP:function(e){var t=e.type;return t===c.Type.FLOW_SEQ||t===c.Type.SEQ}(n)?e.defaultTags.SEQ:e.defaultTags.STR;if(a){t.warnings.push(new l.YAMLWarning(n,"The tag ".concat(r," is unavailable, falling back to ").concat(a)));var s=this.resolveNode(t,n,a);return s.tag=r,s}return t.errors.push(new l.YAMLReferenceError(n,"The tag ".concat(r," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof d.default)return d.default;if(e.tag){var t=this.tags.filter(function(t){return t.tag===e.tag});if(t.length>0)return t.find(function(t){return t.format===e.format})||t[0]}var n,r;if(e instanceof g.default){r=e.value;var i=this.tags.filter(function(e){return e.identify&&e.identify(r)||e.class&&r instanceof e.class});n=i.find(function(t){return t.format===e.format})||i.find(function(e){return!e.format})}else r=e,n=this.tags.find(function(e){return e.nodeClass&&r instanceof e.nodeClass});if(!n){var a=r&&r.constructor?r.constructor.name:(0,o.default)(r);throw new Error("Tag not resolved for ".concat(a," value"))}return n}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,i=[],a=o.anchors.getName(e);return a&&(r[a]=e,i.push("&".concat(a))),e.tag?i.push(o.stringifyTag(e.tag)):t.default||i.push(o.stringifyTag(t.tag)),i.join(" ")}},{key:"stringify",value:function(e,t,n,r){var o;if(!(e instanceof m.default)){var i={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:[]};e=this.createNode(e,!0,null,i);var a=t.doc.anchors,s=!0,u=!1,c=void 0;try{for(var l,p=i.aliasNodes[Symbol.iterator]();!(s=(l=p.next()).done);s=!0){var h=l.value;h.source=h.source.node;var d=a.getName(h.source);d||(d=a.newName(),a.map[d]=h.source)}}catch(e){u=!0,c=e}finally{try{s||null==p.return||p.return()}finally{if(u)throw c}}}if(t.tags=this,e instanceof y.default)return e.toString(t,n,r);o||(o=this.getTagObject(e));var g=this.stringifyProps(e,o,t),b="function"==typeof o.stringify?o.stringify(e,t,n,r):e instanceof v.default?e.toString(t,n,r):(0,f.stringifyString)(e,t,n,r);return g?e instanceof v.default&&"{"!==b[0]&&"["!==b[0]?"".concat(g,"\n").concat(t.indent).concat(b):"".concat(g," ").concat(b):b}}]),e}();t.default=b,(0,s.default)(b,"defaultPrefix","tag:yaml.org,2002:"),(0,s.default)(b,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"})},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==i.Type.MAP&&t.type!==i.Type.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new s.YAMLSyntaxError(t,n)),null}var r=t.type===i.Type.FLOW_MAP?function(e,t){for(var n=[],r=[],o=void 0,a=null,u=!1,c="{",p=0;p0){(h=new a.default(i.Type.PLAIN,[])).context={parent:p,src:p.context.src};var v=p.range.start+1;if(h.range={start:v,end:v},h.valueRange={start:v,end:v},"number"==typeof p.range.origStart){var m=p.range.origStart+1;h.range.origStart=h.range.origEnd=m,h.valueRange.origStart=h.valueRange.origEnd=m}}var y=new l.default(o,e.resolveNode(h));d(p,y),r.push(y),(0,f.checkKeyLength)(e.errors,t,c,o,u),o=void 0,u=null;break;default:void 0!==o&&r.push(new l.default(o)),o=e.resolveNode(p),u=p.range.start,p.error&&e.errors.push(p.error);e:for(var g=c+1;;++g){var b=t.items[g];switch(b&&b.type){case i.Type.BLANK_LINE:case i.Type.COMMENT:continue e;case i.Type.MAP_VALUE:break e;default:e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be followed by map values"));break e}}if(p.valueRangeContainsNewline){e.errors.push(new s.YAMLSemanticError(p,"Implicit map keys need to be on a single line"))}}}void 0!==o&&r.push(new l.default(o));return{comments:n,items:r}}(e,t),o=r.comments,h=r.items,v=new u.default;v.items=h,(0,f.resolveComments)(v,o);for(var m=0;mr.valueRange.start)return!1;if(o[s]!==i.Char.COMMENT)return!1;for(var u=n;u=0;--u){var c=t.items[u];if(c&&c.range){s=c.range.end+2*(n-u);break}}if(s>i+1024){var l=String(o).substr(0,8)+"..."+String(o).substr(-8);e.push(new r.YAMLSemanticError(t,'The "'.concat(l,'" key is too long')))}},t.resolveComments=function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,u=s.afterKey,c=s.before,l=s.comment,f=e.items[c];f?(u&&f.value&&(f=f.value),void 0===l?!u&&f.commentBefore||(f.spaceBefore=!0):f.commentBefore?f.commentBefore+="\n"+l:f.commentBefore=l):void 0!==l&&(e.comment?e.comment+="\n"+l:e.comment=l)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}};var r=n(9)},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t.type!==o.Type.SEQ&&t.type!==o.Type.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new i.YAMLSyntaxError(t,n)),null}var r=t.type===o.Type.FLOW_SEQ?function(e,t){for(var n=[],r=[],u=!1,c=void 0,l=null,f="[",p=0;p=60&&(t=Math.round((t-o[0])/60),o.unshift(t))),n+o.map(function(e){return e<10?"0"+String(e):String(e)}).join(":").replace(/000000\d*$/,"")},a={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,n){return o(t,n.replace(/_/g,""))},stringify:i};t.intTime=a;var s={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,n){return o(t,n.replace(/_/g,""))},stringify:i};t.floatTime=s;var u={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,n,r,i,a,s,u,c){u&&(u=(u+"00").substr(1,3));var l=Date.UTC(t,n-1,r,i||0,a||0,s||0,u||0);if(c&&"Z"!==c){var f=o(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};t.timestamp=u},function(e,t,n){"use strict";(function(t){const r=n(356),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(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,n){return n.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 n of e){t.find(function(e,t,r){return i(e,n)})||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find(function(t,n,r){return e.indexOf(t)e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n)}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(15),n(36).Buffer,n(10))},function(e,t,n){(t=e.exports=n(156)).Stream=t,t.Readable=t,t.Writable=n(160),t.Duplex=n(37),t.Transform=n(162),t.PassThrough=n(367)},function(e,t,n){"use strict";(function(t,r){var o=n(63);e.exports=b;var i,a=n(148);b.ReadableState=g;n(157).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(158),c=n(64).Buffer,l=t.Uint8Array||function(){};var f=n(41);f.inherits=n(28);var p=n(361),h=void 0;h=p&&p.debuglog?p.debuglog("stream"):function(){};var d,v=n(362),m=n(159);f.inherits(b,u);var y=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(i=i||n(37));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(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&&(d||(d=n(161).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(37),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function w(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,O(e)}(e,a)):(o||(i=function(e,t){var n;r=t,c.isBuffer(r)||r instanceof l||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):E(e,a)):x(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=_?e=_:(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 O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(k,e):k(e))}function k(e){h("emit readable"),e.emit("readable"),C(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;ei.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=c.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function R(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(L,t,e))}function L(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function N(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):O(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&R(this),null;var r,o=t.needReadable;return h("need readable",o),(0===t.length||t.length-e0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=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,h("pipe count=%d opts=%j",i.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?l:b;function c(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",y),e.removeListener("finish",g),e.removeListener("drain",f),e.removeListener("error",m),e.removeListener("unpipe",c),n.removeListener("end",l),n.removeListener("end",b),n.removeListener("data",v),p=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function l(){h("onend"),e.end()}i.endEmitted?o.nextTick(u):n.once("end",u),e.on("unpipe",c);var f=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,C(e))}}(n);e.on("drain",f);var p=!1;var d=!1;function v(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==N(i.pipes,e))&&!p&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function m(t){h("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",g),b()}function g(){h("onfinish"),e.removeListener("close",y),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",y),e.once("finish",g),e.emit("pipe",n),i.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=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 u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function f(){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 u=o[e];if(void 0===u)return!1;if("function"==typeof u)i(u,this,t);else{var c=u.length,l=v(u,c);for(n=0;n=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(157).EventEmitter},function(e,t,n){"use strict";var r=n(63);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=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||r.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?(r.nextTick(o,n,e),n._writableState&&(n._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,n){"use strict";(function(t,r,o){var i=n(63);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=g;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;g.WritableState=y;var c=n(41);c.inherits=n(28);var l={deprecate:n(366)},f=n(158),p=n(64).Buffer,h=o.Uint8Array||function(){};var d,v=n(159);function m(){}function y(e,t){s=s||n(37),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(c||0===c)?c:l,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 f=!1===e.decodeStrings;this.decodeStrings=!f,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 n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}(e,n,r,t,o);else{var a=_(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?u(w,e,n,a,o):w(e,n,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 g(e){if(s=s||n(37),!(d.call(g,this)||this instanceof s))return new g(e);this._writableState=new y(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)),f.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,u=!0;n;)o[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;o.allBuffers=u,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(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(b(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function _(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function O(e,t){var n=_(t);return n&&(!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"))),n}c.inherits(g,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:l.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]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(g,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===g&&(e&&e._writableState instanceof y)}})):d=function(e){return e instanceof this},g.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},g.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,p.isBuffer(r)||r instanceof h);return s&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=m),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(g.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),g.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},g.prototype._writev=null,g.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(g.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),g.prototype.destroy=v.destroy,g.prototype._undestroy=v.undestroy,g.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(15),n(364).setImmediate,n(10))},function(e,t,n){"use strict";var r=n(64).Buffer,o=r.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&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=p,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.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,n=function(e,t,n){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!==n?n: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 u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?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-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(e.lastNeed=o-1),o;if(--r=0)return o>0&&(e.lastNeed=o-2),o;if(--r=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=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},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,n){"use strict";e.exports=a;var r=n(37),o=n(41);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length-1?o=a:(n=r.isUndefined(e)?void 0:k(e),r.isUndefined(n)?o=a:((o=n).path=u(i.join(n.path,a.path)),o.query=function(e,t){var n={};function o(e){r.forOwn(e,function(e,t){n[t]=e})}return o(s.parse(e||"")),o(s.parse(t||"")),0===Object.keys(n).length?void 0:s.stringify(n)}(n.query,a.query))),o.fragment=void 0,(-1===h.indexOf(o.reference)&&0===o.path.indexOf("../")?"../":"")+c.serialize(o)}function m(e){return p.indexOf(w(e))>-1}function y(e){return r.isUndefined(e.error)&&"invalid"!==e.type}function g(e,t){var n=e;return t.forEach(function(e){if(!(e in n))throw Error("JSON Pointer points to missing location: "+L(t));n=n[e]}),n}function b(e){return Object.keys(e).filter(function(e){return"$ref"!==e})}function w(e){var t;switch(e.uriDetails.reference){case"absolute":case"uri":t="remote";break;case"same-document":t="local";break;default:t=e.uriDetails.reference}return t}function x(e,t){var n=f[e],o=Promise.resolve(),i=r.cloneDeep(t.loaderOptions||{});return r.isUndefined(n)?(r.isUndefined(i.processContent)&&(i.processContent=function(e,t){t(void 0,JSON.parse(e.text))}),o=(o=a.load(decodeURI(e),i)).then(function(t){return f[e]={value:t},t}).catch(function(t){throw f[e]={error:t},t})):o=o.then(function(){if(r.isError(n.error))throw n.error;return n.value}),o=o.then(function(e){return r.cloneDeep(e)})}function _(e,t){var n=!0;try{if(!r.isPlainObject(e))throw new Error("obj is not an Object");if(!r.isString(e.$ref))throw new Error("obj.$ref is not a String")}catch(e){if(t)throw e;n=!1}return n}function S(e){return-1!==e.indexOf("://")||i.isAbsolute(e)?e:i.resolve(t.cwd(),e)}function O(e,t){e.error=t.message,e.missing=!0}function k(e){return c.parse(e)}function E(e,t){var n,o;if(e=r.isUndefined(e)?{}:r.cloneDeep(e),!r.isObject(e))throw new TypeError("options must be an Object");if(!r.isUndefined(e.resolveCirculars)&&!r.isBoolean(e.resolveCirculars))throw new TypeError("options.resolveCirculars must be a Boolean");if(!(r.isUndefined(e.filter)||r.isArray(e.filter)||r.isFunction(e.filter)||r.isString(e.filter)))throw new TypeError("options.filter must be an Array, a Function of a String");if(!r.isUndefined(e.includeInvalid)&&!r.isBoolean(e.includeInvalid))throw new TypeError("options.includeInvalid must be a Boolean");if(!r.isUndefined(e.location)&&!r.isString(e.location))throw new TypeError("options.location must be a String");if(!r.isUndefined(e.refPreProcessor)&&!r.isFunction(e.refPreProcessor))throw new TypeError("options.refPreProcessor must be a Function");if(!r.isUndefined(e.refPostProcessor)&&!r.isFunction(e.refPostProcessor))throw new TypeError("options.refPostProcessor must be a Function");if(!r.isUndefined(e.subDocPath)&&!r.isArray(e.subDocPath)&&!P(e.subDocPath))throw new TypeError("options.subDocPath must be an Array of path segments or a valid JSON Pointer");if(r.isUndefined(e.resolveCirculars)&&(e.resolveCirculars=!1),e.filter=function(e){var t,n;return r.isArray(e.filter)||r.isString(e.filter)?(n=r.isString(e.filter)?[e.filter]:e.filter,t=function(e){return n.indexOf(e.type)>-1||n.indexOf(w(e))>-1}):r.isFunction(e.filter)?t=e.filter:r.isUndefined(e.filter)&&(t=function(){return!0}),function(n,r){return("invalid"!==n.type||!0===e.includeInvalid)&&t(n,r)}}(e),r.isUndefined(e.location)&&(e.location=S("./root.json")),(n=e.location.split("#")).length>1&&(e.subDocPath="#"+n[1]),o=decodeURI(e.location)===e.location,e.location=v(e.location,void 0),o&&(e.location=decodeURI(e.location)),e.subDocPath=function(e){var t;return r.isArray(e.subDocPath)?t=e.subDocPath:r.isString(e.subDocPath)?t=R(e.subDocPath):r.isUndefined(e.subDocPath)&&(t=[]),t}(e),!r.isUndefined(t))try{g(t,e.subDocPath)}catch(e){throw e.message=e.message.replace("JSON Pointer","options.subDocPath"),e}return e}function A(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~1/g,"/").replace(/~0/g,"~")})}function T(e){if(!r.isArray(e))throw new TypeError("path must be an array");return e.map(function(e){return r.isString(e)||(e=JSON.stringify(e)),e.replace(/~/g,"~0").replace(/\//g,"~1")})}function j(e,t){var n={};if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");return function e(t,n,o,i){var a=!0;function s(n,r){o.push(r),e(t,n,o,i),o.pop()}r.isFunction(i)&&(a=i(t,n,o)),-1===t.indexOf(n)&&(t.push(n),!1!==a&&(r.isArray(n)?n.forEach(function(e,t){s(e,t.toString())}):r.isObject(n)&&r.forOwn(n,function(e,t){s(e,t)})),t.pop())}(function(e,t){var n,r=[];return t.length>0&&(n=e,t.slice(0,t.length-1).forEach(function(e){e in n&&(n=n[e],r.push(n))})),r}(e,(t=E(t,e)).subDocPath),g(e,t.subDocPath),r.cloneDeep(t.subDocPath),function(e,o,i){var a,s,u=!0;return _(o)&&(r.isUndefined(t.refPreProcessor)||(o=t.refPreProcessor(r.cloneDeep(o),i)),a=C(o),r.isUndefined(t.refPostProcessor)||(a=t.refPostProcessor(a,i)),t.filter(a,i)&&(s=L(i),n[s]=a),b(o).length>0&&(u=!1)),u}),n}function C(e){var t,n,o,i={def:e};try{if(_(e,!0)){if(t=e.$ref,o=d[t],r.isUndefined(o)&&(o=d[t]=k(t)),i.uri=t,i.uriDetails=o,r.isUndefined(o.error)){i.type=w(i);try{["#","/"].indexOf(t[0])>-1?P(t,!0):t.indexOf("#")>-1&&P(o.fragment,!0)}catch(e){i.error=e.message,i.type="invalid"}}else i.error=i.uriDetails.error,i.type="invalid";(n=b(e)).length>0&&(i.warning="Extra JSON Reference properties will be ignored: "+n.join(", "))}else i.type="invalid"}catch(e){i.error=e.message,i.type="invalid"}return i}function P(e,t){var n,o=!0;try{if(!r.isString(e))throw new Error("ptr is not a String");if(""!==e){if(n=e.charAt(0),-1===["#","/"].indexOf(n))throw new Error("ptr must start with a / or #/");if("#"===n&&"#"!==e&&"/"!==e.charAt(1))throw new Error("ptr must start with a / or #/");if(e.match(l))throw new Error("ptr has invalid token(s)")}}catch(e){if(!0===t)throw e;o=!1}return o}function R(e){try{P(e,!0)}catch(e){throw new Error("ptr must be a JSON Pointer: "+e.message)}var t=e.split("/");return t.shift(),A(t)}function L(e,t){if(!r.isArray(e))throw new Error("path must be an Array");return(!1!==t?"#":"")+(e.length>0?"/":"")+T(e).join("/")}function N(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isArray(e)&&!r.isObject(e))throw new TypeError("obj must be an Array or an Object");t=E(t,e),e=r.cloneDeep(e)}).then(function(){var n={deps:{},docs:{},refs:{}};return function e(t,n,o){var a,s,u=Promise.resolve(),c=L(n.subDocPath),l=S(n.location),f=i.dirname(n.location),p=l+c;return r.isUndefined(o.docs[l])&&(o.docs[l]=t),r.isUndefined(o.deps[p])&&(o.deps[p]={},a=j(t,n),r.forOwn(a,function(i,a){var l,h,d=S(n.location)+a,g=i.refdId=decodeURI(S(m(i)?v(f,i.uri):n.location)+"#"+(i.uri.indexOf("#")>-1?i.uri.split("#")[1]:""));(o.refs[d]=i,y(i))&&(i.fqURI=g,o.deps[p][a===c?"#":a.replace(c+"/","#/")]=g,0!==d.indexOf(g+"/")?((s=r.cloneDeep(n)).subDocPath=r.isUndefined(i.uriDetails.fragment)?[]:R(decodeURI(i.uriDetails.fragment)),m(i)?(delete s.filter,s.location=g.split("#")[0],u=u.then((l=o,h=s,function(){var e=S(h.location),t=l.docs[e];return r.isUndefined(t)?x(e,h).catch(function(t){return l.docs[e]=t,t}):Promise.resolve().then(function(){return t})}))):u=u.then(function(){return t}),u=u.then(function(t,n,o){return function(i){if(r.isError(i))O(o,i);else try{return e(i,n,t).catch(function(e){O(o,e)})}catch(e){O(o,e)}}}(o,s,i))):i.circular=!0)})),u}(e,t,n).then(function(){return n})}).then(function(e){var n={},a=[],s=[],u=new o.Graph,c=S(t.location),l=c+L(t.subDocPath),f=i.dirname(c);return Object.keys(e.deps).forEach(function(e){u.setNode(e)}),r.forOwn(e.deps,function(e,t){r.forOwn(e,function(e){u.setEdge(t,e)})}),(a=o.alg.findCycles(u)).forEach(function(e){e.forEach(function(e){-1===s.indexOf(e)&&s.push(e)})}),r.forOwn(e.deps,function(t,n){r.forOwn(t,function(t,r){var o,i=!1,u=n+r.slice(1),c=e.refs[n+r.slice(1)],l=m(c);s.indexOf(t)>-1&&a.forEach(function(e){i||(o=e.indexOf(t))>-1&&e.forEach(function(n){i||0===u.indexOf(n+"/")&&(l&&o!==e.length-1&&"#"===t[t.length-1]||(i=!0))})}),i&&(c.circular=!0)})}),r.forOwn(Object.keys(e.deps).reverse(),function(n){var o=e.deps[n],i=n.split("#"),a=e.docs[i[0]],s=R(i[1]);r.forOwn(o,function(n,o){var u=n.split("#"),c=e.docs[u[0]],l=s.concat(R(o)),f=e.refs[i[0]+L(l)];if(r.isUndefined(f.error)&&r.isUndefined(f.missing))if(!t.resolveCirculars&&f.circular)f.value=f.def;else{try{f.value=g(c,R(u[1]))}catch(e){return void O(f,e)}""===i[1]&&"#"===o?e.docs[i[0]]=f.value:function(e,t,n){g(e,t.slice(0,t.length-1))[t[t.length-1]]=n}(a,l,f.value)}})}),Object.keys(e.refs).forEach(function(o){var i,a,s=e.refs[o];"invalid"!==s.type&&("#"===s.fqURI[s.fqURI.length-1]&&"#"!==s.uri[s.uri.length-1]&&(s.fqURI=s.fqURI.substr(0,s.fqURI.length-1)),i=s.fqURI.split("/"),a=s.uri.split("/"),r.times(a.length-1,function(e){var t=a[a.length-e-1],n=i.length-e-1,r=i[n];"."!==t&&".."!==t||(t=r),i[n]=t}),s.fqURI=i.join("/"),0===s.fqURI.indexOf(c)?s.fqURI=s.fqURI.replace(c,""):0===s.fqURI.indexOf(f)&&(s.fqURI=s.fqURI.replace(f,"")),"/"===s.fqURI[0]&&(s.fqURI="."+s.fqURI)),0===o.indexOf(l)&&function r(o,i,a){var s,u=i.split("#"),c=e.refs[i];n[u[0]===t.location?"#"+u[1]:L(t.subDocPath.concat(a))]=c,!c.circular&&y(c)?(s=e.deps[c.refdId],0!==c.refdId.indexOf(o)&&Object.keys(s).forEach(function(e){r(c.refdId,c.refdId+e.substr(1),a.concat(R(e)))})):!c.circular&&c.error&&(c.error=c.error.replace("options.subDocPath","JSON Pointer"),c.error.indexOf("#")>-1&&(c.error=c.error.replace(c.uri.substr(c.uri.indexOf("#")),c.uri)),0!==c.error.indexOf("ENOENT:")&&0!==c.error.indexOf("Not Found")||(c.error="JSON Pointer points to missing location: "+c.uri))}(l,o,R(o.substr(l.length)))}),r.forOwn(e.refs,function(e){delete e.refdId,e.missing&&(e.error=e.error.split(": ")[0]+": "+e.def.$ref)}),{refs:n,resolved:e.docs[c]}})}"undefined"==typeof Promise&&n(132),e.exports.clearCache=function(){f={}},e.exports.decodePath=function(e){return A(e)},e.exports.encodePath=function(e){return T(e)},e.exports.findRefs=function(e,t){return j(e,t)},e.exports.findRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(f[t.location]),o=r.cloneDeep(t),i=k(t.location);return r.isUndefined(n.refs)&&(delete o.filter,delete o.subDocPath,o.includeInvalid=!0,f[t.location].refs=j(e,o)),r.isUndefined(t.filter)||(o.filter=t.filter),r.isUndefined(i.fragment)?r.isUndefined(i.subDocPath)||(o.subDocPath=t.subDocPath):o.subDocPath=R(decodeURI(i.fragment)),{refs:j(e,o),value:e}})}(e,t)},e.exports.getRefDetails=function(e){return C(e)},e.exports.isPtr=function(e,t){return P(e,t)},e.exports.isRef=function(e,t){return function(e,t){return _(e,t)&&"invalid"!==C(e).type}(e,t)},e.exports.pathFromPtr=function(e){return R(e)},e.exports.pathToPtr=function(e,t){return L(e,t)},e.exports.resolveRefs=function(e,t){return N(e,t)},e.exports.resolveRefsAt=function(e,t){return function(e,t){var n=Promise.resolve();return n=n.then(function(){if(!r.isString(e))throw new TypeError("location must be a string");return r.isUndefined(t)&&(t={}),r.isObject(t)&&(t.location=e),x((t=E(t)).location,t)}).then(function(e){var n=r.cloneDeep(t),o=k(t.location);return r.isUndefined(o.fragment)||(n.subDocPath=R(decodeURI(o.fragment))),N(e,n).then(function(t){return{refs:t.refs,resolved:t.resolved,value:e}})})}(e,t)}}).call(this,n(15))},function(e,t,n){var r=n(65);"string"==typeof r&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1},i=n(171)(r,o);r.locals&&(e.exports=r.locals),r.locals||e.hot.accept(65,function(){var t=n(65);"string"==typeof t&&(t=[[e.i,t,""]]),i(t)}),e.hot.dispose(function(){i()})},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(u," */")),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot).concat(e," */")});return[n].concat(i).concat([o]).join("\n")}var a,s,u;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(n,"}"):n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o @@ -13,9 +13,9 @@ var r=n(352),o=n(353),i=n(148);function a(){return u.TYPED_ARRAY_SUPPORT?2147483 * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,h=2,d=4,v=1,m=2,y=1,g=2,b=4,w=8,x=16,_=32,S=64,O=128,k=256,E=512,A=30,T="...",j=800,C=16,P=1,R=2,L=1/0,N=9007199254740991,M=17976931348623157e292,I=NaN,U=4294967295,D=U-1,q=U>>>1,B=[["ary",O],["bind",y],["bindKey",g],["curry",w],["curryRight",x],["flip",E],["partial",_],["partialRight",S],["rearg",k]],F="[object Arguments]",z="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",Y="[object Date]",H="[object DOMException]",V="[object Error]",K="[object Function]",J="[object GeneratorFunction]",G="[object Map]",Q="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",ve="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Oe=RegExp(_e.source),ke=RegExp(Se.source),Ee=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Re.source),Ne=/^\s+|\s+$/g,Me=/^\s+/,Ie=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fe=/\\(\\)?/g,ze=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,Ye=/^0b[01]+$/i,He=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ge=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Xe+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Xe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",ht="(?:"+ft+"|"+at+")",dt="(?:"+nt+"|"+st+")"+"?",vt="[\\ufe0e\\ufe0f]?"+dt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+dt+")*"),mt="(?:"+[ot,ct,lt].join("|")+")"+vt,yt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+yt+vt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,Et={};Et[le]=Et[fe]=Et[pe]=Et[he]=Et[de]=Et[ve]=Et[me]=Et[ye]=Et[ge]=!0,Et[F]=Et[z]=Et[ue]=Et[W]=Et[ce]=Et[Y]=Et[V]=Et[K]=Et[G]=Et[Q]=Et[X]=Et[te]=Et[ne]=Et[re]=Et[ae]=!1;var At={};At[F]=At[z]=At[ue]=At[ce]=At[W]=At[Y]=At[le]=At[fe]=At[pe]=At[he]=At[de]=At[G]=At[Q]=At[X]=At[te]=At[ne]=At[re]=At[oe]=At[ve]=At[me]=At[ye]=At[ge]=!0,At[V]=At[K]=At[ae]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jt=parseFloat,Ct=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Rt="object"==typeof self&&self&&self.Object===Object&&self,Lt=Pt||Rt||Function("return this")(),Nt=t&&!t.nodeType&&t,Mt=Nt&&"object"==typeof r&&r&&!r.nodeType&&r,It=Mt&&Mt.exports===Nt,Ut=It&&Pt.process,Dt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),qt=Dt&&Dt.isArrayBuffer,Bt=Dt&&Dt.isDate,Ft=Dt&&Dt.isMap,zt=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Wt=Dt&&Dt.isTypedArray;function Yt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ht(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var _n=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Sn=hn({"&":"&","<":"<",">":">",'"':""","'":"'"});function On(e){return"\\"+Tt[e]}function kn(e){return _t.test(e)}function En(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function Tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Nn=function e(t){var n,r=(t=null==t?Lt:Nn.defaults(Lt.Object(),t,Nn.pick(Lt,Ot))).Array,o=t.Date,Ze=t.Error,Xe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Xe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=st.toString,dt=ct.call(tt),vt=Lt._,mt=nt("^"+ct.call(lt).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=It?t.Buffer:i,wt=t.Symbol,_t=t.Uint8Array,Tt=yt?yt.allocUnsafe:i,Pt=An(tt.getPrototypeOf,tt),Rt=tt.create,Nt=st.propertyIsEnumerable,Mt=it.splice,Ut=wt?wt.isConcatSpreadable:i,Dt=wt?wt.iterator:i,on=wt?wt.toStringTag:i,hn=function(){try{var e=qi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mn=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,In=o&&o.now!==Lt.Date.now&&o.now,Un=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Dn=et.ceil,qn=et.floor,Bn=tt.getOwnPropertySymbols,Fn=yt?yt.isBuffer:i,zn=t.isFinite,$n=it.join,Wn=An(tt.keys,tt),Yn=et.max,Hn=et.min,Vn=o.now,Kn=t.parseInt,Jn=et.random,Gn=it.reverse,Qn=qi(t,"DataView"),Zn=qi(t,"Map"),Xn=qi(t,"Promise"),er=qi(t,"Set"),tr=qi(t,"WeakMap"),nr=qi(tt,"create"),rr=tr&&new tr,or={},ir=fa(Qn),ar=fa(Zn),sr=fa(Xn),ur=fa(er),cr=fa(tr),lr=wt?wt.prototype:i,fr=lr?lr.valueOf:i,pr=lr?lr.toString:i;function hr(e){if(Ts(e)&&!ys(e)&&!(e instanceof yr)){if(e instanceof mr)return e;if(lt.call(e,"__wrapped__"))return pa(e)}return new mr(e)}var dr=function(){function e(){}return function(t){if(!As(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function vr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Mr(e,t,n,r,o,a){var s,u=t&p,c=t&h,l=t&d;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!As(e))return e;var f=ys(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ri(e,s)}else{var v=zi(e),m=v==K||v==J;if(xs(e))return Qo(e,u);if(v==X||v==F||m&&!o){if(s=c||m?{}:Wi(e),!u)return c?function(e,t){return oi(e,Fi(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,Bi(e),t)}(e,Pr(s,e))}else{if(!At[v])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ue:return Zo(e);case W:case Y:return new r(+e);case ce:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case fe:case pe:case he:case de:case ve:case me:case ye:case ge:return Xo(e,n);case G:return new r;case Q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,fr?tt(fr.call(o)):{}}var o}(e,v,u)}}a||(a=new _r);var y=a.get(e);if(y)return y;if(a.set(e,s),Ls(e))return e.forEach(function(r){s.add(Mr(r,t,n,r,e,a))}),s;if(js(e))return e.forEach(function(r,o){s.set(o,Mr(r,t,n,o,e,a))}),s;var g=f?i:(l?c?Ri:Pi:c?iu:ou)(e);return Vt(g||e,function(r,o){g&&(r=e[o=r]),Tr(s,o,Mr(r,t,n,o,e,a))}),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Ur(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Qt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Xt(t,yn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=bn,s=!1,t=new xr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Zn||br),string:new gr}},wr.prototype.delete=function(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ui(this,e).get(e)},wr.prototype.has=function(e){return Ui(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,c),this},xr.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new br,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Wr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Yr=ui(),Hr=ui(!0);function Vr(e,t){return e&&Yr(e,t,ou)}function Kr(e,t){return e&&Hr(e,t,ou)}function Jr(e,t){return Gt(t,function(t){return Os(e[t])})}function Gr(e,t){for(var n=0,r=(t=Vo(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&<.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Zt:Qt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Xt(p,yn(t))),l=Hn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var h=-1,d=c[0];e:for(;++h=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Mt.call(s,u,1),Mt.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Hi(o)?Mt.call(e,o,1):qo(e,o)}}return e}function _o(e,t){return e+qn(Jn()*(t-e+1))}function So(e,t){var n="";if(!e||t<1||t>N)return n;do{t%2&&(n+=e),(t=qn(t/2))&&(e+=e)}while(t);return n}function Oo(e,t){return ia(ea(e,t,Cu),e+"")}function ko(e){return Or(hu(e))}function Eo(e,t){var n=hu(e);return ua(n,Nr(t,0,n.length))}function Ao(e,t,n,r){if(!As(e))return e;for(var o=-1,a=(t=Vo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Ms(a)&&(n?a<=t:a=a){var l=t?null:Si(e);if(l)return jn(l);s=!1,o=bn,c=new xr}else c=t?[]:u;e:for(;++r=r?e:Po(e,t,n)}var Go=Mn||function(e){return Lt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Xo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Ms(e),s=t!==i,u=null===t,c=t==t,l=Ms(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Vi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r-1?o[a?t[s]:s]:i}}function hi(e){return Ci(function(t){var n=t.length,r=n,o=mr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==Ni(a))var s=new mr([],!0)}for(r=s?r:n;++r1&&w.reverse(),p&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,p=!0,h=n&m?new xr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Vt(B,function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(qe):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Vn(),o=C-(r-n);if(n=r,o>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ra(e,n)});function qa(e){var t=hr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var Fa=Ci(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Hi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[o],thisArg:i}),new mr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var za=ii(function(e,t,n){lt.call(e,n)?++e[n]:Rr(e,n,1)});var $a=pi(ma),Wa=pi(ya);function Ya(e,t){return(ys(e)?Vt:qr)(e,Ii(t,3))}function Ha(e,t){return(ys(e)?Kt:Br)(e,Ii(t,3))}var Va=ii(function(e,t,n){lt.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Ka=Oo(function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return qr(e,function(e){a[++o]=i?Yt(t,e,n):ro(e,t,n)}),a}),Ja=ii(function(e,t,n){Rr(e,n,t)});function Ga(e,t){return(ys(e)?Xt:po)(e,Ii(t,3))}var Qa=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=Oo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Vi(e,t[0],t[1])?t=[]:n>2&&Vi(t[0],t[1],t[2])&&(t=[t[0]]),go(e,Wr(t,1),[])}),Xa=In||function(){return Lt.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,ki(e,O,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=Fs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Oo(function(e,t,n){var r=y;if(n.length){var o=Tn(n,Mi(ns));r|=_}return ki(e,r,t,n,o)}),rs=Oo(function(e,t,n){var r=y|g;if(n.length){var o=Tn(n,Mi(rs));r|=_}return ki(t,r,e,n,o)});function os(e,t,n){var r,o,a,s,c,l,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new ot(u);function v(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function m(e){var n=e-l;return l===i||n>=t||n<0||h&&e-f>=a}function y(){var e=Xa();if(m(e))return g(e);c=oa(y,function(e){var n=t-(e-l);return h?Hn(n,a-(e-f)):n}(e))}function g(e){return c=i,d&&r?v(e):(r=o=i,s)}function b(){var e=Xa(),n=m(e);if(r=arguments,o=this,l=e,n){if(c===i)return function(e){return f=e,c=oa(y,t),p?v(e):s}(l);if(h)return c=oa(y,t),v(l)}return c===i&&(c=oa(y,t)),s}return t=$s(t)||0,As(n)&&(p=!!n.leading,a=(h="maxWait"in n)?Yn($s(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==i&&Go(c),f=0,r=l=o=c=i},b.flush=function(){return c===i?s:g(Xa())},b}var is=Oo(function(e,t){return Ur(e,1,t)}),as=Oo(function(e,t,n){return Ur(e,$s(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||wr),n}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var cs=Ko(function(e,t){var n=(t=1==t.length&&ys(t[0])?Xt(t[0],yn(Ii())):Xt(Wr(t,1),yn(Ii()))).length;return Oo(function(r){for(var o=-1,i=Hn(r.length,n);++o=t}),ms=oo(function(){return arguments}())?oo:function(e){return Ts(e)&<.call(e,"callee")&&!Nt.call(e,"callee")},ys=r.isArray,gs=qt?yn(qt):function(e){return Ts(e)&&Zr(e)==ue};function bs(e){return null!=e&&Es(e.length)&&!Os(e)}function ws(e){return Ts(e)&&bs(e)}var xs=Fn||$u,_s=Bt?yn(Bt):function(e){return Ts(e)&&Zr(e)==Y};function Ss(e){if(!Ts(e))return!1;var t=Zr(e);return t==V||t==H||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Os(e){if(!As(e))return!1;var t=Zr(e);return t==K||t==J||t==$||t==ee}function ks(e){return"number"==typeof e&&e==Fs(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var js=Ft?yn(Ft):function(e){return Ts(e)&&zi(e)==G};function Cs(e){return"number"==typeof e||Ts(e)&&Zr(e)==Q}function Ps(e){if(!Ts(e)||Zr(e)!=X)return!1;var t=Pt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Rs=zt?yn(zt):function(e){return Ts(e)&&Zr(e)==te};var Ls=$t?yn($t):function(e){return Ts(e)&&zi(e)==ne};function Ns(e){return"string"==typeof e||!ys(e)&&Ts(e)&&Zr(e)==re}function Ms(e){return"symbol"==typeof e||Ts(e)&&Zr(e)==oe}var Is=Wt?yn(Wt):function(e){return Ts(e)&&Es(e.length)&&!!Et[Zr(e)]};var Us=wi(fo),Ds=wi(function(e,t){return e<=t});function qs(e){if(!e)return[];if(bs(e))return Ns(e)?Rn(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=zi(e);return(t==G?En:t==ne?jn:hu)(e)}function Bs(e){return e?(e=$s(e))===L||e===-L?(e<0?-1:1)*M:e==e?e:0:0===e?e:0}function Fs(e){var t=Bs(e),n=t%1;return t==t?n?t-n:t:0}function zs(e){return e?Nr(Fs(e),0,U):0}function $s(e){if("number"==typeof e)return e;if(Ms(e))return I;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var n=Ye.test(e);return n||Ve.test(e)?Ct(e.slice(2),n?2:8):We.test(e)?I:+e}function Ws(e){return oi(e,iu(e))}function Ys(e){return null==e?"":Uo(e)}var Hs=ai(function(e,t){if(Qi(t)||bs(t))oi(t,ou(t),e);else for(var n in t)lt.call(t,n)&&Tr(e,n,t[n])}),Vs=ai(function(e,t){oi(t,iu(t),e)}),Ks=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),Js=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),Gs=Ci(Lr);var Qs=Oo(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Vi(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Ri(e),n),r&&(n=Mr(n,p|h|d,Ti));for(var o=t.length;o--;)qo(n,t[o]);return n});var cu=Ci(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Xt(Ri(e),function(e){return[e]});return t=Ii(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Oi(ou),pu=Oi(iu);function hu(e){return null==e?[]:gn(e,ou(e))}var du=li(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return Su(Ys(e).toLowerCase())}function mu(e){return(e=Ys(e))&&e.replace(Je,_n).replace(bt,"")}var yu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ci("toLowerCase");var wu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=li(function(e,t,n){return e+(n?" ":"")+Su(t)});var _u=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Su=ci("toUpperCase");function Ou(e,t,n){return e=Ys(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var ku=Oo(function(e,t){try{return Yt(e,i,t)}catch(e){return Ss(e)?e:new Ze(e)}}),Eu=Ci(function(e,t){return Vt(t,function(t){t=la(t),Rr(e,t,ns(e[t],e))}),e});function Au(e){return function(){return e}}var Tu=hi(),ju=hi(!0);function Cu(e){return e}function Pu(e){return uo("function"==typeof e?e:Mr(e,p))}var Ru=Oo(function(e,t){return function(n){return ro(n,e,t)}}),Lu=Oo(function(e,t){return function(n){return ro(e,n,t)}});function Nu(e,t,n){var r=ou(t),o=Jr(t,r);null!=n||As(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,ou(t)));var i=!(As(n)&&"chain"in n&&!n.chain),a=Os(e);return Vt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Mu(){}var Iu=yi(Xt),Uu=yi(Jt),Du=yi(rn);function qu(e){return Ki(e)?pn(la(e)):function(e){return function(t){return Gr(t,e)}}(e)}var Bu=bi(),Fu=bi(!0);function zu(){return[]}function $u(){return!1}var Wu=mi(function(e,t){return e+t},0),Yu=_i("ceil"),Hu=mi(function(e,t){return e/t},1),Vu=_i("floor");var Ku,Ju=mi(function(e,t){return e*t},1),Gu=_i("round"),Qu=mi(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=Fs(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=es,hr.assign=Hs,hr.assignIn=Vs,hr.assignInWith=Ks,hr.assignWith=Js,hr.at=Gs,hr.before=ts,hr.bind=ns,hr.bindAll=Eu,hr.bindKey=rs,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},hr.chain=qa,hr.chunk=function(e,t,n){t=(n?Vi(e,t,n):t===i)?1:Yn(Fs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Dn(o/t));ao?0:o+n),(r=r===i||r>o?o:Fs(r))<0&&(r+=o),r=n>r?0:zs(r);n>>0)?(e=Ys(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Uo(t))&&kn(e)?Jo(Rn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Yn(Fs(t),0),Oo(function(n){var r=n[t],o=Jo(n,0,t);return r&&en(o,r),Yt(e,this,o)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:Fs(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:Fs(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?Fo(e,Ii(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?Fo(e,Ii(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return As(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},hr.thru=Ba,hr.toArray=qs,hr.toPairs=fu,hr.toPairsIn=pu,hr.toPath=function(e){return ys(e)?Xt(e,la):Ms(e)?[e]:ri(ca(Ys(e)))},hr.toPlainObject=Ws,hr.transform=function(e,t,n){var r=ys(e),o=r||xs(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:As(e)&&Os(i)?dr(Pt(e)):{}}return(o?Vt:Vr)(e,function(e,r,o){return t(n,e,r,o)}),n},hr.unary=function(e){return es(e,1)},hr.union=Ta,hr.unionBy=ja,hr.unionWith=Ca,hr.uniq=function(e){return e&&e.length?Do(e):[]},hr.uniqBy=function(e,t){return e&&e.length?Do(e,Ii(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},hr.unset=function(e,t){return null==e||qo(e,t)},hr.unzip=Pa,hr.unzipWith=Ra,hr.update=function(e,t,n){return null==e?e:Bo(e,t,Ho(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Bo(e,t,Ho(n),r)},hr.values=hu,hr.valuesIn=function(e){return null==e?[]:gn(e,iu(e))},hr.without=La,hr.words=Ou,hr.wrap=function(e,t){return ls(Ho(t),e)},hr.xor=Na,hr.xorBy=Ma,hr.xorWith=Ia,hr.zip=Ua,hr.zipObject=function(e,t){return Wo(e||[],t||[],Tr)},hr.zipObjectDeep=function(e,t){return Wo(e||[],t||[],Ao)},hr.zipWith=Da,hr.entries=fu,hr.entriesIn=pu,hr.extend=Vs,hr.extendWith=Ks,Nu(hr,hr),hr.add=Wu,hr.attempt=ku,hr.camelCase=du,hr.capitalize=vu,hr.ceil=Yu,hr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=$s(n))==n?n:0),t!==i&&(t=(t=$s(t))==t?t:0),Nr($s(e),t,n)},hr.clone=function(e){return Mr(e,d)},hr.cloneDeep=function(e){return Mr(e,p|d)},hr.cloneDeepWith=function(e,t){return Mr(e,p|d,t="function"==typeof t?t:i)},hr.cloneWith=function(e,t){return Mr(e,d,t="function"==typeof t?t:i)},hr.conformsTo=function(e,t){return null==t||Ir(e,t,ou(t))},hr.deburr=mu,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=Hu,hr.endsWith=function(e,t,n){e=Ys(e),t=Uo(t);var r=e.length,o=n=n===i?r:Nr(Fs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=hs,hr.escape=function(e){return(e=Ys(e))&&ke.test(e)?e.replace(Se,Sn):e},hr.escapeRegExp=function(e){return(e=Ys(e))&&Le.test(e)?e.replace(Re,"\\$&"):e},hr.every=function(e,t,n){var r=ys(e)?Jt:Fr;return n&&Vi(e,t,n)&&(t=i),r(e,Ii(t,3))},hr.find=$a,hr.findIndex=ma,hr.findKey=function(e,t){return an(e,Ii(t,3),Vr)},hr.findLast=Wa,hr.findLastIndex=ya,hr.findLastKey=function(e,t){return an(e,Ii(t,3),Kr)},hr.floor=Vu,hr.forEach=Ya,hr.forEachRight=Ha,hr.forIn=function(e,t){return null==e?e:Yr(e,Ii(t,3),iu)},hr.forInRight=function(e,t){return null==e?e:Hr(e,Ii(t,3),iu)},hr.forOwn=function(e,t){return e&&Vr(e,Ii(t,3))},hr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},hr.get=Xs,hr.gt=ds,hr.gte=vs,hr.has=function(e,t){return null!=e&&$i(e,t,eo)},hr.hasIn=eu,hr.head=ba,hr.identity=Cu,hr.includes=function(e,t,n,r){e=bs(e)?e:hu(e),n=n&&!r?Fs(n):0;var o=e.length;return n<0&&(n=Yn(o+n,0)),Ns(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:Fs(n);return o<0&&(o=Yn(r+o,0)),un(e,t,o)},hr.inRange=function(e,t,n){return t=Bs(t),n===i?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Hn(t,n)&&e=-N&&e<=N},hr.isSet=Ls,hr.isString=Ns,hr.isSymbol=Ms,hr.isTypedArray=Is,hr.isUndefined=function(e){return e===i},hr.isWeakMap=function(e){return Ts(e)&&zi(e)==ae},hr.isWeakSet=function(e){return Ts(e)&&Zr(e)==se},hr.join=function(e,t){return null==e?"":$n.call(e,t)},hr.kebabCase=yu,hr.last=Sa,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=Fs(n))<0?Yn(r+o,0):Hn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,ln,o,!0)},hr.lowerCase=gu,hr.lowerFirst=bu,hr.lt=Us,hr.lte=Ds,hr.max=function(e){return e&&e.length?zr(e,Cu,Xr):i},hr.maxBy=function(e,t){return e&&e.length?zr(e,Ii(t,2),Xr):i},hr.mean=function(e){return fn(e,Cu)},hr.meanBy=function(e,t){return fn(e,Ii(t,2))},hr.min=function(e){return e&&e.length?zr(e,Cu,fo):i},hr.minBy=function(e,t){return e&&e.length?zr(e,Ii(t,2),fo):i},hr.stubArray=zu,hr.stubFalse=$u,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Ju,hr.nth=function(e,t){return e&&e.length?yo(e,Fs(t)):i},hr.noConflict=function(){return Lt._===this&&(Lt._=vt),this},hr.noop=Mu,hr.now=Xa,hr.pad=function(e,t,n){e=Ys(e);var r=(t=Fs(t))?Pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gi(qn(o),n)+e+gi(Dn(o),n)},hr.padEnd=function(e,t,n){e=Ys(e);var r=(t=Fs(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Hn(e+o*(t-e+jt("1e-"+((o+"").length-1))),t)}return _o(e,t)},hr.reduce=function(e,t,n){var r=ys(e)?tn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,qr)},hr.reduceRight=function(e,t,n){var r=ys(e)?nn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Br)},hr.repeat=function(e,t,n){return t=(n?Vi(e,t,n):t===i)?1:Fs(t),So(Ys(e),t)},hr.replace=function(){var e=arguments,t=Ys(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Vo(t,e)).length;for(o||(o=1,e=i);++rN)return[];var n=U,r=Hn(e,U);t=Ii(t),e-=U;for(var o=mn(r,t);++n=a)return e;var u=n-Pn(r);if(u<1)return r;var c=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),Rs(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=nt(o.source,Ys($e.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(Uo(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},hr.unescape=function(e){return(e=Ys(e))&&Oe.test(e)?e.replace(_e,Ln):e},hr.uniqueId=function(e){var t=++ft;return Ys(e)+t},hr.upperCase=_u,hr.upperFirst=Su,hr.each=Ya,hr.eachRight=Ha,hr.first=ba,Nu(hr,(Ku={},Vr(hr,function(e,t){lt.call(hr.prototype,t)||(Ku[t]=e)}),Ku),{chain:!1}),hr.VERSION="4.17.11",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Vt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:Yn(Fs(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Hn(n,r.__takeCount__):r.__views__.push({size:Hn(n,U),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Vt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==P||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Cu)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Oo(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ro(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(us(Ii(e)))},yr.prototype.slice=function(e,t){e=Fs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=Fs(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(U)},Vr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof yr,c=s[0],l=u||ys(t),f=function(e){var t=o.apply(hr,en([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,h=!!this.__actions__.length,d=a&&!p,v=u&&!h;if(!a&&l){t=v?t:new yr(this);var m=e.apply(t,s);return m.__actions__.push({func:Ba,args:[f],thisArg:i}),new mr(m,p)}return d&&v?e.apply(this,s):(m=this.thru(f),d?r?m.value()[0]:m.value():m)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ys(o)?o:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Vr(yr.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[di(i,g).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Aa],thisArg:i}),new mr(t,this.__chain__)}return this.thru(Aa)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return zo(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,Dt&&(hr.prototype[Dt]=function(){return this}),hr}();Lt._=Nn,(o=function(){return Nn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(10),n(38)(e))},function(e,t,n){var r=n(174);e.exports={Graph:r.Graph,json:n(300),alg:n(301),version:r.version}},function(e,t,n){e.exports={Graph:n(66),version:n(299)}},function(e,t,n){var r=n(176),o=4;e.exports=function(e){return r(e,o)}},function(e,t,n){var r=n(67),o=n(71),i=n(98),a=n(205),s=n(211),u=n(214),c=n(215),l=n(216),f=n(217),p=n(108),h=n(218),d=n(31),v=n(222),m=n(223),y=n(228),g=n(6),b=n(39),w=n(229),x=n(22),_=n(231),S=n(23),O=1,k=2,E=4,A="[object Arguments]",T="[object Function]",j="[object GeneratorFunction]",C="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[C]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[T]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,R,L,N,M){var I,U=n&O,D=n&k,q=n&E;if(R&&(I=N?R(t,L,N,M):R(t)),void 0!==I)return I;if(!x(t))return t;var B=g(t);if(B){if(I=v(t),!U)return c(t,I)}else{var F=d(t),z=F==T||F==j;if(b(t))return u(t,U);if(F==C||F==A||z&&!N){if(I=D||z?{}:y(t),!U)return D?f(t,s(I,t)):l(t,a(I,t))}else{if(!P[F])return N?t:{};I=m(t,F,U)}}M||(M=new r);var $=M.get(t);if($)return $;if(M.set(t,I),_(t))return t.forEach(function(r){I.add(e(r,n,R,r,t,M))}),I;if(w(t))return t.forEach(function(r,o){I.set(o,e(r,n,R,o,t,M))}),I;var W=q?D?h:p:D?keysIn:S,Y=B?void 0:W(t);return o(Y||t,function(r,o){Y&&(r=t[o=r]),i(I,o,e(r,n,R,o,t,M))}),I}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(43),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(43);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(42);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(42),o=n(69),i=n(70),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length0&&i(l)?n>1?e(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){var r=n(30),o=n(48),i=n(6),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(52),o=n(282),i=n(284);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(283),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(117),o=n(288),i=n(293),a=n(118),s=n(294),u=n(80),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,h=!0,d=[],v=d;if(n)h=!1,f=i;else if(p>=c){var m=t?null:s(e);if(m)return u(m);h=!1,f=a,v=new r}else v=t?[]:d;e:for(;++l-1}},function(e,t,n){var r=n(290),o=n(291),i=n(292);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1||1===t.length&&e.hasEdge(t[0],t[0])})}},function(e,t,n){var r=n(14);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(n).forEach(c)}return a}},function(e,t,n){"use strict";var r={file:n(311),http:n(130),https:n(130)},o="object"==typeof window||"function"==typeof importScripts?r.http:r.file;"undefined"==typeof Promise&&n(132),e.exports.load=function(e,t){var n=Promise.resolve();return void 0===t&&(t={}),n=(n=n.then(function(){if(void 0===e)throw new TypeError("location is required");if("string"!=typeof e)throw new TypeError("location must be a string");if(void 0!==t){if("object"!=typeof t)throw new TypeError("options must be an object");if(void 0!==t.processContent&&"function"!=typeof t.processContent)throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(n,i){(function(e){var t=function(e){return void 0!==e&&(e=-1===e.indexOf("://")?"":e.split("://")[0]),e}(e),n=r[t];if(void 0===n){if(""!==t)throw new Error("Unsupported scheme: "+t);n=o}return n})(e).load(e,t||{},function(e,t){e?i(e):n(t)})})}).then(function(n){return t.processContent?new Promise(function(r,o){"object"!=typeof n&&(n={text:n}),n.location=e,t.processContent(n,function(e,t){e?o(e):r(t)})}):"object"==typeof n?n.text:n})}},function(e,t,n){"use strict";var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var e=arguments[arguments.length-1];if("function"!=typeof e)throw r;e(r)}},function(e,t,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n(313),i=n(314),a=n(131),s=n(315),u=n(317);function c(){}var l=t=e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1==arguments.length?new t.Request("GET",e):new t.Request(e,n)};t.Request=y,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function p(e){if(!a(e))return e;var t=[];for(var n in e)h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(a(n))for(var r in n)h(e,t+"["+r+"]",n[r]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(n));else null===n&&e.push(encodeURIComponent(t))}function d(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&v(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new l.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),u.prototype.del=u.prototype.delete,l.get=function(e,t,n){var r=l("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.head=function(e,t,n){var r=l("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.options=function(e,t,n){var r=l("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.del=g,l.delete=g,l.patch=function(e,t,n){var r=l("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.post=function(e,t,n){var r=l("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.put=function(e,t,n){var r=l("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){"use strict";var r=n(316);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)this[o]=n[o];this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,t.arguments)})},e.exports=n},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=v.substr(0,m),p=v.substr(m+1)):(f=v,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?o(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r{const t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){ + */(function(){var i,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",p=1,h=2,d=4,v=1,m=2,y=1,g=2,b=4,w=8,x=16,_=32,S=64,O=128,k=256,E=512,A=30,T="...",j=800,C=16,P=1,R=2,L=1/0,N=9007199254740991,M=17976931348623157e292,I=NaN,U=4294967295,D=U-1,q=U>>>1,B=[["ary",O],["bind",y],["bindKey",g],["curry",w],["curryRight",x],["flip",E],["partial",_],["partialRight",S],["rearg",k]],z="[object Arguments]",F="[object Array]",$="[object AsyncFunction]",W="[object Boolean]",H="[object Date]",Y="[object DOMException]",V="[object Error]",K="[object Function]",J="[object GeneratorFunction]",G="[object Map]",Q="[object Number]",Z="[object Null]",X="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",oe="[object Symbol]",ie="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",pe="[object Int8Array]",he="[object Int16Array]",de="[object Int32Array]",ve="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,xe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,_e=/&(?:amp|lt|gt|quot|#39);/g,Se=/[&<>"']/g,Oe=RegExp(_e.source),ke=RegExp(Se.source),Ee=/<%-([\s\S]+?)%>/g,Ae=/<%([\s\S]+?)%>/g,Te=/<%=([\s\S]+?)%>/g,je=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ce=/^\w*$/,Pe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Re=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Re.source),Ne=/^\s+|\s+$/g,Me=/^\s+/,Ie=/\s+$/,Ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,De=/\{\n\/\* \[wrapped with (.+)\] \*/,qe=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ze=/\\(\\)?/g,Fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,$e=/\w*$/,We=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Ve=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Je=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ge=/($^)/,Qe=/['\n\r\u2028\u2029\\]/g,Ze="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Xe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Xe+"]",nt="["+Ze+"]",rt="\\d+",ot="[\\u2700-\\u27bf]",it="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Xe+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",pt="(?:"+it+"|"+at+")",ht="(?:"+ft+"|"+at+")",dt="(?:"+nt+"|"+st+")"+"?",vt="[\\ufe0e\\ufe0f]?"+dt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+dt+")*"),mt="(?:"+[ot,ct,lt].join("|")+")"+vt,yt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),wt=RegExp(st+"(?="+st+")|"+yt+vt,"g"),xt=RegExp([ft+"?"+it+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",ht+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+pt,"$"].join("|")+")",ft+"?"+pt+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),_t=RegExp("[\\u200d\\ud800-\\udfff"+Ze+"\\ufe0e\\ufe0f]"),St=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],kt=-1,Et={};Et[le]=Et[fe]=Et[pe]=Et[he]=Et[de]=Et[ve]=Et[me]=Et[ye]=Et[ge]=!0,Et[z]=Et[F]=Et[ue]=Et[W]=Et[ce]=Et[H]=Et[V]=Et[K]=Et[G]=Et[Q]=Et[X]=Et[te]=Et[ne]=Et[re]=Et[ae]=!1;var At={};At[z]=At[F]=At[ue]=At[ce]=At[W]=At[H]=At[le]=At[fe]=At[pe]=At[he]=At[de]=At[G]=At[Q]=At[X]=At[te]=At[ne]=At[re]=At[oe]=At[ve]=At[me]=At[ye]=At[ge]=!0,At[V]=At[K]=At[ae]=!1;var Tt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jt=parseFloat,Ct=parseInt,Pt="object"==typeof e&&e&&e.Object===Object&&e,Rt="object"==typeof self&&self&&self.Object===Object&&self,Lt=Pt||Rt||Function("return this")(),Nt=t&&!t.nodeType&&t,Mt=Nt&&"object"==typeof r&&r&&!r.nodeType&&r,It=Mt&&Mt.exports===Nt,Ut=It&&Pt.process,Dt=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||Ut&&Ut.binding&&Ut.binding("util")}catch(e){}}(),qt=Dt&&Dt.isArrayBuffer,Bt=Dt&&Dt.isDate,zt=Dt&&Dt.isMap,Ft=Dt&&Dt.isRegExp,$t=Dt&&Dt.isSet,Wt=Dt&&Dt.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o-1}function Zt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r-1;);return n}function xn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var _n=hn({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),Sn=hn({"&":"&","<":"<",">":">",'"':""","'":"'"});function On(e){return"\\"+Tt[e]}function kn(e){return _t.test(e)}function En(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function An(e,t){return function(n){return e(t(n))}}function Tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n",""":'"',"'":"'"});var Nn=function e(t){var n,r=(t=null==t?Lt:Nn.defaults(Lt.Object(),t,Nn.pick(Lt,Ot))).Array,o=t.Date,Ze=t.Error,Xe=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,ot=t.TypeError,it=r.prototype,at=Xe.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,pt=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ht=st.toString,dt=ct.call(tt),vt=Lt._,mt=nt("^"+ct.call(lt).replace(Re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=It?t.Buffer:i,wt=t.Symbol,_t=t.Uint8Array,Tt=yt?yt.allocUnsafe:i,Pt=An(tt.getPrototypeOf,tt),Rt=tt.create,Nt=st.propertyIsEnumerable,Mt=it.splice,Ut=wt?wt.isConcatSpreadable:i,Dt=wt?wt.iterator:i,on=wt?wt.toStringTag:i,hn=function(){try{var e=qi(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Mn=t.clearTimeout!==Lt.clearTimeout&&t.clearTimeout,In=o&&o.now!==Lt.Date.now&&o.now,Un=t.setTimeout!==Lt.setTimeout&&t.setTimeout,Dn=et.ceil,qn=et.floor,Bn=tt.getOwnPropertySymbols,zn=yt?yt.isBuffer:i,Fn=t.isFinite,$n=it.join,Wn=An(tt.keys,tt),Hn=et.max,Yn=et.min,Vn=o.now,Kn=t.parseInt,Jn=et.random,Gn=it.reverse,Qn=qi(t,"DataView"),Zn=qi(t,"Map"),Xn=qi(t,"Promise"),er=qi(t,"Set"),tr=qi(t,"WeakMap"),nr=qi(tt,"create"),rr=tr&&new tr,or={},ir=fa(Qn),ar=fa(Zn),sr=fa(Xn),ur=fa(er),cr=fa(tr),lr=wt?wt.prototype:i,fr=lr?lr.valueOf:i,pr=lr?lr.toString:i;function hr(e){if(Ts(e)&&!ys(e)&&!(e instanceof yr)){if(e instanceof mr)return e;if(lt.call(e,"__wrapped__"))return pa(e)}return new mr(e)}var dr=function(){function e(){}return function(t){if(!As(t))return{};if(Rt)return Rt(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function vr(){}function mr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function yr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function gr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Mr(e,t,n,r,o,a){var s,u=t&p,c=t&h,l=t&d;if(n&&(s=o?n(e,r,o,a):n(e)),s!==i)return s;if(!As(e))return e;var f=ys(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&<.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return ri(e,s)}else{var v=Fi(e),m=v==K||v==J;if(xs(e))return Qo(e,u);if(v==X||v==z||m&&!o){if(s=c||m?{}:Wi(e),!u)return c?function(e,t){return oi(e,zi(e),t)}(e,function(e,t){return e&&oi(t,iu(t),e)}(s,e)):function(e,t){return oi(e,Bi(e),t)}(e,Pr(s,e))}else{if(!At[v])return o?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case ue:return Zo(e);case W:case H:return new r(+e);case ce:return function(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case fe:case pe:case he:case de:case ve:case me:case ye:case ge:return Xo(e,n);case G:return new r;case Q:case re:return new r(e);case te:return function(e){var t=new e.constructor(e.source,$e.exec(e));return t.lastIndex=e.lastIndex,t}(e);case ne:return new r;case oe:return o=e,fr?tt(fr.call(o)):{}}var o}(e,v,u)}}a||(a=new _r);var y=a.get(e);if(y)return y;if(a.set(e,s),Ls(e))return e.forEach(function(r){s.add(Mr(r,t,n,r,e,a))}),s;if(js(e))return e.forEach(function(r,o){s.set(o,Mr(r,t,n,o,e,a))}),s;var g=f?i:(l?c?Ri:Pi:c?iu:ou)(e);return Vt(g||e,function(r,o){g&&(r=e[o=r]),Tr(s,o,Mr(r,t,n,o,e,a))}),s}function Ir(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var o=n[r],a=t[o],s=e[o];if(s===i&&!(o in e)||!a(s))return!1}return!0}function Ur(e,t,n){if("function"!=typeof e)throw new ot(u);return oa(function(){e.apply(i,n)},t)}function Dr(e,t,n,r){var o=-1,i=Qt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Xt(t,yn(n))),r?(i=Zt,s=!1):t.length>=a&&(i=bn,s=!1,t=new xr(t));e:for(;++o-1},br.prototype.set=function(e,t){var n=this.__data__,r=jr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new gr,map:new(Zn||br),string:new gr}},wr.prototype.delete=function(e){var t=Ui(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Ui(this,e).get(e)},wr.prototype.has=function(e){return Ui(this,e).has(e)},wr.prototype.set=function(e,t){var n=Ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},xr.prototype.add=xr.prototype.push=function(e){return this.__data__.set(e,c),this},xr.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.clear=function(){this.__data__=new br,this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_r.prototype.get=function(e){return this.__data__.get(e)},_r.prototype.has=function(e){return this.__data__.has(e)},_r.prototype.set=function(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Zn||r.length0&&n(s)?t>1?Wr(s,t-1,n,r,o):en(o,s):r||(o[o.length]=s)}return o}var Hr=ui(),Yr=ui(!0);function Vr(e,t){return e&&Hr(e,t,ou)}function Kr(e,t){return e&&Yr(e,t,ou)}function Jr(e,t){return Gt(t,function(t){return Os(e[t])})}function Gr(e,t){for(var n=0,r=(t=Vo(t,e)).length;null!=e&&nt}function eo(e,t){return null!=e&<.call(e,t)}function to(e,t){return null!=e&&t in tt(e)}function no(e,t,n){for(var o=n?Zt:Qt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var p=e[u];u&&t&&(p=Xt(p,yn(t))),l=Yn(p.length,l),c[u]=!n&&(t||a>=120&&p.length>=120)?new xr(u&&p):i}p=e[0];var h=-1,d=c[0];e:for(;++h=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function bo(e,t,n){for(var r=-1,o=t.length,i={};++r-1;)s!==e&&Mt.call(s,u,1),Mt.call(e,u,1);return e}function xo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;Yi(o)?Mt.call(e,o,1):qo(e,o)}}return e}function _o(e,t){return e+qn(Jn()*(t-e+1))}function So(e,t){var n="";if(!e||t<1||t>N)return n;do{t%2&&(n+=e),(t=qn(t/2))&&(e+=e)}while(t);return n}function Oo(e,t){return ia(ea(e,t,Cu),e+"")}function ko(e){return Or(hu(e))}function Eo(e,t){var n=hu(e);return ua(n,Nr(t,0,n.length))}function Ao(e,t,n,r){if(!As(e))return e;for(var o=-1,a=(t=Vo(t,e)).length,s=a-1,u=e;null!=u&&++oi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o>>1,a=e[i];null!==a&&!Ms(a)&&(n?a<=t:a=a){var l=t?null:Si(e);if(l)return jn(l);s=!1,o=bn,c=new xr}else c=t?[]:u;e:for(;++r=r?e:Po(e,t,n)}var Go=Mn||function(e){return Lt.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=Tt?Tt(n):new e.constructor(n);return e.copy(r),r}function Zo(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function Xo(e,t){var n=t?Zo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ei(e,t){if(e!==t){var n=e!==i,r=null===e,o=e==e,a=Ms(e),s=t!==i,u=null===t,c=t==t,l=Ms(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!o)return 1;if(!r&&!a&&!l&&e1?n[o-1]:i,s=o>2?n[2]:i;for(a=e.length>3&&"function"==typeof a?(o--,a):i,s&&Vi(n[0],n[1],s)&&(a=o<3?i:a,o=1),t=tt(t);++r-1?o[a?t[s]:s]:i}}function hi(e){return Ci(function(t){var n=t.length,r=n,o=mr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new ot(u);if(o&&!s&&"wrapper"==Ni(a))var s=new mr([],!0)}for(r=s?r:n;++r1&&w.reverse(),p&&lu))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,p=!0,h=n&m?new xr:i;for(a.set(e,t),a.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Ue,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Vt(B,function(n){var r="_."+n[0];t&n[1]&&!Qt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(De);return t?t[1].split(qe):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Vn(),o=C-(r-n);if(n=r,o>0){if(++t>=j)return arguments[0]}else t=0;return e.apply(i,arguments)}}function ua(e,t){var n=-1,r=e.length,o=r-1;for(t=t===i?r:t;++n1?e[t-1]:i;return n="function"==typeof n?(e.pop(),n):i,Ra(e,n)});function qa(e){var t=hr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var za=Ci(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,o=function(t){return Lr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof yr&&Yi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[o],thisArg:i}),new mr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(i),e})):this.thru(o)});var Fa=ii(function(e,t,n){lt.call(e,n)?++e[n]:Rr(e,n,1)});var $a=pi(ma),Wa=pi(ya);function Ha(e,t){return(ys(e)?Vt:qr)(e,Ii(t,3))}function Ya(e,t){return(ys(e)?Kt:Br)(e,Ii(t,3))}var Va=ii(function(e,t,n){lt.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Ka=Oo(function(e,t,n){var o=-1,i="function"==typeof t,a=bs(e)?r(e.length):[];return qr(e,function(e){a[++o]=i?Ht(t,e,n):ro(e,t,n)}),a}),Ja=ii(function(e,t,n){Rr(e,n,t)});function Ga(e,t){return(ys(e)?Xt:po)(e,Ii(t,3))}var Qa=ii(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Za=Oo(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Vi(e,t[0],t[1])?t=[]:n>2&&Vi(t[0],t[1],t[2])&&(t=[t[0]]),go(e,Wr(t,1),[])}),Xa=In||function(){return Lt.Date.now()};function es(e,t,n){return t=n?i:t,t=e&&null==t?e.length:t,ki(e,O,i,i,i,i,t)}function ts(e,t){var n;if("function"!=typeof t)throw new ot(u);return e=zs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var ns=Oo(function(e,t,n){var r=y;if(n.length){var o=Tn(n,Mi(ns));r|=_}return ki(e,r,t,n,o)}),rs=Oo(function(e,t,n){var r=y|g;if(n.length){var o=Tn(n,Mi(rs));r|=_}return ki(t,r,e,n,o)});function os(e,t,n){var r,o,a,s,c,l,f=0,p=!1,h=!1,d=!0;if("function"!=typeof e)throw new ot(u);function v(t){var n=r,a=o;return r=o=i,f=t,s=e.apply(a,n)}function m(e){var n=e-l;return l===i||n>=t||n<0||h&&e-f>=a}function y(){var e=Xa();if(m(e))return g(e);c=oa(y,function(e){var n=t-(e-l);return h?Yn(n,a-(e-f)):n}(e))}function g(e){return c=i,d&&r?v(e):(r=o=i,s)}function b(){var e=Xa(),n=m(e);if(r=arguments,o=this,l=e,n){if(c===i)return function(e){return f=e,c=oa(y,t),p?v(e):s}(l);if(h)return c=oa(y,t),v(l)}return c===i&&(c=oa(y,t)),s}return t=$s(t)||0,As(n)&&(p=!!n.leading,a=(h="maxWait"in n)?Hn($s(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==i&&Go(c),f=0,r=l=o=c=i},b.flush=function(){return c===i?s:g(Xa())},b}var is=Oo(function(e,t){return Ur(e,1,t)}),as=Oo(function(e,t,n){return Ur(e,$s(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ot(u);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(ss.Cache||wr),n}function us(e){if("function"!=typeof e)throw new ot(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var cs=Ko(function(e,t){var n=(t=1==t.length&&ys(t[0])?Xt(t[0],yn(Ii())):Xt(Wr(t,1),yn(Ii()))).length;return Oo(function(r){for(var o=-1,i=Yn(r.length,n);++o=t}),ms=oo(function(){return arguments}())?oo:function(e){return Ts(e)&<.call(e,"callee")&&!Nt.call(e,"callee")},ys=r.isArray,gs=qt?yn(qt):function(e){return Ts(e)&&Zr(e)==ue};function bs(e){return null!=e&&Es(e.length)&&!Os(e)}function ws(e){return Ts(e)&&bs(e)}var xs=zn||$u,_s=Bt?yn(Bt):function(e){return Ts(e)&&Zr(e)==H};function Ss(e){if(!Ts(e))return!1;var t=Zr(e);return t==V||t==Y||"string"==typeof e.message&&"string"==typeof e.name&&!Ps(e)}function Os(e){if(!As(e))return!1;var t=Zr(e);return t==K||t==J||t==$||t==ee}function ks(e){return"number"==typeof e&&e==zs(e)}function Es(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=N}function As(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ts(e){return null!=e&&"object"==typeof e}var js=zt?yn(zt):function(e){return Ts(e)&&Fi(e)==G};function Cs(e){return"number"==typeof e||Ts(e)&&Zr(e)==Q}function Ps(e){if(!Ts(e)||Zr(e)!=X)return!1;var t=Pt(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Rs=Ft?yn(Ft):function(e){return Ts(e)&&Zr(e)==te};var Ls=$t?yn($t):function(e){return Ts(e)&&Fi(e)==ne};function Ns(e){return"string"==typeof e||!ys(e)&&Ts(e)&&Zr(e)==re}function Ms(e){return"symbol"==typeof e||Ts(e)&&Zr(e)==oe}var Is=Wt?yn(Wt):function(e){return Ts(e)&&Es(e.length)&&!!Et[Zr(e)]};var Us=wi(fo),Ds=wi(function(e,t){return e<=t});function qs(e){if(!e)return[];if(bs(e))return Ns(e)?Rn(e):ri(e);if(Dt&&e[Dt])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Dt]());var t=Fi(e);return(t==G?En:t==ne?jn:hu)(e)}function Bs(e){return e?(e=$s(e))===L||e===-L?(e<0?-1:1)*M:e==e?e:0:0===e?e:0}function zs(e){var t=Bs(e),n=t%1;return t==t?n?t-n:t:0}function Fs(e){return e?Nr(zs(e),0,U):0}function $s(e){if("number"==typeof e)return e;if(Ms(e))return I;if(As(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=As(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Ne,"");var n=He.test(e);return n||Ve.test(e)?Ct(e.slice(2),n?2:8):We.test(e)?I:+e}function Ws(e){return oi(e,iu(e))}function Hs(e){return null==e?"":Uo(e)}var Ys=ai(function(e,t){if(Qi(t)||bs(t))oi(t,ou(t),e);else for(var n in t)lt.call(t,n)&&Tr(e,n,t[n])}),Vs=ai(function(e,t){oi(t,iu(t),e)}),Ks=ai(function(e,t,n,r){oi(t,iu(t),e,r)}),Js=ai(function(e,t,n,r){oi(t,ou(t),e,r)}),Gs=Ci(Lr);var Qs=Oo(function(e,t){e=tt(e);var n=-1,r=t.length,o=r>2?t[2]:i;for(o&&Vi(t[0],t[1],o)&&(r=1);++n1),t}),oi(e,Ri(e),n),r&&(n=Mr(n,p|h|d,Ti));for(var o=t.length;o--;)qo(n,t[o]);return n});var cu=Ci(function(e,t){return null==e?{}:function(e,t){return bo(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Xt(Ri(e),function(e){return[e]});return t=Ii(t),bo(e,n,function(e,n){return t(e,n[0])})}var fu=Oi(ou),pu=Oi(iu);function hu(e){return null==e?[]:gn(e,ou(e))}var du=li(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return Su(Hs(e).toLowerCase())}function mu(e){return(e=Hs(e))&&e.replace(Je,_n).replace(bt,"")}var yu=li(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=li(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=ci("toLowerCase");var wu=li(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var xu=li(function(e,t,n){return e+(n?" ":"")+Su(t)});var _u=li(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Su=ci("toUpperCase");function Ou(e,t,n){return e=Hs(e),(t=n?i:t)===i?function(e){return St.test(e)}(e)?function(e){return e.match(xt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var ku=Oo(function(e,t){try{return Ht(e,i,t)}catch(e){return Ss(e)?e:new Ze(e)}}),Eu=Ci(function(e,t){return Vt(t,function(t){t=la(t),Rr(e,t,ns(e[t],e))}),e});function Au(e){return function(){return e}}var Tu=hi(),ju=hi(!0);function Cu(e){return e}function Pu(e){return uo("function"==typeof e?e:Mr(e,p))}var Ru=Oo(function(e,t){return function(n){return ro(n,e,t)}}),Lu=Oo(function(e,t){return function(n){return ro(e,n,t)}});function Nu(e,t,n){var r=ou(t),o=Jr(t,r);null!=n||As(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Jr(t,ou(t)));var i=!(As(n)&&"chain"in n&&!n.chain),a=Os(e);return Vt(o,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=ri(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Mu(){}var Iu=yi(Xt),Uu=yi(Jt),Du=yi(rn);function qu(e){return Ki(e)?pn(la(e)):function(e){return function(t){return Gr(t,e)}}(e)}var Bu=bi(),zu=bi(!0);function Fu(){return[]}function $u(){return!1}var Wu=mi(function(e,t){return e+t},0),Hu=_i("ceil"),Yu=mi(function(e,t){return e/t},1),Vu=_i("floor");var Ku,Ju=mi(function(e,t){return e*t},1),Gu=_i("round"),Qu=mi(function(e,t){return e-t},0);return hr.after=function(e,t){if("function"!=typeof t)throw new ot(u);return e=zs(e),function(){if(--e<1)return t.apply(this,arguments)}},hr.ary=es,hr.assign=Ys,hr.assignIn=Vs,hr.assignInWith=Ks,hr.assignWith=Js,hr.at=Gs,hr.before=ts,hr.bind=ns,hr.bindAll=Eu,hr.bindKey=rs,hr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},hr.chain=qa,hr.chunk=function(e,t,n){t=(n?Vi(e,t,n):t===i)?1:Hn(zs(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,u=r(Dn(o/t));ao?0:o+n),(r=r===i||r>o?o:zs(r))<0&&(r+=o),r=n>r?0:Fs(r);n>>0)?(e=Hs(e))&&("string"==typeof t||null!=t&&!Rs(t))&&!(t=Uo(t))&&kn(e)?Jo(Rn(e),0,n):e.split(t,n):[]},hr.spread=function(e,t){if("function"!=typeof e)throw new ot(u);return t=null==t?0:Hn(zs(t),0),Oo(function(n){var r=n[t],o=Jo(n,0,t);return r&&en(o,r),Ht(e,this,o)})},hr.tail=function(e){var t=null==e?0:e.length;return t?Po(e,1,t):[]},hr.take=function(e,t,n){return e&&e.length?Po(e,0,(t=n||t===i?1:zs(t))<0?0:t):[]},hr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Po(e,(t=r-(t=n||t===i?1:zs(t)))<0?0:t,r):[]},hr.takeRightWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3),!1,!0):[]},hr.takeWhile=function(e,t){return e&&e.length?zo(e,Ii(t,3)):[]},hr.tap=function(e,t){return t(e),e},hr.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new ot(u);return As(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),os(e,t,{leading:r,maxWait:t,trailing:o})},hr.thru=Ba,hr.toArray=qs,hr.toPairs=fu,hr.toPairsIn=pu,hr.toPath=function(e){return ys(e)?Xt(e,la):Ms(e)?[e]:ri(ca(Hs(e)))},hr.toPlainObject=Ws,hr.transform=function(e,t,n){var r=ys(e),o=r||xs(e)||Is(e);if(t=Ii(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:As(e)&&Os(i)?dr(Pt(e)):{}}return(o?Vt:Vr)(e,function(e,r,o){return t(n,e,r,o)}),n},hr.unary=function(e){return es(e,1)},hr.union=Ta,hr.unionBy=ja,hr.unionWith=Ca,hr.uniq=function(e){return e&&e.length?Do(e):[]},hr.uniqBy=function(e,t){return e&&e.length?Do(e,Ii(t,2)):[]},hr.uniqWith=function(e,t){return t="function"==typeof t?t:i,e&&e.length?Do(e,i,t):[]},hr.unset=function(e,t){return null==e||qo(e,t)},hr.unzip=Pa,hr.unzipWith=Ra,hr.update=function(e,t,n){return null==e?e:Bo(e,t,Yo(n))},hr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:i,null==e?e:Bo(e,t,Yo(n),r)},hr.values=hu,hr.valuesIn=function(e){return null==e?[]:gn(e,iu(e))},hr.without=La,hr.words=Ou,hr.wrap=function(e,t){return ls(Yo(t),e)},hr.xor=Na,hr.xorBy=Ma,hr.xorWith=Ia,hr.zip=Ua,hr.zipObject=function(e,t){return Wo(e||[],t||[],Tr)},hr.zipObjectDeep=function(e,t){return Wo(e||[],t||[],Ao)},hr.zipWith=Da,hr.entries=fu,hr.entriesIn=pu,hr.extend=Vs,hr.extendWith=Ks,Nu(hr,hr),hr.add=Wu,hr.attempt=ku,hr.camelCase=du,hr.capitalize=vu,hr.ceil=Hu,hr.clamp=function(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=(n=$s(n))==n?n:0),t!==i&&(t=(t=$s(t))==t?t:0),Nr($s(e),t,n)},hr.clone=function(e){return Mr(e,d)},hr.cloneDeep=function(e){return Mr(e,p|d)},hr.cloneDeepWith=function(e,t){return Mr(e,p|d,t="function"==typeof t?t:i)},hr.cloneWith=function(e,t){return Mr(e,d,t="function"==typeof t?t:i)},hr.conformsTo=function(e,t){return null==t||Ir(e,t,ou(t))},hr.deburr=mu,hr.defaultTo=function(e,t){return null==e||e!=e?t:e},hr.divide=Yu,hr.endsWith=function(e,t,n){e=Hs(e),t=Uo(t);var r=e.length,o=n=n===i?r:Nr(zs(n),0,r);return(n-=t.length)>=0&&e.slice(n,o)==t},hr.eq=hs,hr.escape=function(e){return(e=Hs(e))&&ke.test(e)?e.replace(Se,Sn):e},hr.escapeRegExp=function(e){return(e=Hs(e))&&Le.test(e)?e.replace(Re,"\\$&"):e},hr.every=function(e,t,n){var r=ys(e)?Jt:zr;return n&&Vi(e,t,n)&&(t=i),r(e,Ii(t,3))},hr.find=$a,hr.findIndex=ma,hr.findKey=function(e,t){return an(e,Ii(t,3),Vr)},hr.findLast=Wa,hr.findLastIndex=ya,hr.findLastKey=function(e,t){return an(e,Ii(t,3),Kr)},hr.floor=Vu,hr.forEach=Ha,hr.forEachRight=Ya,hr.forIn=function(e,t){return null==e?e:Hr(e,Ii(t,3),iu)},hr.forInRight=function(e,t){return null==e?e:Yr(e,Ii(t,3),iu)},hr.forOwn=function(e,t){return e&&Vr(e,Ii(t,3))},hr.forOwnRight=function(e,t){return e&&Kr(e,Ii(t,3))},hr.get=Xs,hr.gt=ds,hr.gte=vs,hr.has=function(e,t){return null!=e&&$i(e,t,eo)},hr.hasIn=eu,hr.head=ba,hr.identity=Cu,hr.includes=function(e,t,n,r){e=bs(e)?e:hu(e),n=n&&!r?zs(n):0;var o=e.length;return n<0&&(n=Hn(o+n,0)),Ns(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&un(e,t,n)>-1},hr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:zs(n);return o<0&&(o=Hn(r+o,0)),un(e,t,o)},hr.inRange=function(e,t,n){return t=Bs(t),n===i?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Yn(t,n)&&e=-N&&e<=N},hr.isSet=Ls,hr.isString=Ns,hr.isSymbol=Ms,hr.isTypedArray=Is,hr.isUndefined=function(e){return e===i},hr.isWeakMap=function(e){return Ts(e)&&Fi(e)==ae},hr.isWeakSet=function(e){return Ts(e)&&Zr(e)==se},hr.join=function(e,t){return null==e?"":$n.call(e,t)},hr.kebabCase=yu,hr.last=Sa,hr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=r;return n!==i&&(o=(o=zs(n))<0?Hn(r+o,0):Yn(o,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,o):sn(e,ln,o,!0)},hr.lowerCase=gu,hr.lowerFirst=bu,hr.lt=Us,hr.lte=Ds,hr.max=function(e){return e&&e.length?Fr(e,Cu,Xr):i},hr.maxBy=function(e,t){return e&&e.length?Fr(e,Ii(t,2),Xr):i},hr.mean=function(e){return fn(e,Cu)},hr.meanBy=function(e,t){return fn(e,Ii(t,2))},hr.min=function(e){return e&&e.length?Fr(e,Cu,fo):i},hr.minBy=function(e,t){return e&&e.length?Fr(e,Ii(t,2),fo):i},hr.stubArray=Fu,hr.stubFalse=$u,hr.stubObject=function(){return{}},hr.stubString=function(){return""},hr.stubTrue=function(){return!0},hr.multiply=Ju,hr.nth=function(e,t){return e&&e.length?yo(e,zs(t)):i},hr.noConflict=function(){return Lt._===this&&(Lt._=vt),this},hr.noop=Mu,hr.now=Xa,hr.pad=function(e,t,n){e=Hs(e);var r=(t=zs(t))?Pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return gi(qn(o),n)+e+gi(Dn(o),n)},hr.padEnd=function(e,t,n){e=Hs(e);var r=(t=zs(t))?Pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var o=Jn();return Yn(e+o*(t-e+jt("1e-"+((o+"").length-1))),t)}return _o(e,t)},hr.reduce=function(e,t,n){var r=ys(e)?tn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,qr)},hr.reduceRight=function(e,t,n){var r=ys(e)?nn:dn,o=arguments.length<3;return r(e,Ii(t,4),n,o,Br)},hr.repeat=function(e,t,n){return t=(n?Vi(e,t,n):t===i)?1:zs(t),So(Hs(e),t)},hr.replace=function(){var e=arguments,t=Hs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hr.result=function(e,t,n){var r=-1,o=(t=Vo(t,e)).length;for(o||(o=1,e=i);++rN)return[];var n=U,r=Yn(e,U);t=Ii(t),e-=U;for(var o=mn(r,t);++n=a)return e;var u=n-Pn(r);if(u<1)return r;var c=s?Jo(s,0,u).join(""):e.slice(0,u);if(o===i)return c+r;if(s&&(u+=c.length-u),Rs(o)){if(e.slice(u).search(o)){var l,f=c;for(o.global||(o=nt(o.source,Hs($e.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var p=l.index;c=c.slice(0,p===i?u:p)}}else if(e.indexOf(Uo(o),u)!=u){var h=c.lastIndexOf(o);h>-1&&(c=c.slice(0,h))}return c+r},hr.unescape=function(e){return(e=Hs(e))&&Oe.test(e)?e.replace(_e,Ln):e},hr.uniqueId=function(e){var t=++ft;return Hs(e)+t},hr.upperCase=_u,hr.upperFirst=Su,hr.each=Ha,hr.eachRight=Ya,hr.first=ba,Nu(hr,(Ku={},Vr(hr,function(e,t){lt.call(hr.prototype,t)||(Ku[t]=e)}),Ku),{chain:!1}),hr.VERSION="4.17.11",Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hr[e].placeholder=hr}),Vt(["drop","take"],function(e,t){yr.prototype[e]=function(n){n=n===i?1:Hn(zs(n),0);var r=this.__filtered__&&!t?new yr(this):this.clone();return r.__filtered__?r.__takeCount__=Yn(n,r.__takeCount__):r.__views__.push({size:Yn(n,U),type:e+(r.__dir__<0?"Right":"")}),r},yr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Vt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==P||3==n;yr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Ii(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Vt(["head","last"],function(e,t){var n="take"+(t?"Right":"");yr.prototype[e]=function(){return this[n](1).value()[0]}}),Vt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");yr.prototype[e]=function(){return this.__filtered__?new yr(this):this[n](1)}}),yr.prototype.compact=function(){return this.filter(Cu)},yr.prototype.find=function(e){return this.filter(e).head()},yr.prototype.findLast=function(e){return this.reverse().find(e)},yr.prototype.invokeMap=Oo(function(e,t){return"function"==typeof e?new yr(this):this.map(function(n){return ro(n,e,t)})}),yr.prototype.reject=function(e){return this.filter(us(Ii(e)))},yr.prototype.slice=function(e,t){e=zs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new yr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(n=(t=zs(t))<0?n.dropRight(-t):n.take(t-e)),n)},yr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},yr.prototype.toArray=function(){return this.take(U)},Vr(yr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=hr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);o&&(hr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof yr,c=s[0],l=u||ys(t),f=function(e){var t=o.apply(hr,en([e],s));return r&&p?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var p=this.__chain__,h=!!this.__actions__.length,d=a&&!p,v=u&&!h;if(!a&&l){t=v?t:new yr(this);var m=e.apply(t,s);return m.__actions__.push({func:Ba,args:[f],thisArg:i}),new mr(m,p)}return d&&v?e.apply(this,s):(m=this.thru(f),d?r?m.value()[0]:m.value():m)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(e){var t=it[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);hr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(ys(o)?o:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Vr(yr.prototype,function(e,t){var n=hr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[di(i,g).name]=[{name:"wrapper",func:i}],yr.prototype.clone=function(){var e=new yr(this.__wrapped__);return e.__actions__=ri(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ri(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ri(this.__views__),e},yr.prototype.reverse=function(){if(this.__filtered__){var e=new yr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},yr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r=this.__values__.length;return{done:e,value:e?i:this.__values__[this.__index__++]}},hr.prototype.plant=function(e){for(var t,n=this;n instanceof vr;){var r=pa(n);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;n=n.__wrapped__}return o.__wrapped__=e,t},hr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof yr){var t=e;return this.__actions__.length&&(t=new yr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Aa],thisArg:i}),new mr(t,this.__chain__)}return this.thru(Aa)},hr.prototype.toJSON=hr.prototype.valueOf=hr.prototype.value=function(){return Fo(this.__wrapped__,this.__actions__)},hr.prototype.first=hr.prototype.head,Dt&&(hr.prototype[Dt]=function(){return this}),hr}();Lt._=Nn,(o=function(){return Nn}.call(t,n,t,r))===i||(r.exports=o)}).call(this)}).call(this,n(10),n(38)(e))},function(e,t,n){var r=n(174);e.exports={Graph:r.Graph,json:n(300),alg:n(301),version:r.version}},function(e,t,n){e.exports={Graph:n(66),version:n(299)}},function(e,t,n){var r=n(176),o=4;e.exports=function(e){return r(e,o)}},function(e,t,n){var r=n(67),o=n(71),i=n(98),a=n(205),s=n(211),u=n(214),c=n(215),l=n(216),f=n(217),p=n(108),h=n(218),d=n(31),v=n(222),m=n(223),y=n(228),g=n(7),b=n(39),w=n(229),x=n(22),_=n(231),S=n(23),O=1,k=2,E=4,A="[object Arguments]",T="[object Function]",j="[object GeneratorFunction]",C="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[C]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[T]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,R,L,N,M){var I,U=n&O,D=n&k,q=n&E;if(R&&(I=N?R(t,L,N,M):R(t)),void 0!==I)return I;if(!x(t))return t;var B=g(t);if(B){if(I=v(t),!U)return c(t,I)}else{var z=d(t),F=z==T||z==j;if(b(t))return u(t,U);if(z==C||z==A||F&&!N){if(I=D||F?{}:y(t),!U)return D?f(t,s(I,t)):l(t,a(I,t))}else{if(!P[z])return N?t:{};I=m(t,z,U)}}M||(M=new r);var $=M.get(t);if($)return $;if(M.set(t,I),_(t))return t.forEach(function(r){I.add(e(r,n,R,r,t,M))}),I;if(w(t))return t.forEach(function(r,o){I.set(o,e(r,n,R,o,t,M))}),I;var W=q?D?h:p:D?keysIn:S,H=B?void 0:W(t);return o(H||t,function(r,o){H&&(r=t[o=r]),i(I,o,e(r,n,R,o,t,M))}),I}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(43),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(43);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(43);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(43);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(42);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(42),o=n(69),i=n(70),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length0&&i(l)?n>1?e(l,n-1,i,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t,n){var r=n(30),o=n(48),i=n(7),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){var r=n(52),o=n(282),i=n(284);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){var r=n(283),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),u=Array(s);++a0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(117),o=n(288),i=n(293),a=n(118),s=n(294),u=n(80),c=200;e.exports=function(e,t,n){var l=-1,f=o,p=e.length,h=!0,d=[],v=d;if(n)h=!1,f=i;else if(p>=c){var m=t?null:s(e);if(m)return u(m);h=!1,f=a,v=new r}else v=t?[]:d;e:for(;++l-1}},function(e,t,n){var r=n(290),o=n(291),i=n(292);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i1||1===t.length&&e.hasEdge(t[0],t[0])})}},function(e,t,n){var r=n(14);e.exports=function(e,t,n){return function(e,t,n){var r={},o=e.nodes();return o.forEach(function(e){r[e]={},r[e][e]={distance:0},o.forEach(function(t){e!==t&&(r[e][t]={distance:Number.POSITIVE_INFINITY})}),n(e).forEach(function(n){var o=n.v===e?n.w:n.v,i=t(n);r[e][o]={distance:i,predecessor:e}})}),o.forEach(function(e){var t=r[e];o.forEach(function(n){var i=r[n];o.forEach(function(n){var r=i[e],o=t[n],a=i[n],s=r.distance+o.distance;s0;){if(n=u.removeMin(),r.has(s,n))a.setEdge(n,s[n]);else{if(l)throw new Error("Input graph is not connected: "+e);l=!0}e.nodeEdges(n).forEach(c)}return a}},function(e,t,n){"use strict";var r={file:n(311),http:n(130),https:n(130)},o="object"==typeof window||"function"==typeof importScripts?r.http:r.file;"undefined"==typeof Promise&&n(132),e.exports.load=function(e,t){var n=Promise.resolve();return void 0===t&&(t={}),n=(n=n.then(function(){if(void 0===e)throw new TypeError("location is required");if("string"!=typeof e)throw new TypeError("location must be a string");if(void 0!==t){if("object"!=typeof t)throw new TypeError("options must be an object");if(void 0!==t.processContent&&"function"!=typeof t.processContent)throw new TypeError("options.processContent must be a function")}})).then(function(){return new Promise(function(n,i){(function(e){var t=function(e){return void 0!==e&&(e=-1===e.indexOf("://")?"":e.split("://")[0]),e}(e),n=r[t];if(void 0===n){if(""!==t)throw new Error("Unsupported scheme: "+t);n=o}return n})(e).load(e,t||{},function(e,t){e?i(e):n(t)})})}).then(function(n){return t.processContent?new Promise(function(r,o){"object"!=typeof n&&(n={text:n}),n.location=e,t.processContent(n,function(e,t){e?o(e):r(t)})}):"object"==typeof n?n.text:n})}},function(e,t,n){"use strict";var r=new TypeError("The 'file' scheme is not supported in the browser");e.exports.getBase=function(){throw r},e.exports.load=function(){var e=arguments[arguments.length-1];if("function"!=typeof e)throw r;e(r)}},function(e,t,n){var r;"undefined"!=typeof window?r=window:"undefined"!=typeof self?r=self:(console.warn("Using browser-only version of superagent in non-browser environment"),r=this);var o=n(313),i=n(314),a=n(131),s=n(315),u=n(317);function c(){}var l=t=e.exports=function(e,n){return"function"==typeof n?new t.Request("GET",e).end(n):1==arguments.length?new t.Request("GET",e):new t.Request(e,n)};t.Request=y,l.getXHR=function(){if(!(!r.XMLHttpRequest||r.location&&"file:"==r.location.protocol&&r.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only version of superagent could not find XHR")};var f="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};function p(e){if(!a(e))return e;var t=[];for(var n in e)h(t,n,e[n]);return t.join("&")}function h(e,t,n){if(null!=n)if(Array.isArray(n))n.forEach(function(n){h(e,t,n)});else if(a(n))for(var r in n)h(e,t+"["+r+"]",n[r]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(n));else null===n&&e.push(encodeURIComponent(t))}function d(e){for(var t,n,r={},o=e.split("&"),i=0,a=o.length;i=2&&e._responseTimeoutTimer&&clearTimeout(e._responseTimeoutTimer),4==n){var r;try{r=t.status}catch(e){r=0}if(!r){if(e.timedout||e._aborted)return;return e.crossDomainError()}e.emit("end")}};var r=function(t,n){n.total>0&&(n.percent=n.loaded/n.total*100),n.direction=t,e.emit("progress",n)};if(this.hasListeners("progress"))try{t.onprogress=r.bind(null,"download"),t.upload&&(t.upload.onprogress=r.bind(null,"upload"))}catch(e){}try{this.username&&this.password?t.open(this.method,this.url,!0,this.username,this.password):t.open(this.method,this.url,!0)}catch(e){return this.callback(e)}if(this._withCredentials&&(t.withCredentials=!0),!this._formData&&"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var o=this._header["content-type"],i=this._serializer||l.serialize[o?o.split(";")[0]:""];!i&&v(o)&&(i=l.serialize["application/json"]),i&&(n=i(n))}for(var a in this.header)null!=this.header[a]&&this.header.hasOwnProperty(a)&&t.setRequestHeader(a,this.header[a]);return this._responseType&&(t.responseType=this._responseType),this.emit("request",this),t.send(void 0!==n?n:null),this},l.agent=function(){return new u},["GET","POST","OPTIONS","PATCH","PUT","DELETE"].forEach(function(e){u.prototype[e.toLowerCase()]=function(t,n){var r=new l.Request(e,t);return this._setDefaults(r),n&&r.end(n),r}}),u.prototype.del=u.prototype.delete,l.get=function(e,t,n){var r=l("GET",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.head=function(e,t,n){var r=l("HEAD",e);return"function"==typeof t&&(n=t,t=null),t&&r.query(t),n&&r.end(n),r},l.options=function(e,t,n){var r=l("OPTIONS",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.del=g,l.delete=g,l.patch=function(e,t,n){var r=l("PATCH",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.post=function(e,t,n){var r=l("POST",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r},l.put=function(e,t,n){var r=l("PUT",e);return"function"==typeof t&&(n=t,t=null),t&&r.send(t),n&&r.end(n),r}},function(e,t,n){function r(e){if(e)return function(e){for(var t in r.prototype)e[t]=r.prototype[t];return e}(e)}e.exports=r,r.prototype.on=r.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},r.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n,r=this._callbacks["$"+e];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var o=0;o=this._maxRetries)return!1;if(this._retryCallback)try{var n=this._retryCallback(e,t);if(!0===n)return!0;if(!1===n)return!1}catch(e){console.error(e)}if(t&&t.status&&t.status>=500&&501!=t.status)return!0;if(e){if(e.code&&~i.indexOf(e.code))return!0;if(e.timeout&&"ECONNABORTED"==e.code)return!0;if(e.crossDomain)return!0}return!1},o.prototype._retry=function(){return this.clearTimeout(),this.req&&(this.req=null,this.req=this.request()),this._aborted=!1,this.timedout=!1,this._end()},o.prototype.then=function(e,t){if(!this._fullfilledPromise){var n=this;this._endCalled&&console.warn("Warning: superagent request was sent twice, because both .end() and .then() were called. Never call .end() if you use promises"),this._fullfilledPromise=new Promise(function(e,t){n.end(function(n,r){n?t(n):e(r)})})}return this._fullfilledPromise.then(e,t)},o.prototype.catch=function(e){return this.then(void 0,e)},o.prototype.use=function(e){return e(this),this},o.prototype.ok=function(e){if("function"!=typeof e)throw Error("Callback required");return this._okCallback=e,this},o.prototype._isResponseOK=function(e){return!!e&&(this._okCallback?this._okCallback(e):e.status>=200&&e.status<300)},o.prototype.get=function(e){return this._header[e.toLowerCase()]},o.prototype.getHeader=o.prototype.get,o.prototype.set=function(e,t){if(r(e)){for(var n in e)this.set(n,e[n]);return this}return this._header[e.toLowerCase()]=t,this.header[e]=t,this},o.prototype.unset=function(e){return delete this._header[e.toLowerCase()],delete this.header[e],this},o.prototype.field=function(e,t){if(null==e)throw new Error(".field(name, val) name can not be empty");if(this._data&&console.error(".field() can't be used if .send() is used. Please use only .send() or only .field() & .attach()"),r(e)){for(var n in e)this.field(n,e[n]);return this}if(Array.isArray(t)){for(var o in t)this.field(e,t[o]);return this}if(null==t)throw new Error(".field(name, val) val can not be empty");return"boolean"==typeof t&&(t=""+t),this._getFormData().append(e,t),this},o.prototype.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},o.prototype._auth=function(e,t,n,r){switch(n.type){case"basic":this.set("Authorization","Basic "+r(e+":"+t));break;case"auto":this.username=e,this.password=t;break;case"bearer":this.set("Authorization","Bearer "+e)}return this},o.prototype.withCredentials=function(e){return null==e&&(e=!0),this._withCredentials=e,this},o.prototype.redirects=function(e){return this._maxRedirects=e,this},o.prototype.maxResponseSize=function(e){if("number"!=typeof e)throw TypeError("Invalid argument");return this._maxResponseSize=e,this},o.prototype.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},o.prototype.send=function(e){var t=r(e),n=this._header["content-type"];if(this._formData&&console.error(".send() can't be used if .attach() or .field() is used. Please use only .send() or only .field() & .attach()"),t&&!this._data)Array.isArray(e)?this._data=[]:this._isHost(e)||(this._data={});else if(e&&this._data&&this._isHost(this._data))throw Error("Can't merge these send calls");if(t&&r(this._data))for(var o in e)this._data[o]=e[o];else"string"==typeof e?(n||this.type("form"),n=this._header["content-type"],this._data="application/x-www-form-urlencoded"==n?this._data?this._data+"&"+e:e:(this._data||"")+e):this._data=e;return!t||this._isHost(e)?this:(n||this.type("json"),this)},o.prototype.sortQuery=function(e){return this._sort=void 0===e||e,this},o.prototype._finalizeQueryString=function(){var e=this._query.join("&");if(e&&(this.url+=(this.url.indexOf("?")>=0?"&":"?")+e),this._query.length=0,this._sort){var t=this.url.indexOf("?");if(t>=0){var n=this.url.substring(t+1).split("&");"function"==typeof this._sort?n.sort(this._sort):n.sort(),this.url=this.url.substring(0,t)+"?"+n.join("&")}}},o.prototype._appendQueryString=function(){console.trace("Unsupported")},o.prototype._timeoutError=function(e,t,n){if(!this._aborted){var r=new Error(e+t+"ms exceeded");r.timeout=t,r.code="ECONNABORTED",r.errno=n,this.timedout=!0,this.abort(),this.callback(r)}},o.prototype._setTimeouts=function(){var e=this;this._timeout&&!this._timer&&(this._timer=setTimeout(function(){e._timeoutError("Timeout of ",e._timeout,"ETIME")},this._timeout)),this._responseTimeout&&!this._responseTimeoutTimer&&(this._responseTimeoutTimer=setTimeout(function(){e._timeoutError("Response timeout of ",e._responseTimeout,"ETIMEDOUT")},this._responseTimeout))}},function(e,t,n){"use strict";var r=n(316);function o(e){if(e)return function(e){for(var t in o.prototype)e[t]=o.prototype[t];return e}(e)}e.exports=o,o.prototype.get=function(e){return this.header[e.toLowerCase()]},o.prototype._setHeaderProperties=function(e){var t=e["content-type"]||"";this.type=r.type(t);var n=r.params(t);for(var o in n)this[o]=n[o];this.links={};try{e.link&&(this.links=r.parseLinks(e.link))}catch(e){}},o.prototype._setStatusProperties=function(e){var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.redirect=3==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.created=201==e,this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.forbidden=403==e,this.notFound=404==e,this.unprocessableEntity=422==e}},function(e,t,n){"use strict";t.type=function(e){return e.split(/ *; */).shift()},t.params=function(e){return e.split(/ *; */).reduce(function(e,t){var n=t.split(/ *= */),r=n.shift(),o=n.shift();return r&&o&&(e[r]=o),e},{})},t.parseLinks=function(e){return e.split(/ *, */).reduce(function(e,t){var n=t.split(/ *; */),r=n[0].slice(1,-1);return e[n[1].split(/ *= */)[1].slice(1,-1)]=r,e},{})},t.cleanHeader=function(e,t){return delete e["content-type"],delete e["content-length"],delete e["transfer-encoding"],delete e.host,t&&(delete e.authorization,delete e.cookie),e}},function(e,t){function n(){this._defaults=[]}["use","on","once","set","query","type","accept","auth","withCredentials","sortQuery","retry","ok","redirects","timeout","buffer","serialize","parse","ca","key","pfx","cert"].forEach(function(e){n.prototype[e]=function(){return this._defaults.push({fn:e,arguments:arguments}),this}}),n.prototype._setDefaults=function(e){this._defaults.forEach(function(t){e[t.fn].apply(e,t.arguments)})},e.exports=n},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var u=1e3;i&&"number"==typeof i.maxKeys&&(u=i.maxKeys);var c=e.length;u>0&&c>u&&(c=u);for(var l=0;l=0?(f=v.substr(0,m),p=v.substr(m+1)):(f=v,p=""),h=decodeURIComponent(f),d=decodeURIComponent(p),r(a,h)?o(a[h])?a[h].push(d):a[h]=[a[h],d]:a[h]=d}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r{const t=/^\\\\\?\\/.test(e),n=/[^\u0000-\u0080]+/.test(e);return t||n?e:e.replace(/\\/g,"/")}},function(e,t,n){ /** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ -!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,v=String.fromCharCode;function m(e){throw new RangeError(h[e])}function y(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(p,".")).split("."),t).join(".");return r+o}function g(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,o=0,i=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var u=0;u=128&&m("not-basic"),n.push(e.charCodeAt(u));for(var l=s>0?s+1:0;l=r&&m("invalid-input");var v=(t=e.charCodeAt(l++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(v>=36||v>d((c-o)/p))&&m("overflow"),o+=v*p;var y=h<=a?1:h>=a+26?26:h-a;if(vd(c/g)&&m("overflow"),p*=g}var b=n.length+1;a=w(o-f,b,0==f),d(o/b)>c-i&&m("overflow"),i+=d(o/b),o%=b,n.splice(o++,0,i)}return String.fromCodePoint.apply(String,n)},_=function(e){var t=[],n=(e=g(e)).length,r=128,o=0,i=72,a=!0,s=!1,u=void 0;try{for(var l,f=e[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var p=l.value;p<128&&t.push(v(p))}}catch(e){s=!0,u=e}finally{try{!a&&f.return&&f.return()}finally{if(s)throw u}}var h=t.length,y=h;for(h&&t.push("-");y=r&&Ad((c-o)/T)&&m("overflow"),o+=(x-r)*T,r=x;var j=!0,C=!1,P=void 0;try{for(var R,L=e[Symbol.iterator]();!(j=(R=L.next()).done);j=!0){var N=R.value;if(Nc&&m("overflow"),N==r){for(var M=o,I=36;;I+=36){var U=I<=i?1:I>=i+26?26:I-i;if(M>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function E(e){for(var t="",n=0,r=e.length;n=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function A(e,t){function n(e){var n=E(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,k).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,k).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,k).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,k).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,k).replace(t.PCT_ENCODED,o)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function j(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(T).join("."):e}function C(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=u(n,3),o=r[1],i=r[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],f=l?l.split(":").map(T):[],p=c.split(":").map(T),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,v=p.length-d,m=Array(d),y=0;y1){var w=m.slice(0,g.index),x=m.slice(g.index+g.length);b=w.join(":")+"::"+x.join(":")}else b=m.join(":");return i&&(b+="%"+i),b}return e}var P=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R=void 0==="".match(/(){0}/)[1];function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(P);if(o){R?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=C(j(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=O[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)A(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=S.toASCII(n.host.replace(r.PCT_ENCODED,E).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(n,a)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var N=/^\.\.?\//,M=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function D(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(U);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],o=O[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?S.toUnicode(e.host):S.toASCII(e.host.replace(n.PCT_ENCODED,E).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}A(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(C(j(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"})),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var u=e.path;t.absolutePath||o&&o.absolutePath||(u=D(u)),void 0===i&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=L(q(e,n),n),t=L(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=D(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=D(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function F(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,E)}var z={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:z.domainHost,parse:z.parse,serialize:z.serialize},W={},Y="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",H="[0-9A-Fa-f]",V=n(n("%[EFef][0-9A-Fa-f]%"+H+H+"%"+H+H)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+H+H)+"|"+n("%"+H+H)),K=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=new RegExp(Y,"g"),G=new RegExp(V,"g"),Q=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',K),"g"),Z=new RegExp(t("[^]",Y,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),X=Z;function ee(e){var t=E(e);return t.match(J)?t:e}var te={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},a=n.query.split("&"),s=0,u=a.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-l,_=Math.floor,S=String.fromCharCode;function O(e){throw new RangeError(w[e])}function k(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+k((e=e.replace(b,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?_(e/h):e>>1,e+=_(e/t);e>x*f>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+p))}function P(e){var t,n,r,o,i,a,s,p,h,y,g,b=[],w=e.length,x=0,S=v,k=d;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&O("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=w&&O("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||p>_((u-x)/a))&&O("overflow"),x+=p*a,!(p<(h=s<=k?l:s>=k+f?f:s-k));s+=c)a>_(u/(y=c-h))&&O("overflow"),a*=y;k=C(x-i,t=b.length+1,0==i),_(x/t)>u-S&&O("overflow"),S+=_(x/t),x%=t,b.splice(x++,0,S)}return T(b)}function R(e){var t,n,r,o,i,a,s,p,h,y,g,b,w,x,k,E=[];for(b=(e=A(e)).length,t=v,n=0,i=d,a=0;a=t&&g_((u-n)/(w=r+1))&&O("overflow"),n+=(s-t)*w,t=s,a=0;au&&O("overflow"),g==t){for(p=n,h=c;!(p<(y=h<=i?l:h>=i+f?f:h-i));h+=c)k=p-y,x=c-y,E.push(S(j(y+k%x,0))),p=_(k/x);E.push(S(j(p,0))),i=C(n,w,r==o),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:T},decode:P,encode:R,toASCII:function(e){return E(e,function(e){return g.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return E(e,function(e){return y.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(38)(e),n(10))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(t,n){var r=t.process&&n.nextTick||t.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then(function(t){r(function(){e(null,t)})},function(t){r(function(){e(t)})}):t}}).call(this,n(10),n(15))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(4)),a=r(n(3)),s=r(n(5)),u=r(n(326)),c=r(n(341)),l=n(9),f=r(n(143)),p={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,version:"1.2"};var h=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,a.default)(t).call(this,Object.assign({},p,e)))}return(0,s.default)(t,e),t}(c.default);function d(e,t){var n=(0,u.default)(e),r=new h(t).parse(n[0]);if(n.length>1){r.errors.unshift(new l.YAMLSemanticError(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return r}var v={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},c.default.defaults[p.version],p);return new f.default(r).createNode(e,t,n)},defaultOptions:p,Document:h,parse:function(e,t){var n=d(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r=[],o=!0,i=!1,a=void 0;try{for(var s,c=(0,u.default)(e)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=new h(t);f.parse(l,n),r.push(f),n=f}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r},parseCST:u.default,parseDocument:d,stringify:function(e,t){var n=new h(t);return n.contents=e,String(n)}};t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,n){return e.length>1&&t.push(n),"\n"}));var n=[],r=0;do{var a=new o.default,s=new i.default({src:e});r=a.parse(s,r),n.push(a)}while(r0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new y.default(i,i+3),i+3):(o?this.error=new f.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}},{key:"parseContents",value:function(e){var n=this.context,r=n.parseNode,o=n.src;this.contents||(this.contents=[]);for(var i=e;"-"===o[i-1];)i-=1;var a=m.default.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new y.default(a);!m.default.atDocumentBoundary(o,a,l.Char.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var u=new p.default;(a=u.parse({src:o},a))0&&((t.length>0||e[0].type===l.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}(m.default);t.default=g},function(e,t,n){var r=n(3);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(3),o=n(87),i=n(330),a=n(331);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(87);function o(t,n,i){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=o=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i}:e.exports=o=Reflect.construct,o.apply(null,arguments)}e.exports=o},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";function r(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("number"==typeof e&&e>=0){var n,o;if("string"==typeof t?(n=r(t),o=t.length):(Array.isArray(t)&&(t=t[0]),t&&(t.lineStarts||(t.lineStarts=r(t.context.src)),n=t.lineStarts,o=t.context.src.length)),n&&e<=o){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.atLineStart,b=r.inCollection,w=r.inFlow,x=r.indent,_=r.lineStart,S=r.parent;(0,o.default)(this,e),(0,a.default)(this,"parseNode",function(n,r){if(d.default.atDocumentBoundary(t.src,r))return null;var o,i=new e(t,n),a=i.parseProps(r),b=a.props,w=a.type,x=a.valueStart;switch(w){case s.Type.ALIAS:o=new c.default(w,b);break;case s.Type.BLOCK_FOLDED:case s.Type.BLOCK_LITERAL:o=new l.default(w,b);break;case s.Type.FLOW_MAP:case s.Type.FLOW_SEQ:o=new h.default(w,b);break;case s.Type.MAP_KEY:case s.Type.MAP_VALUE:case s.Type.SEQ_ITEM:o=new p.default(w,b);break;case s.Type.COMMENT:case s.Type.PLAIN:o=new v.default(w,b);break;case s.Type.QUOTE_DOUBLE:o=new m.default(w,b);break;case s.Type.QUOTE_SINGLE:o=new y.default(w,b);break;default:return o.error=new u.YAMLSyntaxError(o,"Unknown node type: ".concat(JSON.stringify(w))),o.range=new g.default(r,r+1),o}var _=o.parse(i,x);if(o.range=new g.default(r,_),_<=r&&(o.error=new Error("Node#parse consumed no characters"),o.error.parseEnd=_,o.error.source=o,o.range.end=r+1),i.nodeStartsCollection(o)){o.error||i.atLineStart||i.parent.type!==s.Type.DOCUMENT||(o.error=new u.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var S=new f.default(o);return _=S.parse(new e(i),_),S.range=new g.default(r,_),S}return o}),this.atLineStart=null!=i?i:n.atLineStart||!1,this.inCollection=null!=b?b:n.inCollection||!1,this.inFlow=null!=w?w:n.inFlow||!1,this.indent=null!=x?x:n.indent,this.lineStart=null!=_?_:n.lineStart,this.parent=null!=S?S:n.parent||{},this.root=n.root,this.src=n.src}return(0,i.default)(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return s.Type.ALIAS;case">":return s.Type.BLOCK_FOLDED;case"|":return s.Type.BLOCK_LITERAL;case"{":return s.Type.FLOW_MAP;case"[":return s.Type.FLOW_SEQ;case"?":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_KEY:s.Type.PLAIN;case":":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_VALUE:s.Type.PLAIN;case"-":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.SEQ_ITEM:s.Type.PLAIN;case'"':return s.Type.QUOTE_DOUBLE;case"'":return s.Type.QUOTE_SINGLE;default:return s.Type.PLAIN}}}]),(0,i.default)(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof p.default)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=d.default.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,i=[],a=!1,u=o[t=d.default.endOfWhiteSpace(o,t)];u===s.Char.ANCHOR||u===s.Char.COMMENT||u===s.Char.TAG||"\n"===u;){if("\n"===u){var c=t+1,l=d.default.endOfIndent(o,c),f=l-(c+this.indent),p=r.type===s.Type.SEQ_ITEM&&r.context.atLineStart;if(!d.default.nextNodeIsIndented(o[l],f,!p))break;this.atLineStart=!0,this.lineStart=c,a=!1,t=l}else if(u===s.Char.COMMENT){var h=d.default.endOfLine(o,t+1);i.push(new g.default(t,h)),t=h}else{var v=d.default.endOfIdentifier(o,t+1);u===s.Char.TAG&&","===o[v]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,v+13))&&(v=d.default.endOfIdentifier(o,v+5)),i.push(new g.default(t,v)),a=!0,t=d.default.endOfWhiteSpace(o,v)}u=o[t]}return a&&":"===u&&d.default.atBlank(o,t+1,!0)&&(t-=1),{props:i,type:e.parseType(o,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=c.default.endOfIdentifier(n,t+1);return this.valueRange=new l.default(t+1,r),r=c.default.endOfWhiteSpace(n,r),r=this.parseComment(r)}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(7),f=r(n(11)),p=r(n(12)),h={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=h;var d=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).blockIndent=null,r.chomping=h.CLIP,r.header=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var o=t[n];switch(o){case"-":this.chomping=h.STRIP;break;case"+":this.chomping=h.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new p.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,o=e,i=e,a=this.blockIndent?n+this.blockIndent-1:n,s=1,u=r[o];"\n"===u&&(o+=1,!f.default.atDocumentBoundary(r,o));u=r[o]){var c=f.default.endOfBlockIndent(r,a,o);if(null===c)break;if(!this.blockIndent){var l=c-(o+n);if("\n"!==r[c]){if(ls&&(s=l)}o="\n"===r[c]?c:i=f.default.endOfLine(r,c)}return this.chomping!==h.KEEP&&(o=r[i]?i+1:i),this.valueRange=new p.default(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=f.default.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"includesTrailingLines",get:function(){return this.chomping===h.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,o=r.indent,i=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===h.KEEP)break;return""}"\n"===s&&(a=n),s=i[n-1]}var u=n+1;a&&(this.chomping===h.KEEP?(u=a,n=this.valueRange.end):n=a);for(var c=o+this.blockIndent,p=this.type===l.Type.BLOCK_FOLDED,d=!0,v="",m="",y=!1,g=t;g0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===l.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.indent,i=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=d.default.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(i=s+1,"\n"===r[d.default.endOfWhiteSpace(r,i)]){var u=new p.default;i=u.parse({src:r},i),this.items.push(u)}if((s=d.default.endOfIndent(r,i))<=i+o&&(a=r[s],st.offset);)++r;t.origOffset=t.offset+r,n=r}}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var o=t.filter(function(e){return e instanceof d.default}),i="",a=n.start;return o.forEach(function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(i+=n+String(t))[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,n.end),d.default.addStringTerminator(e,n.end,i)}}]),t}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new c.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(i)}},{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;'"'!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;"'"!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(55)),a=o(n(1)),s=o(n(2)),u=o(n(20)),c=o(n(58)),l=o(n(342)),f=n(7),p=n(9),h=o(n(345)),d=o(n(143)),v=o(n(59)),m=r(n(26)),y=o(n(33)),g=o(n(13)),b=o(n(32)),w=function(){function e(t){(0,a.default)(this,e),this.anchors=new l.default(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return(0,s.default)(e,[{key:"assertCollectionContents",value:function(){if(this.contents instanceof m.default)return!0;throw new Error("Expected a YAML collection as document contents")}},{key:"add",value:function(e){return this.assertCollectionContents(),this.contents.add(e)}},{key:"addIn",value:function(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return this.assertCollectionContents(),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return(0,m.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof m.default?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return(0,m.isEmptyPath)(e)?!t&&this.contents instanceof g.default?this.contents.value:this.contents:this.contents instanceof m.default?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof m.default&&this.contents.has(e)}},{key:"hasIn",value:function(e){return(0,m.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof m.default&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){this.assertCollectionContents(),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){(0,m.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}},{key:"setSchema",value:function(){this.schema||(this.schema=new d.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,o=e.contents,i=void 0===o?[]:o,a=e.directivesEndMarker,s=e.error,u=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(r,t),a&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(i),this.anchors.resolveNodes(),this.options.prettyErrors){var c=!0,l=!1,f=void 0;try{for(var h,d=this.errors[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;v instanceof p.YAMLError&&v.makePretty()}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}var m=!0,y=!1,g=void 0;try{for(var b,w=this.warnings[Symbol.iterator]();!(m=(b=w.next()).done);m=!0){var x=b.value;x instanceof p.YAMLError&&x.makePretty()}}catch(e){y=!0,g=e}finally{try{m||null==w.return||w.return()}finally{if(y)throw g}}}return this}},{key:"parseDirectives",value:function(e,t){var n=this,r=[],o=!1;if(e.forEach(function(e){var t=e.comment,i=e.name;switch(i){case"TAG":n.resolveTagDirective(e),o=!0;break;case"YAML":case"YAML:1.0":n.resolveYamlDirective(e),o=!0;break;default:if(i){var a="YAML only supports %TAG and %YAML directives, and not %".concat(i);n.warnings.push(new p.YAMLWarning(e,a))}}t&&r.push(t)}),t&&!o&&"1.1"===(this.version||t.version||this.options.version)){this.tagPrefixes=t.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),this.version=t.version}this.commentBefore=r.join("\n")||null}},{key:"parseContents",value:function(e){var t=this,n={before:[],after:[]},r=[],o=!1;switch(e.forEach(function(e){if(e.valueRange){if(1===r.length){t.errors.push(new p.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}var i=t.resolveNode(e);o&&(i.spaceBefore=!0,o=!1),r.push(i)}else if(null!==e.comment){(0===r.length?n.before:n.after).push(e.comment)}else e.type===f.Type.BLANK_LINE&&(o=!0,0===r.length&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join("\n"),n.before=[]))}),r.length){case 0:this.contents=null,n.after=n.before;break;case 1:if(this.contents=r[0],this.contents){var i=n.before.join("\n")||null;if(i){var a=this.contents instanceof m.default&&this.contents.items[0]?this.contents.items[0]:this.contents;a.commentBefore=a.commentBefore?"".concat(i,"\n").concat(a.commentBefore):i}}else n.after=n.before.concat(n.after);break;default:this.contents=r,this.contents[0]?this.contents[0].commentBefore=n.before.join("\n")||null:n.after=n.before.concat(n.after)}this.comment=n.after.join("\n")||null}},{key:"resolveTagDirective",value:function(e){var t=(0,i.default)(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new p.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new p.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=(0,i.default)(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new p.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new p.YAMLWarning(t,o))}this.version=n}else{this.errors.push(new p.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,a=t.verbatim;if(a){if("!"!==a&&"!!"!==a)return a;var s="Verbatim tags aren't resolved, so ".concat(a," is invalid.");this.errors.push(new p.YAMLSemanticError(e,s))}else if("!"!==o||i){var u=this.tagPrefixes.find(function(e){return e.handle===o});if(!u){var c=this.getDefaults().tagPrefixes;c&&(u=c.find(function(e){return e.handle===o}))}if(u){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:\/]/.test(i)){var l=i.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(i)}}return u.prefix+decodeURIComponent(i)}this.errors.push(new p.YAMLSemanticError(e,"The ".concat(o," tag has no suffix.")))}else{var h="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new p.YAMLSemanticError(e,h))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return d.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return d.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return d.default.defaultTags.SEQ;case f.Type.PLAIN:return r?d.default.defaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,i=!1,a=!1,s={before:[],after:[]},u=function(e){return e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props,c=!0,l=!1,h=void 0;try{for(var d,m=u[Symbol.iterator]();!(c=(d=m.next()).done);c=!0){var y=d.value,g=y.start,b=y.end;switch(e.context.src[g]){case f.Char.COMMENT:if(!e.commentHasRequiredWhitespace(g)){r.push(new p.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var w=e.context.src.slice(g+1,b),x=e.header,_=e.valueRange;_&&(g>_.start||x&&g>x.start)?s.after.push(w):s.before.push(w);break;case f.Char.ANCHOR:if(i){r.push(new p.YAMLSemanticError(e,"A node can have at most one anchor"))}i=!0;break;case f.Char.TAG:if(a){r.push(new p.YAMLSemanticError(e,"A node can have at most one tag"))}a=!0}}}catch(e){l=!0,h=e}finally{try{c||null==m.return||m.return()}finally{if(l)throw h}}if(i){var S=e.anchor,O=n.getNode(S);O&&(n.map[n.newName(S)]=O),n.map[S]=e}if(e.type===f.Type.ALIAS){if(i||a){r.push(new p.YAMLSemanticError(e,"An alias node must not specify any properties"))}var k=e.rawValue,E=n.getNode(k);if(!E){var A="Aliased anchor not found: ".concat(k);return r.push(new p.YAMLReferenceError(e,A)),null}t=new v.default(E),n._cstAliases.push(t)}else{var T=this.resolveTagName(e);if(T)t=o.resolveNodeWithFallback(this,e,T);else{if(e.type!==f.Type.PLAIN){var j="Failed to resolve ".concat(e.type," node here");return r.push(new p.YAMLSyntaxError(e,j)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var C=s.before.join("\n");C&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(C):C);var P=s.after.join("\n");P&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(P):P)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,h.default)(this.contents).filter(function(e){return 0!==e.indexOf(d.default.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var i=e.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+i}},{key:"toJSON",value:function(e){var t=this,n=this.options,r=n.keepBlobsInJSON,o=n.mapAsMap,i=n.maxAliasCount,a=r&&("string"!=typeof e||!(this.contents instanceof g.default)),s={doc:this,keep:a,mapAsMap:a&&!!o,maxAliasCount:i},u=Object.keys(this.anchors.map);return u.length>0&&(s.anchors=u.map(function(e){return{alias:[],aliasCount:0,count:1,node:t.anchors.map[e]}})),(0,b.default)(this.contents,e,s)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[],t=!1;if(this.version){var n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}var r=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var o=n.handle,i=n.prefix;r.some(function(e){return 0===e.indexOf(i)})&&(e.push("%TAG ".concat(o," ").concat(i)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));var o={anchors:{},doc:this,indent:""},i=!1,a=null;if(this.contents){this.contents instanceof y.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);var s=a?null:function(){return i=!0},u=this.schema.stringify(this.contents,o,function(){return a=null},s);e.push((0,c.default)(u,"",a))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(i&&!a||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}]),e}();t.default=w,(0,u.default)(w,"defaults",{"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:d.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]}})},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(20)),s=r(n(59)),u=r(n(27)),c=r(n(142)),l=r(n(13)),f=r(n(34)),p=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"map",{}),this.prefix=t}return(0,i.default)(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof l.default||e instanceof f.default||e instanceof u.default}}]),(0,i.default)(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new s.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new c.default,n=arguments.length,r=new Array(n),o=0;o=g)if(b)m.push(b),g=b+d,b=void 0;else if(n===o){for(;" "===w||"\t"===w;)w=v,v=e[_+=1],x=!0;m.push(_-2),y[_-2]=!0,g=_-2+d,b=void 0}else x=!0}w=v}x&&h&&h();if(0===m.length)return e;p&&p();for(var O=e.slice(0,m[0]),k=0;k0?r-4:r,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,c-=8);e[n+h-d]|=128*v}},function(e,t,n){"use strict";const r=n(134),o=n(84),i=n(85),a=n(135),s=n(136),u=n(61).jptr,c=n(94).recurse,l=n(62).clone,f=n(355).dereference,p=n(93).isRef,h=n(152);function d(e,t,n,r,o,a){let s=a.externalRefs[n+r].paths[0],f=i.parse(o),d={},v=1;for(;v;)v=0,c(e,{identityDetection:!0},function(e,n,r){if(p(e,n))if(e[n].startsWith("#"))if(d[e[n]]||e.$fixed){if(!e.$fixed){let t=(s+"/"+d[e[n]]).split("/#/").join("/");r.parent[r.pkey]={$ref:t,"x-miro":e[n],$fixed:!0},a.verbose>1&&console.warn("Replacing with",t),v++}}else{let o=l(u(t,e[n]));if(a.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[n],h.colour.normal),!1===o){if(r.parent[r.pkey]={},a.fatal){let t=new Error("Fragment $ref resolution failed "+e[n]);if(!a.promise)throw t;a.promise.reject(t)}}else v++,r.parent[r.pkey]=o,d[e[n]]=r.path.replace("/%24ref","")}else if(f.protocol){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}});return c(e,{},function(e,t,n){p(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function v(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function m(e,t,n,c){var f=i.parse(n.source),p=n.source.split("\\").join("/").split("/");p.pop()||p.pop();let h="",m=t.split("#");m.length>1&&(h="#"+m[1],t=m[0]),p=p.join("/");let y=i.parse(t),g=(b=y.protocol,w=f.protocol,b&&b.length>2?b:w&&w.length>2?w:"file:");var b,w;let x;if(x="file:"===g?o.resolve(p?p+"/":"",t):i.resolve(p?p+"/":"",t),n.cache[x]){n.verbose&&console.warn("CACHED",x,h);let e=l(n.cache[x]),r=n.externalRef=e;if(h&&!1===(r=u(r,h))&&(r={},n.fatal)){let e=new Error("Cached $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}return r=v(r=d(r,e,t,h,x,n),n),c(l(r),x,n),Promise.resolve(r)}return n.verbose&&console.warn("GET",x,h),n.handlers&&n.handlers[g]?n.handlers[g](p,t,h,n).then(function(e){return n.externalRef=e,e=v(e,n),n.cache[x]=e,c(e,x,n),e}).catch(function(e){throw n.verbose&&console.warn(e),e}):g&&g.startsWith("http")?a(x,{agent:n.agent}).then(function(e){if(200!==e.status)throw new Error(`Received status code ${e.status}`);return e.text()}).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("Remote $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),n.cache[x]={},!n.promise||!n.fatal)throw e;n.promise.reject(e)}):(_=x,S=n.encoding||"utf8",new Promise(function(e,t){r.readFile(_,S,function(n,r){n?t(n):e(r)})})).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("File $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)});var _,S}function y(e){return new Promise(function(t,n){(function(e){return new Promise(function(t,n){function r(t,n,r){if(t[n]&&p(t[n],"$ref")){let i=t[n].$ref;if(!i.startsWith("#")){let a="";if(!o[i]){let t=Object.keys(o).find(function(e,t,n){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),a=(a="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||"")).split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[n].description}),o[i].resolved)if(e.rewriteRefs){let r=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,r),t[n]["x-miro"]=i,t[n].$ref=r+a}else t[n]=l(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),t(o)})})(e).then(function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return m(e.openapi,n,e,function(e,r,o){if(!t[n].resolved){let i={};i.context=t[n],i.$ref=n,i.original=l(e),i.updated=e,i.source=r,o.externals.push(i),t[n].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let a=(s=t[n].paths,[...new Set(s)]);var s;a=a.sort(function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0});for(let r of a)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",r),u(o.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,o.verbose>1&&console.warn("Creating initial clone of data at",r));let i=l(e);u(o.openapi,r,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return y(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),n(t)});let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)})}const g=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function b(e,t,n){e.resolver.actions.push([]),y(e).then(function(r){g(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){b(r.options,t,n)},0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=f(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},function(t,n,r){p(t,n)&&(e.preserveMiro||delete t["x-miro"])}),t(e))}).catch(function(t){e.verbose&&console.warn(t),n(t)})}).catch(function(t){e.verbose&&console.warn(t),n(t)})}function w(e){if(e.cache||(e.cache={}),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals||(e.externals=[]),e.externalRefs||(e.externalRefs=[]),e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return w(e),new Promise(function(t,n){e.resolve?b(e,t,n):t(e)})},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,w(n),new Promise(function(e,t){b(n,e,t)})}}},function(e,t,n){"use strict";const r=n(94).recurse,o=n(62).shallowClone,i=n(61).jptr,a=n(93).isRef;var s=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}};e.exports={dereference:function e(t,n,u){u||(u={}),u.cache||(u.cache={}),u.state||(u.state={}),u.state.identityDetection=!0,u.depth=u.depth?u.depth+1:1;let c=u.depth>1?t:o(t),l={data:c},f=u.depth>1?n:o(n);u.master||(u.master=c);let p=s(u),h=1;for(;h>0;)h=0,r(l,u.state,function(t,n,r){if(a(t,n)){let o=t[n];if(h++,u.cache[o]){let e=u.cache[o];if(e.resolved)p.warn("Patching %s for %s",o,e.path),r.parent[r.pkey]=e.data,u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);p.warn("Unresolved ref"),r.parent[r.pkey]=i(e.source,e.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(e.source,e.key)),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[u.$ref]=o)}}else{let t={};t.path=r.path.split("/$ref")[0],t.key=o,p.warn("Dereffing %s at %s",o,t.path),t.source=f,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(u.master,t.key),t.source=u.master),!1===t.data&&p.warn("Missing $ref target",t.key),u.cache[o]=t,t.data=r.parent[r.pkey]=e(i(t.source,t.key),t.source,u),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o),t.resolved=!0}}});return l.data}}},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(o){if(null===o||"object"!=typeof o)return o;if(-1!==t.indexOf(o))return"[Circular]";if(t.push(o),"function"==typeof o.toJSON)try{var i=e(o.toJSON());return t.pop(),i}catch(e){return r(e)}if(Array.isArray(o)){var a=o.map(e);return t.pop(),a}var s=Object.keys(o).reduce(function(t,i){return t[i]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return r(e)}return e[t]}(o,i)),t},{});return t.pop(),s}(e)}e.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},e.exports.ensureProperties=o},function(e,t,n){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(t,n,o,i){if(void 0===o.depth&&(o=r()),null==t)return t;if(void 0!==t.$ref){let e={$ref:t.$ref};return o.allowRefSiblings&&t.description&&(e.description=t.description),i(e,n,o),e}if(o.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t=Object.assign({},t.allOf[0],t)).allOf,t.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t=Object.assign({},t.anyOf[0],t)).anyOf,t.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t=Object.assign({},t.oneOf[0],t)).oneOf),i(t,n,o),o.seen.has(t))return t;if("object"==typeof t&&null!==t&&o.seen.set(t,!0),o.top=!1,o.depth++,void 0!==t.items&&(o.property="items",e(t.items,t,o,i)),t.additionalItems&&"object"==typeof t.additionalItems&&(o.property="additionalItems",e(t.additionalItems,t,o,i)),t.additionalProperties&&"object"==typeof t.additionalProperties&&(o.property="additionalProperties",e(t.additionalProperties,t,o,i)),t.properties)for(let n in t.properties){let r=t.properties[n];o.property="properties/"+n,e(r,t,o,i)}if(t.patternProperties)for(let n in t.patternProperties){let r=t.patternProperties[n];o.property="patternProperties/"+n,e(r,t,o,i)}if(t.allOf)for(let n in t.allOf){let r=t.allOf[n];o.property="allOf/"+n,e(r,t,o,i)}if(t.anyOf)for(let n in t.anyOf){let r=t.anyOf[n];o.property="anyOf/"+n,e(r,t,o,i)}if(t.oneOf)for(let n in t.oneOf){let r=t.oneOf[n];o.property="oneOf/"+n,e(r,t,o,i)}return t.not&&(o.property="not",e(t.not,t,o,i)),o.depth--,t}}},function(e,t,n){"use strict";const r=n(359);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},r.STATUS_CODES)}},function(e,t,n){(function(e){var r=n(360),o=n(154),i=n(369),a=n(370),s=n(85),u=t;u.request=function(t,n){t="string"==typeof t?s.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||o,u=t.hostname||t.host,c=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(10))},function(e,t,n){(function(t,r,o){var i=n(153),a=n(28),s=n(154),u=n(155),c=n(368),l=s.IncomingMessage,f=s.readyStates;var p=e.exports=function(e){var n,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(p,u.Writable),p.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){u.push([t,e])}):u.push([t,n])}),"fetch"===e._mode){var l=null;if(i.abortController){var p=new AbortController;l=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var h=e._xhr=new r.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(h.timeout=n.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach(function(e){h.setRequestHeader(e[0],e[1])}),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(s)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,n){this._body.push(e),n()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(36).Buffer,n(10),n(15))},function(e,t){},function(e,t,n){"use strict";var r=n(64).Buffer,o=n(363);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,o=s,t.copy(n,o),s+=a.data.length,a=a.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(365),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,u=1,c={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n","license":"BSD-3-Clause","dependencies":{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.2.5","oas-schema-walker":"^1.1.2","oas-validator":"^3.3.1","reftools":"^1.0.8","yaml":"^1.3.1","yargs":"^12.0.5"},"keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"gitHead":"bb9737783f5c8e192bdf2cc33edcaec1f7fa5720"}')},function(e,t,n){"use strict";n.r(t);n(164); +!function(e){"use strict";function t(){for(var e=arguments.length,t=Array(e),n=0;n1){t[0]=t[0].slice(0,-1);for(var r=t.length-1,o=1;o= 0x80 (not a basic code point)","invalid-input":"Invalid input"},d=Math.floor,v=String.fromCharCode;function m(e){throw new RangeError(h[e])}function y(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]);var o=function(e,t){for(var n=[],r=e.length;r--;)n[r]=t(e[r]);return n}((e=e.replace(p,".")).split("."),t).join(".");return r+o}function g(e){for(var t=[],n=0,r=e.length;n=55296&&o<=56319&&n>1,e+=d(e/t);e>455;r+=36)e=d(e/35);return d(r+36*e/(e+38))},x=function(e){var t,n=[],r=e.length,o=0,i=128,a=72,s=e.lastIndexOf("-");s<0&&(s=0);for(var u=0;u=128&&m("not-basic"),n.push(e.charCodeAt(u));for(var l=s>0?s+1:0;l=r&&m("invalid-input");var v=(t=e.charCodeAt(l++))-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36;(v>=36||v>d((c-o)/p))&&m("overflow"),o+=v*p;var y=h<=a?1:h>=a+26?26:h-a;if(vd(c/g)&&m("overflow"),p*=g}var b=n.length+1;a=w(o-f,b,0==f),d(o/b)>c-i&&m("overflow"),i+=d(o/b),o%=b,n.splice(o++,0,i)}return String.fromCodePoint.apply(String,n)},_=function(e){var t=[],n=(e=g(e)).length,r=128,o=0,i=72,a=!0,s=!1,u=void 0;try{for(var l,f=e[Symbol.iterator]();!(a=(l=f.next()).done);a=!0){var p=l.value;p<128&&t.push(v(p))}}catch(e){s=!0,u=e}finally{try{!a&&f.return&&f.return()}finally{if(s)throw u}}var h=t.length,y=h;for(h&&t.push("-");y=r&&Ad((c-o)/T)&&m("overflow"),o+=(x-r)*T,r=x;var j=!0,C=!1,P=void 0;try{for(var R,L=e[Symbol.iterator]();!(j=(R=L.next()).done);j=!0){var N=R.value;if(Nc&&m("overflow"),N==r){for(var M=o,I=36;;I+=36){var U=I<=i?1:I>=i+26?26:I-i;if(M>6|192).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase():"%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(63&t|128).toString(16).toUpperCase()}function E(e){for(var t="",n=0,r=e.length;n=194&&o<224){if(r-n>=6){var i=parseInt(e.substr(n+4,2),16);t+=String.fromCharCode((31&o)<<6|63&i)}else t+=e.substr(n,6);n+=6}else if(o>=224){if(r-n>=9){var a=parseInt(e.substr(n+4,2),16),s=parseInt(e.substr(n+7,2),16);t+=String.fromCharCode((15&o)<<12|(63&a)<<6|63&s)}else t+=e.substr(n,9);n+=9}else t+=e.substr(n,3),n+=3}return t}function A(e,t){function n(e){var n=E(e);return n.match(t.UNRESERVED)?n:e}return e.scheme&&(e.scheme=String(e.scheme).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_SCHEME,"")),void 0!==e.userinfo&&(e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,n).replace(t.NOT_USERINFO,k).replace(t.PCT_ENCODED,o)),void 0!==e.host&&(e.host=String(e.host).replace(t.PCT_ENCODED,n).toLowerCase().replace(t.NOT_HOST,k).replace(t.PCT_ENCODED,o)),void 0!==e.path&&(e.path=String(e.path).replace(t.PCT_ENCODED,n).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,k).replace(t.PCT_ENCODED,o)),void 0!==e.query&&(e.query=String(e.query).replace(t.PCT_ENCODED,n).replace(t.NOT_QUERY,k).replace(t.PCT_ENCODED,o)),void 0!==e.fragment&&(e.fragment=String(e.fragment).replace(t.PCT_ENCODED,n).replace(t.NOT_FRAGMENT,k).replace(t.PCT_ENCODED,o)),e}function T(e){return e.replace(/^0*(.*)/,"$1")||"0"}function j(e,t){var n=e.match(t.IPV4ADDRESS)||[],r=u(n,2)[1];return r?r.split(".").map(T).join("."):e}function C(e,t){var n=e.match(t.IPV6ADDRESS)||[],r=u(n,3),o=r[1],i=r[2];if(o){for(var a=o.toLowerCase().split("::").reverse(),s=u(a,2),c=s[0],l=s[1],f=l?l.split(":").map(T):[],p=c.split(":").map(T),h=t.IPV4ADDRESS.test(p[p.length-1]),d=h?7:8,v=p.length-d,m=Array(d),y=0;y1){var w=m.slice(0,g.index),x=m.slice(g.index+g.length);b=w.join(":")+"::"+x.join(":")}else b=m.join(":");return i&&(b+="%"+i),b}return e}var P=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,R=void 0==="".match(/(){0}/)[1];function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=!1!==t.iri?s:a;"suffix"===t.reference&&(e=(t.scheme?t.scheme+":":"")+"//"+e);var o=e.match(P);if(o){R?(n.scheme=o[1],n.userinfo=o[3],n.host=o[4],n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=o[7],n.fragment=o[8],isNaN(n.port)&&(n.port=o[5])):(n.scheme=o[1]||void 0,n.userinfo=-1!==e.indexOf("@")?o[3]:void 0,n.host=-1!==e.indexOf("//")?o[4]:void 0,n.port=parseInt(o[5],10),n.path=o[6]||"",n.query=-1!==e.indexOf("?")?o[7]:void 0,n.fragment=-1!==e.indexOf("#")?o[8]:void 0,isNaN(n.port)&&(n.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?o[4]:void 0)),n.host&&(n.host=C(j(n.host,r),r)),void 0!==n.scheme||void 0!==n.userinfo||void 0!==n.host||void 0!==n.port||n.path||void 0!==n.query?void 0===n.scheme?n.reference="relative":void 0===n.fragment?n.reference="absolute":n.reference="uri":n.reference="same-document",t.reference&&"suffix"!==t.reference&&t.reference!==n.reference&&(n.error=n.error||"URI is not a "+t.reference+" reference.");var i=O[(t.scheme||n.scheme||"").toLowerCase()];if(t.unicodeSupport||i&&i.unicodeSupport)A(n,r);else{if(n.host&&(t.domainHost||i&&i.domainHost))try{n.host=S.toASCII(n.host.replace(r.PCT_ENCODED,E).toLowerCase())}catch(e){n.error=n.error||"Host's domain name can not be converted to ASCII via punycode: "+e}A(n,a)}i&&i.parse&&i.parse(n,t)}else n.error=n.error||"URI can not be parsed.";return n}var N=/^\.\.?\//,M=/^\/\.(\/|$)/,I=/^\/\.\.(\/|$)/,U=/^\/?(?:.|\n)*?(?=\/|$)/;function D(e){for(var t=[];e.length;)if(e.match(N))e=e.replace(N,"");else if(e.match(M))e=e.replace(M,"/");else if(e.match(I))e=e.replace(I,"/"),t.pop();else if("."===e||".."===e)e="";else{var n=e.match(U);if(!n)throw new Error("Unexpected dot segment condition");var r=n[0];e=e.slice(r.length),t.push(r)}return t.join("")}function q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.iri?s:a,r=[],o=O[(t.scheme||e.scheme||"").toLowerCase()];if(o&&o.serialize&&o.serialize(e,t),e.host)if(n.IPV6ADDRESS.test(e.host));else if(t.domainHost||o&&o.domainHost)try{e.host=t.iri?S.toUnicode(e.host):S.toASCII(e.host.replace(n.PCT_ENCODED,E).toLowerCase())}catch(n){e.error=e.error||"Host's domain name can not be converted to "+(t.iri?"Unicode":"ASCII")+" via punycode: "+n}A(e,n),"suffix"!==t.reference&&e.scheme&&(r.push(e.scheme),r.push(":"));var i=function(e,t){var n=!1!==t.iri?s:a,r=[];return void 0!==e.userinfo&&(r.push(e.userinfo),r.push("@")),void 0!==e.host&&r.push(C(j(String(e.host),n),n).replace(n.IPV6ADDRESS,function(e,t,n){return"["+t+(n?"%25"+n:"")+"]"})),"number"==typeof e.port&&(r.push(":"),r.push(e.port.toString(10))),r.length?r.join(""):void 0}(e,t);if(void 0!==i&&("suffix"!==t.reference&&r.push("//"),r.push(i),e.path&&"/"!==e.path.charAt(0)&&r.push("/")),void 0!==e.path){var u=e.path;t.absolutePath||o&&o.absolutePath||(u=D(u)),void 0===i&&(u=u.replace(/^\/\//,"/%2F")),r.push(u)}return void 0!==e.query&&(r.push("?"),r.push(e.query)),void 0!==e.fragment&&(r.push("#"),r.push(e.fragment)),r.join("")}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r={};return arguments[3]||(e=L(q(e,n),n),t=L(q(t,n),n)),!(n=n||{}).tolerant&&t.scheme?(r.scheme=t.scheme,r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(r.userinfo=t.userinfo,r.host=t.host,r.port=t.port,r.path=D(t.path||""),r.query=t.query):(t.path?("/"===t.path.charAt(0)?r.path=D(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?r.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:r.path=t.path:r.path="/"+t.path,r.path=D(r.path)),r.query=t.query):(r.path=e.path,void 0!==t.query?r.query=t.query:r.query=e.query),r.userinfo=e.userinfo,r.host=e.host,r.port=e.port),r.scheme=e.scheme),r.fragment=t.fragment,r}function z(e,t){return e&&e.toString().replace(t&&t.iri?s.PCT_ENCODED:a.PCT_ENCODED,E)}var F={scheme:"http",domainHost:!0,parse:function(e,t){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e},serialize:function(e,t){return e.port!==("https"!==String(e.scheme).toLowerCase()?80:443)&&""!==e.port||(e.port=void 0),e.path||(e.path="/"),e}},$={scheme:"https",domainHost:F.domainHost,parse:F.parse,serialize:F.serialize},W={},H="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Y="[0-9A-Fa-f]",V=n(n("%[EFef][0-9A-Fa-f]%"+Y+Y+"%"+Y+Y)+"|"+n("%[89A-Fa-f][0-9A-Fa-f]%"+Y+Y)+"|"+n("%"+Y+Y)),K=t("[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",'[\\"\\\\]'),J=new RegExp(H,"g"),G=new RegExp(V,"g"),Q=new RegExp(t("[^]","[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]","[\\.]",'[\\"]',K),"g"),Z=new RegExp(t("[^]",H,"[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]"),"g"),X=Z;function ee(e){var t=E(e);return t.match(J)?t:e}var te={scheme:"mailto",parse:function(e,t){var n=e,r=n.to=n.path?n.path.split(","):[];if(n.path=void 0,n.query){for(var o=!1,i={},a=n.query.split("&"),s=0,u=a.length;s= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-l,_=Math.floor,S=String.fromCharCode;function O(e){throw new RangeError(w[e])}function k(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+k((e=e.replace(b,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o=55296&&t<=56319&&o65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function C(e,t,n){var r=0;for(e=n?_(e/h):e>>1,e+=_(e/t);e>x*f>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+p))}function P(e){var t,n,r,o,i,a,s,p,h,y,g,b=[],w=e.length,x=0,S=v,k=d;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r=128&&O("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o=w&&O("invalid-input"),((p=(g=e.charCodeAt(o++))-48<10?g-22:g-65<26?g-65:g-97<26?g-97:c)>=c||p>_((u-x)/a))&&O("overflow"),x+=p*a,!(p<(h=s<=k?l:s>=k+f?f:s-k));s+=c)a>_(u/(y=c-h))&&O("overflow"),a*=y;k=C(x-i,t=b.length+1,0==i),_(x/t)>u-S&&O("overflow"),S+=_(x/t),x%=t,b.splice(x++,0,S)}return T(b)}function R(e){var t,n,r,o,i,a,s,p,h,y,g,b,w,x,k,E=[];for(b=(e=A(e)).length,t=v,n=0,i=d,a=0;a=t&&g_((u-n)/(w=r+1))&&O("overflow"),n+=(s-t)*w,t=s,a=0;au&&O("overflow"),g==t){for(p=n,h=c;!(p<(y=h<=i?l:h>=i+f?f:h-i));h+=c)k=p-y,x=c-y,E.push(S(j(y+k%x,0))),p=_(k/x);E.push(S(j(p,0))),i=C(n,w,r==o),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:T},decode:P,encode:R,toASCII:function(e){return E(e,function(e){return g.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return E(e,function(e){return y.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(38)(e),n(10))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";(function(t,n){var r=t.process&&n.nextTick||t.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then(function(t){r(function(){e(null,t)})},function(t){r(function(){e(t)})}):t}}).call(this,n(10),n(15))},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(4)),a=r(n(3)),s=r(n(5)),u=r(n(326)),c=r(n(341)),l=n(9),f=r(n(143)),p={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,version:"1.2"};var h=function(e){function t(e){return(0,o.default)(this,t),(0,i.default)(this,(0,a.default)(t).call(this,Object.assign({},p,e)))}return(0,s.default)(t,e),t}(c.default);function d(e,t){var n=(0,u.default)(e),r=new h(t).parse(n[0]);if(n.length>1){r.errors.unshift(new l.YAMLSemanticError(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return r}var v={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},c.default.defaults[p.version],p);return new f.default(r).createNode(e,t,n)},defaultOptions:p,Document:h,parse:function(e,t){var n=d(e,t);if(n.warnings.forEach(function(e){return console.warn(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r=[],o=!0,i=!1,a=void 0;try{for(var s,c=(0,u.default)(e)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,f=new h(t);f.parse(l,n),r.push(f),n=f}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r},parseCST:u.default,parseDocument:d,stringify:function(e,t){var n=new h(t);return n.contents=e,String(n)}};t.default=v},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,n){return e.length>1&&t.push(n),"\n"}));var n=[],r=0;do{var a=new o.default,s=new i.default({src:e});r=a.parse(s,r),n.push(a)}while(r0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new y.default(i,i+3),i+3):(o?this.error=new f.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}},{key:"parseContents",value:function(e){var n=this.context,r=n.parseNode,o=n.src;this.contents||(this.contents=[]);for(var i=e;"-"===o[i-1];)i-=1;var a=m.default.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new y.default(a);!m.default.atDocumentBoundary(o,a,l.Char.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var u=new p.default;(a=u.parse({src:o},a))0&&((t.length>0||e[0].type===l.Type.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}(m.default);t.default=g},function(e,t,n){var r=n(3);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(3),o=n(87),i=n(330),a=n(331);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(87);function o(t,n,i){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=o=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i}:e.exports=o=Reflect.construct,o.apply(null,arguments)}e.exports=o},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t,n){"use strict";function r(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("number"==typeof e&&e>=0){var n,o;if("string"==typeof t?(n=r(t),o=t.length):(Array.isArray(t)&&(t=t[0]),t&&(t.lineStarts||(t.lineStarts=r(t.context.src)),n=t.lineStarts,o=t.context.src.length)),n&&e<=o){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.atLineStart,b=r.inCollection,w=r.inFlow,x=r.indent,_=r.lineStart,S=r.parent;(0,o.default)(this,e),(0,a.default)(this,"parseNode",function(n,r){if(d.default.atDocumentBoundary(t.src,r))return null;var o,i=new e(t,n),a=i.parseProps(r),b=a.props,w=a.type,x=a.valueStart;switch(w){case s.Type.ALIAS:o=new c.default(w,b);break;case s.Type.BLOCK_FOLDED:case s.Type.BLOCK_LITERAL:o=new l.default(w,b);break;case s.Type.FLOW_MAP:case s.Type.FLOW_SEQ:o=new h.default(w,b);break;case s.Type.MAP_KEY:case s.Type.MAP_VALUE:case s.Type.SEQ_ITEM:o=new p.default(w,b);break;case s.Type.COMMENT:case s.Type.PLAIN:o=new v.default(w,b);break;case s.Type.QUOTE_DOUBLE:o=new m.default(w,b);break;case s.Type.QUOTE_SINGLE:o=new y.default(w,b);break;default:return o.error=new u.YAMLSyntaxError(o,"Unknown node type: ".concat(JSON.stringify(w))),o.range=new g.default(r,r+1),o}var _=o.parse(i,x);if(o.range=new g.default(r,_),_<=r&&(o.error=new Error("Node#parse consumed no characters"),o.error.parseEnd=_,o.error.source=o,o.range.end=r+1),i.nodeStartsCollection(o)){o.error||i.atLineStart||i.parent.type!==s.Type.DOCUMENT||(o.error=new u.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var S=new f.default(o);return _=S.parse(new e(i),_),S.range=new g.default(r,_),S}return o}),this.atLineStart=null!=i?i:n.atLineStart||!1,this.inCollection=null!=b?b:n.inCollection||!1,this.inFlow=null!=w?w:n.inFlow||!1,this.indent=null!=x?x:n.indent,this.lineStart=null!=_?_:n.lineStart,this.parent=null!=S?S:n.parent||{},this.root=n.root,this.src=n.src}return(0,i.default)(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return s.Type.ALIAS;case">":return s.Type.BLOCK_FOLDED;case"|":return s.Type.BLOCK_LITERAL;case"{":return s.Type.FLOW_MAP;case"[":return s.Type.FLOW_SEQ;case"?":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_KEY:s.Type.PLAIN;case":":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.MAP_VALUE:s.Type.PLAIN;case"-":return!n&&d.default.atBlank(e,t+1,!0)?s.Type.SEQ_ITEM:s.Type.PLAIN;case'"':return s.Type.QUOTE_DOUBLE;case"'":return s.Type.QUOTE_SINGLE;default:return s.Type.PLAIN}}}]),(0,i.default)(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof p.default)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=d.default.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,i=[],a=!1,u=o[t=d.default.endOfWhiteSpace(o,t)];u===s.Char.ANCHOR||u===s.Char.COMMENT||u===s.Char.TAG||"\n"===u;){if("\n"===u){var c=t+1,l=d.default.endOfIndent(o,c),f=l-(c+this.indent),p=r.type===s.Type.SEQ_ITEM&&r.context.atLineStart;if(!d.default.nextNodeIsIndented(o[l],f,!p))break;this.atLineStart=!0,this.lineStart=c,a=!1,t=l}else if(u===s.Char.COMMENT){var h=d.default.endOfLine(o,t+1);i.push(new g.default(t,h)),t=h}else{var v=d.default.endOfIdentifier(o,t+1);u===s.Char.TAG&&","===o[v]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,v+13))&&(v=d.default.endOfIdentifier(o,v+5)),i.push(new g.default(t,v)),a=!0,t=d.default.endOfWhiteSpace(o,v)}u=o[t]}return a&&":"===u&&d.default.atBlank(o,t+1,!0)&&(t-=1),{props:i,type:e.parseType(o,t,n),valueStart:t}}},{key:"pretty",get:function(){var e={start:"".concat(this.lineStart," + ").concat(this.indent),in:[],parent:this.parent.type};return this.atLineStart||(e.start+=" + N"),this.inCollection&&e.in.push("collection"),this.inFlow&&e.in.push("flow"),e}}]),e}();t.default=b},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=r(n(11)),l=r(n(12)),f=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=c.default.endOfIdentifier(n,t+1);return this.valueRange=new l.default(t+1,r),r=c.default.endOfWhiteSpace(n,r),r=this.parseComment(r)}}]),t}(c.default);t.default=f},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Chomp=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(19)),c=r(n(5)),l=n(8),f=r(n(11)),p=r(n(12)),h={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};t.Chomp=h;var d=function(e){function t(e,n){var r;return(0,o.default)(this,t),(r=(0,a.default)(this,(0,s.default)(t).call(this,e,n))).blockIndent=null,r.chomping=h.CLIP,r.header=null,r}return(0,c.default)(t,e),(0,i.default)(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var o=t[n];switch(o){case"-":this.chomping=h.STRIP;break;case"+":this.chomping=h.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new p.default(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,o=e,i=e,a=this.blockIndent?n+this.blockIndent-1:n,s=1,u=r[o];"\n"===u&&(o+=1,!f.default.atDocumentBoundary(r,o));u=r[o]){var c=f.default.endOfBlockIndent(r,a,o);if(null===c)break;if(!this.blockIndent){var l=c-(o+n);if("\n"!==r[c]){if(ls&&(s=l)}o="\n"===r[c]?c:i=f.default.endOfLine(r,c)}return this.chomping!==h.KEEP&&(o=r[i]?i+1:i),this.valueRange=new p.default(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=f.default.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,n){return n=(0,u.default)((0,s.default)(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"includesTrailingLines",get:function(){return this.chomping===h.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,o=r.indent,i=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===h.KEEP)break;return""}"\n"===s&&(a=n),s=i[n-1]}var u=n+1;a&&(this.chomping===h.KEEP?(u=a,n=this.valueRange.end):n=a);for(var c=o+this.blockIndent,p=this.type===l.Type.BLOCK_FOLDED,d=!0,v="",m="",y=!1,g=t;g0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===l.Type.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.indent,i=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=d.default.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(i=s+1,"\n"===r[d.default.endOfWhiteSpace(r,i)]){var u=new p.default;i=u.parse({src:r},i),this.items.push(u)}if((s=d.default.endOfIndent(r,i))<=i+o&&(a=r[s],st.offset);)++r;t.origOffset=t.offset+r,n=r}}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var o=t.filter(function(e){return e instanceof d.default}),i="",a=n.start;return o.forEach(function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(i+=n+String(t))[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,n.end),d.default.addStringTerminator(e,n.end,i)}}]),t}(d.default);t.default=m},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new c.YAMLSyntaxError(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(i)}},{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;'"'!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,'Missing closing "quote'));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(4)),s=r(n(3)),u=r(n(5)),c=n(9),l=r(n(11)),f=r(n(12)),p=function(e){function t(){return(0,o.default)(this,t),(0,a.default)(this,(0,s.default)(t).apply(this,arguments))}return(0,u.default)(t,e),(0,i.default)(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new f.default(n,o),o=l.default.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;"'"!==a[r-1]&&e.push(new c.YAMLSyntaxError(this,"Missing closing 'quote"));for(var s="",u=n+1;uh?a.slice(h,u+1):f)}else s+=f}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),t}(l.default);t.default=p},function(e,t,n){"use strict";var r=n(57),o=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(55)),a=o(n(1)),s=o(n(2)),u=o(n(20)),c=o(n(58)),l=o(n(342)),f=n(8),p=n(9),h=o(n(345)),d=o(n(143)),v=o(n(59)),m=r(n(26)),y=o(n(33)),g=o(n(13)),b=o(n(32)),w=function(){function e(t){(0,a.default)(this,e),this.anchors=new l.default(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return(0,s.default)(e,[{key:"assertCollectionContents",value:function(){if(this.contents instanceof m.default)return!0;throw new Error("Expected a YAML collection as document contents")}},{key:"add",value:function(e){return this.assertCollectionContents(),this.contents.add(e)}},{key:"addIn",value:function(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return this.assertCollectionContents(),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return(0,m.isEmptyPath)(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof m.default?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return(0,m.isEmptyPath)(e)?!t&&this.contents instanceof g.default?this.contents.value:this.contents:this.contents instanceof m.default?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof m.default&&this.contents.has(e)}},{key:"hasIn",value:function(e){return(0,m.isEmptyPath)(e)?void 0!==this.contents:this.contents instanceof m.default&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){this.assertCollectionContents(),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){(0,m.isEmptyPath)(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}},{key:"setSchema",value:function(){this.schema||(this.schema=new d.default(Object.assign({},this.getDefaults(),this.options)))}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,o=e.contents,i=void 0===o?[]:o,a=e.directivesEndMarker,s=e.error,u=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(r,t),a&&(this.directivesEndMarker=!0),this.range=u?[u.start,u.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(i),this.anchors.resolveNodes(),this.options.prettyErrors){var c=!0,l=!1,f=void 0;try{for(var h,d=this.errors[Symbol.iterator]();!(c=(h=d.next()).done);c=!0){var v=h.value;v instanceof p.YAMLError&&v.makePretty()}}catch(e){l=!0,f=e}finally{try{c||null==d.return||d.return()}finally{if(l)throw f}}var m=!0,y=!1,g=void 0;try{for(var b,w=this.warnings[Symbol.iterator]();!(m=(b=w.next()).done);m=!0){var x=b.value;x instanceof p.YAMLError&&x.makePretty()}}catch(e){y=!0,g=e}finally{try{m||null==w.return||w.return()}finally{if(y)throw g}}}return this}},{key:"parseDirectives",value:function(e,t){var n=this,r=[],o=!1;if(e.forEach(function(e){var t=e.comment,i=e.name;switch(i){case"TAG":n.resolveTagDirective(e),o=!0;break;case"YAML":case"YAML:1.0":n.resolveYamlDirective(e),o=!0;break;default:if(i){var a="YAML only supports %TAG and %YAML directives, and not %".concat(i);n.warnings.push(new p.YAMLWarning(e,a))}}t&&r.push(t)}),t&&!o&&"1.1"===(this.version||t.version||this.options.version)){this.tagPrefixes=t.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),this.version=t.version}this.commentBefore=r.join("\n")||null}},{key:"parseContents",value:function(e){var t=this,n={before:[],after:[]},r=[],o=!1;switch(e.forEach(function(e){if(e.valueRange){if(1===r.length){t.errors.push(new p.YAMLSyntaxError(e,"Document is not valid YAML (bad indentation?)"))}var i=t.resolveNode(e);o&&(i.spaceBefore=!0,o=!1),r.push(i)}else if(null!==e.comment){(0===r.length?n.before:n.after).push(e.comment)}else e.type===f.Type.BLANK_LINE&&(o=!0,0===r.length&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join("\n"),n.before=[]))}),r.length){case 0:this.contents=null,n.after=n.before;break;case 1:if(this.contents=r[0],this.contents){var i=n.before.join("\n")||null;if(i){var a=this.contents instanceof m.default&&this.contents.items[0]?this.contents.items[0]:this.contents;a.commentBefore=a.commentBefore?"".concat(i,"\n").concat(a.commentBefore):i}}else n.after=n.before.concat(n.after);break;default:this.contents=r,this.contents[0]?this.contents[0].commentBefore=n.before.join("\n")||null:n.after=n.before.concat(n.after)}this.comment=n.after.join("\n")||null}},{key:"resolveTagDirective",value:function(e){var t=(0,i.default)(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new p.YAMLSemanticError(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new p.YAMLSemanticError(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=(0,i.default)(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new p.YAMLSemanticError(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new p.YAMLWarning(t,o))}this.version=n}else{this.errors.push(new p.YAMLSemanticError(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,a=t.verbatim;if(a){if("!"!==a&&"!!"!==a)return a;var s="Verbatim tags aren't resolved, so ".concat(a," is invalid.");this.errors.push(new p.YAMLSemanticError(e,s))}else if("!"!==o||i){var u=this.tagPrefixes.find(function(e){return e.handle===o});if(!u){var c=this.getDefaults().tagPrefixes;c&&(u=c.find(function(e){return e.handle===o}))}if(u){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:\/]/.test(i)){var l=i.match(/^([a-z0-9-]+)\/(.*)/i);return l?"tag:".concat(l[1],".yaml.org,2002:").concat(l[2]):"tag:".concat(i)}}return u.prefix+decodeURIComponent(i)}this.errors.push(new p.YAMLSemanticError(e,"The ".concat(o," tag has no suffix.")))}else{var h="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new p.YAMLSemanticError(e,h))}}else r=!0}switch(n){case f.Type.BLOCK_FOLDED:case f.Type.BLOCK_LITERAL:case f.Type.QUOTE_DOUBLE:case f.Type.QUOTE_SINGLE:return d.default.defaultTags.STR;case f.Type.FLOW_MAP:case f.Type.MAP:return d.default.defaultTags.MAP;case f.Type.FLOW_SEQ:case f.Type.SEQ:return d.default.defaultTags.SEQ;case f.Type.PLAIN:return r?d.default.defaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,i=!1,a=!1,s={before:[],after:[]},u=function(e){return e&&[f.Type.MAP_KEY,f.Type.MAP_VALUE,f.Type.SEQ_ITEM].includes(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props,c=!0,l=!1,h=void 0;try{for(var d,m=u[Symbol.iterator]();!(c=(d=m.next()).done);c=!0){var y=d.value,g=y.start,b=y.end;switch(e.context.src[g]){case f.Char.COMMENT:if(!e.commentHasRequiredWhitespace(g)){r.push(new p.YAMLSemanticError(e,"Comments must be separated from other tokens by white space characters"))}var w=e.context.src.slice(g+1,b),x=e.header,_=e.valueRange;_&&(g>_.start||x&&g>x.start)?s.after.push(w):s.before.push(w);break;case f.Char.ANCHOR:if(i){r.push(new p.YAMLSemanticError(e,"A node can have at most one anchor"))}i=!0;break;case f.Char.TAG:if(a){r.push(new p.YAMLSemanticError(e,"A node can have at most one tag"))}a=!0}}}catch(e){l=!0,h=e}finally{try{c||null==m.return||m.return()}finally{if(l)throw h}}if(i){var S=e.anchor,O=n.getNode(S);O&&(n.map[n.newName(S)]=O),n.map[S]=e}if(e.type===f.Type.ALIAS){if(i||a){r.push(new p.YAMLSemanticError(e,"An alias node must not specify any properties"))}var k=e.rawValue,E=n.getNode(k);if(!E){var A="Aliased anchor not found: ".concat(k);return r.push(new p.YAMLReferenceError(e,A)),null}t=new v.default(E),n._cstAliases.push(t)}else{var T=this.resolveTagName(e);if(T)t=o.resolveNodeWithFallback(this,e,T);else{if(e.type!==f.Type.PLAIN){var j="Failed to resolve ".concat(e.type," node here");return r.push(new p.YAMLSyntaxError(e,j)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var C=s.before.join("\n");C&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(C):C);var P=s.after.join("\n");P&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(P):P)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return(0,h.default)(this.contents).filter(function(e){return 0!==e.indexOf(d.default.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var i=e.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+i}},{key:"toJSON",value:function(e){var t=this,n=this.options,r=n.keepBlobsInJSON,o=n.mapAsMap,i=n.maxAliasCount,a=r&&("string"!=typeof e||!(this.contents instanceof g.default)),s={doc:this,keep:a,mapAsMap:a&&!!o,maxAliasCount:i},u=Object.keys(this.anchors.map);return u.length>0&&(s.anchors=u.map(function(e){return{alias:[],aliasCount:0,count:1,node:t.anchors.map[e]}})),(0,b.default)(this.contents,e,s)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[],t=!1;if(this.version){var n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}var r=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var o=n.handle,i=n.prefix;r.some(function(e){return 0===e.indexOf(i)})&&(e.push("%TAG ".concat(o," ").concat(i)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));var o={anchors:{},doc:this,indent:""},i=!1,a=null;if(this.contents){this.contents instanceof y.default&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);var s=a?null:function(){return i=!0},u=this.schema.stringify(this.contents,o,function(){return a=null},s);e.push((0,c.default)(u,"",a))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(i&&!a||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}]),e}();t.default=w,(0,u.default)(w,"defaults",{"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:d.default.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:d.default.defaultPrefix}]}})},function(e,t,n){"use strict";var r=n(0);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(1)),i=r(n(2)),a=r(n(20)),s=r(n(59)),u=r(n(27)),c=r(n(142)),l=r(n(13)),f=r(n(34)),p=function(){function e(t){(0,o.default)(this,e),(0,a.default)(this,"map",{}),this.prefix=t}return(0,i.default)(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof l.default||e instanceof f.default||e instanceof u.default}}]),(0,i.default)(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new s.default(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new c.default,n=arguments.length,r=new Array(n),o=0;o=g)if(b)m.push(b),g=b+d,b=void 0;else if(n===o){for(;" "===w||"\t"===w;)w=v,v=e[_+=1],x=!0;m.push(_-2),y[_-2]=!0,g=_-2+d,b=void 0}else x=!0}w=v}x&&h&&h();if(0===m.length)return e;p&&p();for(var O=e.slice(0,m[0]),k=0;k0?r-4:r,f=0;f>16&255,s[u++]=t>>8&255,s[u++]=255&t;2===a&&(t=o[e.charCodeAt(f)]<<2|o[e.charCodeAt(f+1)]>>4,s[u++]=255&t);1===a&&(t=o[e.charCodeAt(f)]<<10|o[e.charCodeAt(f+1)]<<4|o[e.charCodeAt(f+2)]>>2,s[u++]=t>>8&255,s[u++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;as?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],s=t;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,u=(1<>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-c;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=c}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,u,c=8*i-o-1,l=(1<>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=d,a/=256,c-=8);e[n+h-d]|=128*v}},function(e,t,n){"use strict";const r=n(134),o=n(84),i=n(85),a=n(135),s=n(136),u=n(61).jptr,c=n(94).recurse,l=n(62).clone,f=n(355).dereference,p=n(93).isRef,h=n(152);function d(e,t,n,r,o,a){let s=a.externalRefs[n+r].paths[0],f=i.parse(o),d={},v=1;for(;v;)v=0,c(e,{identityDetection:!0},function(e,n,r){if(p(e,n))if(e[n].startsWith("#"))if(d[e[n]]||e.$fixed){if(!e.$fixed){let t=(s+"/"+d[e[n]]).split("/#/").join("/");r.parent[r.pkey]={$ref:t,"x-miro":e[n],$fixed:!0},a.verbose>1&&console.warn("Replacing with",t),v++}}else{let o=l(u(t,e[n]));if(a.verbose>1&&console.warn((!1===o?h.colour.red:h.colour.green)+"Fragment resolution",e[n],h.colour.normal),!1===o){if(r.parent[r.pkey]={},a.fatal){let t=new Error("Fragment $ref resolution failed "+e[n]);if(!a.promise)throw t;a.promise.reject(t)}}else v++,r.parent[r.pkey]=o,d[e[n]]=r.path.replace("/%24ref","")}else if(f.protocol){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external url ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(h.colour.yellow+"Rewriting external ref",e[n],"as",t,h.colour.normal),e["x-miro"]=e[n],e[n]=t}});return c(e,{},function(e,t,n){p(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function v(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function m(e,t,n,c){var f=i.parse(n.source),p=n.source.split("\\").join("/").split("/");p.pop()||p.pop();let h="",m=t.split("#");m.length>1&&(h="#"+m[1],t=m[0]),p=p.join("/");let y=i.parse(t),g=(b=y.protocol,w=f.protocol,b&&b.length>2?b:w&&w.length>2?w:"file:");var b,w;let x;if(x="file:"===g?o.resolve(p?p+"/":"",t):i.resolve(p?p+"/":"",t),n.cache[x]){n.verbose&&console.warn("CACHED",x,h);let e=l(n.cache[x]),r=n.externalRef=e;if(h&&!1===(r=u(r,h))&&(r={},n.fatal)){let e=new Error("Cached $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}return r=v(r=d(r,e,t,h,x,n),n),c(l(r),x,n),Promise.resolve(r)}return n.verbose&&console.warn("GET",x,h),n.handlers&&n.handlers[g]?n.handlers[g](p,t,h,n).then(function(e){return n.externalRef=e,e=v(e,n),n.cache[x]=e,c(e,x,n),e}).catch(function(e){throw n.verbose&&console.warn(e),e}):g&&g.startsWith("http")?a(x,{agent:n.agent}).then(function(e){if(200!==e.status)throw new Error(`Received status code ${e.status}`);return e.text()}).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("Remote $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),n.cache[x]={},!n.promise||!n.fatal)throw e;n.promise.reject(e)}):(_=x,S=n.encoding||"utf8",new Promise(function(e,t){r.readFile(_,S,function(n,r){n?t(n):e(r)})})).then(function(e){try{let r=s.parse(e,{schema:"core"});if(e=n.externalRef=r,n.cache[x]=l(e),h&&!1===(e=u(e,h))&&(e={},n.fatal)){let e=new Error("File $ref resolution failed "+x+h);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=d(e,r,t,h,x,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return c(e,x,n),e}).catch(function(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)});var _,S}function y(e){return new Promise(function(t,n){(function(e){return new Promise(function(t,n){function r(t,n,r){if(t[n]&&p(t[n],"$ref")){let i=t[n].$ref;if(!i.startsWith("#")){let a="";if(!o[i]){let t=Object.keys(o).find(function(e,t,n){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),a=(a="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||"")).split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[n].description}),o[i].resolved)if(e.rewriteRefs){let r=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,r),t[n]["x-miro"]=i,t[n].$ref=r+a}else t[n]=l(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),t(o)})})(e).then(function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return m(e.openapi,n,e,function(e,r,o){if(!t[n].resolved){let i={};i.context=t[n],i.$ref=n,i.original=l(e),i.updated=e,i.source=r,o.externals.push(i),t[n].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let a=(s=t[n].paths,[...new Set(s)]);var s;a=a.sort(function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0});for(let r of a)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",r),u(o.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,o.verbose>1&&console.warn("Creating initial clone of data at",r));let i=l(e);u(o.openapi,r,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return y(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),n(t)});let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)})}const g=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function b(e,t,n){e.resolver.actions.push([]),y(e).then(function(r){g(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){b(r.options,t,n)},0):(e.verbose>1&&console.warn(h.colour.yellow+"Finished external resolution!",h.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(h.colour.yellow+"Starting internal resolution!",h.colour.normal),e.openapi=f(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(h.colour.yellow+"Finished internal resolution!",h.colour.normal)),c(e.openapi,{},function(t,n,r){p(t,n)&&(e.preserveMiro||delete t["x-miro"])}),t(e))}).catch(function(t){e.verbose&&console.warn(t),n(t)})}).catch(function(t){e.verbose&&console.warn(t),n(t)})}function w(e){if(e.cache||(e.cache={}),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals||(e.externals=[]),e.externalRefs||(e.externalRefs=[]),e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return w(e),new Promise(function(t,n){e.resolve?b(e,t,n):t(e)})},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,w(n),new Promise(function(e,t){b(n,e,t)})}}},function(e,t,n){"use strict";const r=n(94).recurse,o=n(62).shallowClone,i=n(61).jptr,a=n(93).isRef;var s=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}};e.exports={dereference:function e(t,n,u){u||(u={}),u.cache||(u.cache={}),u.state||(u.state={}),u.state.identityDetection=!0,u.depth=u.depth?u.depth+1:1;let c=u.depth>1?t:o(t),l={data:c},f=u.depth>1?n:o(n);u.master||(u.master=c);let p=s(u),h=1;for(;h>0;)h=0,r(l,u.state,function(t,n,r){if(a(t,n)){let o=t[n];if(h++,u.cache[o]){let e=u.cache[o];if(e.resolved)p.warn("Patching %s for %s",o,e.path),r.parent[r.pkey]=e.data,u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);p.warn("Unresolved ref"),r.parent[r.pkey]=i(e.source,e.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(e.source,e.key)),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[u.$ref]=o)}}else{let t={};t.path=r.path.split("/$ref")[0],t.key=o,p.warn("Dereffing %s at %s",o,t.path),t.source=f,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(u.master,t.key),t.source=u.master),!1===t.data&&p.warn("Missing $ref target",t.key),u.cache[o]=t,t.data=r.parent[r.pkey]=e(i(t.source,t.key),t.source,u),u.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][u.$ref]=o),t.resolved=!0}}});return l.data}}},function(e,t){var n=Object.prototype.hasOwnProperty;function r(e){return"[Throws: "+(e?e.message:"?")+"]"}function o(e){var t=[];return function e(o){if(null===o||"object"!=typeof o)return o;if(-1!==t.indexOf(o))return"[Circular]";if(t.push(o),"function"==typeof o.toJSON)try{var i=e(o.toJSON());return t.pop(),i}catch(e){return r(e)}if(Array.isArray(o)){var a=o.map(e);return t.pop(),a}var s=Object.keys(o).reduce(function(t,i){return t[i]=e(function(e,t){if(n.call(e,t))try{return e[t]}catch(e){return r(e)}return e[t]}(o,i)),t},{});return t.pop(),s}(e)}e.exports=function(e,t,n){return JSON.stringify(o(e),t,n)},e.exports.ensureProperties=o},function(e,t,n){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(t,n,o,i){if(void 0===o.depth&&(o=r()),null==t)return t;if(void 0!==t.$ref){let e={$ref:t.$ref};return o.allowRefSiblings&&t.description&&(e.description=t.description),i(e,n,o),e}if(o.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t=Object.assign({},t.allOf[0],t)).allOf,t.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t=Object.assign({},t.anyOf[0],t)).anyOf,t.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t=Object.assign({},t.oneOf[0],t)).oneOf),i(t,n,o),o.seen.has(t))return t;if("object"==typeof t&&null!==t&&o.seen.set(t,!0),o.top=!1,o.depth++,void 0!==t.items&&(o.property="items",e(t.items,t,o,i)),t.additionalItems&&"object"==typeof t.additionalItems&&(o.property="additionalItems",e(t.additionalItems,t,o,i)),t.additionalProperties&&"object"==typeof t.additionalProperties&&(o.property="additionalProperties",e(t.additionalProperties,t,o,i)),t.properties)for(let n in t.properties){let r=t.properties[n];o.property="properties/"+n,e(r,t,o,i)}if(t.patternProperties)for(let n in t.patternProperties){let r=t.patternProperties[n];o.property="patternProperties/"+n,e(r,t,o,i)}if(t.allOf)for(let n in t.allOf){let r=t.allOf[n];o.property="allOf/"+n,e(r,t,o,i)}if(t.anyOf)for(let n in t.anyOf){let r=t.anyOf[n];o.property="anyOf/"+n,e(r,t,o,i)}if(t.oneOf)for(let n in t.oneOf){let r=t.oneOf[n];o.property="oneOf/"+n,e(r,t,o,i)}return t.not&&(o.property="not",e(t.not,t,o,i)),o.depth--,t}}},function(e,t,n){"use strict";const r=n(359);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},r.STATUS_CODES)}},function(e,t,n){(function(e){var r=n(360),o=n(154),i=n(369),a=n(370),s=n(85),u=t;u.request=function(t,n){t="string"==typeof t?s.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||o,u=t.hostname||t.host,c=t.port,l=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(c?":"+c:"")+l,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var f=new r(t);return n&&f.on("response",n),f},u.get=function(e,t){var n=u.request(e,t);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=o.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(10))},function(e,t,n){(function(t,r,o){var i=n(153),a=n(28),s=n(154),u=n(155),c=n(368),l=s.IncomingMessage,f=s.readyStates;var p=e.exports=function(e){var n,r=this;u.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(p,u.Writable),p.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===h.indexOf(n)&&(this._headers[n]={name:e,value:t})},p.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},p.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},p.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?c(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var u=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){u.push([t,e])}):u.push([t,n])}),"fetch"===e._mode){var l=null;if(i.abortController){var p=new AbortController;l=p.signal,e._fetchAbortController=p,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:u,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:l}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var h=e._xhr=new r.XMLHttpRequest;try{h.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}"responseType"in h&&(h.responseType=e._mode.split(":")[0]),"withCredentials"in h&&(h.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(h.timeout=n.requestTimeout,h.ontimeout=function(){e.emit("requestTimeout")}),u.forEach(function(e){h.setRequestHeader(e[0],e[1])}),e._response=null,h.onreadystatechange=function(){switch(h.readyState){case f.LOADING:case f.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(h.onprogress=function(){e._onXHRProgress()}),h.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{h.send(s)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}}}},p.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},p.prototype._connect=function(){var e=this;e._destroyed||(e._response=new l(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},p.prototype._write=function(e,t,n){this._body.push(e),n()},p.prototype.abort=p.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},p.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),u.Writable.prototype.end.call(this,e,t,n)},p.prototype.flushHeaders=function(){},p.prototype.setTimeout=function(){},p.prototype.setNoDelay=function(){},p.prototype.setSocketKeepAlive=function(){};var h=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(36).Buffer,n(10),n(15))},function(e,t){},function(e,t,n){"use strict";var r=n(64).Buffer,o=n(363);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,o=s,t.copy(n,o),s+=a.data.length,a=a.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(365),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(10))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,u=1,c={},l=!1,f=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){i.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(o=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n","license":"BSD-3-Clause","dependencies":{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.2.5","oas-schema-walker":"^1.1.2","oas-validator":"^3.3.1","reftools":"^1.0.8","yaml":"^1.3.1","yargs":"^12.0.5"},"keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"gitHead":"bb9737783f5c8e192bdf2cc33edcaec1f7fa5720"}')},function(e,t,n){"use strict";n.r(t);n(164); /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -136,7 +136,7 @@ const b=e=>null===e||!("object"==typeof e||"function"==typeof e);class w{constru * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -const D=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),q=!1);const B=e=>t=>{const n=D(t.type,e);let r=P.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},P.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(c);if(void 0===(o=r.keyString.get(i))){const n=t.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(n,e),o=new h(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},F=["html","svg"],z=new Set,$=(e,t,n)=>{z.add(n);const r=e.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(t.element,n);const o=document.createElement("style");for(let e=0;e{F.forEach(t=>{const n=P.get(D(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),M(e,n)})})})(n),function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,N,null,!1);let a=U(o),s=0,u=-1;for(;i.nextNode();){for(u++,i.currentNode===n&&(s=I(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===u;){if(s>0){for(;-1!==a;)o[a].index+=s,a=U(o,a);return}a=U(o,a)}}}(t,o,t.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(t.element,n),window.ShadyCSS.nativeShadow){const n=t.element.content.querySelector("style");e.insertBefore(n.cloneNode(!0),e.firstChild)}else{t.element.content.insertBefore(o,t.element.content.firstChild);const e=new Set;e.add(o),M(t,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const W={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},Y=(e,t)=>t!==e&&(t==t||e==e),H={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:Y},V=Promise.resolve(!0),K=1,J=4,G=8,Q=16,Z=32,X="finalized";class ee extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=V,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=H){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`;Object.defineProperty(this.prototype,e,{get(){return this[n]},set(t){const r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(X)||e.finalize(),this[X]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=Y){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||W,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||W.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|Z,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=H){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|G,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=this._updateState&~G}}_attributeToProperty(e,t){if(this._updateState&G)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n._classProperties.get(r)||H;this._updateState=this._updateState|Q,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~Q}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r._classProperties.get(e)||H;r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||this._updateState&Q||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){let e,t;this._updateState=this._updateState|J;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{e=n,t=r});try{await n}catch(e){}this._hasConnected||await new Promise(e=>this._hasConnectedResolver=e);try{const e=this.performUpdate();null!=e&&await e}catch(e){t(e)}e(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&Z}get _hasRequestedUpdate(){return this._updateState&J}get hasUpdated(){return this._updateState&K}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(this._updateState&K||(this._updateState=this._updateState|K,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~J}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0)}updated(e){}firstUpdated(e){}}ee[X]=!0;const te="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol();class re{constructor(e,t){if(t!==ne)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(te?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const oe=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof re)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new re(n,ne)}; +const D=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected.Please update to at least @webcomponents/webcomponentsjs@2.0.2 and@webcomponents/shadycss@1.3.1."),q=!1);const B=e=>t=>{const n=D(t.type,e);let r=P.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},P.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(c);if(void 0===(o=r.keyString.get(i))){const n=t.getTemplateElement();q&&window.ShadyCSS.prepareTemplateDom(n,e),o=new h(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},z=["html","svg"],F=new Set,$=(e,t,n)=>{F.add(n);const r=e.querySelectorAll("style");if(0===r.length)return void window.ShadyCSS.prepareTemplateStyles(t.element,n);const o=document.createElement("style");for(let e=0;e{z.forEach(t=>{const n=P.get(D(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),M(e,n)})})})(n),function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,N,null,!1);let a=U(o),s=0,u=-1;for(;i.nextNode();){for(u++,i.currentNode===n&&(s=I(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===u;){if(s>0){for(;-1!==a;)o[a].index+=s,a=U(o,a);return}a=U(o,a)}}}(t,o,t.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(t.element,n),window.ShadyCSS.nativeShadow){const n=t.element.content.querySelector("style");e.insertBefore(n.cloneNode(!0),e.firstChild)}else{t.element.content.insertBefore(o,t.element.content.firstChild);const e=new Set;e.add(o),M(t,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const W={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},H=(e,t)=>t!==e&&(t==t||e==e),Y={attribute:!0,type:String,converter:W,reflect:!1,hasChanged:H},V=Promise.resolve(!0),K=1,J=4,G=8,Q=16,Z=32,X="finalized";class ee extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=V,this._hasConnectedResolver=void 0,this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=Y){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`;Object.defineProperty(this.prototype,e,{get(){return this[n]},set(t){const r=this[e];this[n]=t,this._requestUpdate(e,r)},configurable:!0,enumerable:!0})}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(X)||e.finalize(),this[X]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=H){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||W,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||W.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this._updateState=this._updateState|Z,this._hasConnectedResolver&&(this._hasConnectedResolver(),this._hasConnectedResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=Y){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|G,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=this._updateState&~G}}_attributeToProperty(e,t){if(this._updateState&G)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n._classProperties.get(r)||Y;this._updateState=this._updateState|Q,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~Q}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r._classProperties.get(e)||Y;r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||this._updateState&Q||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&this._enqueueUpdate()}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){let e,t;this._updateState=this._updateState|J;const n=this._updatePromise;this._updatePromise=new Promise((n,r)=>{e=n,t=r});try{await n}catch(e){}this._hasConnected||await new Promise(e=>this._hasConnectedResolver=e);try{const e=this.performUpdate();null!=e&&await e}catch(e){t(e)}e(!this._hasRequestedUpdate)}get _hasConnected(){return this._updateState&Z}get _hasRequestedUpdate(){return this._updateState&J}get hasUpdated(){return this._updateState&K}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{(e=this.shouldUpdate(t))&&this.update(t)}catch(t){throw e=!1,t}finally{this._markUpdated()}e&&(this._updateState&K||(this._updateState=this._updateState|K,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~J}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0)}updated(e){}firstUpdated(e){}}ee[X]=!0;const te="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ne=Symbol();class re{constructor(e,t){if(t!==ne)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(te?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const oe=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof re)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new re(n,ne)}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -150,7 +150,7 @@ const D=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===wind * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ie=e=>e.flat?e.flat(1/0):function e(t,n=[]){for(let r=0,o=t.length;r(e.add(t),e),new Set).forEach(e=>t.unshift(e))}else e&&t.push(e);return t}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?te?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){super.update(e);const t=this.render();t instanceof g&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){}}ae.finalized=!0,ae.render=(e,t,n)=>{const r=n.scopeName,o=R.has(t),i=t instanceof ShadowRoot&&q&&e instanceof g,s=i&&!z.has(r),u=s?document.createDocumentFragment():t;if(((e,t,n)=>{let r=R.get(t);void 0===r&&(a(t,t.firstChild),R.set(t,r=new _(Object.assign({templateFactory:C},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,u,Object.assign({templateFactory:B(r)},n)),s){const e=R.get(u);R.delete(u),e.value instanceof y&&$(u,e.value.template,r),a(t,t.firstChild),t.appendChild(u),R.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)}; +(window.litElementVersions||(window.litElementVersions=[])).push("2.2.1");const ie=e=>e.flat?e.flat(1/0):function e(t,n=[]){for(let r=0,o=t.length;r(e.add(t),e),new Set).forEach(e=>t.unshift(e))}else e&&t.push(e);return t}initialize(){super.initialize(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?te?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){super.update(e);const t=this.render();t instanceof g&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){}}ae.finalized=!0,ae.render=(e,t,n)=>{const r=n.scopeName,o=R.has(t),i=t instanceof ShadowRoot&&q&&e instanceof g,s=i&&!F.has(r),u=s?document.createDocumentFragment():t;if(((e,t,n)=>{let r=R.get(t);void 0===r&&(a(t,t.firstChild),R.set(t,r=new _(Object.assign({templateFactory:C},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,u,Object.assign({templateFactory:B(r)},n)),s){const e=R.get(u);R.delete(u),e.value instanceof y&&$(u,e.value.template,r),a(t,t.firstChild),t.appendChild(u),R.set(t,e)}!o&&i&&window.ShadyCSS.styleElement(t.host)}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. @@ -164,5 +164,5 @@ const D=(e,t)=>`${e}--${t}`;let q=!0;void 0===window.ShadyCSS?q=!1:void 0===wind * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ -const se=new WeakMap,ue=(e=>(...t)=>{const n=e(...t);return r.set(n,!0),n})(e=>t=>{if(!(t instanceof _))throw new Error("unsafeHTML can only be used in text bindings");const n=se.get(t);if(void 0!==n&&b(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const o=document.importNode(r.content,!0);t.setValue(o),se.set(t,{value:e,fragment:o})});var ce=n(8),le=n.n(ce);function fe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return fe=function(){return e},e}var pe=L(fe()),he={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},invert(e){var t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b>186?"#333":"#fff"},opacity(e,t){var n=this.getRgb(e);return"rgba(".concat(n.r,", ").concat(n.r,", ").concat(n.r,", ").concat(t,")")},brightness(e,t){var n=this.getRgb(e);return n.r+=t,n.g+=t,n.b+=t,n.r>255?n.r=255:n.r<0&&(n.r=0),n.g>255?n.g=255:n.g<0&&(n.g=0),n.b>255?n.b=255:n.b<0&&(n.b=0),"#".concat(n.r.toString(16).padStart(2,"0")).concat(n.g.toString(16).padStart(2,"0")).concat(n.b.toString(16).padStart(2,"0"))}}};function de(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return de=function(){return e},e}var ve=L(de(),he.color.inputReverseBg,he.color.inputReverseFg);function me(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return me=function(){return e},e}var ye=L(me());function ge(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return ge=function(){return e},e}var be=L(ge()),we=n(163),xe=n.n(we),_e=n(95),Se=n.n(_e);function Oe(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function ke(){var e;return e=function*(e){var t,n,r,o="",i={patch:!0,warnOnly:!0};try{"string"==typeof e?(o=(n=yield Se.a.convertUrl(e,i)).source.trim()).startsWith("/")&&(o=new URL(".".concat(o),window.location.href).pathname):(n=yield Se.a.convertObj(e,i),o=new URL(window.location.href).pathname),r={resolveCirculars:!1,location:o},t=(yield xe.a.resolveRefs(n.openapi,r)).resolved}catch(e){console.info("%c There was an issue while parsing the spec %o ","color:orangered",e)}var a,s,u=function(e){var t=["get","put","post","delete","patch","options","head"],n=[],r=function(r){var o=e.paths[r].parameters,i={summary:e.paths[r].summary,description:e.paths[r].description,servers:e.paths[r].servers?e.paths[r].servers:[],parameters:e.paths[r].parameters?e.paths[r].parameters:[]};t.forEach(t=>{var a,s,u;if(e.paths[r][t]){var c=e.paths[r][t];if(c.tags)s=c.tags[0],e.tags&&(u=e.tags.find(e=>e.name===s));else{var l=r.indexOf("/",1);-1===l?l=r.length-1:l-=1,s=r.substr(1,l)}(a=n.find(e=>e.name===s))||(a={show:!0,name:s,description:u?u.description:"",paths:[]},n.push(a));var f=c.summary?c.summary:"",p=c.description?c.description:"";if(!f&&p)if(p.length>100){var h=-1;(-1===(h=p.indexOf("\n"))||h>100)&&(h=p.indexOf(". ")),(-1===h||h>100)&&(h=p.indexOf(".")),f=-1===h||h>100?p:p.substr(0,h)}else f=p;var d=[];d=o?c.parameters?o.filter(e=>{if(!c.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(c.parameters):o.slice(0):c.parameters?c.parameters.slice(0):[],a.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:f,method:t,description:c.description,path:r,operationId:c.operationId,requestBody:c.requestBody,parameters:d,servers:c.servers?i.servers.concat(c.servers):i.servers,responses:c.responses,deprecated:c.deprecated,security:c.security,commonSummary:i.summary,commonDescription:i.description})}})};for(var o in e.paths)r(o);return n.sort((e,t)=>e.namet.name?1:0),n}(t);return a=t.components?t.components.securitySchemes:{},t.servers?t.servers.map(e=>{var t=e.url.trim().toLowerCase();e.url&&"http"!==t.substr(0,4)&&("//"===t.substr(0,2)?e.url=window.location.protocol+e.url:e.url=window.location.origin+e.url)}):t.servers=[{url:window.location.origin}],s=t.servers,{info:t.info,tags:u,externalDocs:t.externalDocs,securitySchemes:a,servers:s,basePath:t.basePath}},(ke=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Oe(i,r,o,a,s,"next",e)}function s(e){Oe(i,r,o,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}function Ee(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return Ee=function(){return e},e}function Ae(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Ae=function(){return e},e}customElements.define("m-logo",class extends ae{render(){return L(Ee())}});var Te=L(Ae());function je(e){if(e){var t={type:e.$ref?"{recursive}":e.enum?"enum":e.type,format:e.format?e.format:"",constrain:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOnly:e.readOnly?"🆁":"",writeOnly:e.writeOnly?"🆆":"",depricated:e.deprecated?"❌":"",default:0===e.default?"0 ":e.default?e.default:"",arrayType:"",allowedValues:"",description:e.description?e.description:"",html:""};if("{recursive}"===t.type&&(t.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1)),e.enum){var n="";e.enum.map(e=>{n+="".concat(e,", ")}),t.allowedValues=n.slice(0,-2)}if("array"===e.type&&e.items){var r=e.items;if(t.arrayType="".concat(e.type," of ").concat(r.type),t.default=0===r.default?"0 ":r.default?r.default:"",r.enum){var o="";r.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," ⋯ ").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")));var i="".concat(t.format?t.format:t.type),a="";return t.readOnly&&(a+="🆁"),t.writeOnly&&(a+="🆆"),t.deprecated&&(a+="❌"),i+="~|~".concat(a," ").concat(t.constrain,"~|~").concat("enum"===t.type?t.allowedValues:t.pattern,"~|~").concat(t.description),t.html=i,t}}function Ce(e){if(e.example)return e.example;if(0===Object.keys(e).length)return null;var t=e.format||e.type||(e.enum?"enum":null);switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":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 Pe(e,t){if(null!=e){if("object"===e.type||e.properties)for(var n in e.description&&(t[":description"]=e.description),e.properties)e.required&&e.required.includes(n)?t["".concat(n,"*")]=Pe(e.properties[n],{}):t[n]=Pe(e.properties[n],{});else if("array"===e.type||e.items)t=[Pe(e.items,{})];else if(e.allOf){var r={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){var o=e.allOf[0];return"".concat(je(o).html)}e.allOf.map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=Pe(e,{});Object.assign(r,t)}else if("array"===e.type||e.items){var n=[Pe(e,{})];Object.assign(r,n)}else{if(!e.type)return"";var o="prop".concat(Object.keys(r).length),i=je(e);r[o]="".concat(i.html)}}),t=r}else{if(!e.anyOf&&!e.oneOf){var i=je(e);return i.html?"".concat(i.html):""}var a=1,s={};e[e.anyOf?"anyOf":"oneOf"].map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=Pe(e,{});s["OPTION_".concat(a)]=t,a++}else if("array"===e.type||e.items){var n=[Pe(e,{})];Object.assign(s,n)}else{var r="prop".concat(Object.keys(s).length);s[r]="".concat(je(e).html)}}),t[e.anyOf?"ANY_OF":"ONE_OF"]=s}return t}}function Re(e,t,n,r){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 u="";u=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(e[s].value,void 0,2):e[s].value,a.push({exampleType:r,exampleValue:u})}else if(t){var c="";c=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(t,void 0,2):t,a.push({exampleType:r,exampleValue:c})}if(0===a.length)if(n)if(r.toLowerCase().includes("json")||r.toLowerCase().includes("*/*")){var l=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==t){if("object"===t.type||t.properties)for(var o in t.properties)t.properties[o].deprecated||t.properties[o].readOnly&&!r.includeReadOnly||t.properties[o].writeOnly&&!r.includeWriteOnly||(n[o]=e(t.properties[o],{},r));else if("array"===t.type||t.items)n=[e(t.items,{},r)];else if(t.allOf){var i={};if(1===t.allOf.length&&!t.allOf[0].properties&&!t.allOf[0].items)return t.allOf[0].$ref?"{ }":t.allOf[0].readOnly&&r.includeReadOnly?Ce(t.allOf[0]):void 0;t.allOf.map(t=>{if("object"===t.type||t.properties||t.allOf||t.anyOf||t.oneOf){var n=e(t,{},r);Object.assign(i,n)}else if("array"===t.type||t.items){var o=[e(t,{},r)];Object.assign(i,o)}else{if(!t.type)return"";var a="prop".concat(Object.keys(i).length);i[a]=Ce(t)}}),n=i}else if(t.oneOf)t.oneOf.length>0&&(n=e(t.oneOf[0],{},r));else{if(!t.anyOf)return Ce(t);t.anyOf.length>0&&(n=e(t.anyOf[0],{},r))}return n}}(n,{},{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});a.push({exampleType:r,exampleValue:"text"===i?JSON.stringify(l,void 0,2):l})}else a.push({exampleType:r,exampleValue:""});else a.push({exampleType:r,exampleValue:""});return a}function Le(){var e=Fe(['',""]);return Le=function(){return e},e}function Ne(){var e=Fe(['"','"']);return Ne=function(){return e},e}function Me(){var e=Fe(["",":"]);return Me=function(){return e},e}function Ie(){var e=Fe(['
    ',"","
    "]);return Ie=function(){return e},e}function Ue(){var e=Fe(['
    ','
    ','
    ',"
    "]);return Ue=function(){return e},e}function De(){var e=Fe(["",""]);return De=function(){return e},e}function qe(){var e=Fe(['
    null
    ']);return qe=function(){return e},e}function Be(){var e=Fe(["",'
    ',"
    "]);return Be=function(){return e},e}function Fe(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ze(){var e=ft(["",""]);return ze=function(){return e},e}function $e(){var e=ft(["",""]);return $e=function(){return e},e}function We(){var e=ft(['
    ',"
    "]);return We=function(){return e},e}function Ye(){var e=ft(["",""]);return Ye=function(){return e},e}function He(){var e=ft(["",""]);return He=function(){return e},e}function Ve(){var e=ft(['',""]);return Ve=function(){return e},e}function Ke(){var e=ft(["",":"]);return Ke=function(){return e},e}function Je(){var e=ft(['*',":"]);return Je=function(){return e},e}function Ge(){var e=ft(['',""]);return Ge=function(){return e},e}function Qe(){var e=ft(['',""]);return Qe=function(){return e},e}function Ze(){var e=ft(['
    '," ","
    "]);return Ze=function(){return e},e}function Xe(){var e=ft(["",""]);return Xe=function(){return e},e}function et(){var e=ft(['',""]);return et=function(){return e},e}function tt(){var e=ft([""," ",'
    ',"
    ",""]);return tt=function(){return e},e}function nt(){var e=ft(['
    ',"
    "]);return nt=function(){return e},e}function rt(){var e=ft(['
    ',"
    "]);return rt=function(){return e},e}function ot(){var e=ft(['
    ']);return ot=function(){return e},e}function it(){var e=ft(['
    ']);return it=function(){return e},e}function at(){var e=ft(["[ ]"]);return at=function(){return e},e}function st(){var e=ft(['{ } ',""]);return st=function(){return e},e}function ut(){var e=ft(["",""]);return ut=function(){return e},e}function ct(){var e=ft(['
    null
    ']);return ct=function(){return e},e}function lt(){var e=ft(["",'
    ',"
    "]);return lt=function(){return e},e}function ft(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("json-tree",class extends ae{render(){return L(Be(),pe,this.generateTree(this.data))}generateTree(e){if(null===e)return L(qe());if("object"==typeof e){var t=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(De(),Array.isArray(e)?"[ ]":"{ }"):L(Ue(),"array"===t?"array":"object",this.toggleExpand,"array"===t?"[":"{",Object.keys(e).map(n=>L(Ie(),"pure_object"===t?L(Me(),n):"",this.generateTree(e[n]))),"array"===t?"]":"}")}return L("string"==typeof e?Ne():Le(),typeof e,e)}static get properties(){return{data:{type:Object}}}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.nextElementSibling.style.display="none",e.target.nextElementSibling.nextElementSibling.style.display="none"):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.nextElementSibling.style.display="block",e.target.nextElementSibling.nextElementSibling.style.display="block")}});function pt(){var e=dt([".tags{\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--input-border-color);\n cursor:text;\n overflow:hidden;\n }\n .tag, .editor{\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg2);\n color:var(--fg2);\n border-radius:var(--border-radius);\n word-break: break-all;\n cursor: none;\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor{\n flex:1;\n border:1px solid transparent;\n background:var(--input-bg);\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n font-size:inherit;\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }"]);return pt=function(){return e},e}function ht(){var e=dt(['
    ']);return ht=function(){return e},e}function dt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ae{render(){return L(lt(),pe,this.generateTree(this.data))}generateTree(e){if(null===e)return L(ct());if("object"==typeof e){var t,n,r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(ut(),Array.isArray(e)?"[ ]":"{ }"):1===Object.keys(e).length&&":description"===Object.keys(e)[0]?L(st(),e[":description"]):"array"===r&&"~|~"===e[0]?L(at()):(Object.keys(e)[0].startsWith("OPTION")||"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?(t=L(it()),n=L(ot())):(n="",t=""):(t=L(rt(),"array"===r?"array":"object",this.toggleExpand,"array"===r?"[":"{"),n=L(nt(),"array"===r?"]":"}")),L(tt(),t,e[":description"]?L(et(),e[":description"]):"",Object.keys(e)[0].startsWith("OPTION")?"":"inside-bracket",Object.keys(e).map(t=>L(Xe(),":description"!==t?L(Ze(),"pure_object"===r?"ANY_OF"===t||"ONE_OF"===t?L(Qe(),t.replace("_"," ")):t.startsWith("OPTION")?L(Ge(),t.replace("OPTION_"," ")):t.endsWith("*")?L(Je(),t.substring(0,t.length-1)):L(Ke(),t):"",this.generateTree(e[t])):"")),n))}return L(Ve(),e?L(He(),e.split("~|~").map((e,t)=>L(Ye(),e?L(We(),0===t?"item-type ".concat(e.replace("{","").substring(0,4)):1===t||2===t?"item-constraints":"m-markdown-small item-descr",3===t?L($e(),ue(le()(e))):L(ze(),e)):""))):"")}static get properties(){return{data:{type:Object}}}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>{e.style.display="none"})):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>{e.style.display=e.classList.contains("obj-descr")?"inline":"block"}))}});function vt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function mt(){var e=Kt(['"]);return mt=function(){return e},e}function yt(){var e=Kt(['
    ']);return yt=function(){return e},e}function gt(){var e=Kt(['
    Response Status: ','
    ','
    "]);return gt=function(){return e},e}function bt(){var e=Kt(['
    No Authentication Token provided
    ']);return bt=function(){return e},e}function wt(){var e=Kt(['
    Authentication:  
    send
    \'',"'
    in
    '","'
    with value
    '","'
    "]);return wt=function(){return e},e}function xt(){var e=Kt(['
    Not Set
    ']);return xt=function(){return e},e}function _t(){var e=Kt(["",""]);return _t=function(){return e},e}function St(){var e=Kt(['
    API_Server:
    ','
    ','
    ',""]);return St=function(){return e},e}function Ot(){var e=Kt(['']);return Ot=function(){return e},e}function kt(){var e=Kt(['']);return kt=function(){return e},e}function Et(){var e=Kt(['']);return Et=function(){return e},e}function At(){var e=Kt([""," ",""]);return At=function(){return e},e}function Tt(){var e=Kt(["",""]);return Tt=function(){return e},e}function jt(){var e=Kt(['
    ','
    ','
    "]);return jt=function(){return e},e}function Ct(){var e=Kt(["",""]);return Ct=function(){return e},e}function Pt(){var e=Kt(['
    '," DATA ","
    "," ",""]);return Pt=function(){return e},e}function Rt(){var e=Kt(['
    ',"
    "]);return Rt=function(){return e},e}function Lt(){var e=Kt(['',""]);return Lt=function(){return e},e}function Nt(){var e=Kt(['']);return Nt=function(){return e},e}function Mt(){var e=Kt([''],['']);return Mt=function(){return e},e}function It(){var e=Kt(['
    ','
    ','
    ','
    ',""]);return It=function(){return e},e}function Ut(){var e=Kt(['
    ',"
    "]);return Ut=function(){return e},e}function Dt(){var e=Kt(['
    ','
    ',"
    "]);return Dt=function(){return e},e}function qt(){var e=Kt(['',""]);return qt=function(){return e},e}function Bt(){var e=Kt(["",""]);return Bt=function(){return e},e}function Ft(){var e=Kt(["","
    "]);return Ft=function(){return e},e}function zt(){var e=Kt(['']);return zt=function(){return e},e}function $t(){var e=Kt([''],['']);return $t=function(){return e},e}function Wt(){var e=Kt(['*']);return Wt=function(){return e},e}function Yt(){var e=Kt(['
    ',"",'
    ','
    ','
    '," ","
    ",""]);return Yt=function(){return e},e}function Ht(){var e=Kt(["",""]);return Ht=function(){return e},e}function Vt(){var e=Kt([""," "," "," "," ",'
    REQUEST
    '," "," "," "," "," ","
    "]);return Vt=function(){return e},e}function Kt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("tag-input",class extends ae{render(){return L(ht(),this.afterPaste,this.afterKeyDown,this.placeholder)}static get styles(){return[oe(pt())]}static get properties(){return{placeholder:{type:String}}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=document.createElement("span");""!==e.target.value.trim()&&(t.innerText=e.target.value,e.target.value="",t.classList.add("tag"),t.setAttribute("contenteditable","false"),this.shadowRoot.querySelector(".tags").insertBefore(t,e.target))}else 8===e.keyCode&&0===e.target.selectionStart&&e.target.previousSibling&&e.target.previousSibling.remove()}getValues(){var e=[],t=this.shadowRoot.querySelectorAll(".tag");for(var n of t)e.push(n.innerText);return e}});function Jt(){var e=sn(['
    ','
    ']);return Jt=function(){return e},e}function Gt(){var e=sn(['
    Content-Type: '," (Binary Data)
    "]);return Gt=function(){return e},e}function Qt(){var e=sn(['
    EXAMPLE: ',""]);return Qt=function(){return e},e}function Zt(){var e=sn(['',''," ",""]);return Zt=function(){return e},e}function Xt(){var e=sn(['
    Response Headers:
    ',"
    "]);return Xt=function(){return e},e}function en(){var e=sn(['
    ',': '," ","
    ",""]);return en=function(){return e},e}function tn(){var e=sn(["",""]);return tn=function(){return e},e}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t.title{\n font-family:var(--font-regular);\n font-size:var(--title-font-size);\n font-weight:bold;\n margin-bottom:8px;\n }\n .resp-head{\n vertical-align: middle;\n padding:16px 0 8px;\n }\n .resp-head.divider{\n border-top: 1px solid var(--border-color);\n margin-top:10px;\n }\n .resp-status{ \n font-weight:bold;\n font-size:calc(var(--small-font-size) + 1px);\n }\n .resp-descr{\n font-size:calc(var(--small-font-size) + 1px);\n color:var(--light-fg);\n }\n .top-gap{margin-top:16px;}\n .tab-buttons{\n height:30px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n }\n .tab-btn{\n color:var(--fg);\n border:none;\n background-color:transparent;\n cursor:pointer;\n padding:1px;\n outline:none;\n font-size:var(--small-font-size);\n margin-right:16px;\n padding:1px;\n }\n .tab-btn.active{\n border-bottom: 3px solid var(--primary-color);\n font-weight:bold;\n color:var(--primary-color);\n }\n\n .tab-btn:hover{\n color:var(--primary-color);\n }\n .tab-content{\n margin:-1px 0 0 0;\n }\n .descr-text{\n color:var(--light-fg);\n font-family:var(--font-regular);\n }\n .tree{\n padding:16px 2px;\n }\n @media only screen and (min-width: 768px){\n .tree {\n padding:16px;\n }\n }
    RESPONSE
    ',"
    "]);return an=function(){return e},e}function sn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ae{render(){return L(Vt(),be,ve,pe,ye,Te,this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":L(Ht(),this.apiCallTemplate()))}constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},parser:{type:Object},accept:{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},allowTry:{type:String,attribute:"allow-try"}}}inputParametersTemplate(e){var t="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===n.length)return"";"path"===e?t="PATH PARAMETERS":"query"===e?t="QUERY-STRING PARAMETERS":"header"===e?t="REQUEST HEADERS":"cookie"===e&&(t="COOKIES");var r=[];for(var o of n)if(o.schema){var i=je(o.schema),a="";a=o.example?"0"===o.example||0===o.example?"0":o.example:i.default,r.push(L(Yt(),o.required?L(Wt()):"",o.name,"array"===i.type?"".concat(i.arrayType):"".concat(i.type).concat(i.format?" (".concat(i.format,")"):""),"array"===i.type?L($t(),e,o.name):L(zt(),o.name,e,a),i.constrain?L(Ft(),i.constrain):"",i.allowedValues?L(Bt(),i.allowedValues):"",o.description?L(qt(),ue(le()(o.description||""))):""))}return L(Dt(),t,r)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";var e=0,t={},n=this.request_body.description?L(Ut(),ue(le()(this.request_body.description||""))):"",r="",o="",i=[],a=!1,s={json:"",xml:""},u=this.request_body.content;for(var c in u){c.includes("json")?t[c]="json":c.includes("xml")?t[c]="xml":c.includes("text/plain")?t[c]="text":c.includes("form-urlencoded")?t[c]="form-urlencoded":c.includes("multipart/form-data")?t[c]="multipart-form-data":c.includes("application/octet-stream")&&(t[c]="octet-stream");var l=u[c],f="";if(c.includes("json")||c.includes("xml")||c.includes("text/plain")){try{l.schema=JSON.parse(JSON.stringify(l.schema))}catch(e){return void console.error("Unable to resolve circular refs in schema",l.schema)}c.includes("json")?s.json=Pe(l.schema,{}):c.includes("xml")&&(s.xml=Pe(l.schema,{})),f=Re(l.schema?l.schema.examples:"",l.schema?l.schema.example:"",l.schema,c,!1,"text"),r+='\n ")}else if(c.includes("form")||c.includes("multipart-form")){for(var p in a=!0,l.schema.properties){var h=l.schema.properties[p],d=h.type,v="array"===h.type?h.items.type:"";i.push(L(It(),p,"array"===d?"".concat(d," of ").concat(v):"".concat(d," ").concat(h.format?" (".concat(h.format,")"):""),"array"===d?L(Mt(),d,p):L(Nt(),"binary"===h.format?"file":"text",p,d),h.description?L(Lt(),ue(le()(h.description||""))):""))}o=L(Rt(),t[c],i)}e++}return L(Pt(),a?"form_data":"body_data",a?"FORM":"BODY",this.request_body.required?"(required)":"",n,a?L(Ct(),o):L(jt(),this.activateTab,1===e?"".concat(Object.keys(t)[0]):L(Tt(),Object.keys(t).map(e=>L(At(),"json"===t[e]?L(Et(),t[e],this.onMimeTypeChange):L(kt(),t[e],this.onMimeTypeChange),t[e]))),ue(r),Object.keys(t).map(e=>L(Ot(),t[e],"json"===t[e]?"block":"none",s[t[e]]))))}apiCallTemplate(){return L(St(),this.selectedServer?L(_t(),this.selectedServer):L(xt()),this.apiKeyValue&&this.apiKeyName?L(wt(),this.apiKeyName,this.apiKeyLocation,"".concat(this.apiKeyValue.substring(0,3),"***")):L(bt()),this.onTryClick,""===this.responseMessage?"":L(gt(),this.responseStatus,this.responseMessage,this.clearResponseData,this.activateTab,this.responseIsBlob?L(yt(),this.downloadResponseBlob):L(mt(),this.responseText),this.responseHeaders,this.curlSyntax))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){var t=e.currentTarget.parentNode.querySelector(".tab-btn.active"),n=e.target;t.classList.remove("active"),e.target.classList.add("active");var r=this.shadowRoot.getElementById(n.attributes.content_id.value),o=e.currentTarget.parentNode.querySelectorAll(".tab-content");r&&(r.style.display="flex",o.forEach(e=>{e.attributes.id.value!==n.attributes.content_id.value&&(e.style.display="none")}))}}onMimeTypeChange(e){var t=e.target.closest(".tab-panel").querySelectorAll("textarea.request-body-param"),n=e.target.closest(".tab-panel").querySelectorAll("schema-tree");[...t].map(t=>{t.style.display=t.classList.contains(e.target.value)?"block":"none"}),[...n].map(t=>{t.style.display=t.classList.contains(e.target.value)?"block":"none"})}onTryClick(e){var t,n=this;return(t=function*(){var t,r,o,i=n,a=e.target,s="",u="",c="",l=e.target.closest(".request-panel"),f=[...l.querySelectorAll(".request-param[data-ptype='path']")],p=[...l.querySelectorAll(".request-param[data-ptype='query']")],h=[...l.querySelectorAll(".request-param[data-ptype='header']")],d=[...l.querySelectorAll(".request-form-param")],v=[...l.querySelectorAll(".request-body-param")];t=i.path;var m={mode:"cors",method:n.method.toUpperCase(),headers:{}};if(f.map(e=>{t=t.replace("{".concat(e.dataset.pname,"}"),e.value)}),p.length>0){var y=new URLSearchParams("");p.map(e=>{if("false"===e.dataset.array)""!==e.value&&y.append(e.dataset.pname,e.value);else{var t=e.getValues();for(var n of t)y.append(e.dataset.pname,n)}}),t="".concat(t,"?").concat(y.toString())}if(n.apiKeyValue&&n.apiKeyName&&"query"===n.apiKeyLocation&&(t="".concat(t).concat(t.includes("?")?"&":"?").concat(n.apiKeyName,"=").concat(encodeURIComponent(n.apiKeyValue))),r=!1===(t="".concat(n.selectedServer.replace(/\/$/,"")).concat(t)).startsWith("http")?new URL(t,window.location.href).href:t,o="curl -X ".concat(n.method.toUpperCase(),' "').concat(r,'" '),n.accept&&(m.headers.Accept=n.accept,s+=' -H "Accept: '.concat(n.accept,'"')),h.map(e=>{e.value&&(m.headers[e.dataset.pname]=e.value,s+=' -H "'.concat(m.headers[e.dataset.pname],": ").concat(e.value,'"'))}),n.apiKeyValue&&n.apiKeyName&&"header"===n.apiKeyLocation&&(m.headers[n.apiKeyName]=n.apiKeyValue,s+=' -H "'.concat(n.apiKeyName,": ").concat(n.apiKeyValue,'"')),d.length>=1){var g=l.querySelector("form"),b=new URLSearchParams,w=new FormData;d.map(e=>{if("false"===e.dataset.array)"file"!==e.type?""!==e.value&&(b.append(e.dataset.pname,e.value),w.append(e.dataset.pname,e.value),c+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'"')):e.files[0]&&(b.append(e.dataset.pname,e.files[0]),w.append(e.dataset.pname,e.files[0]),c="".concat(c,' -F "').concat(e.dataset.pname,"=@").concat(e.value,'"'));else{var t=e.getValues();for(var n of t)b.append(e.dataset.pname,n),w.append(e.dataset.pname,n),c+=' -F "'.concat(e.dataset.pname,"=").concat(n,'"')}}),g.classList.contains("form-urlencoded")?(m.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",s+=' -H "Content-Type: application/x-www-form-urlencoded"',m.body=b):(s+=' -H "Content-Type: multipart/form-data"',m.body=w)}if(v.length>=1)if(1===v.length)m.headers["Content-Type"]=v[0].dataset.ptype,s+=' -H "Content-Type: '.concat(v[0].dataset.ptype,'"'),m.body=v[0].value,u=" -d ".concat(JSON.stringify(v[0].value.replace(/(\r\n|\n|\r)/gm,"")));else{var x=e.target.closest(".request-panel").querySelector("input[name='request_body_type']:checked"),_=null===x?"json":x.value,S="";"json"===_?(S=l.querySelector(".request-body-param.json").value,m.headers["Content-Type"]="application/json; charset=utf-8",s+=' -H "Content-Type: application/json"'):"xml"===_?(S=l.querySelector(".request-body-param.xml").value,m.headers["Content-Type"]="application/xml; charset=utf-8",s+=' -H "Content-Type: application/xml"'):"text"===_&&(S=l.querySelector(".request-body-param.text").value,m.headers["Content-Type"]="text/plain; charset=utf-8",s+=' -H "Content-Type: text/plain"'),m.body=S,u=" -d ".concat(JSON.stringify(S.replace(/(\r\n|\n|\r)/gm,"")))}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(u," ").concat(c);try{a.disabled=!0;var O=yield fetch(t,m);a.disabled=!1,i.responseStatus=O.ok?"success":"error",i.responseMessage="".concat(O.statusText,":").concat(O.status),i.responseUrl=O.url,O.headers.forEach((e,t)=>{i.responseHeaders="".concat(i.responseHeaders).concat(t.trim(),": ").concat(e,"\n")});var k=O.headers.get("content-type");if(k)if(k.includes("json"))O.json().then(e=>{i.responseText=JSON.stringify(e,null,2)});else if(k.includes("octet-stream")){i.responseIsBlob=!0;var E=O.headers.get("content-disposition");i.respContentDisposition=E?E.split("filename=")[1]:"filename",O.blob().then(e=>{i.responseBlobUrl=URL.createObjectURL(e)})}else O.text().then(e=>{i.responseText=e});else O.text().then(e=>{i.responseText=e})}catch(e){a.disabled=!1,i.responseMessage="".concat(e.message," (CORS or Network Issue)")}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){vt(i,r,o,a,s,"next",e)}function s(e){vt(i,r,o,a,s,"throw",e)}a(void 0)})})()}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()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}});function un(){var e=yn([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .head .descr{\n font-size: var(--small-font-size);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n }\n .m-endpoint > .head.put:hover,\n .m-endpoint > .head.put.expanded{\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.post:hover,\n .m-endpoint > .head.post.expanded{\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.get:hover,\n .m-endpoint > .head.get.expanded{\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n .m-endpoint > .head.delete:hover,\n .m-endpoint > .head.delete.expanded{\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch:hover,\n .m-endpoint > .head.patch.expanded{\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n }\n .method.delete{ border: 2px solid var(--delete-color);}\n .method.patch{ border: 2px solid var(--patch-color); }\n .method.put{ border: 2px solid var(--put-color); }\n .method.post{ border: 2px solid var(--post-color); }\n .method.get{ border: 2px solid var(--get-color); }\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .descr{\n display: flex;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return un=function(){return e},e}function cn(){var e=yn(['
    ',"
    "]);return cn=function(){return e},e}function ln(){var e=yn(['
    ',"
    ","
    "]);return ln=function(){return e},e}function fn(){var e=yn(['
    ','
    ']);return fn=function(){return e},e}function pn(){var e=yn(['deprecated']);return pn=function(){return e},e}function hn(){var e=yn([""]);return hn=function(){return e},e}function dn(){var e=yn([""]);return dn=function(){return e},e}function vn(){var e=yn(["",""]);return vn=function(){return e},e}function mn(){var e=yn([""," ",'
    \x3c!-- Endpoint Head --\x3e
    ','
    ',"
    ",'
    ',"
    \x3c!-- Endpoint Body --\x3e ","
    "]);return mn=function(){return e},e}function yn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-response",class extends ae{render(){return L(an(),pe,ye,be,ve,this.responseTemplate())}static get properties(){return{responses:{type:Object},parser:{type:Object}}}responseTemplate(){if(!this.responses)return"";var e={},t={},n={};for(var r in this.responses){var o={};for(var i in this.responses[r].content){var a=this.responses[r].content[i],s=Pe(a.schema,{}),u=Re(a.schema?a.schema.examples:"",a.schema?a.schema.example:"",a.schema,i,!0,"json");o[i]={description:this.responses[r].description,examples:u,schemaTree:s},e[r]=i}var c=[];for(var l in this.responses[r].headers)c.push(rn({name:l},this.responses[r].headers[l]));t[r]=c,n[r]=o}return L(tn(),Object.keys(this.responses).map((e,r)=>L(en(),0===r?"top-gap":"divider",e,this.responses[e].description,t[e]&&t[e].length>0?L(Xt(),t[e].map(e=>L(Zt(),e.name,ue(le()(e.description||"")),e.schema&&e.schema.example?L(Qt(),e.schema.example):""))):"",Object.keys(n[e]).map(t=>t.includes("octet-stream")?L(Gt(),t):L(Jt(),e,t,this.activateTab,e,t,e,t,t,e,t,n[e][t].examples[0].exampleValue,e,t,n[e][t].schemaTree)))))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){e.currentTarget.parentNode.querySelector(".tab-btn.active").classList.remove("active"),e.target.classList.add("active");var t=e.target.attributes.content_id.value,n=e.currentTarget.parentNode.querySelectorAll(".tab-content");t&&n.forEach(e=>{e.style.display=e.attributes.id.value===t?"flex":"none"})}}});function gn(){var e=wn(['']);return gn=function(){return e},e}function bn(){var e=wn(["",""]);return bn=function(){return e},e}function wn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-point",class extends ae{render(){return L(mn(),pe,window.innerWidth>=768?L(vn(),"row"===this.layout?L(dn()):L(hn())):"",this.path.method,this.path.expanded?"expanded":"collapsed",this.toggleExpand,this.path.method,this.path.expanded?"expanded":"collapsed",this.path.method,this.path.method,this.path.deprecated?"deprecated":"",this.path.path,this.path.deprecated?L(pn()):"",ue(le()(this.path.summary||"")),this.path.expanded?L(fn(),this.path.method,this.path.summary||this.path.description?L(ln(),ue(le()(this.path.summary||"")),this.path.summary!==this.path.description?L(cn(),ue(le()(this.path.description||""))):""):"",this.path.method,this.path.path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,this.path.parameters,this.path.requestBody,this.allowTry,this.accept,this.path.responses):"")}static get styles(){return[oe(un())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}toggleExpand(){if(this.path.expanded)this.path.expanded=!1;else{this.path.expanded=!0;var e="";for(var t in this.path.responses)for(var n in this.path.responses[t].content)e="".concat(e+n,", ");e=e.replace(/,\s*$/,""),this.accept=e}this.requestUpdate()}});function xn(){var e=Rn(['
    Refresh URL: ',"
    "]);return xn=function(){return e},e}function _n(){var e=Rn(['
    Token URL: ',"
    "]);return _n=function(){return e},e}function Sn(){var e=Rn(['
    Auth URL: ',"
    "]);return Sn=function(){return e},e}function On(){var e=Rn([""," "," ",'
    ']);return On=function(){return e},e}function kn(){var e=Rn(["
    ","
    "]);return kn=function(){return e},e}function En(){var e=Rn(["Send 'Authorization' in header which will contains the word 'Bearer' followed by a space and a Token String.
    "]);return En=function(){return e},e}function An(){var e=Rn(["Send 'Authorization' in header which will contains the word 'Basic' followed by a space and a base64-encoded string username:password.
    "]);return An=function(){return e},e}function Tn(){var e=Rn(["Send '","' in '","' with the given value
    "]);return Tn=function(){return e},e}function jn(){var e=Rn(['
    ',"
    "]);return jn=function(){return e},e}function Cn(){var e=Rn(['
    ',": ","
    ",""," "," "," ",""]);return Cn=function(){return e},e}function Pn(){var e=Rn([""," "," ",'
    AUTHENTICATION
    ',"
    TypeAuthentication Procedure
    "]);return Pn=function(){return e},e}function Rn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-points",class extends ae{render(){return L(bn(),this.paths.filter(e=>!this.matchPaths||"".concat(e.method," ").concat(e.path).includes(this.matchPaths)).map(e=>L(gn(),this.selectedServer,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation,this.layout,e,this.allowTry?this.allowTry:"true")))}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},paths:{type:Object},matchPaths:{type:String,attribute:"match-paths"},allowTry:{type:String,attribute:"allow-try"}}}});function Ln(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Nn(){var e=ir(['
    ','
    ','
    ']);return Nn=function(){return e},e}function Mn(){var e=ir(["",""]);return Mn=function(){return e},e}function In(){var e=ir(['
    ']);return In=function(){return e},e}function Un(){var e=ir([' ',"
    "]);return Un=function(){return e},e}function Dn(){var e=ir(["- ",""]);return Dn=function(){return e},e}function qn(){var e=ir([' '," ","
    "]);return qn=function(){return e},e}function Bn(){var e=ir(["",""]);return Bn=function(){return e},e}function Fn(){var e=ir(['
    "]);return Fn=function(){return e},e}function zn(){var e=ir(['
    URL: ',"
    "]);return zn=function(){return e},e}function $n(){var e=ir(['
    Name: ',"
    "]);return $n=function(){return e},e}function Wn(){var e=ir(['
    Email: ',"
    "]);return Wn=function(){return e},e}function Yn(){var e=ir(['
    '," "," ","
    "]);return Yn=function(){return e},e}function Hn(){var e=ir(['
    ']);return Hn=function(){return e},e}function Vn(){var e=ir([' ']);return Vn=function(){return e},e}function Kn(){var e=ir(['
    ']);return Kn=function(){return e},e}function Jn(){var e=ir(['
    ','
    '," ",'',"
    "]);return Jn=function(){return e},e}function Gn(){var e=ir(["",""]);return Gn=function(){return e},e}function Qn(){var e=ir(["",""]);return Qn=function(){return e},e}function Zn(){var e=ir(['',""]);return Zn=function(){return e},e}function Xn(){var e=ir(['
    '," ","
    "," "," ","
    "]);return Xn=function(){return e},e}function er(){var e=ir(['
    Unable to load the Spec
    ']);return er=function(){return e},e}function tr(){var e=ir(['
    Loading ...
    ']);return tr=function(){return e},e}function nr(){var e=ir([""]);return nr=function(){return e},e}function rr(){var e=ir([""]);return rr=function(){return e},e}function or(){var e=ir([""," "," "," "," ","",'
    '," "," "," "," "," ",'
    ']);return or=function(){return e},e}function ir(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("security-schemes",class extends ae{render(){return L(Pn(),pe,be,ve,Object.keys(this.schemes).map(e=>L(Cn(),this.schemes[e].type,this.schemes[e].scheme,this.schemes[e].description?L(jn(),ue(le()(this.schemes[e].description||""))):"","apiKey"===this.schemes[e].type?L(Tn(),this.schemes[e].name,this.schemes[e].in,e,this.schemes[e].type,this.schemes[e].in,this.schemes[e].name,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"basic"===this.schemes[e].scheme?L(An(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"bearer"===this.schemes[e].scheme?L(En(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","oauth2"===this.schemes[e].type?L(kn(),Object.keys(this.schemes[e].flows).map(t=>L(On(),this.schemes[e].flows[t].authorizationUrl?L(Sn(),this.schemes[e].flows[t].authorizationUrl):"",this.schemes[e].flows[t].tokenUrl?L(_n(),this.schemes[e].flows[t].tokenUrl):"",this.schemes[e].flows[t].refreshUrl?L(xn(),this.schemes[e].flows[t].refreshUrl):"",e,e))):"")))}static get properties(){return{schemes:{type:Object},selectedApiKeyName:{type:String,attribute:"selected-api-key-name"},selectedApiKeyValue:{type:String,attribute:"selected-api-key-value"}}}dispatchChange(e){var t=e.target.closest(".".concat(e.target.dataset.class));if(t){var n=t.dataset.type,r=t.dataset.in,o=t.dataset.name,i=t.dataset.inputname,a="";if("CLEAR"===e.target.dataset.action){var s=t.querySelector("input[name=".concat(i,"-token]"));s&&(s.value="")}else if("apiKey"===n){var u=t.querySelector("input[name=".concat(i,"-token]"));u&&(a=u.value)}else if("http"===n){var c=t.dataset.scheme;if("basic"===c){var l=t.querySelector("input[name=".concat(i,"-username]")),f=t.querySelector("input[name=".concat(i,"-password]"));l&&f&&(a="Basic ".concat(btoa("".concat(l.value,":").concat(f.value))))}else if("bearer"===c){var p=t.querySelector("input[name=".concat(i,"-bearer-token]"));p&&(a="Bearer ".concat(p.value))}}var h=new CustomEvent("change",{detail:{keyType:n,keyName:o,keyValue:a,keyLocation:r}});this.dispatchEvent(h)}}});class ar extends ae{render(){return L(or(),pe,ve,ye,be,"dark"===this.theme?L(rr()):L(nr()),this.primaryColor?"".concat(this.primaryColor):"#FF791A",he.color.brightness(this.primaryColor?this.primaryColor:"#FF791A",-30),this.primaryColor?"".concat(he.color.invert(this.primaryColor)):"#ffffff",this.headerColor?"".concat(this.headerColor):"#444",this.headerColor?"".concat(he.color.invert(this.headerColor)):"#ccc",this.layout?"".concat(this.layout):"row",this.monoFont?"".concat(this.monoFont):"Monaco, 'Andale Mono', 'Roboto Mono', Consolas",this.regularFont?"".concat(this.regularFont):"rapidoc, Helvetica, Arial",this.headerColor?he.color.brightness(this.headerColor,-20):he.color.inputReverseBg,"false"===this.showHeader?"":this.headerTemplate(),!0===this.loading?L(tr()):"",!0===this.loadFailed?L(er()):"","false"!==this.showInfo&&this.resolvedSpec&&this.resolvedSpec.info?L(Xn(),this.resolvedSpec.info.title,this.resolvedSpec.info.version?L(Zn(),this.resolvedSpec.info.version):"",this.resolvedSpec.info.description?L(Qn(),ue("
    ".concat(le()(this.resolvedSpec.info.description),"
    "))):"",this.resolvedSpec.info.termsOfService?L(Gn(),ue("
    Terms:
    ".concat(le()(this.resolvedSpec.info.termsOfService),""))):"",this.resolvedSpec.info.contact?this.contactInfoTemplate():""):"","false"!==this.allowTry&&"false"!==this.allowServerSelection&&this.resolvedSpec?this.apiServerListTemplate():"","false"!==this.allowAuthentication&&this.resolvedSpec&&this.resolvedSpec.securitySchemes?this.securitySchemeTemplate():"",this.resolvedSpec&&this.resolvedSpec.tags?this.endpointsGroupedByTagTemplate():"")}headerTemplate(){return L(Jn(),this.headingText,"false"===this.allowSpecUrlLoad?"":L(Kn(),this.specUrl?this.specUrl:"",this.onSepcUrlChange),"false"===this.allowSpecFileLoad?"":L(Vn(),this.specFile?this.specFile:"",this.onSepcFileChange,this.onFileLoadClick),"false"===this.allowSearch?"":L(Hn(),this.onSearchChange))}contactInfoTemplate(){return L(Yn(),this.resolvedSpec.info.contact.email?L(Wn(),this.resolvedSpec.info.contact.email):"",this.resolvedSpec.info.contact.name?L($n(),this.resolvedSpec.info.contact.name):"",this.resolvedSpec.info.contact.url?L(zn(),this.resolvedSpec.info.contact.url):"")}apiServerListTemplate(){return L(Fn(),this.resolvedSpec.servers&&0!==this.resolvedSpec.servers.length?L(Bn(),this.resolvedSpec.servers.map(e=>L(qn(),e.url,this.onApiServerChange,e.url,e.description?L(Dn(),e.description):""))):"",this.serverUrl?L(Un(),this.serverUrl,this.onApiServerChange,this.serverUrl):"")}securitySchemeTemplate(){return L(In(),this.resolvedSpec.securitySchemes,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.onSecurityChange)}endpointsGroupedByTagTemplate(){return L(Mn(),this.resolvedSpec.tags.map(e=>L(Nn(),e.name,ue("
    ".concat(le()(e.description?e.description:""),"
    ")),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e.paths,this.allowTry?this.allowTry:"true",this.matchPaths)))}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},specFile:{type:String,attribute:!1},serverUrl:{type:String,attribute:"server-url"},matchPaths:{type:String,attribute:"match-paths"},headingText:{type:String,attribute:"heading-text"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},showHeader:{type:String,attribute:"show-header"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSearch:{type:String,attribute:"allow-search"},layout:{type:String},theme:{type:String},logoUrl:{type:String,attribute:"logo-url"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},groupByTags:{type:String,attribute:"group-by-tags"}}}attributeChangedCallback(e,t,n){"spec-url"===e&&t!==n&&this.loadSpec(n),super.attributeChangedCallback(e,t,n)}onSepcUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSepcFileChange(e){var t=this;this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);var n=e.target.files[0],r=new FileReader;r.onload=()=>{try{var e=JSON.parse(r.result);t.loadSpec(e),t.shadowRoot.getElementById("spec-url").value=""}catch(e){console.log("Unable to read or parse json")}},r.readAsText(n)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onApiServerChange(){var e=this.shadowRoot.querySelector("input[name='api_server']:checked");null!==e&&(this.selectedServer=e.value,this.requestUpdate())}onSecurityChange(e){this.apiKeyName=e.detail.keyName,this.apiKeyValue=e.detail.keyValue,this.apiKeyLocation=e.detail.keyLocation}onSearchChange(e){this.matchPaths=e.target.value}loadSpec(e){var t,n=this;return(t=function*(){if(e){n.apiKeyName="",n.apiKeyValue="",n.apiKeyLocation="",n.selectedServer="",n.matchPaths="";try{n.loading=!0,n.loadFailed=!1;var t=yield function(e){return ke.apply(this,arguments)}(e);n.loading=!1,null==t&&console.error("Unable to resolve the API spec. "),n.afterSpecParsedAndValidated(t)}catch(e){n.loading=!1,n.loadFailed=!0,n.resolvedSpec=null,n.requestUpdate(),console.error("Unable to resolve the API spec.. ".concat(e.message))}}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Ln(i,r,o,a,s,"next",e)}function s(e){Ln(i,r,o,a,s,"throw",e)}a(void 0)})})()}afterSpecParsedAndValidated(e){this.resolvedSpec=e,"false"===this.allowServerSelection&&(this.serverUrl?this.selectedServer=this.serverUrl:this.resolvedSpec&&this.resolvedSpec.servers&&this.resolvedSpec.servers.length>0&&(this.selectedServer=this.resolvedSpec.servers[0].url)),this.requestUpdate(),window.setTimeout(()=>{this.onApiServerChange()},0)}}customElements.define("rapi-doc",ar);t.default={RapiDoc:ar}}]); +const se=new WeakMap,ue=(e=>(...t)=>{const n=e(...t);return r.set(n,!0),n})(e=>t=>{if(!(t instanceof _))throw new Error("unsafeHTML can only be used in text bindings");const n=se.get(t);if(void 0!==n&&b(e)&&e===n.value&&t.value===n.fragment)return;const r=document.createElement("template");r.innerHTML=e;const o=document.importNode(r.content,!0);t.setValue(o),se.set(t,{value:e,fragment:o})});var ce=n(6),le=n.n(ce);function fe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return fe=function(){return e},e}var pe=L(fe()),he={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},invert(e){var t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b>186?"#333":"#fff"},opacity(e,t){var n=this.getRgb(e);return"rgba(".concat(n.r,", ").concat(n.r,", ").concat(n.r,", ").concat(t,")")},brightness(e,t){var n=this.getRgb(e);return n.r+=t,n.g+=t,n.b+=t,n.r>255?n.r=255:n.r<0&&(n.r=0),n.g>255?n.g=255:n.g<0&&(n.g=0),n.b>255?n.b=255:n.b<0&&(n.b=0),"#".concat(n.r.toString(16).padStart(2,"0")).concat(n.g.toString(16).padStart(2,"0")).concat(n.b.toString(16).padStart(2,"0"))}}};function de(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return de=function(){return e},e}var ve=L(de(),he.color.inputReverseBg,he.color.inputReverseFg);function me(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return me=function(){return e},e}var ye=L(me());function ge(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return ge=function(){return e},e}var be=L(ge()),we=n(163),xe=n.n(we),_e=n(95),Se=n.n(_e);function Oe(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function ke(){var e;return e=function*(e){var t,n,r,o="",i={patch:!0,warnOnly:!0};try{"string"==typeof e?(o=(n=yield Se.a.convertUrl(e,i)).source.trim()).startsWith("/")&&(o=new URL(".".concat(o),window.location.href).pathname):(n=yield Se.a.convertObj(e,i),o=new URL(window.location.href).pathname),r={resolveCirculars:!1,location:o},t=(yield xe.a.resolveRefs(n.openapi,r)).resolved}catch(e){console.info("%c There was an issue while parsing the spec %o ","color:orangered",e)}var a,s,u=function(e){var t=["get","put","post","delete","patch","head"],n=[],r=function(r){var o=e.paths[r].parameters,i={summary:e.paths[r].summary,description:e.paths[r].description,servers:e.paths[r].servers?e.paths[r].servers:[],parameters:e.paths[r].parameters?e.paths[r].parameters:[]};t.forEach(t=>{var a,s,u;if(e.paths[r][t]){var c=e.paths[r][t];if(c.tags)s=c.tags[0],e.tags&&(u=e.tags.find(e=>e.name===s));else{var l=r.indexOf("/",1);-1===l?l=r.length-1:l-=1,s=r.substr(1,l)}(a=n.find(e=>e.name===s))||(a={show:!0,name:s,description:u?u.description:"",paths:[]},n.push(a));var f=c.summary?c.summary:"",p=c.description?c.description:"";if(!f&&p)if(p.length>100){var h=-1;(-1===(h=p.indexOf("\n"))||h>100)&&(h=p.indexOf(". ")),(-1===h||h>100)&&(h=p.indexOf(".")),f=-1===h||h>100?p:p.substr(0,h)}else f=p;var d=[];d=o?c.parameters?o.filter(e=>{if(!c.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(c.parameters):o.slice(0):c.parameters?c.parameters.slice(0):[],a.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:f,method:t,description:c.description,path:r,operationId:c.operationId,requestBody:c.requestBody,parameters:d,servers:c.servers?i.servers.concat(c.servers):i.servers,responses:c.responses,deprecated:c.deprecated,security:c.security,commonSummary:i.summary,commonDescription:i.description})}})};for(var o in e.paths)r(o);return n.sort((e,t)=>e.namet.name?1:0),n}(t),c=function(e){var t=[];for(var n in e.paths)e.paths[n].path=n,e.paths[n].expanded=!1,e.paths[n].activeMethod="no-active-method",t.push(e.paths[n]);return t}(t);return a=t.components?t.components.securitySchemes:{},t.servers?t.servers.map(e=>{var t=e.url.trim().toLowerCase();e.url&&"http"!==t.substr(0,4)&&("//"===t.substr(0,2)?e.url=window.location.protocol+e.url:e.url=window.location.origin+e.url)}):t.servers=[{url:window.location.origin}],s=t.servers,{info:t.info,tags:u,pathGroups:c,externalDocs:t.externalDocs,securitySchemes:a,servers:s,basePath:t.basePath}},(ke=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Oe(i,r,o,a,s,"next",e)}function s(e){Oe(i,r,o,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}function Ee(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['']);return Ee=function(){return e},e}function Ae(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([""]);return Ae=function(){return e},e}customElements.define("m-logo",class extends ae{render(){return L(Ee())}});var Te=L(Ae());function je(e){if(e){var t={type:e.$ref?"{recursive}":e.enum?"enum":e.type,format:e.format?e.format:"",constrain:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOnly:e.readOnly?"🆁":"",writeOnly:e.writeOnly?"🆆":"",depricated:e.deprecated?"❌":"",default:0===e.default?"0 ":e.default?e.default:"",arrayType:"",allowedValues:"",description:e.description?e.description:"",html:""};if("{recursive}"===t.type&&(t.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1)),e.enum){var n="";e.enum.map(e=>{n+="".concat(e,", ")}),t.allowedValues=n.slice(0,-2)}if("array"===e.type&&e.items){var r=e.items;if(t.arrayType="".concat(e.type," of ").concat(r.type),t.default=0===r.default?"0 ":r.default?r.default:"",r.enum){var o="";r.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," ⋯ ").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")));var i="".concat(t.format?t.format:t.type),a="";return t.readOnly&&(a+="🆁"),t.writeOnly&&(a+="🆆"),t.deprecated&&(a+="❌"),i+="~|~".concat(a," ").concat(t.constrain,"~|~").concat("enum"===t.type?t.allowedValues:t.pattern,"~|~").concat(t.description),t.html=i,t}}function Ce(e){if(e.example)return e.example;if(0===Object.keys(e).length)return null;var t=e.format||e.type||(e.enum?"enum":null);switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":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 Pe(e,t){if(null!=e){if("object"===e.type||e.properties)for(var n in e.description&&(t[":description"]=e.description),e.properties)e.required&&e.required.includes(n)?t["".concat(n,"*")]=Pe(e.properties[n],{}):t[n]=Pe(e.properties[n],{});else if("array"===e.type||e.items)t=[Pe(e.items,{})];else if(e.allOf){var r={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){var o=e.allOf[0];return"".concat(je(o).html)}e.allOf.map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=Pe(e,{});Object.assign(r,t)}else if("array"===e.type||e.items){var n=[Pe(e,{})];Object.assign(r,n)}else{if(!e.type)return"";var o="prop".concat(Object.keys(r).length),i=je(e);r[o]="".concat(i.html)}}),t=r}else{if(!e.anyOf&&!e.oneOf){var i=je(e);return i.html?"".concat(i.html):""}var a=1,s={};e[e.anyOf?"anyOf":"oneOf"].map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=Pe(e,{});s["OPTION_".concat(a)]=t,a++}else if("array"===e.type||e.items){var n=[Pe(e,{})];Object.assign(s,n)}else{var r="prop".concat(Object.keys(s).length);s[r]="".concat(je(e).html)}}),t[e.anyOf?"ANY_OF":"ONE_OF"]=s}return t}}function Re(e,t,n,r){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 u="";u=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(e[s].value,void 0,2):e[s].value,a.push({exampleType:r,exampleValue:u})}else if(t){var c="";c=r.toLowerCase().includes("json")&&"text"===i?JSON.stringify(t,void 0,2):t,a.push({exampleType:r,exampleValue:c})}if(0===a.length)if(n)if(r.toLowerCase().includes("json")||r.toLowerCase().includes("*/*")){var l=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(null!==t){if("object"===t.type||t.properties)for(var o in t.properties)t.properties[o].deprecated||t.properties[o].readOnly&&!r.includeReadOnly||t.properties[o].writeOnly&&!r.includeWriteOnly||(n[o]=e(t.properties[o],{},r));else if("array"===t.type||t.items)n=[e(t.items,{},r)];else if(t.allOf){var i={};if(1===t.allOf.length&&!t.allOf[0].properties&&!t.allOf[0].items)return t.allOf[0].$ref?"{ }":t.allOf[0].readOnly&&r.includeReadOnly?Ce(t.allOf[0]):void 0;t.allOf.map(t=>{if("object"===t.type||t.properties||t.allOf||t.anyOf||t.oneOf){var n=e(t,{},r);Object.assign(i,n)}else if("array"===t.type||t.items){var o=[e(t,{},r)];Object.assign(i,o)}else{if(!t.type)return"";var a="prop".concat(Object.keys(i).length);i[a]=Ce(t)}}),n=i}else if(t.oneOf)t.oneOf.length>0&&(n=e(t.oneOf[0],{},r));else{if(!t.anyOf)return Ce(t);t.anyOf.length>0&&(n=e(t.anyOf[0],{},r))}return n}}(n,{},{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});a.push({exampleType:r,exampleValue:"text"===i?JSON.stringify(l,void 0,2):l})}else a.push({exampleType:r,exampleValue:""});else a.push({exampleType:r,exampleValue:""});return a}function Le(){var e=ze(['',""]);return Le=function(){return e},e}function Ne(){var e=ze(['"','"']);return Ne=function(){return e},e}function Me(){var e=ze(["",":"]);return Me=function(){return e},e}function Ie(){var e=ze(['
    ',"","
    "]);return Ie=function(){return e},e}function Ue(){var e=ze(['
    ','
    ','
    ',"
    "]);return Ue=function(){return e},e}function De(){var e=ze(["",""]);return De=function(){return e},e}function qe(){var e=ze(['
    null
    ']);return qe=function(){return e},e}function Be(){var e=ze(["",'
    ',"
    "]);return Be=function(){return e},e}function ze(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Fe(){var e=ft(["",""]);return Fe=function(){return e},e}function $e(){var e=ft(["",""]);return $e=function(){return e},e}function We(){var e=ft(['
    ',"
    "]);return We=function(){return e},e}function He(){var e=ft(["",""]);return He=function(){return e},e}function Ye(){var e=ft(["",""]);return Ye=function(){return e},e}function Ve(){var e=ft(['',""]);return Ve=function(){return e},e}function Ke(){var e=ft(["",":"]);return Ke=function(){return e},e}function Je(){var e=ft(['*',":"]);return Je=function(){return e},e}function Ge(){var e=ft(['',""]);return Ge=function(){return e},e}function Qe(){var e=ft(['',""]);return Qe=function(){return e},e}function Ze(){var e=ft(['
    '," ","
    "]);return Ze=function(){return e},e}function Xe(){var e=ft(["",""]);return Xe=function(){return e},e}function et(){var e=ft(['',""]);return et=function(){return e},e}function tt(){var e=ft([""," ",'
    ',"
    ",""]);return tt=function(){return e},e}function nt(){var e=ft(['
    ',"
    "]);return nt=function(){return e},e}function rt(){var e=ft(['
    ',"
    "]);return rt=function(){return e},e}function ot(){var e=ft(['
    ']);return ot=function(){return e},e}function it(){var e=ft(['
    ']);return it=function(){return e},e}function at(){var e=ft(["[ ]"]);return at=function(){return e},e}function st(){var e=ft(['{ } ',""]);return st=function(){return e},e}function ut(){var e=ft(["",""]);return ut=function(){return e},e}function ct(){var e=ft(['
    null
    ']);return ct=function(){return e},e}function lt(){var e=ft(["",'
    ',"
    "]);return lt=function(){return e},e}function ft(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("json-tree",class extends ae{render(){return L(Be(),pe,this.generateTree(this.data))}generateTree(e){if(null===e)return L(qe());if("object"==typeof e){var t=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(De(),Array.isArray(e)?"[ ]":"{ }"):L(Ue(),"array"===t?"array":"object",this.toggleExpand,"array"===t?"[":"{",Object.keys(e).map(n=>L(Ie(),"pure_object"===t?L(Me(),n):"",this.generateTree(e[n]))),"array"===t?"]":"}")}return L("string"==typeof e?Ne():Le(),typeof e,e)}static get properties(){return{data:{type:Object}}}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.nextElementSibling.style.display="none",e.target.nextElementSibling.nextElementSibling.style.display="none"):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.nextElementSibling.style.display="block",e.target.nextElementSibling.nextElementSibling.style.display="block")}});function pt(){var e=dt([".tags{\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--input-border-color);\n cursor:text;\n overflow:hidden;\n }\n .tag, .editor{\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg2);\n color:var(--fg2);\n border-radius:var(--border-radius);\n word-break: break-all;\n cursor: none;\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor{\n flex:1;\n border:1px solid transparent;\n background:var(--input-bg);\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n font-size:inherit;\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }"]);return pt=function(){return e},e}function ht(){var e=dt(['
    ']);return ht=function(){return e},e}function dt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ae{render(){return L(lt(),pe,this.generateTree(this.data))}generateTree(e){if(null===e)return L(ct());if("object"==typeof e){var t,n,r=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?L(ut(),Array.isArray(e)?"[ ]":"{ }"):1===Object.keys(e).length&&":description"===Object.keys(e)[0]?L(st(),e[":description"]):"array"===r&&"~|~"===e[0]?L(at()):(Object.keys(e)[0].startsWith("OPTION")||"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?"ANY_OF"===Object.keys(e)[0]||"ONE_OF"===Object.keys(e)[0]?(t=L(it()),n=L(ot())):(n="",t=""):(t=L(rt(),"array"===r?"array":"object",this.toggleExpand,"array"===r?"[":"{"),n=L(nt(),"array"===r?"]":"}")),L(tt(),t,e[":description"]?L(et(),e[":description"]):"",Object.keys(e)[0].startsWith("OPTION")?"":"inside-bracket",Object.keys(e).map(t=>L(Xe(),":description"!==t?L(Ze(),"pure_object"===r?"ANY_OF"===t||"ONE_OF"===t?L(Qe(),t.replace("_"," ")):t.startsWith("OPTION")?L(Ge(),t.replace("OPTION_"," ")):t.endsWith("*")?L(Je(),t.substring(0,t.length-1)):L(Ke(),t):"",this.generateTree(e[t])):"")),n))}return L(Ve(),e?L(Ye(),e.split("~|~").map((e,t)=>L(He(),e?L(We(),0===t?"item-type ".concat(e.replace("{","").substring(0,4)):1===t||2===t?"item-constraints":"m-markdown-small item-descr",3===t?L($e(),ue(le()(e))):L(Fe(),e)):""))):"")}static get properties(){return{data:{type:Object}}}toggleExpand(e){e.target.classList.contains("expanded")?(e.target.classList.add("collapsed"),e.target.classList.remove("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[...]":"{...}",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>{e.style.display="none"})):(e.target.classList.remove("collapsed"),e.target.classList.add("expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{",e.target.parentNode.querySelectorAll(":scope > .obj-content-part").forEach(e=>{e.style.display=e.classList.contains("obj-descr")?"inline":"block"}))}});function vt(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function mt(){var e=Kt(['"]);return mt=function(){return e},e}function yt(){var e=Kt(['
    ']);return yt=function(){return e},e}function gt(){var e=Kt(['
    Response Status: ','
    ','
    "]);return gt=function(){return e},e}function bt(){var e=Kt(['
    No Authentication Token provided
    ']);return bt=function(){return e},e}function wt(){var e=Kt(['
    Authentication:  
    send
    \'',"'
    in
    '","'
    with value
    '","'
    "]);return wt=function(){return e},e}function xt(){var e=Kt(['
    Not Set
    ']);return xt=function(){return e},e}function _t(){var e=Kt(["",""]);return _t=function(){return e},e}function St(){var e=Kt(['
    API_Server:
    ','
    ','
    ',""]);return St=function(){return e},e}function Ot(){var e=Kt(['']);return Ot=function(){return e},e}function kt(){var e=Kt(['']);return kt=function(){return e},e}function Et(){var e=Kt(['']);return Et=function(){return e},e}function At(){var e=Kt([""," ",""]);return At=function(){return e},e}function Tt(){var e=Kt(["",""]);return Tt=function(){return e},e}function jt(){var e=Kt(['
    ','
    ','
    "]);return jt=function(){return e},e}function Ct(){var e=Kt(["",""]);return Ct=function(){return e},e}function Pt(){var e=Kt(['
    '," DATA ","
    "," ",""]);return Pt=function(){return e},e}function Rt(){var e=Kt(['
    ',"
    "]);return Rt=function(){return e},e}function Lt(){var e=Kt(['',""]);return Lt=function(){return e},e}function Nt(){var e=Kt(['']);return Nt=function(){return e},e}function Mt(){var e=Kt([''],['']);return Mt=function(){return e},e}function It(){var e=Kt(['
    ','
    ','
    ','
    ',""]);return It=function(){return e},e}function Ut(){var e=Kt(['
    ',"
    "]);return Ut=function(){return e},e}function Dt(){var e=Kt(['
    ','
    ',"
    "]);return Dt=function(){return e},e}function qt(){var e=Kt(['',""]);return qt=function(){return e},e}function Bt(){var e=Kt(["",""]);return Bt=function(){return e},e}function zt(){var e=Kt(["","
    "]);return zt=function(){return e},e}function Ft(){var e=Kt(['']);return Ft=function(){return e},e}function $t(){var e=Kt([''],['']);return $t=function(){return e},e}function Wt(){var e=Kt(['*']);return Wt=function(){return e},e}function Ht(){var e=Kt(['
    ',"",'
    ','
    ','
    '," ","
    ",""]);return Ht=function(){return e},e}function Yt(){var e=Kt(["",""]);return Yt=function(){return e},e}function Vt(){var e=Kt([""," "," "," "," ",'
    REQUEST
    '," "," "," "," "," ","
    "]);return Vt=function(){return e},e}function Kt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("tag-input",class extends ae{render(){return L(ht(),this.afterPaste,this.afterKeyDown,this.placeholder)}static get styles(){return[oe(pt())]}static get properties(){return{placeholder:{type:String}}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){if(13===e.keyCode){e.stopPropagation(),e.preventDefault();var t=document.createElement("span");""!==e.target.value.trim()&&(t.innerText=e.target.value,e.target.value="",t.classList.add("tag"),t.setAttribute("contenteditable","false"),this.shadowRoot.querySelector(".tags").insertBefore(t,e.target))}else 8===e.keyCode&&0===e.target.selectionStart&&e.target.previousSibling&&e.target.previousSibling.remove()}getValues(){var e=[],t=this.shadowRoot.querySelectorAll(".tag");for(var n of t)e.push(n.innerText);return e}});function Jt(){var e=sn(['
    ','
    ']);return Jt=function(){return e},e}function Gt(){var e=sn(['
    Content-Type: '," (Binary Data)
    "]);return Gt=function(){return e},e}function Qt(){var e=sn(['
    EXAMPLE: ',""]);return Qt=function(){return e},e}function Zt(){var e=sn(['',''," ",""]);return Zt=function(){return e},e}function Xt(){var e=sn(['
    Response Headers:
    ',"
    "]);return Xt=function(){return e},e}function en(){var e=sn(['
    ',': '," ","
    ",""]);return en=function(){return e},e}function tn(){var e=sn(["",""]);return tn=function(){return e},e}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t.title{\n font-family:var(--font-regular);\n font-size:var(--title-font-size);\n font-weight:bold;\n margin-bottom:8px;\n }\n .resp-head{\n vertical-align: middle;\n padding:16px 0 8px;\n }\n .resp-head.divider{\n border-top: 1px solid var(--border-color);\n margin-top:10px;\n }\n .resp-status{ \n font-weight:bold;\n font-size:calc(var(--small-font-size) + 1px);\n }\n .resp-descr{\n font-size:calc(var(--small-font-size) + 1px);\n color:var(--light-fg);\n }\n .top-gap{margin-top:16px;}\n .tab-buttons{\n height:30px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n }\n .tab-btn{\n color:var(--fg);\n border:none;\n background-color:transparent;\n cursor:pointer;\n padding:1px;\n outline:none;\n font-size:var(--small-font-size);\n margin-right:16px;\n padding:1px;\n }\n .tab-btn.active{\n border-bottom: 3px solid var(--primary-color);\n font-weight:bold;\n color:var(--primary-color);\n }\n\n .tab-btn:hover{\n color:var(--primary-color);\n }\n .tab-content{\n margin:-1px 0 0 0;\n }\n .descr-text{\n color:var(--light-fg);\n font-family:var(--font-regular);\n }\n .tree{\n padding:16px 2px;\n }\n @media only screen and (min-width: 768px){\n .tree {\n padding:16px;\n }\n }
    RESPONSE
    ',"
    "]);return an=function(){return e},e}function sn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ae{render(){return L(Vt(),be,ve,pe,ye,Te,this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":L(Yt(),this.apiCallTemplate()))}constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},parser:{type:Object},accept:{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},allowTry:{type:String,attribute:"allow-try"}}}inputParametersTemplate(e){var t="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===n.length)return"";"path"===e?t="PATH PARAMETERS":"query"===e?t="QUERY-STRING PARAMETERS":"header"===e?t="REQUEST HEADERS":"cookie"===e&&(t="COOKIES");var r=[];for(var o of n)if(o.schema){var i=je(o.schema),a="";a=o.example?"0"===o.example||0===o.example?"0":o.example:i.default,r.push(L(Ht(),o.required?L(Wt()):"",o.name,"array"===i.type?"".concat(i.arrayType):"".concat(i.type).concat(i.format?" (".concat(i.format,")"):""),"array"===i.type?L($t(),e,o.name):L(Ft(),o.name,e,a),i.constrain?L(zt(),i.constrain):"",i.allowedValues?L(Bt(),i.allowedValues):"",o.description?L(qt(),ue(le()(o.description||""))):""))}return L(Dt(),t,r)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";var e=0,t={},n=this.request_body.description?L(Ut(),ue(le()(this.request_body.description||""))):"",r="",o="",i=[],a=!1,s={json:"",xml:""},u=this.request_body.content;for(var c in u){c.includes("json")?t[c]="json":c.includes("xml")?t[c]="xml":c.includes("text/plain")?t[c]="text":c.includes("form-urlencoded")?t[c]="form-urlencoded":c.includes("multipart/form-data")?t[c]="multipart-form-data":c.includes("application/octet-stream")&&(t[c]="octet-stream");var l=u[c],f="";if(c.includes("json")||c.includes("xml")||c.includes("text/plain")){try{l.schema=JSON.parse(JSON.stringify(l.schema))}catch(e){return void console.error("Unable to resolve circular refs in schema",l.schema)}c.includes("json")?s.json=Pe(l.schema,{}):c.includes("xml")&&(s.xml=Pe(l.schema,{})),f=Re(l.schema?l.schema.examples:"",l.schema?l.schema.example:"",l.schema,c,!1,"text"),r+='\n ")}else if(c.includes("form")||c.includes("multipart-form")){for(var p in a=!0,l.schema.properties){var h=l.schema.properties[p],d=h.type,v="array"===h.type?h.items.type:"";i.push(L(It(),p,"array"===d?"".concat(d," of ").concat(v):"".concat(d," ").concat(h.format?" (".concat(h.format,")"):""),"array"===d?L(Mt(),d,p):L(Nt(),"binary"===h.format?"file":"text",p,d),h.description?L(Lt(),ue(le()(h.description||""))):""))}o=L(Rt(),t[c],i)}e++}return L(Pt(),a?"form_data":"body_data",a?"FORM":"BODY",this.request_body.required?"(required)":"",n,a?L(Ct(),o):L(jt(),this.activateTab,1===e?"".concat(Object.keys(t)[0]):L(Tt(),Object.keys(t).map(e=>L(At(),"json"===t[e]?L(Et(),t[e],this.onMimeTypeChange):L(kt(),t[e],this.onMimeTypeChange),t[e]))),ue(r),Object.keys(t).map(e=>L(Ot(),t[e],"json"===t[e]?"block":"none",s[t[e]]))))}apiCallTemplate(){return L(St(),this.selectedServer?L(_t(),this.selectedServer):L(xt()),this.apiKeyValue&&this.apiKeyName?L(wt(),this.apiKeyName,this.apiKeyLocation,"".concat(this.apiKeyValue.substring(0,3),"***")):L(bt()),this.onTryClick,""===this.responseMessage?"":L(gt(),this.responseStatus,this.responseMessage,this.clearResponseData,this.activateTab,this.responseIsBlob?L(yt(),this.downloadResponseBlob):L(mt(),this.responseText),this.responseHeaders,this.curlSyntax))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){var t=e.currentTarget.parentNode.querySelector(".tab-btn.active"),n=e.target;t.classList.remove("active"),e.target.classList.add("active");var r=this.shadowRoot.getElementById(n.attributes.content_id.value),o=e.currentTarget.parentNode.querySelectorAll(".tab-content");r&&(r.style.display="flex",o.forEach(e=>{e.attributes.id.value!==n.attributes.content_id.value&&(e.style.display="none")}))}}onMimeTypeChange(e){var t=e.target.closest(".tab-panel").querySelectorAll("textarea.request-body-param"),n=e.target.closest(".tab-panel").querySelectorAll("schema-tree");[...t].map(t=>{t.style.display=t.classList.contains(e.target.value)?"block":"none"}),[...n].map(t=>{t.style.display=t.classList.contains(e.target.value)?"block":"none"})}onTryClick(e){var t,n=this;return(t=function*(){var t,r,o,i=n,a=e.target,s="",u="",c="",l=e.target.closest(".request-panel"),f=[...l.querySelectorAll(".request-param[data-ptype='path']")],p=[...l.querySelectorAll(".request-param[data-ptype='query']")],h=[...l.querySelectorAll(".request-param[data-ptype='header']")],d=[...l.querySelectorAll(".request-form-param")],v=[...l.querySelectorAll(".request-body-param")];t=i.path;var m={mode:"cors",method:n.method.toUpperCase(),headers:{}};if(f.map(e=>{t=t.replace("{".concat(e.dataset.pname,"}"),e.value)}),p.length>0){var y=new URLSearchParams("");p.map(e=>{if("false"===e.dataset.array)""!==e.value&&y.append(e.dataset.pname,e.value);else{var t=e.getValues();for(var n of t)y.append(e.dataset.pname,n)}}),t="".concat(t,"?").concat(y.toString())}if(n.apiKeyValue&&n.apiKeyName&&"query"===n.apiKeyLocation&&(t="".concat(t).concat(t.includes("?")?"&":"?").concat(n.apiKeyName,"=").concat(encodeURIComponent(n.apiKeyValue))),r=!1===(t="".concat(n.selectedServer.replace(/\/$/,"")).concat(t)).startsWith("http")?new URL(t,window.location.href).href:t,o="curl -X ".concat(n.method.toUpperCase(),' "').concat(r,'" '),n.accept&&(m.headers.Accept=n.accept,s+=' -H "Accept: '.concat(n.accept,'"')),h.map(e=>{e.value&&(m.headers[e.dataset.pname]=e.value,s+=' -H "'.concat(m.headers[e.dataset.pname],": ").concat(e.value,'"'))}),n.apiKeyValue&&n.apiKeyName&&"header"===n.apiKeyLocation&&(m.headers[n.apiKeyName]=n.apiKeyValue,s+=' -H "'.concat(n.apiKeyName,": ").concat(n.apiKeyValue,'"')),d.length>=1){var g=l.querySelector("form"),b=new URLSearchParams,w=new FormData;d.map(e=>{if("false"===e.dataset.array)"file"!==e.type?""!==e.value&&(b.append(e.dataset.pname,e.value),w.append(e.dataset.pname,e.value),c+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'"')):e.files[0]&&(b.append(e.dataset.pname,e.files[0]),w.append(e.dataset.pname,e.files[0]),c="".concat(c,' -F "').concat(e.dataset.pname,"=@").concat(e.value,'"'));else{var t=e.getValues();for(var n of t)b.append(e.dataset.pname,n),w.append(e.dataset.pname,n),c+=' -F "'.concat(e.dataset.pname,"=").concat(n,'"')}}),g.classList.contains("form-urlencoded")?(m.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",s+=' -H "Content-Type: application/x-www-form-urlencoded"',m.body=b):(s+=' -H "Content-Type: multipart/form-data"',m.body=w)}if(v.length>=1)if(1===v.length)m.headers["Content-Type"]=v[0].dataset.ptype,s+=' -H "Content-Type: '.concat(v[0].dataset.ptype,'"'),m.body=v[0].value,u=" -d ".concat(JSON.stringify(v[0].value.replace(/(\r\n|\n|\r)/gm,"")));else{var x=e.target.closest(".request-panel").querySelector("input[name='request_body_type']:checked"),_=null===x?"json":x.value,S="";"json"===_?(S=l.querySelector(".request-body-param.json").value,m.headers["Content-Type"]="application/json; charset=utf-8",s+=' -H "Content-Type: application/json"'):"xml"===_?(S=l.querySelector(".request-body-param.xml").value,m.headers["Content-Type"]="application/xml; charset=utf-8",s+=' -H "Content-Type: application/xml"'):"text"===_&&(S=l.querySelector(".request-body-param.text").value,m.headers["Content-Type"]="text/plain; charset=utf-8",s+=' -H "Content-Type: text/plain"'),m.body=S,u=" -d ".concat(JSON.stringify(S.replace(/(\r\n|\n|\r)/gm,"")))}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(u," ").concat(c);try{a.disabled=!0;var O=yield fetch(t,m);a.disabled=!1,i.responseStatus=O.ok?"success":"error",i.responseMessage="".concat(O.statusText,":").concat(O.status),i.responseUrl=O.url,O.headers.forEach((e,t)=>{i.responseHeaders="".concat(i.responseHeaders).concat(t.trim(),": ").concat(e,"\n")});var k=O.headers.get("content-type");if(k)if(k.includes("json"))O.json().then(e=>{i.responseText=JSON.stringify(e,null,2)});else if(k.includes("octet-stream")){i.responseIsBlob=!0;var E=O.headers.get("content-disposition");i.respContentDisposition=E?E.split("filename=")[1]:"filename",O.blob().then(e=>{i.responseBlobUrl=URL.createObjectURL(e)})}else O.text().then(e=>{i.responseText=e});else O.text().then(e=>{i.responseText=e})}catch(e){a.disabled=!1,i.responseMessage="".concat(e.message," (CORS or Network Issue)")}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){vt(i,r,o,a,s,"next",e)}function s(e){vt(i,r,o,a,s,"throw",e)}a(void 0)})})()}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()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}});function un(){var e=gn([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .head .descr{\n font-size: var(--small-font-size);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n }\n .m-endpoint > .head.put:hover,\n .m-endpoint > .head.put.expanded{\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.post:hover,\n .m-endpoint > .head.post.expanded{\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.get:hover,\n .m-endpoint > .head.get.expanded{\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n .m-endpoint > .head.delete:hover,\n .m-endpoint > .head.delete.expanded{\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch:hover,\n .m-endpoint > .head.patch.expanded{\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n }\n .method.delete{ border: 2px solid var(--delete-color);}\n .method.patch{ border: 2px solid var(--patch-color); }\n .method.put{ border: 2px solid var(--put-color); }\n .method.post{ border: 2px solid var(--post-color); }\n .method.get{ border: 2px solid var(--get-color); }\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .descr{\n display: flex;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return un=function(){return e},e}function cn(){var e=gn(['
    ',"
    "]);return cn=function(){return e},e}function ln(){var e=gn(['
    ',"
    ","
    "]);return ln=function(){return e},e}function fn(){var e=gn(['
    ','
    ']);return fn=function(){return e},e}function pn(){var e=gn(['deprecated']);return pn=function(){return e},e}function hn(){var e=gn(['
    ','
    ',"
    ",'
    ',"
    "]);return hn=function(){return e},e}function dn(){var e=gn([""]);return dn=function(){return e},e}function vn(){var e=gn([""]);return vn=function(){return e},e}function mn(){var e=gn(["",""]);return mn=function(){return e},e}function yn(){var e=gn([""," ",'
    '," ","
    "]);return yn=function(){return e},e}function gn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-response",class extends ae{render(){return L(an(),pe,ye,be,ve,this.responseTemplate())}static get properties(){return{responses:{type:Object},parser:{type:Object}}}responseTemplate(){if(!this.responses)return"";var e={},t={},n={};for(var r in this.responses){var o={};for(var i in this.responses[r].content){var a=this.responses[r].content[i],s=Pe(a.schema,{}),u=Re(a.schema?a.schema.examples:"",a.schema?a.schema.example:"",a.schema,i,!0,"json");o[i]={description:this.responses[r].description,examples:u,schemaTree:s},e[r]=i}var c=[];for(var l in this.responses[r].headers)c.push(rn({name:l},this.responses[r].headers[l]));t[r]=c,n[r]=o}return L(tn(),Object.keys(this.responses).map((e,r)=>L(en(),0===r?"top-gap":"divider",e,this.responses[e].description,t[e]&&t[e].length>0?L(Xt(),t[e].map(e=>L(Zt(),e.name,ue(le()(e.description||"")),e.schema&&e.schema.example?L(Qt(),e.schema.example):""))):"",Object.keys(n[e]).map(t=>t.includes("octet-stream")?L(Gt(),t):L(Jt(),e,t,this.activateTab,e,t,e,t,t,e,t,n[e][t].examples[0].exampleValue,e,t,n[e][t].schemaTree)))))}activateTab(e){if(!e.target.classList.contains("active")&&!1!==e.target.classList.contains("tab-btn")){e.currentTarget.parentNode.querySelector(".tab-btn.active").classList.remove("active"),e.target.classList.add("active");var t=e.target.attributes.content_id.value,n=e.currentTarget.parentNode.querySelectorAll(".tab-content");t&&n.forEach(e=>{e.style.display=e.attributes.id.value===t?"flex":"none"})}}});function bn(){var e=xn(['']);return bn=function(){return e},e}function wn(){var e=xn(["",""]);return wn=function(){return e},e}function xn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-point",class extends ae{render(){return L(yn(),pe,window.innerWidth>=768?L(mn(),"row"===this.layout?L(vn()):L(dn())):"",this.path.method,this.path.expanded?"expanded":"collapsed",this.endpointHeadTemplate(),this.path.expanded?this.endpointBodyTemplate():"")}endpointHeadTemplate(){return L(hn(),this.toggleExpand,this.path.method,this.path.expanded?"expanded":"collapsed",this.path.method,this.path.method,this.path.deprecated?"deprecated":"",this.path.path,this.path.deprecated?L(pn()):"",ue(le()(this.path.summary||"")))}endpointBodyTemplate(){return L(fn(),this.path.method,this.path.summary||this.path.description?L(ln(),ue(le()(this.path.summary||"")),this.path.summary!==this.path.description?L(cn(),ue(le()(this.path.description||""))):""):"",this.path.method,this.path.path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,this.path.parameters,this.path.requestBody,this.allowTry,this.accept,this.path.responses)}static get styles(){return[oe(un())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}toggleExpand(){if(this.path.expanded)this.path.expanded=!1;else{this.path.expanded=!0;var e="";for(var t in this.path.responses)for(var n in this.path.responses[t].content)e="".concat(e+n,", ");e=e.replace(/,\s*$/,""),this.accept=e}this.requestUpdate()}});function _n(){var e=In([".only-large-screen {\n display:none;\n }\n\n .head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--small-font-size);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n }\n\n .m-endpoint.expanded{margin-bottom:16px; }\n .m-endpoint > .head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n }\n .m-endpoint > .head:hover{\n background-color:var(--light-put-color); \n }\n .m-endpoint > .head.expanded{\n cursor: pointer;\n }\n .m-endpoint > .head.get {\n border-color:var(--get-color); \n background-color:var(--light-get-color); \n }\n\n .m-endpoint > .head.put {\n border-color:var(--put-color); \n background-color:var(--light-put-color); \n }\n\n .m-endpoint > .head.post {\n border-color:var(--post-color); \n background-color:var(--light-post-color); \n }\n .m-endpoint > .head.delete {\n border-color:var(--delete-color); \n background-color:var(--light-delete-color); \n }\n .m-endpoint > .head.patch {\n border-color:var(--patch-color); \n background-color:var(--light-patch-color); \n }\n\n\n .m-endpoint .body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n }\n .m-endpoint .body.delete{ border-color:var(--delete-color); }\n .m-endpoint .body.patch{ border-color:var(--patch-color); }\n .m-endpoint .body.put{ border-color:var(--put-color); }\n .m-endpoint .body.post{border-color:var(--post-color);}\n .m-endpoint .body.get{ border-color:var(--get-color); }\n\n .head .deprecated{\n text-decoration: line-through red;\n }\n\n .summary{\n padding:8px 8px;\n }\n .summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n }\n\n .method{\n padding:2px 5px;\n vertical-align: middle;\n height: 20px;\n line-height: 20px;\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n font-size:var(--small-font-size);\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n cursor: pointer;\n }\n\n .method.get{ \n border: 1px solid var(--get-color);\n }\n .get.expanded .method.get,\n .method.get:hover{ \n background-color:var(--get-color);\n color:#333;\n }\n\n .method.put{ \n border: 1px solid var(--put-color); \n }\n .put.expanded .method.put,\n .method.put:hover{ \n background-color:var(--put-color);\n color:#333;\n }\n\n .method.post{ \n border: 1px solid var(--post-color); \n }\n .post.expanded .method.post,\n .method.post:hover{ \n background-color:var(--post-color);\n color:#333;\n }\n\n .method.delete{ \n border: 1px solid var(--delete-color);\n }\n .delete.expanded .method.delete,\n .method.delete:hover{\n background-color:var(--delete-color);\n color:#333;\n }\n\n .method.patch{ \n border: 1px solid var(--patch-color); \n }\n .patch.expanded .method.patch,\n .method.patch:hover{ \n background-color:var(--patch-color);\n color:#333;\n }\n\n .method-text { margin-right:5px; }\n .head.get .method-text { color:var(--get-color);}\n .head.put .method-text { color:var(--put-color);}\n .head.post .method-text { color:var(--post-color);}\n .head.delete .method-text { color:var(--delete-color);}\n .head.patch .method-text { color:var(--patch-color);}\n\n .req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n }\n .request,\n .response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n }\n .request{\n border-width:0 0 1px 0;\n border-style:dashed;\n }\n .patch .request{ \n border-color:var(--patch-color); \n }\n .put .request{ \n border-color:var(--put-color); \n }\n .post .request{ \n border-color:var(--post-color); \n }\n .get .request{ \n border-color:var(--get-color); \n }\n .delete .request{ \n border-color:var(--delete-color); \n }\n\n\n @media only screen and (min-width: 768px){\n .head .path{\n font-size: var(--regular-font-size);\n min-width:400px;\n }\n .head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .only-large-screen{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n }"]);return _n=function(){return e},e}function Sn(){var e=In(['
    ',"
    "]);return Sn=function(){return e},e}function On(){var e=In(['
    ',"
    ","
    "]);return On=function(){return e},e}function kn(){var e=In(['
    ','
    ']);return kn=function(){return e},e}function En(){var e=In(['
    PATCH
    ']);return En=function(){return e},e}function An(){var e=In(['
    HEAD
    ']);return An=function(){return e},e}function Tn(){var e=In(['
    DELETE
    ']);return Tn=function(){return e},e}function jn(){var e=In(['
    POST
    ']);return jn=function(){return e},e}function Cn(){var e=In(['
    PUT
    ']);return Cn=function(){return e},e}function Pn(){var e=In(['
    GET
    ']);return Pn=function(){return e},e}function Rn(){var e=In([""]);return Rn=function(){return e},e}function Ln(){var e=In([""]);return Ln=function(){return e},e}function Nn(){var e=In(["",""]);return Nn=function(){return e},e}function Mn(){var e=In([""," ",'
    \x3c!-- Endpoint Head --\x3e
    '," ",'
    '," "," "," "," "," ","
    \x3c!-- Endpoint Body --\x3e ","
    "]);return Mn=function(){return e},e}function In(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("end-points",class extends ae{render(){return L(wn(),this.paths.filter(e=>!this.matchPaths||"".concat(e.method," ").concat(e.path).includes(this.matchPaths)).map(e=>L(bn(),this.selectedServer,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation,this.layout,e,this.allowTry?this.allowTry:"true")))}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},paths:{type:Object},matchPaths:{type:String,attribute:"match-paths"},allowTry:{type:String,attribute:"allow-try"}}}});function Un(){var e=Kn(['
    Refresh URL: ',"
    "]);return Un=function(){return e},e}function Dn(){var e=Kn(['
    Token URL: ',"
    "]);return Dn=function(){return e},e}function qn(){var e=Kn(['
    Auth URL: ',"
    "]);return qn=function(){return e},e}function Bn(){var e=Kn([""," "," ",'
    ']);return Bn=function(){return e},e}function zn(){var e=Kn(["
    ","
    "]);return zn=function(){return e},e}function Fn(){var e=Kn(["Send 'Authorization' in header which will contains the word 'Bearer' followed by a space and a Token String.
    "]);return Fn=function(){return e},e}function $n(){var e=Kn(["Send 'Authorization' in header which will contains the word 'Basic' followed by a space and a base64-encoded string username:password.
    "]);return $n=function(){return e},e}function Wn(){var e=Kn(["Send '","' in '","' with the given value
    "]);return Wn=function(){return e},e}function Hn(){var e=Kn(['
    ',"
    "]);return Hn=function(){return e},e}function Yn(){var e=Kn(['
    ',": ","
    ",""," "," "," ",""]);return Yn=function(){return e},e}function Vn(){var e=Kn([""," "," ",'',"
    TypeAuthentication Procedure
    "]);return Vn=function(){return e},e}function Kn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("path-and-methods",class extends ae{render(){return L(Mn(),pe,window.innerWidth>=768?L(Nn(),"row"===this.layout?L(Ln()):L(Rn())):"",this.path.activeMethod,this.path.expanded?"expanded":"collapsed",this.path.activeMethod,this.path.expanded?"expanded":"collapsed",()=>this.collapse(),"no-active-method"===this.path.activeMethod?"":this.path.activeMethod.toUpperCase(),this.path.path,this.path.get?L(Pn(),e=>this.expand("get",e)):"",this.path.put?L(Cn(),e=>this.expand("put",e)):"",this.path.post?L(jn(),e=>this.expand("post",e)):"",this.path.delete?L(Tn(),e=>this.expand("delete",e)):"",this.path.head?L(An(),e=>this.expand("head",e)):"",this.path.patch?L(En(),e=>this.expand("patch",e)):"",this.pathBodyTemplate())}pathBodyTemplate(){var e=[],t=this.path.parameters&&this.path.parameters.length>0?this.path.parameters:null,n=this.path[this.path.activeMethod]&&this.path[this.path.activeMethod].parameters&&this.path[this.path.activeMethod].parameters.length>0?this.path[this.path.activeMethod].parameters:void 0;return e=t?n&&n.length>0?t.filter(e=>{if(!n.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(n):t.slice(0):[],this.path.expanded?L(kn(),this.path.activeMethod,this.path[this.path.activeMethod].summary||this.path[this.path.activeMethod].description?L(On(),ue(le()(this.path[this.path.activeMethod].summary||"")),this.path[this.path.activeMethod].summary!==this.path[this.path.activeMethod].description?L(Sn(),ue(le()(this.path[this.path.activeMethod].description||""))):""):"",this.path.activeMethod,this.path[this.path.activeMethod].path,this.apiKeyName,this.apiKeyValue,this.apiKeyLocation,this.selectedServer,e,this.path[this.path.activeMethod].requestBody,this.allowTry,this.accept,this.path[this.path.activeMethod].responses):""}static get styles(){return[oe(_n())]}constructor(){super(),this.accept=""}static get properties(){return{apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},selectedServer:{type:String,attribute:"selected-server"},layout:{type:String},path:{type:Object},allowTry:{type:String,attribute:"allow-try"}}}collapse(){this.path.expanded&&(this.path.expanded=!1,this.path.activeMethod="no-active-method"),this.requestUpdate()}expand(e,t){this.path.expanded=!0,this.path.activeMethod=e;var n="";for(var r in this.path.responses)for(var o in this.path.responses[r].content)n="".concat(n+o,", ");n=n.replace(/,\s*$/,""),this.accept=n,t.stopPropagation(),this.requestUpdate()}});function Jn(e,t,n,r,o,i,a){try{var s=e[i](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,o)}function Gn(){var e=kr(['']);return Gn=function(){return e},e}function Qn(){var e=kr(['
    PATHS
    ']);return Qn=function(){return e},e}function Zn(){var e=kr([""," ",""]);return Zn=function(){return e},e}function Xn(){var e=kr(['
    ','
    ','
    ']);return Xn=function(){return e},e}function er(){var e=kr(["",""]);return er=function(){return e},e}function tr(){var e=kr(['
    GROUP API BY:
    Tag Path
    ']);return tr=function(){return e},e}function nr(){var e=kr(['
    AUTHENTICATION
    ']);return nr=function(){return e},e}function rr(){var e=kr([' ',"
    "]);return rr=function(){return e},e}function or(){var e=kr(["- ",""]);return or=function(){return e},e}function ir(){var e=kr([' '," ","
    "]);return ir=function(){return e},e}function ar(){var e=kr(["",""]);return ar=function(){return e},e}function sr(){var e=kr(['"]);return sr=function(){return e},e}function ur(){var e=kr(['
    URL: ',"
    "]);return ur=function(){return e},e}function cr(){var e=kr(['
    Name: ',"
    "]);return cr=function(){return e},e}function lr(){var e=kr(['
    Email: ',"
    "]);return lr=function(){return e},e}function fr(){var e=kr(['
    '," "," ","
    "]);return fr=function(){return e},e}function pr(){var e=kr(['
    ']);return pr=function(){return e},e}function hr(){var e=kr([' ']);return hr=function(){return e},e}function dr(){var e=kr(['
    ']);return dr=function(){return e},e}function vr(){var e=kr(['
    ','
    '," ",'',"
    "]);return vr=function(){return e},e}function mr(){var e=kr(["",""]);return mr=function(){return e},e}function yr(){var e=kr(["",""]);return yr=function(){return e},e}function gr(){var e=kr(['',""]);return gr=function(){return e},e}function br(){var e=kr(['
    '," ","
    "," "," ","
    "]);return br=function(){return e},e}function wr(){var e=kr(['
    Unable to load the Spec
    ']);return wr=function(){return e},e}function xr(){var e=kr(['
    Loading ...
    ']);return xr=function(){return e},e}function _r(){var e=kr([""]);return _r=function(){return e},e}function Sr(){var e=kr([""]);return Sr=function(){return e},e}function Or(){var e=kr([""," "," "," "," ","",'
    '," "," "," "," "," "," ",'
    ']);return Or=function(){return e},e}function kr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("security-schemes",class extends ae{render(){return L(Vn(),pe,be,ve,Object.keys(this.schemes).map(e=>L(Yn(),this.schemes[e].type,this.schemes[e].scheme,this.schemes[e].description?L(Hn(),ue(le()(this.schemes[e].description||""))):"","apiKey"===this.schemes[e].type?L(Wn(),this.schemes[e].name,this.schemes[e].in,e,this.schemes[e].type,this.schemes[e].in,this.schemes[e].name,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"basic"===this.schemes[e].scheme?L($n(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","http"===this.schemes[e].type&&"bearer"===this.schemes[e].scheme?L(Fn(),e,this.schemes[e].type,this.schemes[e].scheme,e,e,e,e,this.selectedApiKeyValue?"CLEAR":"SET",this.dispatchChange,this.selectedApiKeyValue?"CLEAR":"SET"):"","oauth2"===this.schemes[e].type?L(zn(),Object.keys(this.schemes[e].flows).map(t=>L(Bn(),this.schemes[e].flows[t].authorizationUrl?L(qn(),this.schemes[e].flows[t].authorizationUrl):"",this.schemes[e].flows[t].tokenUrl?L(Dn(),this.schemes[e].flows[t].tokenUrl):"",this.schemes[e].flows[t].refreshUrl?L(Un(),this.schemes[e].flows[t].refreshUrl):"",e,e))):"")))}static get properties(){return{schemes:{type:Object},selectedApiKeyName:{type:String,attribute:"selected-api-key-name"},selectedApiKeyValue:{type:String,attribute:"selected-api-key-value"}}}dispatchChange(e){var t=e.target.closest(".".concat(e.target.dataset.class));if(t){var n=t.dataset.type,r=t.dataset.in,o=t.dataset.name,i=t.dataset.inputname,a="";if("CLEAR"===e.target.dataset.action){var s=t.querySelector("input[name=".concat(i,"-token]"));s&&(s.value="")}else if("apiKey"===n){var u=t.querySelector("input[name=".concat(i,"-token]"));u&&(a=u.value)}else if("http"===n){var c=t.dataset.scheme;if("basic"===c){var l=t.querySelector("input[name=".concat(i,"-username]")),f=t.querySelector("input[name=".concat(i,"-password]"));l&&f&&(a="Basic ".concat(btoa("".concat(l.value,":").concat(f.value))))}else if("bearer"===c){var p=t.querySelector("input[name=".concat(i,"-bearer-token]"));p&&(a="Bearer ".concat(p.value))}}var h=new CustomEvent("change",{detail:{keyType:n,keyName:o,keyValue:a,keyLocation:r}});this.dispatchEvent(h)}}});class Er extends ae{render(){return L(Or(),pe,ve,ye,be,"dark"===this.theme?L(Sr()):L(_r()),this.primaryColor?"".concat(this.primaryColor):"#FF791A",he.color.brightness(this.primaryColor?this.primaryColor:"#FF791A",-30),this.primaryColor?"".concat(he.color.invert(this.primaryColor)):"#ffffff",this.headerColor?"".concat(this.headerColor):"#444",this.headerColor?"".concat(he.color.invert(this.headerColor)):"#ccc",this.layout?"".concat(this.layout):"row",this.monoFont?"".concat(this.monoFont):"Monaco, 'Andale Mono', 'Roboto Mono', Consolas",this.regularFont?"".concat(this.regularFont):"rapidoc, Helvetica, Arial",this.headerColor?he.color.brightness(this.headerColor,-20):he.color.inputReverseBg,"false"===this.showHeader?"":this.headerTemplate(),!0===this.loading?L(xr()):"",!0===this.loadFailed?L(wr()):"","false"!==this.showInfo&&this.resolvedSpec&&this.resolvedSpec.info?L(br(),this.resolvedSpec.info.title,this.resolvedSpec.info.version?L(gr(),this.resolvedSpec.info.version):"",this.resolvedSpec.info.description?L(yr(),ue("
    ".concat(le()(this.resolvedSpec.info.description),"
    "))):"",this.resolvedSpec.info.termsOfService?L(mr(),ue("
    Terms:
    ".concat(le()(this.resolvedSpec.info.termsOfService),""))):"",this.resolvedSpec.info.contact?this.contactInfoTemplate():""):"","false"!==this.allowTry&&"false"!==this.allowServerSelection&&this.resolvedSpec?this.apiServerListTemplate():"","false"!==this.allowAuthentication&&this.resolvedSpec&&this.resolvedSpec.securitySchemes?this.securitySchemeTemplate():"","false"===this.allowApiListStyleSelection?"":this.apiListingStyleSelectionTemplate(),this.resolvedSpec&&this.resolvedSpec.tags&&this.resolvedSpec.pathGroups?"group-by-path"!==this.apiListStyle&&this.resolvedSpec?this.endpointsGroupedByTagTemplate():this.endpointsGroupedByPathTemplate():"")}headerTemplate(){return L(vr(),this.headingText,"false"===this.allowSpecUrlLoad?"":L(dr(),this.specUrl?this.specUrl:"",this.onSepcUrlChange),"false"===this.allowSpecFileLoad?"":L(hr(),this.specFile?this.specFile:"",this.onSepcFileChange,this.onFileLoadClick),"false"===this.allowSearch?"":L(pr(),this.onSearchChange))}contactInfoTemplate(){return L(fr(),this.resolvedSpec.info.contact.email?L(lr(),this.resolvedSpec.info.contact.email):"",this.resolvedSpec.info.contact.name?L(cr(),this.resolvedSpec.info.contact.name):"",this.resolvedSpec.info.contact.url?L(ur(),this.resolvedSpec.info.contact.url):"")}apiServerListTemplate(){return L(sr(),this.resolvedSpec.servers&&0!==this.resolvedSpec.servers.length?L(ar(),this.resolvedSpec.servers.map(e=>L(ir(),e.url,this.onApiServerChange,e.url,e.description?L(or(),e.description):""))):"",this.serverUrl?L(rr(),this.serverUrl,this.onApiServerChange,this.serverUrl):"")}securitySchemeTemplate(){return L(nr(),this.resolvedSpec.securitySchemes,this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.onSecurityChange)}apiListingStyleSelectionTemplate(){return L(tr(),()=>this.onListStyleChange("group-by-tag"),"group-by-tag"===this.apiListStyle,()=>this.onListStyleChange("group-by-path"),"group-by-path"===this.apiListStyle)}endpointsGroupedByTagTemplate(){return L(er(),this.resolvedSpec.tags.map(e=>L(Xn(),e.name,ue("
    ".concat(le()(e.description?e.description:""),"
    ")),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e.paths,this.allowTry?this.allowTry:"true",this.matchPaths)))}endpointsGroupedByPathTemplate(){return L(Zn(),"false"!==this.allowApiListStyleSelection&&this.resolvedSpec?L(Qn()):"",this.resolvedSpec.pathGroups.filter(e=>!this.matchPaths||e.path.includes(this.matchPaths)).map(e=>L(Gn(),this.selectedServer?this.selectedServer:"",this.apiKeyName?this.apiKeyName:"",this.apiKeyValue?this.apiKeyValue:"",this.apiKeyLocation?this.apiKeyLocation:"",this.layout?this.layout:"row",e,this.allowTry?this.allowTry:"true",this.matchPaths)))}static get properties(){return{specUrl:{type:String,attribute:"spec-url"},specFile:{type:String,attribute:!1},serverUrl:{type:String,attribute:"server-url"},matchPaths:{type:String,attribute:"match-paths"},headingText:{type:String,attribute:"heading-text"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},showHeader:{type:String,attribute:"show-header"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},allowServerSelection:{type:String,attribute:"allow-server-selection"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSearch:{type:String,attribute:"allow-search"},allowApiListStyleSelection:{type:String,attribute:"allow-api-list-style-selection"},layout:{type:String},theme:{type:String},logoUrl:{type:String,attribute:"logo-url"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyValue:{type:String,attribute:"api-key-value"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiListStyle:{type:String,attribute:"api-list-style"}}}attributeChangedCallback(e,t,n){"spec-url"===e&&t!==n&&this.loadSpec(n),super.attributeChangedCallback(e,t,n)}onSepcUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSepcFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);var t=e.target.files[0],n=new FileReader;n.onload=()=>{try{var e=JSON.parse(n.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){console.log("Unable to read or parse json")}},n.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onApiServerChange(){var e=this.shadowRoot.querySelector("input[name='api_server']:checked");null!==e&&(this.selectedServer=e.value,this.requestUpdate())}onListStyleChange(e){this.apiListStyle=e,this.requestUpdate()}onSecurityChange(e){this.apiKeyName=e.detail.keyName,this.apiKeyValue=e.detail.keyValue,this.apiKeyLocation=e.detail.keyLocation}onSearchChange(e){this.matchPaths=e.target.value}loadSpec(e){var t,n=this;return(t=function*(){if(e){n.apiKeyName="",n.apiKeyValue="",n.apiKeyLocation="",n.selectedServer="",n.matchPaths="";try{n.loading=!0,n.loadFailed=!1;var t=yield function(e){return ke.apply(this,arguments)}(e);n.loading=!1,null==t&&console.error("Unable to resolve the API spec. "),n.afterSpecParsedAndValidated(t)}catch(e){n.loading=!1,n.loadFailed=!0,n.resolvedSpec=null,n.requestUpdate(),console.error("Unable to resolve the API spec.. ".concat(e.message))}}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Jn(i,r,o,a,s,"next",e)}function s(e){Jn(i,r,o,a,s,"throw",e)}a(void 0)})})()}afterSpecParsedAndValidated(e){this.resolvedSpec=e,"false"===this.allowServerSelection&&(this.serverUrl?this.selectedServer=this.serverUrl:this.resolvedSpec&&this.resolvedSpec.servers&&this.resolvedSpec.servers.length>0&&(this.selectedServer=this.resolvedSpec.servers[0].url)),this.apiListStyle||(this.apiListStyle="group-by-tag"),this.requestUpdate(),window.setTimeout(()=>{this.onApiServerChange()},0)}}customElements.define("rapi-doc",Er);t.default={RapiDoc:Er}}]); //# sourceMappingURL=rapidoc-min.js.map \ No newline at end of file diff --git a/docs/welcome.html b/docs/welcome.html index 59c6af52..1ed9969c 100644 --- a/docs/welcome.html +++ b/docs/welcome.html @@ -146,94 +146,91 @@

    Web Component for OpenAPI Spec Viewing

    Quickstart (DEMO)

    Just copy the below code and save it in an html file. Then open it using a browser +
    <!doctype html> <!-- Important: must specify -->
    +<html>
    +<head>
    +  <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 charecters -->
    +  <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
    +</head>
    +<body>
    +  <rapi-doc 
    +    spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json" 
    +  > </rapi-doc>
    +</body> 
    +</html>
    +
    +
    + -
    
    -  <!doctype html> <!-- Important: must specify -->
    +  
    +

    Mix your own HTML (DEMO)

    + The below example adds a single click authorization functionality to swagger's petstore spec +
    <!doctype html>
       <html>
       <head>
    -    <meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 charecters -->
    -    <script src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
    +    <meta charset="utf-8">
    +
    +    <style>
    +      .btn{
    +        width: 90px;
    +        height: 32px;
    +        font-size:13px;
    +        background-color: #47AFE8;
    +        color: #fff;
    +        border: none;
    +        margin: 0 2px;
    +        border-radius: 2px;
    +        cursor:pointer;
    +        outline:none;
    +      }
    +      .txt{
    +        width: 100px;
    +        height: 30px;
    +        font-size:13px;
    +        background-color: transparent;
    +        border: 1px solid #47AFE8;
    +        color: #fff;
    +        padding:0 8px;
    +        margin: 0 2px;
    +        border-radius: 2px;
    +        outline:none;
    +      }
    +      rapi-doc{
    +        width:100%;
    +      }
    +    </style>
    +
    +    <script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
    +    <script>
    +      function setApiKey(){
    +        const docEl = document.getElementById('thedoc');
    +        const keyInputEl = document.getElementById('key-val-input');
    +        docEl.setAttribute('api-key-name','api_key');
    +        docEl.setAttribute('api-key-location','header');
    +        docEl.setAttribute('api-key-value',keyInputEl.value);
    +      }
    +    </script>
       </head>
       <body>
    -    <rapi-doc 
    -      spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json" 
    -    > </rapi-doc>
    -  </body> 
    -  </html>
    -  
    -
    + <rapi-doc + spec-url="https://petstore.swagger.io/v2/swagger.json" + allow-authentication ="false" + > + <!-- + below html is custom html that adds an input field and a button in header + on clicking the button the 'api-key-value' is set to the value in input box + --> + <div slot='header' style='display:flex; margin:0 16px;'> + <input class='txt' id='key' type='text' > + <button class='btn' onclick='setApiKey()' > Login </button > + </div> + </rapi-doc> -
    -

    Mix your own HTML (DEMO)

    - The below example adds a single click authorization functionality to swagger's petstore spec -
    
    -    <!doctype html>
    -    <html>
    -    <head>
    -      <meta charset="utf-8">
    -
    -      <style>
    -        .btn{
    -          width: 90px;
    -          height: 32px;
    -          font-size:13px;
    -          background-color: #47AFE8;
    -          color: #fff;
    -          border: none;
    -          margin: 0 2px;
    -          border-radius: 2px;
    -          cursor:pointer;
    -          outline:none;
    -        }
    -        .txt{
    -          width: 100px;
    -          height: 30px;
    -          font-size:13px;
    -          background-color: transparent;
    -          border: 1px solid #47AFE8;
    -          color: #fff;
    -          padding:0 8px;
    -          margin: 0 2px;
    -          border-radius: 2px;
    -          outline:none;
    -        }
    -        rapi-doc{
    -          width:100%;
    -        }
    -      </style>
    -
    -      <script src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
    -      <script>
    -        function setApiKey(){
    -          const docEl = document.getElementById('thedoc');
    -          const keyInputEl = document.getElementById('key-val-input');
    -          docEl.setAttribute('api-key-name','api_key');
    -          docEl.setAttribute('api-key-location','header');
    -          docEl.setAttribute('api-key-value',keyInputEl.value);
    -        }
    -      </script>
    -    </head>
    -    <body>
    -
    -      <rapi-doc 
    -        spec-url="https://petstore.swagger.io/v2/swagger.json" 
    -        allow-authentication ="false"
    -      >
    -        <!-- 
    -         below html is custom html that adds an input field and a button in header
    -         on clicking the button the 'api-key-value' is set to the value in input box
    -        -->
    -        <div slot='header' style='display:flex; margin:0 16px;'> 
    -          <input class='txt' id='key' type='text' >
    -          <button class='btn' onclick='setApiKey()' > Login </button >
    -        </div>
    -      </rapi-doc>
    -
    -      </body> 
    -    </html>
    -    
    -
    + </body> + </html> +
    +
    @@ -267,6 +264,15 @@

    Attributes

    (empty) + + api-list-style + + can be either group-by-tag or group-by-path . This controls how the API litings are grouped. + this can be changed from the UI too + + group-by-tag + + allow-authentication @@ -342,6 +348,14 @@

    Attributes

    true + + allow-api-list-style-selection + + If set to 'false', user will not be able to change api list style + + true + + show-info @@ -484,7 +498,18 @@

    List of all examples


    - Change Header Color with Dark Theme ( DEMO ) + Group List By Path ( DEMO ) +
    
    +  <rapi-doc 
    +    spec-url = "https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
    +    api-list-style = "group-by-path"
    +  > 
    +  </rapi-doc>
    +
    +
    + + + Change Header Color With Dark Theme ( DEMO )
    
       <rapi-doc 
         spec-url="https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json"
    diff --git a/index.html b/index.html
    index bf0adc5a..518ec335 100644
    --- a/index.html
    +++ b/index.html
    @@ -15,10 +15,16 @@
         https://api.apis.guru/v2/specs/bitbucket.org/2.0/swagger.json
         https://petstore.swagger.io/v2/swagger.json
         https://assets.zuora.com/zuora-documentation/swagger.yaml <<< Large spec with lot of markdown
    -    ./examples/specs/petstore_anyof.yaml <<< contains complex one-of with inline primitives and recursive objects
    -    ./examples/specs/oneof1.yaml  <<< nested oneof
    +    ./specs/petstore_anyof.yaml <<< contains complex one-of with inline primitives and recursive objects
    +    ./specs/oneof1.yaml  <<< nested oneof
       -->
    -   
    +   
     
       
    -        
    -
    ${this.path.method}
    -
    - ${this.path.path} -
    - ${this.path.deprecated - ? html` - - deprecated - ` - : '' - } -
    -
    ${unsafeHTML(marked(this.path.summary || ''))}
    -
    - - - ${this.path.expanded - ? html` -
    - ${this.path.summary || this.path.description - ? html` -
    -
    ${unsafeHTML(marked(this.path.summary || ''))}
    - ${this.path.summary !== this.path.description - ? html` -
    - ${unsafeHTML(marked(this.path.description || ''))} -
    ` - : '' - } -
    ` - : '' - } -
    - - - -
    -
    ` - : '' - } - `; - } - /* eslint-enable indent */ +
    + ${this.endpointHeadTemplate()} + ${this.path.expanded ? this.endpointBodyTemplate() : ''} +
    `; + } + + endpointHeadTemplate() { + return html` +
    +
    ${this.path.method}
    +
    + ${this.path.path} +
    + ${this.path.deprecated + ? html` + + deprecated + ` + : '' + } +
    +
    ${unsafeHTML(marked(this.path.summary || ''))}
    +
    + `; + } + + endpointBodyTemplate() { + return html` +
    + ${this.path.summary || this.path.description + ? html` +
    +
    ${unsafeHTML(marked(this.path.summary || ''))}
    + ${this.path.summary !== this.path.description + ? html` +
    + ${unsafeHTML(marked(this.path.description || ''))} +
    ` + : '' + } +
    ` + : '' + } +
    + + + +
    +
    `; + } + /* eslint-enable indent */ static get styles() { return [css` diff --git a/src/components/end-points.js b/src/components/end-points.js index 78eba9c7..ff347ed0 100644 --- a/src/components/end-points.js +++ b/src/components/end-points.js @@ -1,7 +1,5 @@ import { LitElement, html } from 'lit-element'; -/* eslint-disable no-unused-vars */ -import EndPoint from '@/components/end-point'; -/* eslint-enable no-unused-vars */ +import '@/components/end-point'; export default class EndPoints extends LitElement { /* eslint-disable indent */ diff --git a/src/components/path-and-methods.js b/src/components/path-and-methods.js new file mode 100644 index 00000000..2603eb3c --- /dev/null +++ b/src/components/path-and-methods.js @@ -0,0 +1,363 @@ +import { LitElement, html, css } from 'lit-element'; +import { unsafeHTML } from 'lit-html/directives/unsafe-html'; +import marked from 'marked'; +import FontStyles from '@/styles/font-styles'; +import '@/components/api-request'; +import '@/components/api-response'; + +export default class PathAndMethods extends LitElement { + /* eslint-disable indent */ + render() { + return html` + ${FontStyles} + ${window.innerWidth >= 768 + ? html` ${this.layout === 'row' + ? html` + ` + : html` + + `}` + : '' + } + +
    + +
    + + ${this.path.activeMethod === 'no-active-method' ? '' : this.path.activeMethod.toUpperCase()} + ${this.path.path} + +
    + ${this.path.get ? html`
    GET
    ` : ''} + ${this.path.put ? html`
    PUT
    ` : ''} + ${this.path.post ? html`
    POST
    ` : ''} + ${this.path.delete ? html`
    DELETE
    ` : ''} + ${this.path.head ? html`
    HEAD
    ` : ''} + ${this.path.patch ? html`
    PATCH
    ` : ''} +
    + + ${this.pathBodyTemplate()} +
    + `; + } + + pathBodyTemplate() { + // Merge Common Parameters with This active-methods parameters + let finalParameters = []; + const commonParams = this.path.parameters && this.path.parameters.length > 0 ? this.path.parameters : null; + const pathParams = this.path[this.path.activeMethod] && this.path[this.path.activeMethod].parameters && this.path[this.path.activeMethod].parameters.length > 0 + ? this.path[this.path.activeMethod].parameters + : undefined; + + if (commonParams) { + if (pathParams && pathParams.length > 0) { + finalParameters = commonParams.filter((commonParam) => { + if (!pathParams.some((param) => (commonParam.name === param.name && commonParam.in === param.in))) { + return commonParam; + } + }).concat(pathParams); + } else { + finalParameters = commonParams.slice(0); + } + } else { + finalParameters = []; + } + + return this.path.expanded + ? html` +
    + ${this.path[this.path.activeMethod].summary || this.path[this.path.activeMethod].description + ? html` +
    +
    ${unsafeHTML(marked(this.path[this.path.activeMethod].summary || ''))}
    + ${this.path[this.path.activeMethod].summary !== this.path[this.path.activeMethod].description + ? html` +
    + ${unsafeHTML(marked(this.path[this.path.activeMethod].description || ''))} +
    ` + : '' + } +
    ` + : '' + } +
    + + + +
    +
    ` + : ''; + } + + /* eslint-enable indent */ + + static get styles() { + return [css` + .only-large-screen { + display:none; + } + + .head .path{ + display: flex; + font-family:var(--font-mono); + font-size: var(--small-font-size); + align-items: center; + overflow-wrap: break-word; + word-break: break-all; + } + + .m-endpoint.expanded{margin-bottom:16px; } + .m-endpoint > .head{ + border-width:1px 1px 1px 5px; + border-style:solid; + border-color:transparent; + border-top-color:var(--light-border-color); + display:flex; + padding:6px 16px; + align-items: center; + } + .m-endpoint > .head:hover{ + background-color:var(--light-put-color); + } + .m-endpoint > .head.expanded{ + cursor: pointer; + } + .m-endpoint > .head.get { + border-color:var(--get-color); + background-color:var(--light-get-color); + } + + .m-endpoint > .head.put { + border-color:var(--put-color); + background-color:var(--light-put-color); + } + + .m-endpoint > .head.post { + border-color:var(--post-color); + background-color:var(--light-post-color); + } + .m-endpoint > .head.delete { + border-color:var(--delete-color); + background-color:var(--light-delete-color); + } + .m-endpoint > .head.patch { + border-color:var(--patch-color); + background-color:var(--light-patch-color); + } + + + .m-endpoint .body { + flex-wrap:wrap; + padding:16px 0px 0 0px; + border-width:0px 1px 1px 5px; + border-style:solid; + box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15); + } + .m-endpoint .body.delete{ border-color:var(--delete-color); } + .m-endpoint .body.patch{ border-color:var(--patch-color); } + .m-endpoint .body.put{ border-color:var(--put-color); } + .m-endpoint .body.post{border-color:var(--post-color);} + .m-endpoint .body.get{ border-color:var(--get-color); } + + .head .deprecated{ + text-decoration: line-through red; + } + + .summary{ + padding:8px 8px; + } + .summary .title{ + font-size:calc(var(--title-font-size) + 2px); + margin-bottom: 6px; + word-break: break-all; + } + + .method{ + padding:2px 5px; + vertical-align: middle; + height: 20px; + line-height: 20px; + min-width: 48px; + border-radius: 2px; + display:inline-block; + font-size:var(--small-font-size); + text-align: center; + font-weight: bold; + text-transform:uppercase; + margin-right:5px; + cursor: pointer; + } + + .method.get{ + border: 1px solid var(--get-color); + } + .get.expanded .method.get, + .method.get:hover{ + background-color:var(--get-color); + color:#333; + } + + .method.put{ + border: 1px solid var(--put-color); + } + .put.expanded .method.put, + .method.put:hover{ + background-color:var(--put-color); + color:#333; + } + + .method.post{ + border: 1px solid var(--post-color); + } + .post.expanded .method.post, + .method.post:hover{ + background-color:var(--post-color); + color:#333; + } + + .method.delete{ + border: 1px solid var(--delete-color); + } + .delete.expanded .method.delete, + .method.delete:hover{ + background-color:var(--delete-color); + color:#333; + } + + .method.patch{ + border: 1px solid var(--patch-color); + } + .patch.expanded .method.patch, + .method.patch:hover{ + background-color:var(--patch-color); + color:#333; + } + + .method-text { margin-right:5px; } + .head.get .method-text { color:var(--get-color);} + .head.put .method-text { color:var(--put-color);} + .head.post .method-text { color:var(--post-color);} + .head.delete .method-text { color:var(--delete-color);} + .head.patch .method-text { color:var(--patch-color);} + + .req-resp-container{ + display: flex; + margin-top:16px; + align-items: stretch; + flex-wrap: wrap; + flex-direction: column; + border-top:1px solid var(--light-border-color); + } + .request, + .response{ + flex:1; + min-height:100px; + padding:16px 8px; + overflow:hidden; + } + .request{ + border-width:0 0 1px 0; + border-style:dashed; + } + .patch .request{ + border-color:var(--patch-color); + } + .put .request{ + border-color:var(--put-color); + } + .post .request{ + border-color:var(--post-color); + } + .get .request{ + border-color:var(--get-color); + } + .delete .request{ + border-color:var(--delete-color); + } + + + @media only screen and (min-width: 768px){ + .head .path{ + font-size: var(--regular-font-size); + min-width:400px; + } + .head .m-markdown-small, + .descr .m-markdown-small{ + display:block; + } + .only-large-screen{ + display:block; + } + .req-resp-container{ + flex-direction: var(--layout, row); + } + .request{ + border-width:0 1px 0 0; + padding:16px 24px; + } + .response{ + padding:16px 24px; + } + .summary{ + padding:8px 24px; + } + } + `]; + } + + constructor() { + super(); + this.accept = ''; + } + + static get properties() { + return { + apiKeyName: { type: String, attribute: 'api-key-name' }, + apiKeyValue: { type: String, attribute: 'api-key-value' }, + apiKeyLocation: { type: String, attribute: 'api-key-location' }, + selectedServer: { type: String, attribute: 'selected-server' }, + layout: { type: String }, + path: { type: Object }, + allowTry: { type: String, attribute: 'allow-try' }, + }; + } + + collapse() { + if (this.path.expanded) { + this.path.expanded = false; + this.path.activeMethod = 'no-active-method'; + } + this.requestUpdate(); + } + + expand(method, e) { + this.path.expanded = true; + this.path.activeMethod = method; + let accept = ''; + for (const respStatus in this.path.responses) { + for (const acceptContentType in (this.path.responses[respStatus].content)) { + accept = `${accept + acceptContentType}, `; + } + } + accept = accept.replace(/,\s*$/, ''); // remove trailing comma + this.accept = accept; + e.stopPropagation(); + this.requestUpdate(); + } +} +// Register the element with the browser +customElements.define('path-and-methods', PathAndMethods); diff --git a/src/components/security-schemes.js b/src/components/security-schemes.js index 59c2c72d..26d57326 100644 --- a/src/components/security-schemes.js +++ b/src/components/security-schemes.js @@ -23,8 +23,7 @@ export default class SecuritySchemes extends LitElement { word-break: break-all; } -
    AUTHENTICATION
    - +
    diff --git a/src/rapidoc.js b/src/rapidoc.js index 5499ee90..b5b9f488 100644 --- a/src/rapidoc.js +++ b/src/rapidoc.js @@ -9,11 +9,10 @@ import TableStyles from '@/styles/table-styles'; import ColorUtils from '@/utils/color-utils'; import ProcessSpec from '@/utils/spec-parser'; -/* eslint-disable no-unused-vars */ -import MLogo from '@/components/m-logo'; -import EndPoints from '@/components/end-points'; -import SecuritySchemes from '@/components/security-schemes'; -/* eslint-enable no-unused-vars */ +import '@/components/m-logo'; +import '@/components/end-points'; +import '@/components/path-and-methods'; +import '@/components/security-schemes'; export default class RapiDoc extends LitElement { /* eslint-disable indent */ @@ -131,7 +130,8 @@ export default class RapiDoc extends LitElement { display:none; } .header-title{ - font-size:calc(var(--title-font-size) + 8px); padding:0 8px; + font-size:calc(var(--title-font-size) + 8px); + padding:0 8px; } .tag{ text-transform: uppercase; @@ -198,10 +198,26 @@ export default class RapiDoc extends LitElement { ` } - ${(this.allowTry === 'false' || this.allowServerSelection === 'false' || !this.resolvedSpec) ? '' : this.apiServerListTemplate()} - ${(this.allowAuthentication === 'false' || !this.resolvedSpec || !this.resolvedSpec.securitySchemes) ? '' : this.securitySchemeTemplate()} - ${this.resolvedSpec && this.resolvedSpec.tags ? this.endpointsGroupedByTagTemplate() : ''} + ${(this.allowTry === 'false' || this.allowServerSelection === 'false' || !this.resolvedSpec) + ? '' + : this.apiServerListTemplate() + } + ${(this.allowAuthentication === 'false' || !this.resolvedSpec || !this.resolvedSpec.securitySchemes) + ? '' + : this.securitySchemeTemplate() + } + + ${(this.allowApiListStyleSelection === 'false') + ? '' + : this.apiListingStyleSelectionTemplate() + } + ${this.resolvedSpec && this.resolvedSpec.tags && this.resolvedSpec.pathGroups + ? this.apiListStyle === 'group-by-path' || !this.resolvedSpec + ? this.endpointsGroupedByPathTemplate() + : this.endpointsGroupedByTagTemplate() + : '' + } `; } @@ -216,20 +232,28 @@ export default class RapiDoc extends LitElement {
    ${this.headingText}
    - ${(this.allowSpecUrlLoad === 'false') ? '' : html` - -
    - `} - - ${(this.allowSpecFileLoad === 'false') ? '' : html` - - - `} + ${(this.allowSpecUrlLoad === 'false') + ? '' + : html` + +
    + ` + } + ${(this.allowSpecFileLoad === 'false') + ? '' + : html` + + + ` + } - ${(this.allowSearch === 'false') ? '' : html` - -
    - `} + ${(this.allowSearch === 'false') + ? '' + : html` + +
    + ` + }
    `; } @@ -269,36 +293,72 @@ export default class RapiDoc extends LitElement {
    API SERVER:
    - ${!this.resolvedSpec.servers || (this.resolvedSpec.servers.length === 0) - ? '' - : html` - ${this.resolvedSpec.servers.map((server) => html` - - ${server.url} - ${server.description ? html`- ${server.description}` : ''} -
    - `)} - `} - - ${(this.serverUrl) ? html` - - ${this.serverUrl}
    - ` : '' - } + ${!this.resolvedSpec.servers || (this.resolvedSpec.servers.length === 0) + ? '' + : html` + ${this.resolvedSpec.servers.map((server) => html` + + ${server.url} + ${server.description ? html`- ${server.description}` : ''} +
    + `)} + `} + + ${(this.serverUrl) + ? html` + + ${this.serverUrl}
    ` + : '' + }
    `; } securitySchemeTemplate() { return html` -
    +
    AUTHENTICATION
    -
    `; + `; + } + + apiListingStyleSelectionTemplate() { + return html` +
    GROUP API BY:
    +
    + + Tag + + Path +
    + `; } endpointsGroupedByTagTemplate() { @@ -317,11 +377,37 @@ export default class RapiDoc extends LitElement { .paths = "${tag.paths}" allow-try = "${this.allowTry ? this.allowTry : 'true'}" match-paths = "${this.matchPaths}" - > - `) - }`; + >`) + } + `; } + endpointsGroupedByPathTemplate() { + return html` + ${(this.allowApiListStyleSelection === 'false' || !this.resolvedSpec) + ? '' + : html`
    PATHS
    ` + } + + ${this.resolvedSpec.pathGroups.filter((pathObj) => { + if (this.matchPaths) { + return pathObj.path.includes(this.matchPaths); + } + return true; + }) + .map((pathObj) => html` + `) + }`; + } /* eslint-enable indent */ @@ -344,14 +430,14 @@ export default class RapiDoc extends LitElement { allowSpecUrlLoad: { type: String, attribute: 'allow-spec-url-load' }, allowSpecFileLoad: { type: String, attribute: 'allow-spec-file-load' }, allowSearch: { type: String, attribute: 'allow-search' }, + allowApiListStyleSelection: { type: String, attribute: 'allow-api-list-style-selection' }, layout: { type: String }, theme: { type: String }, logoUrl: { type: String, attribute: 'logo-url' }, apiKeyName: { type: String, attribute: 'api-key-name' }, apiKeyValue: { type: String, attribute: 'api-key-value' }, apiKeyLocation: { type: String, attribute: 'api-key-location' }, - groupByTags: { type: String, attribute: 'group-by-tags' }, - + apiListStyle: { type: String, attribute: 'api-list-style' }, }; } @@ -369,15 +455,14 @@ export default class RapiDoc extends LitElement { } onSepcFileChange(e) { - const me = this; this.setAttribute('spec-file', this.shadowRoot.getElementById('spec-file').value); const specFile = e.target.files[0]; const reader = new FileReader(); reader.onload = () => { try { const specObj = JSON.parse(reader.result); - me.loadSpec(specObj); - me.shadowRoot.getElementById('spec-url').value = ''; + this.loadSpec(specObj); + this.shadowRoot.getElementById('spec-url').value = ''; } catch (err) { console.log('Unable to read or parse json'); // eslint-disable-line no-console } @@ -398,6 +483,11 @@ export default class RapiDoc extends LitElement { } } + onListStyleChange(selectedValue) { + this.apiListStyle = selectedValue; + this.requestUpdate(); + } + onSecurityChange(e) { this.apiKeyName = e.detail.keyName; this.apiKeyValue = e.detail.keyValue; @@ -444,6 +534,9 @@ export default class RapiDoc extends LitElement { this.selectedServer = this.resolvedSpec.servers[0].url; } } + if (!this.apiListStyle) { + this.apiListStyle = 'group-by-tag'; + } this.requestUpdate(); window.setTimeout(() => { this.onApiServerChange(); diff --git a/src/utils/spec-parser.js b/src/utils/spec-parser.js index d39f5d70..083139fb 100644 --- a/src/utils/spec-parser.js +++ b/src/utils/spec-parser.js @@ -3,14 +3,19 @@ import JsonRefs from 'json-refs'; import converter from 'swagger2openapi'; -/* -async function groupByPath(openApiSpec) { - +function groupByPaths(openApiSpec) { + const paths = []; + for (const p in openApiSpec.paths) { + openApiSpec.paths[p].path = p; + openApiSpec.paths[p].expanded = false; + openApiSpec.paths[p].activeMethod = 'no-active-method'; + paths.push(openApiSpec.paths[p]); + } + return paths; } -*/ function groupByTags(openApiSpec) { - const methods = ['get', 'put', 'post', 'delete', 'patch', 'options', 'head']; + const methods = ['get', 'put', 'post', 'delete', 'patch', 'head']; const tags = []; // For each path find the tag and push it into the corrosponding tag @@ -163,7 +168,7 @@ export default async function ProcessSpec(specUrl) { let securitySchemes = {}; let servers = []; const tags = groupByTags(jsonParsedSpec); - + const pathGroups = groupByPaths(jsonParsedSpec); securitySchemes = (jsonParsedSpec.components ? jsonParsedSpec.components.securitySchemes : {}); if (jsonParsedSpec.servers) { jsonParsedSpec.servers.map((v) => { @@ -183,6 +188,7 @@ export default async function ProcessSpec(specUrl) { const parsedSpec = { info: jsonParsedSpec.info, tags, + pathGroups, externalDocs: jsonParsedSpec.externalDocs, securitySchemes, servers, // In swagger 2, its generated from schemes, host and basePath properties diff --git a/yarn.lock b/yarn.lock index 2220a36e..170e1fa7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1067,6 +1067,11 @@ accepts@~1.3.7: mime-types "~2.1.24" negotiator "0.6.2" +acorn-jsx@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.0.2.tgz#84b68ea44b373c4f8686023a551f61a21b7c4a4f" + integrity sha512-tiNTrP1MP0QrChmD2DdupCr6HWSFeKVw5d/dHTu4Y7rkAkRhU/Dt7dphAfIUyxtHpl/eBVip5uTNSpQJHylpAw== + acorn-walk@^6.1.1: version "6.1.1" resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-6.1.1.tgz#d363b66f5fac5f018ff9c3a1e7b6f8e310cc3913" @@ -1082,6 +1087,11 @@ acorn@^6.2.1: resolved "https://registry.yarnpkg.com/acorn/-/acorn-6.3.0.tgz#0087509119ffa4fc0a0041d1e93a417e68cb856e" integrity sha512-/czfa8BwS88b9gWQVhc8eknunSA2DoJpJyTQkhheIf5E48u1N0R4q/YxxsAeqRrmK9TQ/uYfgLDfZo91UlANIA== +acorn@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c" + integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ== + ajv-errors@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/ajv-errors/-/ajv-errors-1.0.1.tgz#f35986aceb91afadec4102fbd85014950cefa64d" @@ -1117,7 +1127,7 @@ ajv@^6.1.0, ajv@^6.5.5: json-schema-traverse "^0.4.1" uri-js "^4.2.2" -ajv@^6.10.2: +ajv@^6.10.0, ajv@^6.10.2: version "6.10.2" resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.10.2.tgz#d3cea04d6b017b2894ad69040fec8b623eb4bd52" integrity sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw== @@ -1137,6 +1147,11 @@ ansi-colors@^3.0.0: resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.3.tgz#57d35b8686e851e2cc04c403f1c00203976a1813" integrity sha512-LEHHyuhlPY3TmuUYMh2oz89lTShfvgbmzaBcxve9t/9Wuy7Dwf4yoAKcND7KFT1HAQfqZ12qtc+DUrBMeKF9nw== +ansi-escapes@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" + integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== + ansi-html@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" @@ -1268,6 +1283,11 @@ array-find-index@^1.0.1: resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E= +array-find@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-find/-/array-find-1.0.0.tgz#6c8e286d11ed768327f8e62ecee87353ca3e78b8" + integrity sha1-bI4obRHtdoMn+OYuzuhzU8o+eLg= + array-flatten@1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" @@ -1278,6 +1298,14 @@ array-flatten@^2.1.0: resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-2.1.2.tgz#24ef80a28c1a893617e2149b0c6d0d788293b099" integrity sha512-hNfzcOV8W4NdualtqBFPyVO+54DSJuZGY9qT4pRroB6S9e3iiido2ISIC5h9R2sPJ8H3FHCIiEnsv1lPXO3KtQ== +array-includes@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.0.3.tgz#184b48f62d92d7452bb31b323165c7f8bd02266d" + integrity sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.7.0" + array-map@~0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/array-map/-/array-map-0.0.0.tgz#88a2bab73d1cf7bcd5c1b118a003f66f665fa662" @@ -1343,6 +1371,11 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c= +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + async-each@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/async-each/-/async-each-1.0.1.tgz#19d386a1d9edc6e7c1c85d388aedbcc56d33602d" @@ -1840,6 +1873,11 @@ call-me-maybe@^1.0.1: resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.1.tgz#26d208ea89e37b5cbde60250a15f031c16a4d66b" integrity sha1-JtII6onje1y95gJQoV8DHBak1ms= +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + camel-case@3.0.x, camel-case@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/camel-case/-/camel-case-3.0.0.tgz#ca3c3688a4e9cf3a4cda777dc4dcbc713249cf73" @@ -1886,7 +1924,7 @@ caseless@~0.12.0: resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw= -chalk@2.4.2, chalk@^2.4.0, chalk@^2.4.2: +chalk@2.4.2, chalk@^2.1.0, chalk@^2.4.0, chalk@^2.4.2: version "2.4.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== @@ -1915,6 +1953,11 @@ chalk@^2.0.0, chalk@^2.4.1: escape-string-regexp "^1.0.5" supports-color "^5.3.0" +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + check-types@^7.3.0: version "7.4.0" resolved "https://registry.yarnpkg.com/check-types/-/check-types-7.4.0.tgz#0378ec1b9616ec71f774931a3c6516fad8c152f4" @@ -2020,6 +2063,18 @@ clean-webpack-plugin@^3.0.0: "@types/webpack" "^4.4.31" del "^4.1.1" +cli-cursor@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-2.1.0.tgz#b35dac376479facc3e94747d41d0d0f5238ffcb5" + integrity sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU= + dependencies: + restore-cursor "^2.0.0" + +cli-width@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.2.0.tgz#ff19ede8a9a5e579324147b0c11f0fbcbabed639" + integrity sha1-/xnt6Kml5XkyQUewwR8PvLq+1jk= + cliui@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" @@ -2180,6 +2235,11 @@ concat-stream@^1.5.0: readable-stream "^2.2.2" typedarray "^0.0.6" +confusing-browser-globals@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/confusing-browser-globals/-/confusing-browser-globals-1.0.9.tgz#72bc13b483c0276801681871d4898516f8f54fdd" + integrity sha512-KbS1Y0jMtyPgIxjO7ZzMAuUpAKMt1SzCL9fsrKsX6b0zJPTaT0SiSPmewwVZg9UAO83HVIlEhZF84LIjZ0lmAw== + connect-history-api-fallback@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz#8b32089359308d111115d81cad3fceab888f97bc" @@ -2202,6 +2262,11 @@ constants-browserify@^1.0.0: resolved "https://registry.yarnpkg.com/constants-browserify/-/constants-browserify-1.0.0.tgz#c20b96d8c617748aaf1c16021760cd27fcb8cb75" integrity sha1-wguW2MYXdIqvHBYCF2DNJ/y4y3U= +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + integrity sha1-/ozxhP9mcLa67wGp1IYaXL7EEgo= + content-disposition@0.5.2: version "0.5.2" resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.2.tgz#0cf68bb9ddf5f2be7961c3a85178cb85dba78cb4" @@ -2349,7 +2414,7 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4: safe-buffer "^5.0.1" sha.js "^2.4.8" -cross-spawn@6.0.5, cross-spawn@^6.0.0: +cross-spawn@6.0.5, cross-spawn@^6.0.0, cross-spawn@^6.0.5: version "6.0.5" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== @@ -2447,7 +2512,7 @@ date-now@^0.1.4: resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" integrity sha1-6vQ5/U1ISK105cx9vvIAZyueNFs= -debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3: +debug@2.6.9, debug@^2.1.2, debug@^2.2.0, debug@^2.3.3, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== @@ -2468,7 +2533,7 @@ debug@^3.1.0, debug@^3.2.5: dependencies: ms "^2.1.1" -debug@^4.1.0, debug@^4.1.1: +debug@^4.0.1, debug@^4.1.0, debug@^4.1.1: version "4.1.1" resolved "https://registry.yarnpkg.com/debug/-/debug-4.1.1.tgz#3b72260255109c6b589cee050f1d516139664791" integrity sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw== @@ -2495,6 +2560,11 @@ deep-extend@^0.6.0: resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.6.0.tgz#c4fa7c95404a17a9c3e8ca7e1537312b736330ac" integrity sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA== +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= + default-gateway@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-4.2.0.tgz#167104c7500c2115f6dd69b0a536bb8ed720552b" @@ -2503,7 +2573,7 @@ default-gateway@^4.2.0: execa "^1.0.0" ip-regex "^2.1.0" -define-properties@^1.1.2: +define-properties@^1.1.2, define-properties@^1.1.3: version "1.1.3" resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== @@ -2617,6 +2687,21 @@ dns-txt@^2.0.2: dependencies: buffer-indexof "^1.0.0" +doctrine@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + integrity sha1-N53Ocw9hZvds76TmcHoVmwLFpvo= + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + dom-converter@~0.2: version "0.2.0" resolved "https://registry.yarnpkg.com/dom-converter/-/dom-converter-0.2.0.tgz#6721a9daee2e293682955b6afe416771627bb768" @@ -2751,6 +2836,15 @@ enhanced-resolve@4.1.0, enhanced-resolve@^4.1.0: memory-fs "^0.4.0" tapable "^1.0.0" +enhanced-resolve@~0.9.0: + version "0.9.1" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-0.9.1.tgz#4d6e689b3725f86090927ccc86cd9f1635b89e2e" + integrity sha1-TW5omzcl+GCQknzMhs2fFjW4ni4= + dependencies: + graceful-fs "^4.1.2" + memory-fs "^0.2.0" + tapable "^0.1.8" + entities@~1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" @@ -2770,6 +2864,22 @@ error-ex@^1.2.0: dependencies: is-arrayish "^0.2.1" +es-abstract@^1.12.0, es-abstract@^1.7.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.14.2.tgz#7ce108fad83068c8783c3cdf62e504e084d8c497" + integrity sha512-DgoQmbpFNOofkjJtKwr87Ma5EW4Dc8fWhD0R+ndq7Oc456ivUfGOOP6oAZTTKl5/CcNMP+EN+e3/iUzgE0veZg== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.0" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-inspect "^1.6.0" + object-keys "^1.1.1" + string.prototype.trimleft "^2.0.0" + string.prototype.trimright "^2.0.0" + es-abstract@^1.5.1: version "1.12.0" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.12.0.tgz#9dbbdd27c6856f0001421ca18782d786bf8a6165" @@ -2781,7 +2891,7 @@ es-abstract@^1.5.1: is-callable "^1.1.3" is-regex "^1.0.4" -es-to-primitive@^1.1.1: +es-to-primitive@^1.1.1, es-to-primitive@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== @@ -2805,6 +2915,83 @@ escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= +eslint-config-airbnb-base@^14.0.0: + version "14.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.0.0.tgz#8a7bcb9643d13c55df4dd7444f138bf4efa61e17" + integrity sha512-2IDHobw97upExLmsebhtfoD3NAKhV4H0CJWP3Uprd/uk+cHuWYOczPVxQ8PxLFUAw7o3Th1RAU8u1DoUpr+cMA== + dependencies: + confusing-browser-globals "^1.0.7" + object.assign "^4.1.0" + object.entries "^1.1.0" + +eslint-config-airbnb@^18.0.1: + version "18.0.1" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-18.0.1.tgz#a3a74cc29b46413b6096965025381df8fb908559" + integrity sha512-hLb/ccvW4grVhvd6CT83bECacc+s4Z3/AEyWQdIT2KeTsG9dR7nx1gs7Iw4tDmGKozCNHFn4yZmRm3Tgy+XxyQ== + dependencies: + eslint-config-airbnb-base "^14.0.0" + object.assign "^4.1.0" + object.entries "^1.1.0" + +eslint-import-resolver-node@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.2.tgz#58f15fb839b8d0576ca980413476aab2472db66a" + integrity sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q== + dependencies: + debug "^2.6.9" + resolve "^1.5.0" + +eslint-import-resolver-webpack@^0.11.1: + version "0.11.1" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-webpack/-/eslint-import-resolver-webpack-0.11.1.tgz#fcf1fd57a775f51e18f442915f85dd6ba45d2f26" + integrity sha512-eK3zR7xVQR/MaoBWwGuD+CULYVuqe5QFlDukman71aI6IboCGzggDUohHNfu1ZeBnbHcUHJc0ywWoXUBNB6qdg== + dependencies: + array-find "^1.0.0" + debug "^2.6.8" + enhanced-resolve "~0.9.0" + find-root "^1.1.0" + has "^1.0.1" + interpret "^1.0.0" + lodash "^4.17.4" + node-libs-browser "^1.0.0 || ^2.0.0" + resolve "^1.10.0" + semver "^5.3.0" + +eslint-loader@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/eslint-loader/-/eslint-loader-3.0.1.tgz#03f5693d7c2dc5b710c2bbe85ca500536dc3c852" + integrity sha512-opQF7tGGf793wrpBex6WP7TzcGqJ5/vpQ9nziuznYNWSw/g4dB/5M4y8h7TJP5u6R6tBIFkJheV3MJxsVbNHNg== + dependencies: + loader-fs-cache "^1.0.2" + loader-utils "^1.2.3" + object-hash "^1.3.1" + schema-utils "^2.2.0" + +eslint-module-utils@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.4.1.tgz#7b4675875bf96b0dbf1b21977456e5bb1f5e018c" + integrity sha512-H6DOj+ejw7Tesdgbfs4jeS4YMFrT8uI8xwd1gtQqXssaR0EQ26L+2O/w6wkYFy2MymON0fTwHmXBvvfLNZVZEw== + dependencies: + debug "^2.6.8" + pkg-dir "^2.0.0" + +eslint-plugin-import@^2.18.2: + version "2.18.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.18.2.tgz#02f1180b90b077b33d447a17a2326ceb400aceb6" + integrity sha512-5ohpsHAiUBRNaBWAF08izwUGlbrJoJJ+W9/TBwsGoR1MnlgfwMIKrFeSjWbt6moabiXW9xNvtFz+97KHRfI4HQ== + dependencies: + array-includes "^3.0.3" + contains-path "^0.1.0" + debug "^2.6.9" + doctrine "1.5.0" + eslint-import-resolver-node "^0.3.2" + eslint-module-utils "^2.4.0" + has "^1.0.3" + minimatch "^3.0.4" + object.values "^1.1.0" + read-pkg-up "^2.0.0" + resolve "^1.11.0" + eslint-scope@^4.0.3: version "4.0.3" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" @@ -2813,11 +3000,90 @@ eslint-scope@^4.0.3: esrecurse "^4.1.0" estraverse "^4.1.1" +eslint-scope@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9" + integrity sha512-oYrhJW7S0bxAFDvWqzvMPRm6pcgcnWc4QnofCAqRTRfQC0JcwenzGglTtsLyIuuWFfkqDG9vz67cnttSd53djw== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-utils@^1.4.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/eslint-utils/-/eslint-utils-1.4.2.tgz#166a5180ef6ab7eb462f162fd0e6f2463d7309ab" + integrity sha512-eAZS2sEUMlIeCjBeubdj45dmBHQwPHWyBcT1VSYB7o9x9WRRqKxyUoiXlRjyAwzN7YEzHJlYg0NmzDRWx6GP4Q== + dependencies: + eslint-visitor-keys "^1.0.0" + +eslint-visitor-keys@^1.0.0, eslint-visitor-keys@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.1.0.tgz#e2a82cea84ff246ad6fb57f9bde5b46621459ec2" + integrity sha512-8y9YjtM1JBJU/A9Kc+SbaOV4y29sSWckBwMHa+FGtVj5gN/sbnKDf6xJUl+8g7FAij9LVaP8C24DUiH/f/2Z9A== + +eslint@^6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-6.4.0.tgz#5aa9227c3fbe921982b2eda94ba0d7fae858611a" + integrity sha512-WTVEzK3lSFoXUovDHEbkJqCVPEPwbhCq4trDktNI6ygs7aO41d4cDT0JFAT5MivzZeVLWlg7vHL+bgrQv/t3vA== + dependencies: + "@babel/code-frame" "^7.0.0" + ajv "^6.10.0" + chalk "^2.1.0" + cross-spawn "^6.0.5" + debug "^4.0.1" + doctrine "^3.0.0" + eslint-scope "^5.0.0" + eslint-utils "^1.4.2" + eslint-visitor-keys "^1.1.0" + espree "^6.1.1" + esquery "^1.0.1" + esutils "^2.0.2" + file-entry-cache "^5.0.1" + functional-red-black-tree "^1.0.1" + glob-parent "^5.0.0" + globals "^11.7.0" + ignore "^4.0.6" + import-fresh "^3.0.0" + imurmurhash "^0.1.4" + inquirer "^6.4.1" + is-glob "^4.0.0" + js-yaml "^3.13.1" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.3.0" + lodash "^4.17.14" + minimatch "^3.0.4" + mkdirp "^0.5.1" + natural-compare "^1.4.0" + optionator "^0.8.2" + progress "^2.0.0" + regexpp "^2.0.1" + semver "^6.1.2" + strip-ansi "^5.2.0" + strip-json-comments "^3.0.1" + table "^5.2.3" + text-table "^0.2.0" + v8-compile-cache "^2.0.3" + +espree@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-6.1.1.tgz#7f80e5f7257fc47db450022d723e356daeb1e5de" + integrity sha512-EYbr8XZUhWbYCqQRW0duU5LxzL5bETN6AjKBGy1302qqzPaCH10QbRg3Wvco79Z8x9WbiE8HYB4e75xl6qUYvQ== + dependencies: + acorn "^7.0.0" + acorn-jsx "^5.0.2" + eslint-visitor-keys "^1.1.0" + esprima@^4.0.0: version "4.0.1" resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== +esquery@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.1.tgz#406c51658b1f5991a5f9b62b1dc25b00e3e5c708" + integrity sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA== + dependencies: + estraverse "^4.0.0" + esrecurse@^4.1.0: version "4.2.1" resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.2.1.tgz#007a3b9fdbc2b3bb87e4879ea19c92fdbd3942cf" @@ -2825,6 +3091,11 @@ esrecurse@^4.1.0: dependencies: estraverse "^4.1.0" +estraverse@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + estraverse@^4.1.0, estraverse@^4.1.1: version "4.2.0" resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" @@ -3004,6 +3275,15 @@ extend@^3.0.0, extend@~3.0.2: resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== +external-editor@^3.0.3: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + extglob@^0.3.1: version "0.3.2" resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" @@ -3050,6 +3330,11 @@ fast-json-stable-stringify@^2.0.0: resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz#d5142c0caee6b1189f87d3a76111064f86c8bbf2" integrity sha1-1RQsDK7msRifh9OnYREGT4bIu/I= +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= + faye-websocket@^0.10.0: version "0.10.0" resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.10.0.tgz#4e492f8d04dfb6f89003507f6edbf2d501e7c6f4" @@ -3069,6 +3354,20 @@ figgy-pudding@^3.5.1: resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" integrity sha512-vNKxJHTEKNThjfrdJwHc7brvM6eVevuO5nTj6ez8ZQ1qbXTvGthucRF7S4vf2cr71QVnT70V34v0S1DyQsti0w== +figures@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-2.0.0.tgz#3ab1a2d2a62c8bfb431a0c94cb797a2fce27c962" + integrity sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI= + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" + integrity sha512-bCg29ictuBaKUwwArK4ouCaqDgLZcysCFLmM/Yn/FDoqndh/9vNuQfXRDvTuXKLxfD/JtZQGKFT8MGcJBK644g== + dependencies: + flat-cache "^2.0.1" + file-loader@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/file-loader/-/file-loader-4.2.0.tgz#5fb124d2369d7075d70a9a5abecd12e60a95215e" @@ -3146,6 +3445,15 @@ finalhandler@~1.1.2: statuses "~1.5.0" unpipe "~1.0.0" +find-cache-dir@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-0.1.1.tgz#c8defae57c8a52a8a784f9e31c57c742e993a0b9" + integrity sha1-yN765XyKUqinhPnjHFfHQumToLk= + dependencies: + commondir "^1.0.1" + mkdirp "^0.5.1" + pkg-dir "^1.0.0" + find-cache-dir@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-2.0.0.tgz#4c1faed59f45184530fb9d7fa123a4d04a98472d" @@ -3178,6 +3486,11 @@ find-index@^0.1.1: resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4" integrity sha1-Z101iyyjiS15Whq0cjL4tuLg3eQ= +find-root@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/find-root/-/find-root-1.1.0.tgz#abcfc8ba76f708c42a97b3d685b7e9450bfb9ce4" + integrity sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng== + find-up@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" @@ -3186,6 +3499,13 @@ find-up@^1.0.0: path-exists "^2.0.0" pinkie-promise "^2.0.0" +find-up@^2.0.0, find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha1-RdG35QbHF93UgndaK3eSCjwMV6c= + dependencies: + locate-path "^2.0.0" + find-up@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" @@ -3211,6 +3531,20 @@ findup-sync@3.0.0: micromatch "^3.0.4" resolve-dir "^1.0.1" +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + +flatted@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.1.tgz#69e57caa8f0eacbc281d2e2cb458d46fdb449e08" + integrity sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg== + flush-write-stream@^1.0.0: version "1.0.3" resolved "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.0.3.tgz#c5d586ef38af6097650b49bc41b55fabb19f35bd" @@ -3362,6 +3696,11 @@ function-bind@^1.1.1: resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== +functional-red-black-tree@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327" + integrity sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc= + gauge@~2.7.3: version "2.7.4" resolved "https://registry.yarnpkg.com/gauge/-/gauge-2.7.4.tgz#2c03405c7538c39d7eb37b317022e325fb018bf7" @@ -3440,6 +3779,13 @@ glob-parent@^3.1.0: is-glob "^3.1.0" path-dirname "^1.0.0" +glob-parent@^5.0.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2" + integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw== + dependencies: + is-glob "^4.0.1" + glob2base@^0.0.12: version "0.0.12" resolved "https://registry.yarnpkg.com/glob2base/-/glob2base-0.0.12.tgz#9d419b3e28f12e83a362164a277055922c9c0d56" @@ -3523,6 +3869,11 @@ globals@^11.1.0: resolved "https://registry.yarnpkg.com/globals/-/globals-11.11.0.tgz#dcf93757fa2de5486fbeed7118538adf789e9c2e" integrity sha512-WHq43gS+6ufNOEqlrDBxVEbb8ntfXrfAUU2ZOpCxrBdGKW3gyv8mCxAfIBD0DroPKGrJ2eSsXsLtY9MPntsyTw== +globals@^11.7.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + globby@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-6.1.0.tgz#f5a6d70e8395e21c858fb0489d64df02424d506c" @@ -3639,7 +3990,7 @@ has-values@^1.0.0: is-number "^3.0.0" kind-of "^4.0.0" -has@^1.0.1: +has@^1.0.1, has@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== @@ -3833,7 +4184,7 @@ iconv-lite@0.4.23: dependencies: safer-buffer ">= 2.1.2 < 3" -iconv-lite@0.4.24, iconv-lite@^0.4.4: +iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== @@ -3864,6 +4215,19 @@ ignore-walk@^3.0.1: dependencies: minimatch "^3.0.4" +ignore@^4.0.6: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +import-fresh@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.1.0.tgz#6d33fa1dcef6df930fae003446f33415af905118" + integrity sha512-PpuksHKGt8rXfWEr9m9EHIpgyyaltBy8+eF6GJM0QCAxMgxCfucMF3mjecK2QsJr0amJW7gTqh5/wht0z2UhEQ== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + import-local@2.0.0, import-local@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/import-local/-/import-local-2.0.0.tgz#55070be38a5993cf18ef6db7e961f5bee5c5a09d" @@ -3922,6 +4286,25 @@ ini@^1.3.4, ini@^1.3.5, ini@~1.3.0: resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927" integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw== +inquirer@^6.4.1: + version "6.5.2" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.2.tgz#ad50942375d036d327ff528c08bd5fab089928ca" + integrity sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ== + dependencies: + ansi-escapes "^3.2.0" + chalk "^2.4.2" + cli-cursor "^2.1.0" + cli-width "^2.0.0" + external-editor "^3.0.3" + figures "^2.0.0" + lodash "^4.17.12" + mute-stream "0.0.7" + run-async "^2.2.0" + rxjs "^6.4.0" + string-width "^2.1.0" + strip-ansi "^5.1.0" + through "^2.3.6" + inspectpack@^4.2.2: version "4.2.2" resolved "https://registry.yarnpkg.com/inspectpack/-/inspectpack-4.2.2.tgz#f7b6f5836def97b8d0822e974699f5ae0cb31b17" @@ -3942,7 +4325,7 @@ internal-ip@^4.3.0: default-gateway "^4.2.0" ipaddr.js "^1.9.0" -interpret@1.2.0: +interpret@1.2.0, interpret@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.2.0.tgz#d5061a6224be58e8083985f5014d844359576296" integrity sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw== @@ -4165,6 +4548,13 @@ is-glob@^4.0.0: dependencies: is-extglob "^2.1.1" +is-glob@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" + integrity sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg== + dependencies: + is-extglob "^2.1.1" + is-number@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" @@ -4220,6 +4610,11 @@ is-primitive@^2.0.0: resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" integrity sha1-IHurkWOEmcB7Kt8kCkGochADRXU= +is-promise@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.1.0.tgz#79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa" + integrity sha1-eaKp7OfwlugPNtKy87wWwf9L8/o= + is-regex@^1.0.4: version "1.0.4" resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" @@ -4306,7 +4701,7 @@ js-levenshtein@^1.1.3: resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== -js-yaml@^3.13.0: +js-yaml@^3.13.0, js-yaml@^3.13.1: version "3.13.1" resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.13.1.tgz#aff151b30bfdfa8e49e05da22e7415e9dfa37847" integrity sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw== @@ -4363,6 +4758,11 @@ json-schema@0.2.3: resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" integrity sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM= +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= + json-stringify-safe@~5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" @@ -4482,6 +4882,14 @@ leven@^2.1.0: resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" integrity sha1-wuep93IJTe6dNCAq6KzORoeHVYA= +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + integrity sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4= + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + lit-element@2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-2.2.1.tgz#79c94d8cfdc2d73b245656e37991bd1e4811d96f" @@ -4505,6 +4913,24 @@ load-json-file@^1.0.0: pinkie-promise "^2.0.0" strip-bom "^2.0.0" +load-json-file@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-2.0.0.tgz#7947e42149af80d696cbf797bcaabcfe1fe29ca8" + integrity sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg= + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + strip-bom "^3.0.0" + +loader-fs-cache@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/loader-fs-cache/-/loader-fs-cache-1.0.2.tgz#54cedf6b727e1779fd8f01205f05f6e88706f086" + integrity sha512-70IzT/0/L+M20jUlEqZhZyArTU6VKLRTYRDAYN26g4jfzpJqjipLL3/hgYpySqI9PwsVRHHFja0LfEmsx9X2Cw== + dependencies: + find-cache-dir "^0.1.1" + mkdirp "0.5.1" + loader-runner@^2.4.0: version "2.4.0" resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-2.4.0.tgz#ed47066bfe534d7e84c4c7b9998c2a75607d9357" @@ -4529,6 +4955,14 @@ loader-utils@^0.2.16: json5 "^0.5.0" object-assign "^4.0.1" +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha1-K1aLJl7slExtnA3pw9u7ygNUzY4= + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + locate-path@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-3.0.0.tgz#dbec3b3ab759758071b58fe59fc41871af21400e" @@ -4589,7 +5023,7 @@ lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.3, lodash@^4.17.5, resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== -lodash@^4.17.13, lodash@^4.17.15: +lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== @@ -4718,6 +5152,11 @@ mem@^4.0.0: mimic-fn "^1.0.0" p-is-promise "^1.1.0" +memory-fs@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.2.0.tgz#f2bb25368bc121e391c2520de92969caee0a0290" + integrity sha1-8rslNovBIeORwlIN6Slpyu4KApA= + memory-fs@^0.4.0, memory-fs@^0.4.1: version "0.4.1" resolved "https://registry.yarnpkg.com/memory-fs/-/memory-fs-0.4.1.tgz#3a9a20b8462523e447cfbc7e8bb80ed667bfc552" @@ -4913,7 +5352,7 @@ mixin-deep@^1.2.0: for-in "^1.0.2" is-extendable "^1.0.1" -mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: +mkdirp@0.5.1, mkdirp@0.5.x, "mkdirp@>=0.5 0", mkdirp@^0.5.0, mkdirp@^0.5.1, mkdirp@~0.5.1: version "0.5.1" resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" integrity sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM= @@ -4955,6 +5394,11 @@ multicast-dns@^6.0.1: dns-packet "^1.3.1" thunky "^1.0.2" +mute-stream@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" + integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= + mv@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/mv/-/mv-2.1.1.tgz#ae6ce0d6f6d5e0a4f7d893798d03c1ea9559b6a2" @@ -4996,6 +5440,11 @@ native-promise-only@^0.8.1: resolved "https://registry.yarnpkg.com/native-promise-only/-/native-promise-only-0.8.1.tgz#20a318c30cb45f71fe7adfbf7b21c99c1472ef11" integrity sha1-IKMYwwy0X3H+et+/eyHJnBRy7xE= +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc= + ncp@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/ncp/-/ncp-2.0.0.tgz#195a21d6c46e361d2fb1281ba38b91e9df7bdbb3" @@ -5072,7 +5521,7 @@ node-gyp@^3.8.0: tar "^2.0.0" which "1" -node-libs-browser@^2.2.1: +"node-libs-browser@^1.0.0 || ^2.0.0", node-libs-browser@^2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/node-libs-browser/-/node-libs-browser-2.2.1.tgz#b64f513d18338625f90346d27b0d235e631f6425" integrity sha512-h/zcD8H9kaDZ9ALUWwlBUDo6TKF8a7qBSCSEGfjTVIYeqsioSKaAX+BN7NgiMGp6iSIXZ3PxgCu8KS3b71YK5Q== @@ -5299,7 +5748,17 @@ object-copy@^0.1.0: define-property "^0.2.5" kind-of "^3.0.3" -object-keys@^1.0.11: +object-hash@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-1.3.1.tgz#fde452098a951cb145f039bb7d455449ddc126df" + integrity sha512-OSuu/pU4ENM9kmREg0BdNrUDIl1heYa4mBZacJc+vVWz4GtAwu7jO8s4AIt2aGRUTqxykpWzI3Oqnsm13tTMDA== + +object-inspect@^1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" + integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== + +object-keys@^1.0.11, object-keys@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== @@ -5326,6 +5785,16 @@ object.assign@^4.1.0: has-symbols "^1.0.0" object-keys "^1.0.11" +object.entries@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.0.tgz#2024fc6d6ba246aee38bdb0ffd5cfbcf371b7519" + integrity sha512-l+H6EQ8qzGRxbkHOd5I/aHRhHDKoQXQ8g0BYt4uSweQU1/J6dZUOyWh9a2Vky35YCKjzmgxOzta2hH6kf9HuXA== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.12.0" + function-bind "^1.1.1" + has "^1.0.3" + object.getownpropertydescriptors@^2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/object.getownpropertydescriptors/-/object.getownpropertydescriptors-2.0.3.tgz#8758c846f5b407adab0f236e0986f14b051caa16" @@ -5349,6 +5818,16 @@ object.pick@^1.3.0: dependencies: isobject "^3.0.1" +object.values@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.0.tgz#bf6810ef5da3e5325790eaaa2be213ea84624da9" + integrity sha512-8mf0nKLAoFX6VlNVdhGj31SVYpaNFtUnuoOXWyFEstsWRgU837AK+JYM0iAxwkSzGRbwn8cbFmgbyxj1j4VbXg== + dependencies: + define-properties "^1.1.3" + es-abstract "^1.12.0" + function-bind "^1.1.1" + has "^1.0.3" + obuf@^1.0.0, obuf@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" @@ -5373,6 +5852,13 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" +onetime@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" + integrity sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ= + dependencies: + mimic-fn "^1.0.0" + opener@^1.5.1: version "1.5.1" resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.1.tgz#6d2f0e77f1a0af0032aca716c2c1fbb8e7e8abed" @@ -5385,6 +5871,18 @@ opn@^5.5.0: dependencies: is-wsl "^1.1.0" +optionator@^0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + integrity sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q= + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + original@^1.0.0: version "1.0.2" resolved "https://registry.yarnpkg.com/original/-/original-1.0.2.tgz#e442a61cffe1c5fd20a65f3261c26663b303f25f" @@ -5418,7 +5916,7 @@ os-locale@^3.0.0, os-locale@^3.1.0: lcid "^2.0.0" mem "^4.0.0" -os-tmpdir@^1.0.0: +os-tmpdir@^1.0.0, os-tmpdir@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= @@ -5446,6 +5944,13 @@ p-is-promise@^1.1.0: resolved "https://registry.yarnpkg.com/p-is-promise/-/p-is-promise-1.1.0.tgz#9c9456989e9f6588017b0434d56097675c3da05e" integrity sha1-nJRWmJ6fZYgBewQ01WCXZ1w9oF4= +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + p-limit@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.1.0.tgz#1d5a0d20fb12707c758a655f6bbc4386b5930d68" @@ -5460,6 +5965,13 @@ p-limit@^2.2.0: dependencies: p-try "^2.0.0" +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha1-IKAQOyIqcMj9OcwuWAaA893l7EM= + dependencies: + p-limit "^1.1.0" + p-locate@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-3.0.0.tgz#322d69a05c0264b25997d9f40cd8a891ab0064a4" @@ -5486,6 +5998,11 @@ p-retry@^3.0.1: dependencies: retry "^0.12.0" +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M= + p-try@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.0.0.tgz#85080bb87c64688fa47996fe8f7dfbe8211760b1" @@ -5512,6 +6029,13 @@ param-case@2.1.x, param-case@^2.1.1: dependencies: no-case "^2.2.0" +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + parse-asn1@^5.0.0: version "5.1.3" resolved "https://registry.yarnpkg.com/parse-asn1/-/parse-asn1-5.1.3.tgz#1600c6cc0727365d68b97f3aa78939e735a75204" @@ -5630,6 +6154,13 @@ path-type@^1.0.0: pify "^2.0.0" pinkie-promise "^2.0.0" +path-type@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-2.0.0.tgz#f012ccb8415b7096fc2daa1054c3d72389594c73" + integrity sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM= + dependencies: + pify "^2.0.0" + pbkdf2@^3.0.3: version "3.0.17" resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.17.tgz#976c206530617b14ebb32114239f7b09336e93a6" @@ -5673,6 +6204,20 @@ pinkie@^2.0.0: resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" integrity sha1-clVrgM+g1IqXToDnckjoDtT3+HA= +pkg-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" + integrity sha1-ektQio1bstYp1EcFb/TpyTFM89Q= + dependencies: + find-up "^1.0.0" + +pkg-dir@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-2.0.0.tgz#f6d5d1109e19d63edf428e0bd57e12777615334b" + integrity sha1-9tXREJ4Z1j7fQo4L1X4Sd3YVM0s= + dependencies: + find-up "^2.1.0" + pkg-dir@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-3.0.0.tgz#2749020f239ed990881b1f71210d51eb6523bea3" @@ -5775,6 +6320,11 @@ postcss@^7.0.5, postcss@^7.0.6: source-map "^0.6.1" supports-color "^5.5.0" +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + integrity sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ= + preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" @@ -5803,6 +6353,11 @@ process@^0.11.10: resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182" integrity sha1-czIwDoQBYb2j5podHZGn1LwW8YI= +progress@^2.0.0: + version "2.0.3" + resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" + integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== + promise-inflight@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" @@ -5993,6 +6548,14 @@ read-pkg-up@^1.0.1: find-up "^1.0.0" read-pkg "^1.0.0" +read-pkg-up@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-2.0.0.tgz#6b72a8048984e0c41e79510fd5e9fa99b3b549be" + integrity sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4= + dependencies: + find-up "^2.0.0" + read-pkg "^2.0.0" + read-pkg@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" @@ -6002,6 +6565,15 @@ read-pkg@^1.0.0: normalize-package-data "^2.3.2" path-type "^1.0.0" +read-pkg@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-2.0.0.tgz#8ef1c0623c6a6db0dc6713c4bfac46332b2368f8" + integrity sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg= + dependencies: + load-json-file "^2.0.0" + normalize-package-data "^2.3.2" + path-type "^2.0.0" + "readable-stream@1 || 2", readable-stream@^2.0.0, readable-stream@^2.0.1, readable-stream@^2.0.2, readable-stream@^2.0.4, readable-stream@^2.0.5, readable-stream@^2.0.6, readable-stream@^2.1.5, readable-stream@^2.2.2, readable-stream@^2.3.0, readable-stream@^2.3.3, readable-stream@^2.3.5, readable-stream@^2.3.6, readable-stream@~2.3.6: version "2.3.6" resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.6.tgz#b11c27d88b8ff1fbe070643cf94b0c79ae1b0aaf" @@ -6110,6 +6682,11 @@ regexp-tree@^0.1.13: resolved "https://registry.yarnpkg.com/regexp-tree/-/regexp-tree-0.1.13.tgz#5b19ab9377edc68bc3679256840bb29afc158d7f" integrity sha512-hwdV/GQY5F8ReLZWO+W1SRoN5YfpOKY6852+tBFcma72DKBIcHjPRIlIvQN35bCOljuAfP2G2iB0FC/w236mUw== +regexpp@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/regexpp/-/regexpp-2.0.1.tgz#8d19d31cf632482b589049f8281f93dbcba4d07f" + integrity sha512-lv0M6+TkDVniA3aD1Eg0DVpfU/booSu7Eev3TDO/mZKHBfVjgCGTV4t4buppESEYDtkArYFOxTJWv6S5C+iaNw== + regexpu-core@^4.5.4: version "4.5.4" resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-4.5.4.tgz#080d9d02289aa87fe1667a4f5136bc98a6aebaae" @@ -6238,6 +6815,11 @@ resolve-from@^3.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" integrity sha1-six699nWiBvItuZTM17rywoYh0g= +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + resolve-url@^0.2.1: version "0.2.1" resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" @@ -6250,6 +6832,13 @@ resolve@^1.1.7: dependencies: path-parse "^1.0.6" +resolve@^1.10.0, resolve@^1.11.0, resolve@^1.5.0: + version "1.12.0" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" + integrity sha512-B/dOmuoAik5bKcD6s6nXDCjzUKnaDvdkRyAk6rsmsKLipWj4797iothd7jmmUhWTfinVMU+wc56rYKsit2Qy4w== + dependencies: + path-parse "^1.0.6" + resolve@^1.3.2: version "1.10.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.10.0.tgz#3bdaaeaf45cc07f375656dfd2e54ed0810b101ba" @@ -6257,6 +6846,14 @@ resolve@^1.3.2: dependencies: path-parse "^1.0.6" +restore-cursor@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-2.0.0.tgz#9f7ee287f82fd326d4fd162923d62129eee0dfaf" + integrity sha1-n37ih/gv0ybU/RYpI9YhKe7g368= + dependencies: + onetime "^2.0.0" + signal-exit "^3.0.2" + ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -6274,7 +6871,7 @@ rimraf@2, rimraf@^2.5.4, rimraf@^2.6.1, rimraf@^2.6.2: dependencies: glob "^7.0.5" -rimraf@^2.6.3: +rimraf@2.6.3, rimraf@^2.6.3: version "2.6.3" resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== @@ -6296,6 +6893,13 @@ ripemd160@^2.0.0, ripemd160@^2.0.1: hash-base "^3.0.0" inherits "^2.0.1" +run-async@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-2.3.0.tgz#0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0" + integrity sha1-A3GrSuC91yDUFm19/aZP96RFpsA= + dependencies: + is-promise "^2.1.0" + run-queue@^1.0.0, run-queue@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/run-queue/-/run-queue-1.0.3.tgz#e848396f057d223f24386924618e25694161ec47" @@ -6303,6 +6907,13 @@ run-queue@^1.0.0, run-queue@^1.0.3: dependencies: aproba "^1.1.1" +rxjs@^6.4.0: + version "6.5.3" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.5.3.tgz#510e26317f4db91a7eb1de77d9dd9ba0a4899a3a" + integrity sha512-wuYsAYYFdWTAnAaPoKGNhfpWwKZbJW+HgAJ+mImp+Epl7BG8oNWBCTyRM8gba9k4lk8BgWdoYm21Mo/RYhhbgA== + dependencies: + tslib "^1.9.0" + safe-buffer@5.1.2, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" @@ -6368,6 +6979,14 @@ schema-utils@^2.0.0, schema-utils@^2.0.1, schema-utils@^2.1.0: ajv "^6.1.0" ajv-keywords "^3.1.0" +schema-utils@^2.2.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.4.0.tgz#44947c4da4d798a3080ec2343249f9d8e4231fd6" + integrity sha512-VJEKOvjynJweKWFgxaikuP22zl9JwvmylH/cW1dIKZyp3DS1adBGaYPtZ6CdBSxtfP0LwQY1gNA4rIMJsnammQ== + dependencies: + ajv "^6.10.2" + ajv-keywords "^3.4.1" + scss-tokenizer@^0.2.3: version "0.2.3" resolved "https://registry.yarnpkg.com/scss-tokenizer/-/scss-tokenizer-0.2.3.tgz#8eb06db9a9723333824d3f5530641149847ce5d1" @@ -6403,7 +7022,7 @@ semver@^6.0.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.0.0.tgz#05e359ee571e5ad7ed641a6eec1e547ba52dea65" integrity sha512-0UewU+9rFapKFnlbirLi3byoOuhrSsli/z/ihNnvM24vgF+8sNBiI1LZPBSH9wJKUwaUbw+s3hToDLCXkrghrQ== -semver@^6.3.0: +semver@^6.1.2, semver@^6.3.0: version "6.3.0" resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== @@ -6615,7 +7234,7 @@ should@^13.2.1: should-type-adaptors "^1.0.1" should-util "^1.0.0" -signal-exit@^3.0.0: +signal-exit@^3.0.0, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" integrity sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0= @@ -6625,6 +7244,15 @@ slash@^2.0.0: resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== +slice-ansi@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + snapdragon-node@^2.0.1: version "2.1.1" resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" @@ -6870,7 +7498,7 @@ string-width@^1.0.1, string-width@^1.0.2: is-fullwidth-code-point "^1.0.0" strip-ansi "^3.0.0" -"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.1: +"string-width@^1.0.2 || 2", string-width@^2.0.0, string-width@^2.1.0, string-width@^2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.1.1.tgz#ab93f27a8dc13d28cac815c462143a6d9012ae9e" integrity sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw== @@ -6887,6 +7515,22 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string.prototype.trimleft@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.1.0.tgz#6cc47f0d7eb8d62b0f3701611715a3954591d634" + integrity sha512-FJ6b7EgdKxxbDxc79cOlok6Afd++TTs5szo+zJTUyow3ycrRfJVE2pq3vcN53XexvKZu/DJMDfeI/qMiZTrjTw== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + +string.prototype.trimright@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.1.0.tgz#669d164be9df9b6f7559fa8e89945b168a5a6c58" + integrity sha512-fXZTSV55dNBwv16uw+hh5jkghxSnc5oHq+5K/gXgizHwAvMetdAJlHqqoFC1FSDVPYWLkAKl2cxpUT41sV7nSg== + dependencies: + define-properties "^1.1.3" + function-bind "^1.1.1" + string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.2.0.tgz#fe86e738b19544afe70469243b2a1ee9240eae8d" @@ -6934,6 +7578,11 @@ strip-bom@^2.0.0: dependencies: is-utf8 "^0.2.0" +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + strip-eof@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf" @@ -6946,6 +7595,11 @@ strip-indent@^1.0.1: dependencies: get-stdin "^4.0.1" +strip-json-comments@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.0.1.tgz#85713975a91fb87bf1b305cca77395e40d2a64a7" + integrity sha512-VTyMAUfdm047mwKl+u79WIdrZxtFtn+nBxHeb844XBQ9uMNTuTHdx2hc5RiAJYqwTj3wc/xe5HLSdJSkJ+WfZw== + strip-json-comments@~2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" @@ -7018,6 +7672,21 @@ swagger2openapi@^5.3.1: yaml "^1.3.1" yargs "^12.0.5" +table@^5.2.3: + version "5.4.6" + resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" + integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== + dependencies: + ajv "^6.10.2" + lodash "^4.17.14" + slice-ansi "^2.1.0" + string-width "^3.0.0" + +tapable@^0.1.8: + version "0.1.10" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-0.1.10.tgz#29c35707c2b70e50d07482b5d202e8ed446dafd4" + integrity sha1-KcNXB8K3DlDQdIK10gLo7URtr9Q= + tapable@^1.0.0: version "1.1.1" resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.1.tgz#4d297923c5a72a42360de2ab52dadfaaec00018e" @@ -7087,6 +7756,11 @@ terser@^4.1.2: source-map "~0.6.1" source-map-support "~0.5.12" +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha1-f17oI66AUgfACvLfSoTsP8+lcLQ= + through2@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.5.tgz#01c1e39eb31d07cb7d03a96a70823260b23132cd" @@ -7095,6 +7769,11 @@ through2@^2.0.0: readable-stream "~2.3.6" xtend "~4.0.1" +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + thunky@^1.0.2: version "1.0.3" resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.0.3.tgz#f5df732453407b09191dae73e2a8cc73f381a826" @@ -7107,6 +7786,13 @@ timers-browserify@^2.0.4: dependencies: setimmediate "^1.0.4" +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" @@ -7209,6 +7895,13 @@ tweetnacl@^0.14.3, tweetnacl@~0.14.0: resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" integrity sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q= +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + integrity sha1-WITKtRLPHTVeP7eE8wgEsrUg23I= + dependencies: + prelude-ls "~1.1.2" + type-is@~1.6.16: version "1.6.16" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.16.tgz#f89ce341541c672b25ee7ae3c73dee3b2be50194" @@ -7411,6 +8104,11 @@ v8-compile-cache@2.0.3: resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.0.3.tgz#00f7494d2ae2b688cfe2899df6ed2c54bef91dbe" integrity sha512-CNmdbwQMBjwr9Gsmohvm0pbL954tJrNzf6gWL3K+QMQf00PF7ERGrEiLgjuU3mKreLC2MeGhUsNV9ybTbLgd3w== +v8-compile-cache@^2.0.3: + version "2.1.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.1.0.tgz#e14de37b31a6d194f5690d67efc4e7f6fc6ab30e" + integrity sha512-usZBT3PW+LOjM25wbqIlZwPeJV+3OSz3M1k1Ws8snlW39dZyYL9lOGC5FgPVHfk0jKmjiDV8Z0mIbVQPiwFs7g== + validate-npm-package-license@^3.0.1: version "3.0.4" resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" @@ -7630,6 +8328,11 @@ wide-align@^1.1.0: dependencies: string-width "^1.0.2 || 2" +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + integrity sha1-J1hIEIkUVqQXHI0CJkQa3pDLyus= + worker-farm@^1.7.0: version "1.7.0" resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.7.0.tgz#26a94c5391bbca926152002f69b84a4bf772e5a8" @@ -7659,6 +8362,13 @@ wrappy@1: resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + ws@^6.0.0: version "6.1.2" resolved "https://registry.yarnpkg.com/ws/-/ws-6.1.2.tgz#3cc7462e98792f0ac679424148903ded3b9c3ad8"
    Type Authentication Procedure