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

    "+e+"

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

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

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

    "+e+"

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

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

    "+le(e.message+"",!0)+"
    ";throw e}},de.Parser=ae,de.parser=ae.parse,de.Renderer=te,de.TextRenderer=ne,de.Lexer=Q,de.lexer=Q.lex,de.Tokenizer=D,de.Slugger=re,de.parse=de,de}()},function(e,t,n){e.exports=n(444)},function(e,t,n){e.exports=n(428)},function(e,t,n){e.exports=n(429)},function(e,t,n){"use strict";var r=n(16),o=n(69).f,i=n(193),a=n(12),s=n(85),c=n(37),l=n(29),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,p,f,d,h,v,m,g,y=e.target,b=e.global,x=e.stat,w=e.proto,k=b?r:x?r[y]:(r[y]||{}).prototype,S=b?a:a[y]||(a[y]={}),O=S.prototype;for(f in t)n=!i(b?f:y+(x?".":"#")+f,e.forced)&&k&&l(k,f),h=S[f],n&&(v=e.noTargetGet?(g=o(k,f))&&g.value:k[f]),d=n&&v?v:t[f],n&&typeof h==typeof d||(m=e.bind&&n?s(d,r):e.wrap&&n?u(d):w&&"function"==typeof d?s(Function.call,d):d,(e.sham||d&&d.sham||h&&h.sham)&&c(m,"sham",!0),S[f]=m,w&&(l(a,p=y+"Prototype")||c(a,p,{}),a[p][f]=d,e.real&&O&&!O[f]&&c(O,f,d)))}},function(e,t,n){var r=n(136),o=n(325),i=n(329),a=n(334),s=n(206),c=n(348),l=n(209),u=n(211),p=n(172);function f(e,t){var n=u(e);if(l){var r=l(e);t&&(r=c(r).call(r,(function(t){return s(e,t).enumerable}))),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t1){throw new o.n(t,"Each pair must have its own sequence indicator")}var s=a.items[0]||new i.e;a.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(a.commentBefore,"\n").concat(s.commentBefore):a.commentBefore),a.comment&&(s.comment=s.comment?"".concat(a.comment,"\n").concat(s.comment):a.comment),a=s}n.items[r]=a instanceof i.e?a:new i.e(a)}}return n}function c(e,t,n){var r=new i.g(e);r.tag="tag:yaml.org,2002:pairs";var a,s=Object(o.g)(t);try{for(s.s();!(a=s.n()).done;){var c=a.value,l=void 0,u=void 0;if(Array.isArray(c)){if(2!==c.length)throw new TypeError("Expected [key, value] tuple: ".concat(c));l=c[0],u=c[1]}else if(c&&c instanceof Object){var p=Object.keys(c);if(1!==p.length)throw new TypeError("Expected { key: value } tuple: ".concat(c));u=c[l=p[0]]}else l=c;var f=e.createPair(l,u,n);r.items.push(f)}}catch(e){s.e(e)}finally{s.f()}return r}var l={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s,createNode:c},u=function(e){Object(o.q)(n,e);var t=Object(o.r)(n);function n(){var e;return Object(o.j)(this,n),e=t.call(this),Object(o.l)(Object(o.w)(e),"add",i.k.prototype.add.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"delete",i.k.prototype.delete.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"get",i.k.prototype.get.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"has",i.k.prototype.has.bind(Object(o.w)(e))),Object(o.l)(Object(o.w)(e),"set",i.k.prototype.set.bind(Object(o.w)(e))),e.tag=n.tag,e}return Object(o.i)(n,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r,a=Object(o.g)(this.items);try{for(a.s();!(r=a.n()).done;){var s=r.value,c=void 0,l=void 0;if(s instanceof i.e?(c=Object(i.w)(s.key,"",t),l=Object(i.w)(s.value,c,t)):c=Object(i.w)(s,"",t),n.has(c))throw new Error("Ordered maps must not include duplicate keys");n.set(c,l)}}catch(e){a.e(e)}finally{a.f()}return n}}]),n}(i.g);Object(o.l)(u,"tag","tag:yaml.org,2002:omap");var p={identify:function(e){return e instanceof Map},nodeClass:u,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n,r=s(e,t),a=[],c=Object(o.g)(r.items);try{for(c.s();!(n=c.n()).done;){var l=n.value.key;if(l instanceof i.f){if(a.includes(l.value)){throw new o.n(t,"Ordered maps must not include duplicate keys")}a.push(l.value)}}}catch(e){c.e(e)}finally{c.f()}return Object.assign(new u,r)},createNode:function(e,t,n){var r=c(e,t,n),o=new u;return o.items=r.items,o}},f=function(e){Object(o.q)(n,e);var t=Object(o.r)(n);function n(){var e;return Object(o.j)(this,n),(e=t.call(this)).tag=n.tag,e}return Object(o.i)(n,[{key:"add",value:function(e){var t=e instanceof i.e?e:new i.e(e);Object(i.s)(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=Object(i.s)(this.items,e);return!t&&n instanceof i.e?n.key instanceof i.f?n.key.value:n.key:n}},{key:"set",value:function(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Object(o.h)(t)));var n=Object(i.s)(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new i.e(e))}},{key:"toJSON",value:function(e,t){return Object(o.s)(Object(o.t)(n.prototype),"toJSON",this).call(this,e,t,Set)}},{key:"toString",value:function(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return Object(o.s)(Object(o.t)(n.prototype),"toString",this).call(this,e,t,r);throw new Error("Set items must all have null values")}}]),n}(i.k);Object(o.l)(f,"tag","tag:yaml.org,2002:set");var d={identify:function(e){return e instanceof Set},nodeClass:f,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=Object(i.n)(e,t);if(!n.hasAllNullValues())throw new o.n(t,"Set items must all have null values");return Object.assign(new f,n)},createNode:function(e,t,n){var r,i=new f,a=Object(o.g)(t);try{for(a.s();!(r=a.n()).done;){var s=r.value;i.items.push(e.createPair(s,null,n))}}catch(e){a.e(e)}finally{a.f()}return i}},h=function(e,t){var n=t.split(":").reduce((function(e,t){return 60*e+Number(t)}),0);return"-"===e?-n:n},v=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Object(i.r)(t);var n="";t<0&&(n="-",t=Math.abs(t));var r=[t%60];return t<60?r.unshift(0):(t=Math.round((t-r[0])/60),r.unshift(t%60),t>=60&&(t=Math.round((t-r[0])/60),r.unshift(t))),n+r.map((function(e){return e<10?"0"+String(e):String(e)})).join(":").replace(/000000\d*$/,"")},m={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(e,t,n){return h(t,n.replace(/_/g,""))},stringify:v},g={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(e,t,n){return h(t,n.replace(/_/g,""))},stringify:v},y={identify:function(e){return e instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(e,t,n,r,o,i,a,s,c){s&&(s=(s+"00").substr(1,3));var l=Date.UTC(t,n-1,r,o||0,i||0,a||0,s||0);if(c&&"Z"!==c){var u=h(c[0],c.slice(1));Math.abs(u)<30&&(u*=60),l-=6e4*u}return new Date(l)},stringify:function(e){return e.value.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function b(e){var t=void 0!==r&&r.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function x(e,t){if(b(!1)){var n=void 0!==r&&r.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var w={};function k(e,t){if(!w[e]&&b(!0)){w[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");x(n+=t?", use '".concat(t,"' instead."):".","DeprecationWarning")}}}).call(this,n(32).Buffer,n(41))},function(e,t,n){var r=n(13);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){e.exports=n(562)},function(e,t,n){e.exports=n(440)},function(e,t,n){e.exports=n(572)},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){var r=n(12);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){(function(t){var n=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&").replace(/=u.reach);S+=k.value.length,k=k.next){var O=k.value;if(n.length>t.length)return;if(!(O instanceof o)){var A=1;if(g&&k!=n.tail.prev){if(w.lastIndex=S,!(C=w.exec(t)))break;var E=C.index+(m&&C[1]?C[1].length:0),j=C.index+C[0].length,_=S;for(_+=k.value.length;E>=_;)k=k.next,_+=k.value.length;if(_-=k.value.length,S=_,k.value instanceof o)continue;for(var T=k;T!==n.tail&&(_u.reach&&(u.reach=L);var N=k.prev;I&&(N=a(n,N,I),S+=I.length),s(n,N,A);var M=new o(p,v?r.tokenize(P,v):P,b,P);k=a(n,N,M),R&&a(n,k,R),A>1&&e(t,n,i,k.prev,S,{cause:p+","+d,reach:L})}}}}}}(e,l,t,l.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(l)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function a(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function s(e,t,n){for(var r=t.next,o=0;o"+i.content+""},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),o=n.language,i=n.code,a=n.immediateClose;e.postMessage(r.highlight(i,r.languages[o],o)),a&&e.close()}),!1),r):r;var c=r.util.currentScript();function l(){r.manual||r.highlightAll()}if(c&&(r.filename=c.src,c.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var u=document.readyState;"loading"===u||"interactive"===u&&c&&c.defer?document.addEventListener("DOMContentLoaded",l):window.requestAnimationFrame?window.requestAnimationFrame(l):window.setTimeout(l,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{}); /** * Prism: Lightweight, robust, elegant syntax highlighting * @@ -211,5 +211,5 @@ var dr=new WeakMap,hr=function(e){this.observers=new Map,this.obj=e},vr=function * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt - */const Pi=new WeakMap,Ii=(Ri=e=>t=>{if(!(t instanceof C))throw new Error("unsafeHTML can only be used in text bindings");const n=Pi.get(t);if(void 0!==n&&E(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),Pi.set(t,{value:e,fragment:o})},(...e)=>{const t=Ri(...e);return b.set(t,!0),t});var Ri;function Li(){var e=ba(["Requires"]);return Li=function(){return e},e}function Ni(){var e=ba(["",".  "]);return Ni=function(){return e},e}function Mi(){var e=ba(["
    "," Token in "," ","
    "]);return Mi=function(){return e},e}function Bi(){var e=ba(["Requires"]);return Bi=function(){return e},e}function Di(){var e=ba(["",".  "]);return Di=function(){return e},e}function Fi(){var e=ba(["
    "," "," in Authorization header
    "]);return Fi=function(){return e},e}function qi(){var e=ba(["Requires"]);return qi=function(){return e},e}function zi(){var e=ba(["",".  "]);return zi=function(){return e},e}function Ui(){var e=ba(["
    "," OAuth Token (",") in Authorization header
    "]);return Ui=function(){return e},e}function $i(){var e=ba(["",""]);return $i=function(){return e},e}function Hi(){var e=ba(["
    Requires all of the following
    "]);return Hi=function(){return e},e}function Wi(){var e=ba(['
    OR
    ']);return Wi=function(){return e},e}function Vi(){var e=ba(["",'
    ','
    ','
    ',"
    "]);return Vi=function(){return e},e}function Yi(){var e=ba(['
    ',"
    "]);return Yi=function(){return e},e}function Ki(){var e=ba(['',""]);return Ki=function(){return e},e}function Gi(){var e=ba(['Send Authorization in header containing the word Basic followed by a space and a base64 encoded string of username:password.
    "]);return Gi=function(){return e},e}function Ji(){var e=ba([' "]);return Ji=function(){return e},e}function Qi(){var e=ba(["Send Authorization in header containing the word Bearer followed by a space and a Token String."]);return Qi=function(){return e},e}function Xi(){var e=ba(["Send "," in "," with the given value"]);return Xi=function(){return e},e}function Zi(){var e=ba(["",'
    ',"
    "]);return Zi=function(){return e},e}function ea(){var e=ba(['
    ',"
    "]);return ea=function(){return e},e}function ta(){var e=ba(['',' ']);return ta=function(){return e},e}function na(){var e=ba(['
    '," ","
    ",""," ","",""]);return na=function(){return e},e}function ra(){var e=ba(['',"
    "]);return ra=function(){return e},e}function oa(){var e=ba(['
    No API key applied
    ']);return oa=function(){return e},e}function ia(){var e=ba(['
    ',' API key applied
    ']);return ia=function(){return e},e}function aa(){var e=ba(['
    AUTHENTICATION
    ',"
    ","
    "]);return aa=function(){return e},e}function sa(){var e=ba(['
    ']);return sa=function(){return e},e}function ca(){var e=ba(['']);return ca=function(){return e},e}function la(){var e=ba(['
    ']);return la=function(){return e},e}function ua(){var e=ba(['']);return ua=function(){return e},e}function pa(){var e=ba([' ',""]);return pa=function(){return e},e}function fa(){var e=ba(['
    "]);return fa=function(){return e},e}function da(){var e=ba(['Scopes
    ',"
    "]);return da=function(){return e},e}function ha(){var e=ba(["",'
    '," ","
    ",'
    ']);return ha=function(){return e},e}function va(){var e=ba(['
    Refresh URL ',"
    "]);return va=function(){return e},e}function ma(){var e=ba(['
    Token URL ',"
    "]);return ma=function(){return e},e}function ga(){var e=ba(['
    Auth URL ',"
    "]);return ga=function(){return e},e}function ya(){var e=ba(['
    ',"
    "," "," "," ","
    "]);return ya=function(){return e},e}function ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function xa(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function wa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){xa(i,r,o,a,s,"next",e)}function s(e){xa(i,r,o,a,s,"throw",e)}a(void 0)}))}}function ka(e,t){var n="",r=this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e);if(r){var o=t.target.closest("tr");if(r.type&&r.scheme&&"http"===r.type&&"basic"===r.scheme.toLowerCase()){var i=o.querySelector(".api-key-user").value.trim(),a=o.querySelector(".api-key-password").value.trim();i&&a&&(n="Basic ".concat(btoa("".concat(i,":").concat(a))))}else(n=o.querySelector(".api-key-input").value.trim())&&r.scheme&&"bearer"===r.scheme.toLowerCase()&&(n="Bearer ".concat(n));r.finalKeyValue=n}this.requestUpdate()}function Sa(){this.resolvedSpec.securitySchemes.forEach(e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""}),this.requestUpdate()}function Oa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Bearer",n=arguments.length>2?arguments[2]:void 0,r=this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e);r.finalKeyValue="".concat("bearer"===t.toLowerCase()?"Bearer":"mac"===t.toLowerCase()?"MAC":t," ").concat(n),this.requestUpdate()}function Aa(e,t,n,r,o,i){return Ea.apply(this,arguments)}function Ea(){return(Ea=wa((function*(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"header",s=arguments.length>7?arguments[7]:void 0,c=arguments.length>8?arguments[8]:void 0,l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:null,u=c?c.querySelector(".oauth-resp-display"):void 0,p=new URLSearchParams,f=new Headers;p.append("grant_type",o),"client_credentials"!==o&&p.append("redirect_uri",r),i&&p.append("code",i),"header"===a?f.set("Authorization","Basic ".concat(btoa("".concat(t,":").concat(n)))):(p.append("client_id",t),p.append("client_secret",n)),l&&p.append("scope",l);try{var d=yield fetch(e,{method:"POST",headers:f,body:p}),h=yield d.json();if(!d.ok)return u&&(u.innerHTML=''.concat(h.error_description||h.error_description||"Unable to get access token","")),!1;if(h.token_type&&h.access_token)return Oa.call(this,s,h.token_type,h.access_token),u&&(u.innerHTML='Access Token Received'),!0}catch(e){return u&&(u.innerHTML='Failed to get access token'),!1}}))).apply(this,arguments)}function ja(e,t,n,r,o,i,a,s,c,l){return _a.apply(this,arguments)}function _a(){return(_a=wa((function*(e,t,n,r,o,i,a,s,c,l){sessionStorage.removeItem("winMessageEventActive"),t.close(),e.data.fake||(e.data||console.warn("RapiDoc: Received no data with authorization message"),e.data.error&&console.warn("RapiDoc: Error while receiving data"),e.data&&("code"===e.data.responseType?Aa.call(this,n,r,o,i,a,e.data.code,s,c,l):"token"===e.data.responseType&&Oa.call(this,c,e.data.token_type,e.data.access_token)))}))).apply(this,arguments)}function Ta(e,t,n,r,o){return Ca.apply(this,arguments)}function Ca(){return(Ca=wa((function*(e,t,n,r,o){var i,a=o.target.closest(".oauth-flow"),s=a.querySelector(".oauth-client-id")?a.querySelector(".oauth-client-id").value.trim():"",c=a.querySelector(".oauth-client-secret")?a.querySelector(".oauth-client-secret").value.trim():"",l=a.querySelector(".oauth-send-client-secret-in")?a.querySelector(".oauth-send-client-secret-in").value.trim():"header",u=[...a.querySelectorAll('input[type="checkbox"]:checked')],p="".concat(Math.random().toString(36),"random").slice(2,9),f=new URL("".concat(window.location.origin).concat(window.location.pathname.substring(0,window.location.pathname.lastIndexOf("/")),"/").concat(this.oauthReceiver)),d="",h="";if([...a.parentNode.querySelectorAll(".oauth-resp-display")].forEach(e=>{e.innerHTML=""}),"authorizationCode"===t||"implicit"===t){var v=new URL(n);"authorizationCode"===t?(d="authorization_code",h="code"):"implicit"===t&&(h="token");var m=new URLSearchParams(v.search),g=u.map(e=>e.value).join(" ");g&&m.set("scope",g),m.set("client_id",s),m.set("redirect_uri",f.toString()),m.set("response_type",h),m.set("state",p),m.set("show_dialog",!0),v.search=m.toString(),"true"===sessionStorage.getItem("winMessageEventActive")&&window.postMessage({fake:!0},this),setTimeout(()=>{(i=window.open(v.toString()))?(sessionStorage.setItem("winMessageEventActive","true"),window.addEventListener("message",t=>ja.call(this,t,i,r,s,c,f.toString(),d,l,e,a),{once:!0})):console.error("RapiDoc: Unable to open ".concat(v.toString()," in a new window"))},10)}else if("clientCredentials"===t){d="client_credentials";var y=u.map(e=>e.value).join(" ");Aa.call(this,r,s,c,f.toString(),d,"",l,e,a,y)}}))).apply(this,arguments)}function Pa(e,t,n,r,o){var i;return i="authorizationCode"===e?"Authorization Code Flow":"clientCredentials"===e?"Client Credentials Flow":"implicit"===e?"Implicit Flow":"password"===e?"Password Flow":e,z(ya(),i,o.authorizationUrl?z(ga(),o.authorizationUrl):"",o.tokenUrl?z(ma(),o.tokenUrl):"",o.refreshUrl?z(va(),o.refreshUrl):"","authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?z(ha(),o.scopes?z(da(),Object.entries(o.scopes).map((t,n)=>z(fa(),e,n,t[0],e,n,t[0],t[0]!==t[1]?" - ".concat(t[1]||""):""))):"",t,"authorizationCode"===e||"clientCredentials"===e||"password"===e?z(pa(),n,"authorizationCode"===e||"clientCredentials"===e?z(ua()):""):z(la()),"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?z(ca(),t=>{Ta.call(this,r,e,o.authorizationUrl,o.tokenUrl,t)}):"","password"===e?z(sa()):""):"")}function Ia(){var e=this.resolvedSpec.securitySchemes.filter(e=>e.finalKeyValue);return z(aa(),"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap ",e.length>0?z(ia(),e.length,()=>{Sa.call(this)}):z(oa()),this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?z(ra(),this.resolvedSpec.securitySchemes.map(e=>z(na(),e.typeDisplay,e.finalKeyValue?z(ta(),e.finalKeyValue?"Key Applied":"",()=>{e.finalKeyValue="",this.requestUpdate()}):"",e.description?z(ea(),Ii(se()(e.description||""))):"","apikey"===e.type.toLowerCase()||"http"===e.type.toLowerCase()&&"bearer"===e.scheme.toLowerCase()?z(Zi(),"apikey"===e.type.toLowerCase()?z(Xi(),e.name,e.in):z(Qi()),"cookie"!==e.in?z(Ji(),e.value,t=>{ka.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):""):"","http"===e.type.toLowerCase()&&"basic"===e.scheme.toLowerCase()?z(Gi(),e.user,e.password,t=>{ka.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):"","oauth2"===e.type.toLowerCase()?z(Ki(),Object.keys(e.flows).map(t=>Pa.call(this,t,e.clientId,e.clientSecret,e.apiKeyId,e.flows[t]))):""))):"")}function Ra(e){if(this.resolvedSpec.securitySchemes&&e){var t=[];return e.forEach(e=>{var n=[],r=[],o="";Object.keys(e).forEach(t=>{var i=this.resolvedSpec.securitySchemes.find(e=>e.apiKeyId===t);o||(o=e[t].join(", ")),i&&(r.push(i.typeDisplay),n.push(i))}),t.push({pathScopes:o,securityTypes:r.length>1?"".concat(r[0]," + ").concat(r.length-1," more"):r[0],securityDefs:n})}),z(Yi(),t.map((e,t)=>z(Vi(),0!==t?z(Wi()):"",e.securityTypes,e.securityDefs.length>1?z(Hi()):"",e.securityDefs.map((t,n)=>z($i(),"oauth2"===t.type?z(Ui(),e.securityDefs.length>1?z(zi(),n+1):z(qi()),t.apiKeyId):"http"===t.type?z(Fi(),e.securityDefs.length>1?z(Di(),n+1):z(Bi()),"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"):z(Mi(),e.securityDefs.length>1?z(Ni(),n+1):z(Li()),t.name,t.in))))))}return""}function La(){var e=Ba(['
    ',"
    "]);return La=function(){return e},e}function Na(){var e=Ba(['"]);return Na=function(){return e},e}function Ma(){var e=Ba(['
    CODE SAMPLES
    ',"
    ","
    "]);return Ma=function(){return e},e}function Ba(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Da(e){return z(Ma(),e=>{if(e.target.classList.contains("tab-btn")){var t=e.target.dataset.tab,n=[...e.currentTarget.querySelectorAll(".tab-btn")],r=[...e.currentTarget.querySelectorAll(".tab-content")];n.forEach(e=>e.classList[e.dataset.tab===t?"add":"remove"]("active")),r.forEach(e=>{e.style.display=e.dataset.tab===t?"block":"none"})}},e.map((e,t)=>z(Na(),0===t?"active":"",e.lang,t,e.label||e.lang)),e.map((e,t)=>z(La(),0===t?"block":"none",e.lang,t,t=>{Pe(e.source,t)},le.a.languages[e.lang.toLowerCase()]?Ii(le.a.highlight(e.source,le.a.languages[e.lang.toLowerCase()],e.lang.toLowerCase())):e.source)))}function Fa(){var e=$a(['
    ','
    ','
    ']);return Fa=function(){return e},e}function qa(){var e=$a(['
    ',"
    "]);return qa=function(){return e},e}function za(){var e=$a(['
    '," ","
    "]);return za=function(){return e},e}function Ua(){var e=$a(['
    CALLBACKS
    ',""]);return Ua=function(){return e},e}function $a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ha(e){return z(Ua(),Object.entries(e).map(e=>z(za(),e[0],Object.entries(e[1]).map(e=>z(qa(),Object.entries(e[1]).map(t=>{var n,r,o;return z(Fa(),t[0],t[0],e[0],t[0]||"",e[0]||"",(null===(n=t[1])||void 0===n?void 0:n.parameters)||"",(null===(r=t[1])||void 0===r?void 0:r.requestBody)||"",this.fillRequestFieldsWithExample,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,null===(o=t[1])||void 0===o?void 0:o.responses,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded)}))))))}function Wa(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".border-top {\n border-top:1px solid var(--border-color);\n}\n.border{\n border:1px solid var(--border-color);\n border-radius: var(--border-radius);\n}\n.light-border{\n border:1px solid var(--light-border-color);\n border-radius: var(--border-radius);\n}\n.pad-8-16{\n padding: 8px 16px;\n}\n.pad-top-8{\n padding-top: 8px;\n}\n.mar-top-8{\n margin-top: 8px;\n}"]);return Wa=function(){return e},e}var Va=re(Wa());function Ya(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 Ka(e){for(var t=1;t{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," and ").concat(e.exclusiveMaximum?"<":"<="," ").concat(e.maximum):void 0!==e.minimum&&void 0===e.maximum?t.constrain="".concat(e.exclusiveMinimum?">":">=").concat(e.minimum):void 0===e.minimum&&void 0!==e.maximum&&(t.constrain="".concat(e.exclusiveMaximum?"<":"<=").concat(e.maximum)),void 0!==e.multipleOf&&(t.constrain="(multiple of ".concat(e.multipleOf,")"))):"string"===e.type&&(void 0!==e.minLength&&void 0!==e.maxLength?t.constrain="(".concat(e.minLength," to ").concat(e.maxLength," chars)"):void 0!==e.minLength&&void 0===e.maxLength?t.constrain="min ".concat(e.minLength," chars"):void 0===e.minLength&&void 0!==e.maxLength&&(t.constrain="max ".concat(e.maxLength," chars")));return t.html="".concat(t.type,"~|~").concat(t.readOrWriteOnly," ").concat(t.deprecated,"~|~").concat(t.constrain,"~|~").concat(t.default,"~|~").concat(t.allowedValues,"~|~").concat(t.pattern,"~|~").concat(t.description),t}}function Qa(e){if(""===e.example)return"";if(null===e.example)return null;if(0===e.example)return 0;if(e.example)return e.example;if(0===Object.keys(e).length)return null;if(e.$ref)return e.$ref;var t=e.format||e.type||(e.enum?"enum":"");switch(t||(e.enum?t="enum":e.anyOf?t="anyOf":e.oneOf&&(t="oneOf")),t.toLowerCase()){case"int32":case"int64":case"integer":return 0;case"float":case"double":case"number":case"decimal":return.5;case"string":return e.enum?e.enum[0]:e.pattern?e.pattern:"string";case"url":case"uri":return"http://example.com";case"byte":return btoa("string");case"binary":return"binary";case"boolean":return!1;case"date":return new Date(0).toISOString().split("T")[0];case"date-time":case"dateTime":return new Date(0).toISOString();case"password":return"password";case"enum":return e.enum[0];case"uuid":return"3fa85f64-5717-4562-b3fc-2c963f66afa6";case"email":return"user@example.com";case"hostname":return"example.com";case"ipv4":return"198.51.100.42";case"ipv6":return"2001:0db8:5b96:0000:0000:426f:8e17:642a";default:return e.nullable?null:e.$ref?"data of type ".concat(e.$ref):"?"}}function Xa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=" ".repeat(t),r="";if(1===t&&"object"!=typeof e)return"\n".concat(n).concat(e.toString());for(var o in e)r=Array.isArray(e[o])||"object"==typeof e[o]?"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(Xa(e[o],t+1),"\n").concat(n,""):"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(e[o].toString()," ");return r}function Za(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={};if(e){if(e.allOf){var r={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){if(e.allOf[0].$ref)return"{ }";if(e.allOf[0].readOnly&&t.includeReadOnly){var o=e.allOf[0];return Qa(o)}return}e.allOf.map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var n=Za(e,t);Object.assign(r,n)}else if("array"===e.type||e.items){var o=[Za(e,t)];Object.assign(r,o)}else{if(!e.type)return"";var i="prop".concat(Object.keys(r).length);r[i]=Qa(e)}}),n=r}else if(e.oneOf){if(e.oneOf.length>0)for(var i in e.oneOf)n[i]=Za(e.oneOf[i],t)}else if(e.anyOf){var a=[];if("object"===e.type||e.properties)for(var s in e.properties){if(e.example){a=e;break}e.properties[s].deprecated&&!t.includeDeprecated||(e.properties[s].readOnly&&!t.includeReadOnly||e.properties[s].writeOnly&&!t.includeWriteOnly||(a[s]=Za(e.properties[s],t)))}for(var c in e.anyOf)n[c]=Za(e.anyOf[c],t),n[c]=Ka(Ka({},a),n[c])}else if("object"===e.type||e.properties)if(e.example)n=e.example;else for(var l in e.properties){var u,p;if(!e.properties[l].deprecated||t.includeDeprecated)if(!e.properties[l].readOnly||t.includeReadOnly)if(!e.properties[l].writeOnly||t.includeWriteOnly)if("array"===e.properties[l].type||e.properties[l].items)e.properties[l].example?n[l]=e.properties[l].example:(null===(u=e.properties[l])||void 0===u||null===(p=u.items)||void 0===p?void 0:p.example)?n[l]=[e.properties[l].items.example]:n[l]=[Za(e.properties[l].items,t)];else n[l]=Za(e.properties[l],t)}else{if("array"!==e.type&&!e.items)return Qa(e);var f;n=e.example?e.example:(null===(f=e.items)||void 0===f?void 0:f.example)?[e.items.example]:[Za(e.items,t)]}return n}}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";if(e){if(e.allOf){var o={};if(1===e.allOf.length&&!e.allOf[0].properties&&!e.allOf[0].items){var i=e.allOf[0];return"".concat(Ja(i).html)}e.allOf.map((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var r=(e.anyOf||e.oneOf)&&t>0?t:"",i=es(e,{},n+1,r);Object.assign(o,i)}else if("array"===e.type||e.items){var a=es(e,{},n+1);Object.assign(o,a)}else{if(!e.type)return"";var s="prop".concat(Object.keys(o).length),c=Ja(e);o[s]="".concat(c.html)}}),t=o}else if(e.anyOf||e.oneOf){if("object"===e.type||e.properties)for(var a in t["::description"]=e.description?e.description:"",t["::type"]="object",e.properties)e.required&&e.required.includes(a)?t["".concat(a,"*")]=es(e.properties[a],{},n+1):t[a]=es(e.properties[a],{},n+1);var s={},c=e.anyOf?"anyOf":"oneOf";e[c].forEach((e,t)=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var n=es(e,{});s["::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"")]=n,s["::type"]="xxx-of-option"}else if("array"===e.type||e.items){var r=[es(e,{})];s["::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"")]=r,s["::type"]="xxx-of-array"}else{var o="::OPTION~".concat(t+1).concat(e.title?"~".concat(e.title):"");s[o]="".concat(Ja(e).html)}}),t[e.anyOf?"::ANY~OF ".concat(r):"::ONE~OF ".concat(r)]=s,t["::type"]="xxx-of"}else if("object"===e.type||e.properties){for(var l in t["::description"]=e.description?e.description:"",t["::type"]="object",e.properties)e.required&&e.required.includes(l)?t["".concat(l,"*")]=es(e.properties[l],{},n+1):t[l]=es(e.properties[l],{},n+1);e.additionalProperties&&(t[""]=es(e.additionalProperties,{}))}else{if(!e.items){var u=Ja(e);return u.html?"".concat(u.html):""}t["::description"]=e.description?e.description:"",t["::type"]="array",t["::props"]=es(e.items,{},n+1),t["::title"]=e.items.title?e.items.title:""}return t}}function ts(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 c="",l="json";if(r.toLowerCase().includes("json")){if("text"===i)c="string"==typeof e[s].value?e[s].value:JSON.stringify(e[s].value,void 0,2),l="text";else if(c=e[s].value,"string"==typeof e[s].value)try{var u=e[s].value.replace(/([\w]+)(:)/g,'"$1"$2').replace(/'/g,'"');c=JSON.parse(u),l="json"}catch(t){l="text",c=e[s].value}}else c=e[s].value,l="text";a.push({exampleId:s,exampleSummary:e[s].summary||s,exampleDescription:e[s].description||"",exampleType:r,exampleValue:c,exampleFormat:l})}else if(t){var p="",f="json";if(r.toLowerCase().includes("json")){if("text"===i)p="string"==typeof t?t:JSON.stringify(t,void 0,2),f="text";else if("object"==typeof t)p=t,f="json";else if("string"==typeof t)try{p=JSON.parse(t),f="json"}catch(e){f="text",p=t}}else p=t,f="text";a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:p,exampleFormat:f})}if(0===a.length)if(n)if(n.example)a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:n.example,exampleFormat:r.toLowerCase().includes("json")&&"object"==typeof n.example?"json":"text"});else if(r.toLowerCase().includes("json")||r.toLowerCase().includes("text")||r.toLowerCase().includes("*/*")||r.toLowerCase().includes("xml")){var d="",h="",v="",m="";r.toLowerCase().includes("xml")?(d=n.xml&&n.xml.name?"<".concat(n.xml.name,">"):"",h=n.xml&&n.xml.name?""):"",v="text"):v=i;var g=Za(n,{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});if(n.anyOf||n.oneOf){var y=n.anyOf||n.oneOf;for(var b in g)m=r.toLowerCase().includes("xml")?"".concat(d).concat(Xa(g[b]),"\n").concat(h):"text"===i?JSON.stringify(g[b],null,2):g[b],a.push({exampleId:b,exampleSummary:y[b].title||"Example ".concat(+b+1),exampleDescription:y[b].description||"",exampleType:r,exampleFormat:v,exampleValue:m})}else m=r.toLowerCase().includes("xml")?"".concat(d).concat(Xa(g),"\n").concat(h):"text"===i?JSON.stringify(g,null,2):g,a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleFormat:v,exampleValue:m})}else a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:"",exampleFormat:"text"});else a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:"",exampleFormat:"text"});return a}function ns(){var e=ps(['',"",""]);return ns=function(){return e},e}function rs(){var e=ps(['"','"',""]);return rs=function(){return e},e}function os(){var e=ps(["",":"]);return os=function(){return e},e}function is(){var e=ps(['
    '," ","
    "]);return is=function(){return e},e}function as(){var e=ps(['
    ','
    ','
    ',"","
    "]);return as=function(){return e},e}function ss(){var e=ps(["",""]);return ss=function(){return e},e}function cs(){var e=ps(['
    null
    ']);return cs=function(){return e},e}function ls(){var e=ps(['
    ',"
    "]);return ls=function(){return e},e}function us(){var e=ps([":host{\n display:flex;\n }\n .json-tree {\n font-family: var(--font-mono);\n font-size: var(--font-size-small);\n display:inline-block;\n overflow:hidden;\n word-break: break-all;\n flex:1;\n line-height: calc(var(--font-size-small) + 6px);\n }\n\n .open-bracket{\n display:inline-block;\n padding: 0 20px 0 0;\n cursor:pointer;\n border: 1px solid transparent;\n border-radius:3px;\n }\n .open-bracket:hover{\n color:var(--primary-color);\n background-color:var(--hover-color);\n border: 1px solid var(--border-color);\n }\n .inside-bracket{\n padding-left:12px;\n border-left:1px dotted var(--border-color);\n }\n .open-bracket.collapsed + .inside-bracket,\n .open-bracket.collapsed + .inside-bracket + .close-bracket {\n display:none;\n }\n\n .string{color:var(--green);}\n .number{color:var(--blue);}\n .null{color:var(--red);}\n .boolean{color:var(--purple);}\n .object{color:var(--fg)}\n .toolbar {\n display:flex;\n width:100%;\n padding: 2px 0;\n color:var(--primary-color);\n font-family: var(--font-regular);\n margin-bottom:4px;\n align-items: center;\n font-size: calc(var(--font-size-small) - 1px);\n }"]);return us=function(){return e},e}function ps(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function fs(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".tr {\n display: flex;\n flex: none;\n width: 100%;\n border-bottom: 1px dotted transparent;\n}\n.td {\n display: block;\n flex: 0 0 auto;\n box-sizing: border-box;\n}\n.key {\n font-family: var(--font-mono);\n white-space: normal;\n word-break: break-all;\n}\n\n.collapsed-descr .key{\n overflow:hidden;\n}\n\n.key-descr {\n font-family:var(--font-regular);\n color:var(--light-fg);\n flex-shrink: 1;\n text-overflow: ellipsis;\n overflow: hidden;\n display: none;\n}\n.expanded-descr .key-descr{\n max-height:auto;\n overflow:hidden;\n display: none;\n}\n.collapsed-descr .tr {\n max-height:20px;\n}\n\n.tr.xxx-of{\n border-top: 1px dotted var(--primary-color);\n}\n\n.xxx-of-key {\n font-size: calc(var(--font-size-small) - 2px); \n font-weight:bold; \n background-color:var(--primary-color); \n color:var(--primary-color-invert); \n border-radius:2px;\n line-height:calc(var(--font-size-small) + 6px);\n padding:0px 5px; \n margin-bottom:1px; \n display:inline-block;\n}\n\n.xxx-of-subkey {\n color:var(--primary-color);\n background-color:var(--primary-color-invert);\n font-size: var(--font-size-small);\n}\n\n.stri, .string, .uri, .url, .byte, .bina, .date, .pass, .ipv4, .ipv4, .uuid, .emai, .host {color:var(--green);}\n.inte, .numb, .number, .int6, .int3, .floa, .doub, .deci .blue {color:var(--blue);}\n.null {color:var(--red);}\n.bool, .boolean{color:var(--purple)}\n.enum {color:var(--orange)}\n.recu {color:var(--brown)}\n.toolbar {\n display:flex;\n width:100%;\n padding: 2px 0;\n color:var(--primary-color);\n}\n.toolbar-item{\n cursor:pointer;\n padding:5px 0;\n margin:0 2px;\n}\n.toolbar-item:first-of-type { margin:0 2px 0 0;}\n\n@media only screen and (min-width: 500px) {\n .key-descr {\n display: block;\n }\n .expanded-descr .key-descr{\n display: block;\n }\n}"]);return fs=function(){return e},e}customElements.define("json-tree",class extends ie{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"},isLast:{type:Boolean}}}static get styles(){return[pe,Va,de,re(us()),je]}render(){return z(ls(),e=>{Pe(JSON.stringify(this.data,null,2),e)},this.generateTree(this.data,this.isLast))}generateTree(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null===e)return z(cs());if("object"==typeof e&&e instanceof Date==!1){var n=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?z(ss(),Array.isArray(e)?"[ ],":"{ },"):z(as(),"array"===n?"array":"object",this.toggleExpand,"array"===n?"[":"{",Object.keys(e).map((t,r,o)=>z(is(),"pure_object"===n?z(os(),t):"",this.generateTree(e[t],r===o.length-1))),"array"===n?"]":"}",t?"":",")}return"string"==typeof e||e instanceof Date?z(rs(),typeof e,e,t?"":","):z(ns(),typeof e,e,t?"":",")}toggleExpand(e){var t=e.target,n=t.nextSibling.nextSibling.innerHTML;t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array")?"[...".concat(n):"{...".concat(n)):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[":"{")}});var ds=re(fs());function hs(){var e=Ks(['',""]);return hs=function(){return e},e}function vs(){var e=Ks(['
    Pattern: ',"
    "]);return vs=function(){return e},e}function ms(){var e=Ks(['
    Allowed:   ',"
    "]);return ms=function(){return e},e}function gs(){var e=Ks(['
    Default: ',"
    "]);return gs=function(){return e},e}function ys(){var e=Ks(['
    ',"
    "]);return ys=function(){return e},e}function bs(){var e=Ks(["",":"]);return bs=function(){return e},e}function xs(){var e=Ks(['',""]);return xs=function(){return e},e}function ws(){var e=Ks(["",'*:']);return ws=function(){return e},e}function ks(){var e=Ks(['
    ',' '," ",'
    '," "," "," "," "," ","
    "]);return ks=function(){return e},e}function Ss(){var e=Ks(['
    ',"
    "]);return Ss=function(){return e},e}function Os(){var e=Ks(["",""]);return Os=function(){return e},e}function As(){var e=Ks(["",""]);return As=function(){return e},e}function Es(){var e=Ks(["",""]);return Es=function(){return e},e}function js(){var e=Ks(["",""]);return js=function(){return e},e}function _s(){var e=Ks(["",""]);return _s=function(){return e},e}function Ts(){var e=Ks(['ARRAY']);return Ts=function(){return e},e}function Cs(){var e=Ks(["",""]);return Cs=function(){return e},e}function Ps(){var e=Ks([""," ",' *']);return Ps=function(){return e},e}function Is(){var e=Ks(['','',""]);return Is=function(){return e},e}function Rs(){var e=Ks(['
    '," "," "," ",'
    ','
    ',"
    ",""]);return Rs=function(){return e},e}function Ls(){var e=Ks(['[...]']);return Ls=function(){return e},e}function Ns(){var e=Ks(['[']);return Ns=function(){return e},e}function Ms(){var e=Ks(['[[...]]']);return Ms=function(){return e},e}function Bs(){var e=Ks(['[[']);return Bs=function(){return e},e}function Ds(){var e=Ks(['{...}']);return Ds=function(){return e},e}function Fs(){var e=Ks(['{']);return Fs=function(){return e},e}function qs(){var e=Ks(['[{...}]']);return qs=function(){return e},e}function zs(){var e=Ks(['[{']);return zs=function(){return e},e}function Us(){var e=Ks(['',":{ }"]);return Us=function(){return e},e}function $s(){var e=Ks(['
    null
    ']);return $s=function(){return e},e}function Hs(){var e=Ks(['Schema not found']);return Hs=function(){return e},e}function Ws(){var e=Ks(["",""]);return Ws=function(){return e},e}function Vs(){var e=Ks(['
    ','
    ','
    '," ","
    "]);return Vs=function(){return e},e}function Ys(){var e=Ks([".tree {\n font-size:var(--font-size-small);\n text-align: left;\n line-height:calc(var(--font-size-small) + 6px);\n }\n .tree .tr:hover{\n background-color:var(--hover-color);\n }\n .collapsed-descr .tr {\n max-height:calc(var(--font-size-small) + 8px);\n }\n .collapsed-descr .m-markdown-small p {\n line-height:calc(var(--font-size-small) + 6px);\n }\n\n .tree .key {\n max-width: 300px;\n }\n\n .open-bracket{\n display:inline-block;\n padding: 0 20px 0 0;\n cursor:pointer;\n border: 1px solid transparent;\n border-radius:3px;\n }\n .open-bracket:hover {\n color:var(--primary-color);\n background-color:var(--hover-color);\n border: 1px solid var(--border-color);\n }\n .close-bracket{\n display:inline-block;\n font-family: var(--font-mono);\n }\n .tr.collapsed + .inside-bracket,\n .tr.collapsed + .inside-bracket + .close-bracket{\n display:none;\n }\n .inside-bracket.object,\n .inside-bracket.array {\n border-left: 1px dotted var(--border-color);\n }\n .inside-bracket.xxx-of {\n padding:5px 0px;\n border-style: dotted;\n border-width: 0 0 1px 0;\n border-color:var(--primary-color);\n }"]);return Ys=function(){return e},e}function Ks(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Gs(){var e=Zs([".tags{\n display:flex;\n flex-wrap: wrap;\n outline: none;\n padding:0;\n border-radius:var(--border-radius);\n border:1px solid var(--border-color);\n cursor:text;\n overflow:hidden;\n background:var(--input-bg);\n }\n .tag, .editor {\n padding:3px;\n margin:2px;\n }\n .tag{\n border:1px solid var(--border-color);\n background-color:var(--bg3);\n color:var(--fg3);\n border-radius:var(--border-radius);\n word-break: break-all;\n font-size: var(--font-size-small);\n }\n .tag:hover ~ #cursor {\n display: block;\n }\n .editor{\n flex:1;\n border:1px solid transparent;\n color:var(--fg);\n min-width:60px;\n outline: none;\n line-height: inherit;\n font-family:inherit;\n background:transparent;\n font-size: calc(var(--font-size-small) + 1px);\n }\n .editor::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n }"]);return Gs=function(){return e},e}function Js(){var e=Zs(['',""]);return Js=function(){return e},e}function Qs(){var e=Zs(["",""]);return Qs=function(){return e},e}function Xs(){var e=Zs(['
    ','
    ']);return Xs=function(){return e},e}function Zs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends ie{static get properties(){return{data:{type:Object},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false")}static get styles(){return[pe,ds,Va,re(Ys()),je]}render(){return z(Vs(),"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr",this.data?this.data["::type"]:"",()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"},"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description",this.data?Ii(se()(this.data["::description"]||"")):"",this.data?z(Ws(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],"","")):z(Hs()))}generateTree(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(delete e["::title"],!e)return z($s());if(0===Object.keys(e).length)return z(Us(),n);var i="",a="";if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))i=n.replace("::","").replace("~"," ");else if(n.startsWith("::OPTION")){var s=n.split("~");i=s[1],a=s[2]}else i=n;var c=300-12*o,l="",u="";if("object"===e["::type"]?"array"===t?(l=o0&&!(n.startsWith("::props")||n.startsWith("::ONE~")||n.startsWith("::ANY~")||n.startsWith("::OPTION~")||n.startsWith("::ARRAY~OF"))?":":"","xxx-of"===e["::type"]&&"array"===t?z(Ts()):"",l,Ii(se()(r||"")),e["::type"]||"no-type-info","xxx-of-option"===e["::type"]||"xxx-of-array"===e["::type"]?0:12,Array.isArray(e)&&e[0]?z(_s(),this.generateTree(e[0],"xxx-of-option","::ARRAY~OF","",o)):z(js(),Object.keys(e).map(t=>z(Es(),["::description","::type","::props"].includes(t)?"array"===e[t]["::type"]||"object"===e[t]["::type"]?z(As(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1)):"":z(Os(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1))))),e["::type"]&&e["::type"].includes("xxx-of")?"":z(Ss(),u));var p=e.split("~|~"),f=p[0].replace("{","").substring(0,4).toLowerCase();return z(ks(),c,i.endsWith("*")?z(ws(),i.substring(0,i.length-1)):n.startsWith("::OPTION")?z(xs(),i):z(bs(),i),f,"array"===t?"[".concat(p[0],"]"):"".concat(p[0]),p[1],"array"===t?r:"",p[2]?z(ys(),p[2]):"",p[3]?z(gs(),p[3]):"",p[4]?z(ms(),p[4]):"",p[5]?z(vs(),p[5]):"",p[6]?z(hs(),Ii(se()(p[6]))):"")}toggleObjectExpand(e){var t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.replace("expanded","collapsed"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{...}]":e.target.classList.contains("array-of-array")?"[[...]]":e.target.classList.contains("array")?"[...]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array-of-object")?"[{":e.target.classList.contains("array-of-array")?"[[":e.target.classList.contains("object")?"{":"[")}});function ec(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function tc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ec(i,r,o,a,s,"next",e)}function s(e){ec(i,r,o,a,s,"throw",e)}a(void 0)}))}}function nc(){var e=kl([' ']);return nc=function(){return e},e}function rc(){var e=kl(['
    No API key applied
    ']);return rc=function(){return e},e}function oc(){var e=kl(['
    ',"
    "]);return oc=function(){return e},e}function ic(){var e=kl(['
    ','
    Authentication
    ',"
    ",'
    ',""]);return ic=function(){return e},e}function ac(){var e=kl(['
    API Server
    ',"
    "]);return ac=function(){return e},e}function sc(){var e=kl(['
    '," ","
    "]);return sc=function(){return e},e}function cc(){var e=kl(['"]);return cc=function(){return e},e}function lc(){var e=kl(['"]);return lc=function(){return e},e}function uc(){var e=kl(["",""]);return uc=function(){return e},e}function pc(){var e=kl(['
    ',"\n              
    "]);return pc=function(){return e},e}function fc(){var e=kl(['']);return fc=function(){return e},e}function dc(){var e=kl(['
    ',"
    "]);return dc=function(){return e},e}function hc(){var e=kl(['
    Response Status: ','
    ','
    ','
    ',"
    "]);return hc=function(){return e},e}function vc(){var e=kl(['',""]);return vc=function(){return e},e}function mc(){var e=kl([' ",""]);return mc=function(){return e},e}function gc(){var e=kl(['Example: ','
    '," ",""]);return gc=function(){return e},e}function yc(){var e=kl([''," ",""]);return yc=function(){return e},e}function bc(){var e=kl(['',""]);return bc=function(){return e},e}function xc(){var e=kl(['Allowed:']);return xc=function(){return e},e}function wc(){var e=kl([""," ",""]);return wc=function(){return e},e}function kc(){var e=kl(["","
    "]);return kc=function(){return e},e}function Sc(){var e=kl(['Default: ',"
    "]);return Sc=function(){return e},e}function Oc(){var e=kl(['
    '," "," ","
    "]);return Oc=function(){return e},e}function Ac(){var e=kl(["",""]);return Ac=function(){return e},e}function Ec(){var e=kl(['']);return Ec=function(){return e},e}function jc(){var e=kl(["",""]);return jc=function(){return e},e}function _c(){var e=kl(['
    \x3c!-- This textarea(hidden) is to store the original example value, in focused mode on navbar change it is used to update the example text --\x3e
    "]);return _c=function(){return e},e}function Tc(){var e=kl(['
    ']);return Tc=function(){return e},e}function Cc(){var e=kl(['
    '," ","
    "]);return Cc=function(){return e},e}function Pc(){var e=kl(["",""]);return Pc=function(){return e},e}function Ic(){var e=kl(['']);return Ic=function(){return e},e}function Rc(){var e=kl(['
    ']);return Rc=function(){return e},e}function Lc(){var e=kl(["",""]);return Lc=function(){return e},e}function Nc(){var e=kl(['*',""]);return Nc=function(){return e},e}function Mc(){var e=kl(['
    ','
    ','
    ',"","",""]);return Mc=function(){return e},e}function Bc(){var e=kl(['',"
    "]);return Bc=function(){return e},e}function Dc(){var e=kl([""," ",""]);return Dc=function(){return e},e}function Fc(){var e=kl(['
    ',"
    "]);return Fc=function(){return e},e}function qc(){var e=kl(['
    ',"
    "]);return qc=function(){return e},e}function zc(){var e=kl(['
    '," ","
    "]);return zc=function(){return e},e}function Uc(){var e=kl(['
    ',"
    "]);return Uc=function(){return e},e}function $c(){var e=kl(['*']);return $c=function(){return e},e}function Hc(){var e=kl(['
    REQUEST BODY ',' ',' ',"
    "," ","
    "]);return Hc=function(){return e},e}function Wc(){var e=kl(["",'']);return Wc=function(){return e},e}function Vc(){var e=kl(["",'']);return Vc=function(){return e},e}function Yc(){var e=kl(['
    ']);return Yc=function(){return e},e}function Kc(){var e=kl(['
    ',"
    "]);return Kc=function(){return e},e}function Gc(){var e=kl(['
    ',"
    "]);return Gc=function(){return e},e}function Jc(){var e=kl(['
    '," ",'\x3c!-- this textarea is for user to edit the example --\x3e \x3c!-- This textarea(hidden) is to store the original example value, this will remain unchanged when users switches from one example to another, its is used to populate the editable textarea --\x3e
    "]);return Jc=function(){return e},e}function Qc(){var e=kl(['"]);return Qc=function(){return e},e}function Xc(){var e=kl(['"]);return Xc=function(){return e},e}function Zc(){var e=kl(["",'
    '," ","
    "]);return Zc=function(){return e},e}function el(){var e=kl(['"]);return el=function(){return e},e}function tl(){var e=kl(['"]);return tl=function(){return e},e}function nl(){var e=kl(["◇"]);return nl=function(){return e},e}function rl(){var e=kl([""," ",' '," ",""]);return rl=function(){return e},e}function ol(){var e=kl(['Example: ',""]);return ol=function(){return e},e}function il(){var e=kl(['']);return il=function(){return e},e}function al(){var e=kl(['',""]);return al=function(){return e},e}function sl(){var e=kl(['Allowed:']);return sl=function(){return e},e}function cl(){var e=kl([""," ",""]);return cl=function(){return e},e}function ll(){var e=kl(["","
    "]);return ll=function(){return e},e}function ul(){var e=kl(['Default: ',"
    "]);return ul=function(){return e},e}function pl(){var e=kl(['
    '," "," ","
    "]);return pl=function(){return e},e}function fl(){var e=kl(['']);return fl=function(){return e},e}function dl(){var e=kl(['"]);return dl=function(){return e},e}function hl(){var e=kl(['']);return hl=function(){return e},e}function vl(){var e=kl(['',""]);return vl=function(){return e},e}function ml(){var e=kl(['*']);return ml=function(){return e},e}function gl(){var e=kl(['
    ',"",'
    ',"
    ",'',"",'',"\x3c!-- Print single Example if provided --\x3e ",""]);return gl=function(){return e},e}function yl(){var e=kl(['
    ','
    ',"
    "]);return yl=function(){return e},e}function bl(){var e=kl(["",""]);return bl=function(){return e},e}function xl(){var e=kl(['
    ',"
    "," "," "," "," "," ","
    "]);return xl=function(){return e},e}function wl(){var e=kl([".read-mode{\n margin-top:24px;\n }\n .param-name,\n .param-type {\n margin: 1px 0;\n text-align: right;\n line-height: var(--font-size-small);\n }\n .param-name{\n color: var(--fg); \n font-family: var(--font-mono);\n }\n .param-type{\n color: var(--light-fg); \n font-family: var(--font-regular);\n }\n .param-constraint{\n min-width:100px;\n }\n .param-constraint:empty{\n display:none;\n }\n .top-gap{margin-top:24px;}\n\n .textarea {\n min-height:220px; \n padding:5px;\n resize:vertical;\n }\n .example:first-child {\n margin-top: -9px;\n }\n\n .response-message{\n font-weight:bold;\n text-overflow: ellipsis;\n }\n .response-message.error {\n color:var(--red);\n }\n .response-message.success {\n color:var(--blue);\n }\n\n .file-input-container {\n align-items:flex-end;\n }\n .file-input-container .input-set:first-child .file-input-remove-btn{\n visibility:hidden;\n }\n\n .file-input-remove-btn{\n font-size:16px;\n color:var(--red);\n outline: none;\n border: none;\n background:none;\n cursor:pointer;\n }\n\n .v-tab-btn {\n font-size: var(--smal-font-size);\n height:24px; \n border:none; \n background:none; \n opacity: 0.3;\n cursor: pointer;\n padding: 4px 8px;\n }\n .v-tab-btn.active {\n font-weight: bold;\n background: var(--bg);\n opacity: 1;\n }\n\n @media only screen and (min-width: 768px) {\n .textarea {\n padding:8px;\n }\n }"]);return wl=function(){return e},e}function kl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("tag-input",class extends ie{render(){return z(Xs(),Array.isArray(this.value)&&this.value.length>0?z(Qs(),this.value.map(e=>z(Js(),e))):"",this.afterPaste,this.afterKeyDown,this.placeholder)}static get properties(){return{placeholder:{type:String},value:{type:Array,attribute:"value"}}}afterPaste(e){var t=(e.clipboardData||window.clipboardData).getData("Text");console.log(t)}afterKeyDown(e){13===e.keyCode?(e.stopPropagation(),e.preventDefault(),e.target.value&&(Array.isArray(this.value)?this.value=[...this.value,e.target.value]:this.value=[e.target.value],e.target.value="")):8===e.keyCode&&0===e.target.value.length&&Array.isArray(this.value)&&this.value.length>0&&(this.value.splice(-1),this.value=[...this.value])}static get styles(){return[re(Gs())]}});function Sl(){var e=Wl(['',""]);return Sl=function(){return e},e}function Ol(){var e=Wl(['
    Pattern:   ',"
    "]);return Ol=function(){return e},e}function Al(){var e=Wl(['
    Allowed:   ',"
    "]);return Al=function(){return e},e}function El(){var e=Wl(['
    Default: ',"
    "]);return El=function(){return e},e}function jl(){var e=Wl(['
    ',"
    "]);return jl=function(){return e},e}function _l(){var e=Wl(["",""]);return _l=function(){return e},e}function Tl(){var e=Wl(['',""]);return Tl=function(){return e},e}function Cl(){var e=Wl(["",'*']);return Cl=function(){return e},e}function Pl(){var e=Wl(['
    ','
    ',' ','
    '," "," "," "," "," ","
    "]);return Pl=function(){return e},e}function Il(){var e=Wl(["",""]);return Il=function(){return e},e}function Rl(){var e=Wl(["",""]);return Rl=function(){return e},e}function Ll(){var e=Wl(['',""]);return Ll=function(){return e},e}function Nl(){var e=Wl(['','*']);return Nl=function(){return e},e}function Ml(){var e=Wl(['','',""]);return Ml=function(){return e},e}function Bl(){var e=Wl(['',""]);return Bl=function(){return e},e}function Dl(){var e=Wl(['
    '," ",'
    ','
    ',"
    "]);return Dl=function(){return e},e}function Fl(){var e=Wl(["",'
    ',"
    "]);return Fl=function(){return e},e}function ql(){var e=Wl(['',""]);return ql=function(){return e},e}function zl(){var e=Wl(['
    null
    ']);return zl=function(){return e},e}function Ul(){var e=Wl(["",""]);return Ul=function(){return e},e}function $l(){var e=Wl(['
    ','
    ',' ','
    Field
    Type
    Description
    ',"
    "]);return $l=function(){return e},e}function Hl(){var e=Wl([".table {\n font-size: var(--font-size-small);\n text-align: left;\n line-height: calc(var(--font-size-small) + 6px);\n }\n .table .tr {\n width: calc(100% - 5px);\n padding: 0 0 0 5px;\n border-bottom: 1px dotted var(--light-border-color);\n }\n .table .td {\n padding: 4px 0;\n }\n .table .key {\n width: 240px;\n }\n .table .key-type {\n white-space: normal;\n width: 70px;\n }\n .collapsed-descr .tr {\n max-height: calc(var(--font-size-small) + var(--font-size-small) + 4px);\n }\n\n .obj-toggle {\n padding: 0 2px;\n border-radius:2px;\n border: 1px solid transparent;\n display: inline-block;\n margin-left: -16px;\n color:var(--primary-color);\n cursor:pointer;\n font-size: calc(var(--font-size-small) + 4px);\n font-family: var(--font-mono);\n background-clip: border-box;\n }\n .obj-toggle:hover {\n border-color: var(--primary-color);\n }\n .tr.expanded + .object-body {\n display:block;\n }\n .tr.collapsed + .object-body {\n display:none;\n }"]);return Hl=function(){return e},e}function Wl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends ie{constructor(){super(),this.responseMessage="",this.responseStatus="success",this.responseHeaders="",this.responseText="",this.responseUrl="",this.curlSyntax="",this.activeResponseTab="response",this.selectedRequestBodyType="",this.selectedRequestBodyExample=""}static get properties(){return{serverUrl:{type:String,attribute:"server-url"},servers:{type:Array},method:{type:String},path:{type:String},parameters:{type:Array},request_body:{type:Object},api_keys:{type:Array},parser:{type:Object},accept:{type:String},callback:{type:String},responseMessage:{type:String,attribute:!1},responseText:{type:String,attribute:!1},responseHeaders:{type:String,attribute:!1},responseStatus:{type:String,attribute:!1},responseUrl:{type:String,attribute:!1},fillRequestFieldsWithExample:{type:String,attribute:"fill-request-fields-with-example"},allowTry:{type:String,attribute:"allow-try"},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},activeResponseTab:{type:String},selectedRequestBodyType:{type:String,attribute:"selected-request-body-type"},selectedRequestBodyExample:{type:String,attribute:"selected-request-body-example"}}}static get styles(){return[ge,de,pe,ve,Va,Se,we,re(wl()),je]}render(){return z(xl(),"read focused".includes(this.renderStyle)||"true"===this.callback?"read-mode":"view-mode","true"===this.callback?"tiny-title":"req-res-title","true"===this.callback?"CALLBACK REQUEST":"REQUEST",this.inputParametersTemplate("path"),this.inputParametersTemplate("query"),this.requestBodyTemplate(),this.inputParametersTemplate("header"),this.inputParametersTemplate("cookie"),"false"===this.allowTry?"":z(bl(),this.apiCallTemplate()))}updated(e){"focused"===this.renderStyle&&(1===e.size&&e.has("activeSchemaTab")||[...this.shadowRoot.querySelectorAll('textarea[data-ptype="form-data"]')].forEach(e=>{var t=this.shadowRoot.querySelector("textarea[data-pname='hidden-".concat(e.dataset.pname,"']"));t&&(e.value=t.value)}))}inputParametersTemplate(e){var t=this,n="",r=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===r.length)return"";"path"===e?n="PATH PARAMETERS":"query"===e?n="QUERY-STRING PARAMETERS":"header"===e?n="REQUEST HEADERS":"cookie"===e&&(n="COOKIES");var o=[],i=function(n){if(!n.schema)return"continue";var r=Ja(n.schema),i="",a=[],s="form",c=!0;if("query"===e&&(n.style&&"form spaceDelimited pipeDelimited".includes(n.style)&&(s=n.style),"boolean"==typeof n.explode&&(c=n.explode)),n.example=void 0===n.example?"":Array.isArray(n.example)?n.example:"".concat(n.example),n.example)i="array"===r.type?n.example:"".concat(n.example),a=[{value:n.example,description:"".concat(n.example)}];else if(r.example)i="array"===r.type?r.example:"".concat(r.example),a=[{value:r.example,description:"".concat(r.example)}];else if(n.examples&&Object.values(n.examples).length>0)if(Array.isArray(n.examples)){var l=Object.values(n.examples)[0]||"";i="array"===r.type?[l]:l,a=Object.values(n.examples).map(e=>({value:e,description:e}))}else{var u;i=null===(u=Object.values(n.examples)[0])||void 0===u?void 0:u.value,a=Object.values(n.examples).map(e=>({value:e.value,description:e.description||e.summary||e.value}))}o.push(z(gl(),"true"===t.allowTry?"1":"2",n.required?z(ml()):"",n.name,"array"===r.type?"".concat(r.arrayType):"".concat(r.format?r.format:r.type),"true"===t.allowTry?z(vl(),"array"===r.type||"object"===r.type?"read focused".includes(t.renderStyle)?"300px":"220px":"160px","array"===r.type?z(hl(),e,n.name,Array.isArray(i)?i.join("~|~"):i,s,c,i):"object"===r.type?z(dl(),e,n.name,i,s,c,"read focused".includes(t.renderStyle)?"180px":"120px","true"===t.fillRequestFieldsWithExample?i:""):z(fl(),"password"===r.format?"password":"text",e,n.name,Array.isArray(i)?i.join("~|~"):i,"true"===t.fillRequestFieldsWithExample?i:"")):"","true"===t.allowTry?"1":"2",r.default||r.constrain||r.allowedValues?z(pl(),r.default?z(ul(),r.default):"",r.constrain?z(ll(),r.constrain):"",r.allowedValues&&r.allowedValues.split(",").map((e,o)=>z(cl(),o>0?" | ":z(sl()),z(al(),"true"===t.allowTry?"":"inactive-link","array"===r.type?r.type:"string",e.trim(),e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(n.name,'"]'));t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)},e)))):"","true"===t.allowTry?z(il()):"",Ii(se()(n.description||"")),Array.isArray(a)&&a.length>0?z(ol(),a.map((e,o)=>{var i;return z(rl(),0===o?"":z(nl()),"array"===r.type?"[":"","true"===t.allowTry?"":"inactive-link","array"===r.type?r.type:"string","array"===r.type?(null===(i=e.value)||void 0===i?void 0:i.join("~|~"))||"":e.value||"",e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(n.name,'"]'));t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)},e.description||"","array"===r.type?"] ":"")})):""))};for(var a of r)i(a);return z(yl(),n,o)}onSelectExample(e){this.selectedRequestBodyExample=e.target.value;var t=e.target;window.setTimeout(e=>{var t=e.closest(".example-panel").querySelector(".request-body-param");e.closest(".example-panel").querySelector(".request-body-param-user-input").value=t.value},0,t)}onMimeTypeChange(e){this.selectedRequestBodyType=e.target.value;var t=e.target;this.selectedRequestBodyExample="",window.setTimeout(e=>{var t=e.closest(".request-body-container").querySelector(".request-body-param");t&&(e.closest(".request-body-container").querySelector(".request-body-param-user-input").value=t.value)},0,t)}requestBodyTemplate(){if(!this.request_body)return"";if(0===Object.keys(this.request_body).length)return"";var e,t="",n="",r="",o="",i=[],a=this.request_body.content;for(var s in a)i.push({mimeType:s,schema:a[s].schema,example:a[s].example,examples:a[s].examples}),this.selectedRequestBodyType||(this.selectedRequestBodyType=s);return e=1===i.length?"":z(tl(),e=>this.onMimeTypeChange(e),i.map(e=>z(el(),e.mimeType,e.mimeType===this.selectedRequestBodyType,e.mimeType))),i.forEach(e=>{var i,a=[];if(this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text"))e.mimeType===this.selectedRequestBodyType&&(a=ts(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,"text"),this.selectedRequestBodyExample||(this.selectedRequestBodyExample=a.length>0?a[0].exampleId:""),o=z(Zc(),o,1===a.length?"":z(Xc(),e=>this.onSelectExample(e),a.map(e=>z(Qc(),e.exampleId,e.exampleId===this.selectedRequestBodyExample,e.exampleSummary.length>80?e.exampleId:e.exampleSummary?e.exampleSummary:e.exampleId))),a.filter(e=>e.exampleId===this.selectedRequestBodyExample).map(t=>z(Jc(),t.exampleId===this.selectedRequestBodyExample?"example-selected":"",t.exampleId,t.exampleSummary&&t.exampleSummary.length>80?z(Gc(),t.exampleSummary):"",t.exampleDescription?z(Kc(),Ii(se()(t.exampleDescription||""))):"",e.mimeType,t.exampleValue,t.exampleFormat,"true"===this.fillRequestFieldsWithExample?"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2):"",e.mimeType.substring(e.mimeType.indexOf("/")+1),e.mimeType,"text"===t.exampleFormat?t.exampleValue:JSON.stringify(t.exampleValue,null,2)))));else if(this.selectedRequestBodyType.includes("form-urlencoded")||this.selectedRequestBodyType.includes("form-data")){if(e.mimeType===this.selectedRequestBodyType){var s=ts(e.examples?e.examples:"",e.example?e.example:"",e.schema,e.mimeType,!1,"text");e.schema&&(n=this.formDataTemplate(e.schema,e.mimeType,s[0]?s[0].exampleValue:""))}}else RegExp("^audio/|^image/|^video/|^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(this.selectedRequestBodyType)&&e.mimeType===this.selectedRequestBodyType&&(t=z(Yc(),e.mimeType));(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text"))&&(i=es(e.schema,{}),"table"===this.schemaStyle?r=z(Vc(),r,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded):"tree"===this.schemaStyle&&(r=z(Wc(),r,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded)))}),z(Hc(),this.selectedRequestBodyType,this.request_body.required?z($c()):"",this.selectedRequestBodyType,e,this.request_body.description?z(Uc(),Ii(se()(this.request_body.description))):"",this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?z(zc(),e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)},"model"===this.activeSchemaTab?"active":"","example"===this.activeSchemaTab?"active":"",z(qc(),"model"===this.activeSchemaTab?"block":"none",r),z(Fc(),"model"===this.activeSchemaTab?"none":"block",o)):z(Dc(),t,n))}formDataTemplate(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=[];if(e.properties){var i=function(r){var i,a,s,c=e.properties[r],l=c.type,u=es(c,{}),p=Ja(c),f=ts("",c.example?c.example:"",c,"json",!1,"text");o.push(z(Mc(),c.required?z(Nc(),r):z(Lc(),r),p.type,"object"===l?"width:100%; padding:0;":"true"===n.allowTry?"width:160px;":"display:none;","object"===l?2:1,"array"===l?"binary"===(null===(i=c.items)||void 0===i?void 0:i.format)?z(Rc(),e=>n.onAddRemoveFileInput(e,r,t),r,t.includes("form-urlencode")?"form-urlencode":"form-data"):z(Ic(),t.includes("form-urlencode")?"form-urlencode":"form-data",r,Array.isArray(c.example)?c.example.join("~|~"):c.example||"",c.example||""):z(Pc(),"object"===l?z(Cc(),e=>{if(e.target.classList.contains("v-tab-btn")){var t=e.target.dataset.tab;if(t){var r=e.target.closest(".tab-panel"),o=r.querySelector('.v-tab-btn[data-tab="'.concat(t,'"]')),i=[...r.querySelectorAll('.v-tab-btn:not([data-tab="'.concat(t,'"])'))],a=r.querySelector('.tab-content[data-tab="'.concat(t,'"]')),s=[...r.querySelectorAll('.tab-content:not([data-tab="'.concat(t,'"])'))];o.classList.add("active"),a.style.display="block",i.forEach(e=>{e.classList.remove("active")}),s.forEach(e=>{e.style.display="none"})}}"button"===e.target.tagName.toLowerCase()&&(n.activeSchemaTab=e.target.dataset.tab)},"model"===n.activeSchemaTab?"active":"","example"===n.activeSchemaTab?"active":"",z(Tc(),"model"===n.activeSchemaTab?"block":"none",u,n.schemaExpandLevel,n.schemaDescriptionExpanded),z(_c(),"example"===n.activeSchemaTab?"block":"none",t.includes("form-urlencode")?"form-urlencode":"form-data",r,(null===(a=f[0])||void 0===a?void 0:a.exampleValue)||"","true"===n.fillRequestFieldsWithExample?f[0].exampleValue:"",r,t.includes("form-urlencode")?"hidden-form-urlencode":"hidden-form-data",f[0].exampleValue)):z(jc(),"true"===n.allowTry?z(Ec(),"true"===n.fillRequestFieldsWithExample&&c.example||"","binary"===c.format?"file":"password"===c.format?"password":"text",t.includes("form-urlencode")?"form-urlencode":"form-data",r,c.example||""):"")),"object"===l?"":z(Ac(),p.default||p.constrain||p.allowedValues?z(Oc(),p.default?z(Sc(),p.default):"",p.constrain?z(kc(),p.constrain):"",p.allowedValues&&p.allowedValues.split(",").map((e,t)=>z(wc(),t>0?" | ":z(xc()),z(bc(),"true"===n.allowTry?"":"inactive-link","array"===p.type?p.type:"string",e.trim(),e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(r,'"]'));t&&("array"===e.target.dataset.type?t.value=[e.target.dataset.enum]:t.value=e.target.dataset.enum)},e)))):""),"object"===l?"":z(yc(),Ii(se()(c.description||"")),p.example?z(gc(),"array"===p.type?"[ ":"","true"===n.allowTry?"":"inactive-link","array"===p.type?p.type:"string","array"===p.type?(null===(s=p.example)||void 0===s?void 0:s.join("~|~"))||"":p.example,e=>{var t=e.target.closest("table").querySelector('[data-pname="'.concat(r,'"]'));t&&("array"===e.target.dataset.exampleType?t.value=e.target.dataset.example.split("~|~"):t.value=e.target.dataset.example)},"array"===p.type?p.example.join(", "):p.example,"array"===p.type?"] ":""):"")))};for(var a in e.properties)i(a);return z(Bc(),o)}return z(mc(),t,t,r,e.description?z(vc(),Ii(se()(e.description))):"")}apiResponseTabTemplate(){var e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return z(hc(),this.responseStatus,this.responseMessage,this.clearResponseData,e=>{!1!==e.target.classList.contains("tab-btn")&&(this.activeResponseTab=e.target.dataset.tab)},"response"===this.activeResponseTab?"active":"","headers"===this.activeResponseTab?"active":"","curl"===this.activeResponseTab?"active":"",this.responseIsBlob?z(dc(),"response"===this.activeResponseTab?"flex":"none",this.downloadResponseBlob,"view"===this.responseBlobType?z(fc(),this.viewResponseBlob):""):z(pc(),"response"===this.activeResponseTab?"flex":"none",e=>{Pe(this.responseText,e)},e?z(uc(),Ii(le.a.highlight(this.responseText,le.a.languages[e],e))):"".concat(this.responseText)),"headers"===this.activeResponseTab?"flex":"none",e=>{Pe(this.responseHeaders,e)},Ii(le.a.highlight(this.responseHeaders,le.a.languages.css,"css")),"curl"===this.activeResponseTab?"flex":"none",e=>{Pe(this.curlSyntax.replace(/\\$/,""),e)},Ii(le.a.highlight(this.curlSyntax.trim().replace(/\\$/,""),le.a.languages.shell,"shell")))}apiCallTemplate(){var e="";this.servers&&this.servers.length>0&&(e=z(lc(),e=>{this.serverUrl=e.target.value},this.servers.map(e=>z(cc(),e.url,e.url,e.description))));var t=z(sc(),e,this.serverUrl?z(ac(),this.serverUrl):"");return z(ic(),t,this.api_keys.length>0?z(oc(),1===this.api_keys.length?"".concat(this.api_keys[0].typeDisplay,"' in ").concat(this.api_keys[0].in):"".concat(this.api_keys.length," API keys applied")):z(rc()),this.parameters.length>0||this.request_body?z(nc(),this.onFillRequestData,this.onClearRequestData):"",this.onTryClick,""===this.responseMessage?"":this.apiResponseTabTemplate())}onFillRequestData(e){return tc((function*(){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach(e=>{e.dataset.example&&("TAG-INPUT"===e.tagName.toUpperCase()?e.value=e.dataset.example.split("~|~"):e.value=e.dataset.example)})}))()}onClearRequestData(e){return tc((function*(){[...e.target.closest(".request-panel").querySelectorAll("input, tag-input, textarea:not(.is-hidden)")].forEach(e=>{e.value=""})}))()}onTryClick(e){var t=this;return tc((function*(){var n,r,o,i=t,a=e.target,s="",c="",l="",u=e.target.closest(".request-panel"),p=[...u.querySelectorAll("[data-ptype='path']")],f=[...u.querySelectorAll("[data-ptype='query']")],d=[...u.querySelectorAll("[data-ptype='query-object']")],h=[...u.querySelectorAll("[data-ptype='header']")],v=u.querySelector(".request-body-container");n=i.path;var m={method:t.method.toUpperCase(),headers:{}};if(p.map(e=>{n=n.replace("{".concat(e.dataset.pname,"}"),encodeURIComponent(e.value))}),f.length>0){var g=new URLSearchParams;f.forEach(e=>{if("false"===e.dataset.array)""!==e.value&&g.append(e.dataset.pname,e.value);else{var t=e.dataset.paramSerializeStyle,n=e.dataset.paramSerializeExplode,r=e.value&&Array.isArray(e.value)?e.value:[];"spaceDelimited"===t?g.append(e.dataset.pname,r.join(" ")):"pipeDelimited"===t?g.append(e.dataset.pname,r.join("|")):"true"===n?r.forEach(t=>{g.append(e.dataset.pname,t)}):g.append(e.dataset.pname,r.join(","))}}),n="".concat(n).concat(g.toString()?"?":"").concat(g.toString())}if(d.length>0){var y=new URLSearchParams;d.map(e=>{try{var t={},r=e.dataset.paramSerializeStyle,o=e.dataset.paramSerializeExplode;t=Object.assign(t,JSON.parse(e.value.replace(/\s+/g," ")));var i=function(e){"object"==typeof t[e]?Array.isArray(t[e])&&("spaceDelimited"===r?y.append(e,t[e].join(" ")):"pipeDelimited"===r?y.append(e,t[e].join("|")):"true"===o?t[e].forEach(t=>{y.append(e,t)}):y.append(e,t[e])):y.append(e,t[e])};for(var a in t)i(a);n="".concat(n).concat(y.toString()?"?":"").concat(y.toString())}catch(t){console.log("RapiDoc: unable to parse %s into object",e.value)}})}(t.api_keys.filter(e=>"query"===e.in).forEach(e=>{n="".concat(n).concat(n.includes("?")?"&":"?").concat(e.name,"=").concat(encodeURIComponent(e.finalKeyValue))}),!1===(n="".concat(t.serverUrl.replace(/\/$/,"")).concat(n)).startsWith("http"))?r=new URL(n,window.location.href).href:r=n;if(o="curl -X ".concat(t.method.toUpperCase(),' "').concat(r,'" \\\n'),t.accept&&(m.headers.Accept=t.accept,s+=' -H "Accept: '.concat(t.accept,'" \\\n')),t.api_keys.filter(e=>"header"===e.in).forEach(e=>{m.headers[e.name]=e.finalKeyValue,s+=' -H "'.concat(e.name,": ").concat(e.finalKeyValue,'" \\\n')}),h.map(e=>{e.value&&(m.headers[e.dataset.pname]=e.value,s+=' -H "'.concat(e.dataset.pname,": ").concat(e.value,'" \\\n'))}),v){var b=v.dataset.selectedRequestBodyType;if(b.includes("form-urlencoded")){var x=u.querySelector("[data-ptype='dynamic-form']");if(x){var w,k=x.value,S=new URLSearchParams,O=!0;if(k)try{w=JSON.parse(k)}catch(e){O=!1,console.warn("RapiDoc: Invalid JSON provided",e)}else O=!1;if(O){for(var A in w)S.append(A,JSON.stringify(w[A]));m.body=S,c=" -d ".concat(S.toString()," \\\n")}}else{var E=[...u.querySelectorAll("[data-ptype='form-urlencode']")],j=new URLSearchParams;E.filter(e=>"file"!==e.type).forEach(e=>{if("false"===e.dataset.array)e.value&&j.append(e.dataset.pname,e.value);else{var t=e.value&&Array.isArray(e.value)?e.value.join(","):"";j.append(e.dataset.pname,t)}}),m.body=j,c=" -d ".concat(j.toString()," \\\n")}}else if(b.includes("form-data")){var _=new FormData;[...u.querySelectorAll("[data-ptype='form-data']")].forEach(e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(_.append(e.dataset.pname,e.files[0],e.files[0].name),l+=' -F "'.concat(e.dataset.pname,"=@").concat(e.files[0].name,'" \\\n')):e.value&&(_.append(e.dataset.pname,e.value),l+=' -F "'.concat(e.dataset.pname,"=").concat(e.value,'" \\\n')):e.value&&Array.isArray(e.value)&&(e.value.forEach(t=>{l="".concat(l,' -F "').concat(e.dataset.pname,"[]=").concat(t,'" \\\n')}),_.append(e.dataset.pname,e.value.join(",")))}),m.body=_}else if(RegExp("^audio/|^image/|^video/|^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(b)){var T=u.querySelector(".request-body-param-file");T&&T.files[0]&&(m.body=T.files[0],c=" --data-binary @".concat(T.files[0].name," \\\n"))}else if(b.includes("json")||b.includes("xml")||b.includes("text")){var C=u.querySelector(".request-body-param-user-input");if(C&&C.value){m.body=C.value;try{c=" -d '".concat(JSON.stringify(JSON.parse(C.value)),"' \\\n")}catch(e){c=" -d '".concat(C.value.replace(/(\r\n|\n|\r)/gm,""),"' \\\n")}}}b.includes("form-data")||(m.headers["Content-Type"]=b),s+=' -H "Content-Type: '.concat(b,'" \\\n')}m.headers["Cache-Control"]="no-cache",s+=' -H "Cache-Control: no-cache" \\\n',i.responseUrl="",i.responseHeaders="",i.curlSyntax="",i.responseStatus="success",i.responseIsBlob=!1,i.respContentDisposition="",i.responseBlobUrl&&(URL.revokeObjectURL(i.responseBlobUrl),i.responseBlobUrl=""),i.curlSyntax="".concat(o).concat(s).concat(c).concat(l);try{a.disabled=!0;var P=yield fetch(n,m);a.disabled=!1,i.responseStatus=P.ok?"success":"error",i.responseMessage="".concat(P.statusText,":").concat(P.status),i.responseUrl=P.url,P.headers.forEach((e,t)=>{i.responseHeaders="".concat(i.responseHeaders).concat(t.trim(),": ").concat(e,"\n")});var I=P.headers.get("content-type");if(I){if(I.includes("json")?P.json().then(e=>{i.responseText=JSON.stringify(e,null,2)}):RegExp("^font/|tar$|zip$|7z$|rtf$|msword$|excel$|/pdf$|/octet-stream$").test(I)?(i.responseIsBlob=!0,i.responseBlobType="download"):RegExp("^audio|^image|^video").test(I)?(i.responseIsBlob=!0,i.responseBlobType="view"):P.text().then(e=>{i.responseText=e}),i.responseIsBlob){var R=P.headers.get("content-disposition");i.respContentDisposition=R?R.split("filename=")[1]:"filename",P.blob().then(e=>{i.responseBlobUrl=URL.createObjectURL(e)})}}else P.text().then(e=>{i.responseText=e})}catch(e){a.disabled=!1,i.responseMessage="".concat(e.message," (CORS or Network Issue)")}}))()}onAddRemoveFileInput(e,t,n){if("button"===e.target.tagName.toLowerCase())if(e.target.classList.contains("file-input-remove-btn")){e.target.closest(".input-set").remove()}else{var r=e.target.closest(".file-input-container"),o=document.createElement("div");o.setAttribute("class","input-set row");var i=document.createElement("input");i.type="file",i.style="width:200px; margin-top:2px;",i.setAttribute("data-pname",t),i.setAttribute("data-ptype",n.includes("form-urlencode")?"form-urlencode":"form-data"),i.setAttribute("data-array","false"),i.setAttribute("data-file-array","true");var a=document.createElement("button");a.setAttribute("class","file-input-remove-btn"),a.innerHTML="✕",o.appendChild(i),o.appendChild(a),r.insertBefore(o,e.target)}}downloadResponseBlob(){if(this.responseBlobUrl){var e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.download=this.respContentDisposition,e.click(),e.remove()}}viewResponseBlob(){if(this.responseBlobUrl){var e=document.createElement("a");document.body.appendChild(e),e.style="display: none",e.href=this.responseBlobUrl,e.target="_blank",e.click(),e.remove()}}clearResponseData(){this.responseUrl="",this.responseHeaders="",this.responseText="",this.responseStatus="success",this.responseMessage="",this.responseIsBlob=!1,this.responseBlobType="",this.respContentDisposition="",this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl="")}disconnectedCallback(){this.responseBlobUrl&&(URL.revokeObjectURL(this.responseBlobUrl),this.responseBlobUrl=""),super.disconnectedCallback()}});function Vl(){var e=Tu(['']);return Vl=function(){return e},e}function Yl(){var e=Tu(['']);return Yl=function(){return e},e}function Kl(){var e=Tu(["",""]);return Kl=function(){return e},e}function Gl(){var e=Tu(['
     Schema not found
    ']);return Gl=function(){return e},e}function Jl(){var e=Tu(["
    ","
    "]);return Jl=function(){return e},e}function Ql(){var e=Tu(['']);return Ql=function(){return e},e}function Xl(){var e=Tu(['
    ',"
    "]);return Xl=function(){return e},e}function Zl(){var e=Tu(['
    ',"
    "]);return Zl=function(){return e},e}function eu(){var e=Tu(['
    '," "," ","
    "]);return eu=function(){return e},e}function tu(){var e=Tu(['"]);return tu=function(){return e},e}function nu(){var e=Tu([' ",""]);return nu=function(){return e},e}function ru(){var e=Tu(['
    ',"
    "]);return ru=function(){return e},e}function ou(){var e=Tu(['']);return ou=function(){return e},e}function iu(){var e=Tu(["",""]);return iu=function(){return e},e}function au(){var e=Tu(["",""]);return au=function(){return e},e}function su(){var e=Tu(['
     No example provided 
    ']);return su=function(){return e},e}function cu(){var e=Tu(['"]);return cu=function(){return e},e}function lu(){var e=Tu(['"]);return lu=function(){return e},e}function uu(){var e=Tu(['','','
    ','
    ',""]);return uu=function(){return e},e}function pu(){var e=Tu(['
    Response Headers:
    ',"
    "]);return pu=function(){return e},e}function fu(){var e=Tu(['
    ',"
    "]);return fu=function(){return e},e}function du(){var e=Tu(['
    ',"
    "]);return du=function(){return e},e}function hu(){var e=Tu(["",""]);return hu=function(){return e},e}function vu(){var e=Tu(['',""]);return vu=function(){return e},e}function mu(){var e=Tu(['
    ',"
    ","
    "]);return mu=function(){return e},e}function gu(){var e=Tu(["",""]);return gu=function(){return e},e}function yu(){var e=Tu(['
    '," ","
    ","
    "]);return yu=function(){return e},e}function bu(){var e=Tu(["",""]);return bu=function(){return e},e}function xu(){var e=Tu(['"]);return xu=function(){return e},e}function wu(){var e=Tu(["",""]);return wu=function(){return e},e}function ku(){var e=Tu(['
    ',"
    "]);return ku=function(){return e},e}function Su(){var e=Tu(["","",""]);return Su=function(){return e},e}function Ou(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 Au(e){for(var t=1;t
    ',"
    ","
    "]);return ju=function(){return e},e}function _u(){var e=Tu([".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(--font-size-small) + 1px);\n }\n .resp-descr{\n font-size:calc(var(--font-size-small) + 1px);\n color:var(--light-fg);\n }\n .top-gap{margin-top:16px;}\n .example-panel{\n font-size:var(--font-size-small);\n margin:0;\n }\n .focused-mode,\n .read-mode {\n padding-top:24px;\n margin-top:12px;\n border-top: 1px dashed var(--border-color);\n }"]);return _u=function(){return e},e}function Tu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-table",class extends ie{static get properties(){return{schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},data:{type:Object}}}connectedCallback(){super.connectedCallback(),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true false".includes(this.schemaDescriptionExpanded)||(this.schemaDescriptionExpanded="false")}static get styles(){return[pe,ds,re(Hl()),je]}render(){return z($l(),"true"===this.schemaDescriptionExpanded?"expanded-descr":"collapsed-descr",()=>{this.schemaDescriptionExpanded="true"===this.schemaDescriptionExpanded?"false":"true"},"true"===this.schemaDescriptionExpanded?"Single line description":"Multiline description",this.data?this.data["::type"]:"",this.data?Ii(se()(this.data["::description"]||"")):"",this.data?z(Ul(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"])):"")}generateTree(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=16*o;if(!e)return z(zl());if(0===Object.keys(e).length)return z(ql(),i,n);var a="",s="";if(n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF"))a=n.replace("::","").replace("~"," ");else if(n.startsWith("::OPTION")){var c=n.split("~");a=c[1],s=c[2]}else a=n;if("object"==typeof e)return z(Fl(),o>0?z(Dl(),othis.toggleObjectExpand(e,a),oz(Rl(),["::description","::type","::props"].includes(t)?"":z(Il(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],e[t]["::title"]&&!isNaN(t)?e[t]["::title"]:t,e[t]["::description"],o+1)))));var l=e.split("~|~"),u=l[0].replace("{","").substring(0,4).toLowerCase();return z(Pl(),i,a.endsWith("*")?z(Cl(),a.substring(0,a.length-1)):n.startsWith("::OPTION")?z(Tl(),a):z(_l(),a),u,"array"===t?"[".concat(l[0],"]"):l[0],l[1],"array"===t?r:"",l[2]?z(jl(),l[2]):"",l[3]?z(El(),l[3]):"",l[4]?z(Al(),l[4]):"",l[5]?z(Ol(),l[5]):"",l[6]?z(Sl(),Ii(se()(l[6]))):"")}toggleObjectExpand(e){var t=e.target.closest(".tr");t.classList.contains("expanded")?(t.classList.add("collapsed"),t.classList.remove("expanded"),e.target.innerText="+"):(t.classList.remove("collapsed"),t.classList.add("expanded"),e.target.innerText="-")}});function Cu(){var e=Fu(['
    ','
    ','
    ',"
    "]);return Cu=function(){return e},e}function Pu(){var e=Fu(["",""]);return Pu=function(){return e},e}function Iu(){var e=Fu(['
    ',"
    "]);return Iu=function(){return e},e}function Ru(){var e=Fu(['
    ',' ',"
    "]);return Ru=function(){return e},e}function Lu(){var e=Fu([''," ",""]);return Lu=function(){return e},e}function Nu(){var e=Fu(['

    ',"

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

    ',"

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