4
0

rapidoc-min.js 692 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. /*!
  2. * RapiDoc 8.1.1 - WebComponent to View OpenAPI docs
  3. * License: MIT
  4. * Repo : https://github.com/mrin9/RapiDoc
  5. * Author : Mrinmoy Majumdar
  6. */!function(e){var t=window.webpackHotUpdate;window.webpackHotUpdate=function(e,n){!function(e,t){if(!k[e]||!w[e])return;for(var n in w[e]=!1,t)Object.prototype.hasOwnProperty.call(t,n)&&(v[n]=t[n]);0==--y&&0===b&&E()}(e,n),t&&t(e,n)};var n,r=!0,o="2bc1c95c329852cd374c",i=1e4,a={},s=[],c=[];function l(e){var t=j[e];if(!t)return P;var r=function(r){return t.hot.active?(j[r]?-1===j[r].parents.indexOf(e)&&j[r].parents.push(e):(s=[e],n=r),-1===t.children.indexOf(r)&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),s=[]),P(r)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return P[e]},set:function(t){P[e]=t}}};for(var i in P)Object.prototype.hasOwnProperty.call(P,i)&&"e"!==i&&"t"!==i&&Object.defineProperty(r,i,o(i));return r.e=function(e){return"ready"===f&&d("prepare"),b++,P.e(e).then(t,function(e){throw t(),e});function t(){b--,"prepare"===f&&(x[e]||_(e),0===b&&0===y&&E())}},r.t=function(e,t){return 1&t&&(e=r(e)),P.t(e,-2&t)},r}function u(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<e.length;n++)r._acceptedDependencies[e[n]]=t||function(){};else r._acceptedDependencies[e]=t||function(){}},decline:function(e){if(void 0===e)r._selfDeclined=!0;else if("object"==typeof e)for(var t=0;t<e.length;t++)r._declinedDependencies[e[t]]=!0;else r._declinedDependencies[e]=!0},dispose:function(e){r._disposeHandlers.push(e)},addDisposeHandler:function(e){r._disposeHandlers.push(e)},removeDisposeHandler:function(e){var t=r._disposeHandlers.indexOf(e);t>=0&&r._disposeHandlers.splice(t,1)},invalidate:function(){switch(this._selfInvalidated=!0,f){case"idle":(v={})[t]=e[t],d("ready");break;case"ready":C(t);break;case"prepare":case"check":case"dispose":case"apply":(g=g||[]).push(t)}},check:O,apply:A,status:function(e){if(!e)return f;p.push(e)},addStatusHandler:function(e){p.push(e)},removeStatusHandler:function(e){var t=p.indexOf(e);t>=0&&p.splice(t,1)},data:a[t]};return n=void 0,r}var p=[],f="idle";function d(e){f=e;for(var t=0;t<p.length;t++)p[t].call(null,e)}var h,v,m,g,y=0,b=0,x={},w={},k={};function S(e){return+e+""===e?+e:e}function O(e){if("idle"!==f)throw new Error("check() is only allowed in idle status");return r=e,d("check"),(t=i,t=t||1e4,new Promise(function(e,n){if("undefined"==typeof XMLHttpRequest)return n(new Error("No browser support"));try{var r=new XMLHttpRequest,i=P.p+""+o+".hot-update.json";r.open("GET",i,!0),r.timeout=t,r.send(null)}catch(e){return n(e)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)n(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)e();else if(200!==r.status&&304!==r.status)n(new Error("Manifest request to "+i+" failed."));else{try{var t=JSON.parse(r.responseText)}catch(e){return void n(e)}e(t)}}})).then(function(e){if(!e)return d(T()?"ready":"idle"),null;w={},x={},k=e.c,m=e.h,d("prepare");var t=new Promise(function(e,t){h={resolve:e,reject:t}});v={};return _(0),"prepare"===f&&0===b&&0===y&&E(),t});var t}function _(e){k[e]?(w[e]=!0,y++,function(e){var t=document.createElement("script");t.charset="utf-8",t.src=P.p+""+e+"."+o+".hot-update.js",document.head.appendChild(t)}(e)):x[e]=!0}function E(){d("ready");var e=h;if(h=null,e)if(r)Promise.resolve().then(function(){return A(r)}).then(function(t){e.resolve(t)},function(t){e.reject(t)});else{var t=[];for(var n in v)Object.prototype.hasOwnProperty.call(v,n)&&t.push(S(n));e.resolve(t)}}function A(t){if("ready"!==f)throw new Error("apply() is only allowed in ready status");return function t(r){T();var i;var c;var l;var u;var p;function f(e){for(var t=[e],n={},r=t.map(function(e){return{chain:[e],id:e}});r.length>0;){var o=r.pop(),i=o.id,a=o.chain;if((u=j[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<u.parents.length;s++){var c=u.parents[s],l=j[c];if(l){if(l.hot._declinedDependencies[i])return{type:"declined",chain:a.concat([c]),moduleId:i,parentId:c};-1===t.indexOf(c)&&(l.hot._acceptedDependencies[i]?(n[c]||(n[c]=[]),h(n[c],[i])):(delete n[c],t.push(c),r.push({chain:a.concat([c]),id:c})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:n}}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];-1===e.indexOf(r)&&e.push(r)}}var y={};var b=[];var x={};var w=function(){console.warn("[HMR] unexpected require("+_.moduleId+") to disposed module")};for(var O in v)if(Object.prototype.hasOwnProperty.call(v,O)){var _;p=S(O),_=v[O]?f(p):{type:"disposed",moduleId:O};var E=!1,A=!1,C=!1,I="";switch(_.chain&&(I="\nUpdate propagation: "+_.chain.join(" -> ")),_.type){case"self-declined":r.onDeclined&&r.onDeclined(_),r.ignoreDeclined||(E=new Error("Aborted because of self decline: "+_.moduleId+I));break;case"declined":r.onDeclined&&r.onDeclined(_),r.ignoreDeclined||(E=new Error("Aborted because of declined dependency: "+_.moduleId+" in "+_.parentId+I));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(_),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(_),C=!0;break;default:throw new Error("Unexception type "+_.type)}if(E)return d("abort"),Promise.reject(E);if(A)for(p in x[p]=v[p],h(b,_.outdatedModules),_.outdatedDependencies)Object.prototype.hasOwnProperty.call(_.outdatedDependencies,p)&&(y[p]||(y[p]=[]),h(y[p],_.outdatedDependencies[p]));C&&(h(b,[_.moduleId]),x[p]=w)}var R=[];for(c=0;c<b.length;c++)p=b[c],j[p]&&j[p].hot._selfAccepted&&x[p]!==w&&!j[p].hot._selfInvalidated&&R.push({module:p,parents:j[p].parents.slice(),errorHandler:j[p].hot._selfAccepted});d("dispose");Object.keys(k).forEach(function(e){!1===k[e]&&function(e){delete installedChunks[e]}(e)});var L;var N=b.slice();for(;N.length>0;)if(p=N.pop(),u=j[p]){var M={},B=u.hot._disposeHandlers;for(l=0;l<B.length;l++)(i=B[l])(M);for(a[p]=M,u.hot.active=!1,delete j[p],delete y[p],l=0;l<u.children.length;l++){var D=j[u.children[l]];D&&((L=D.parents.indexOf(p))>=0&&D.parents.splice(L,1))}}var F;var z;for(p in y)if(Object.prototype.hasOwnProperty.call(y,p)&&(u=j[p]))for(z=y[p],l=0;l<z.length;l++)F=z[l],(L=u.children.indexOf(F))>=0&&u.children.splice(L,1);d("apply");void 0!==m&&(o=m,m=void 0);v=void 0;for(p in x)Object.prototype.hasOwnProperty.call(x,p)&&(e[p]=x[p]);var q=null;for(p in y)if(Object.prototype.hasOwnProperty.call(y,p)&&(u=j[p])){z=y[p];var U=[];for(c=0;c<z.length;c++)if(F=z[c],i=u.hot._acceptedDependencies[F]){if(-1!==U.indexOf(i))continue;U.push(i)}for(c=0;c<U.length;c++){i=U[c];try{i(z)}catch(e){r.onErrored&&r.onErrored({type:"accept-errored",moduleId:p,dependencyId:z[c],error:e}),r.ignoreErrored||q||(q=e)}}}for(c=0;c<R.length;c++){var $=R[c];p=$.module,s=$.parents,n=p;try{P(p)}catch(e){if("function"==typeof $.errorHandler)try{$.errorHandler(e)}catch(t){r.onErrored&&r.onErrored({type:"self-accept-error-handler-errored",moduleId:p,error:t,originalError:e}),r.ignoreErrored||q||(q=t),q||(q=e)}else r.onErrored&&r.onErrored({type:"self-accept-errored",moduleId:p,error:e}),r.ignoreErrored||q||(q=e)}}if(q)return d("fail"),Promise.reject(q);if(g)return t(r).then(function(e){return b.forEach(function(t){e.indexOf(t)<0&&e.push(t)}),e});d("idle");return new Promise(function(e){e(b)})}(t=t||{})}function T(){if(g)return v||(v={}),g.forEach(C),g=void 0,!0}function C(t){Object.prototype.hasOwnProperty.call(v,t)||(v[t]=e[t])}var j={};function P(t){if(j[t])return j[t].exports;var n=j[t]={i:t,l:!1,exports:{},hot:u(t),parents:(c=s,s=[],c),children:[]};return e[t].call(n.exports,n,n.exports,l(t)),n.l=!0,n.exports}P.m=e,P.c=j,P.d=function(e,t,n){P.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},P.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},P.t=function(e,t){if(1&t&&(e=P(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(P.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)P.d(n,r,function(t){return e[t]}.bind(null,r));return n},P.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return P.d(t,"a",t),t},P.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},P.p="",P.h=function(){return o},l(510)(P.s=510)}([function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},o={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n(46),o=n.n(r),i=n(3),a=n.n(i),s=n(5),c=n.n(s),l=n(0),u=n(73),p=n(11),f=function(){function e(t,n,r){a()(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 c()(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!==l.a.DIRECTIVES_END&&r!==l.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}}}]),c()(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]===l.a.COMMENT){var r=e.endOfLine(n,t+1),o=new p.a(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;e<this.props.length;++e){var t=this.getPropValue(e,l.a.ANCHOR,!0);if(null!=t)return t}return null}},{key:"comment",get:function(){for(var e=[],t=0;t<this.props.length;++t){var n=this.getPropValue(t,l.a.COMMENT,!0);null!=n&&e.push(n)}return e.length>0?e.join("\n"):null}},{key:"hasComment",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]===l.a.COMMENT)return!0;return!1}},{key:"hasProps",get:function(){if(this.context)for(var e=this.context.src,t=0;t<this.props.length;++t)if(e[this.props[t].start]!==l.a.COMMENT)return!0;return!1}},{key:"includesTrailingLines",get:function(){return!1}},{key:"jsonLike",get:function(){return-1!==[l.b.FLOW_MAP,l.b.FLOW_SEQ,l.b.QUOTE_DOUBLE,l.b.QUOTE_SINGLE].indexOf(this.type)}},{key:"rangeAsLinePos",get:function(){if(this.range&&this.context){var e=Object(u.a)(this.range.start,this.context.root);if(e)return{start:e,end:Object(u.a)(this.range.end,this.context.root)}}}},{key:"rawValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end;return this.context.src.slice(t,n)}},{key:"tag",get:function(){for(var e=0;e<this.props.length;++e){var t=this.getPropValue(e,l.a.TAG,!1);if(null!=t){if("<"===t[1])return{verbatim:t.slice(2,-1)};var n=t.match(/^(.*!)([^!]*)$/),r=o()(n,3);r[0];return{handle:r[1],suffix:r[2]}}}return null}},{key:"valueRangeContainsNewline",get:function(){if(!this.valueRange||!this.context)return!1;for(var e=this.valueRange,t=e.start,n=e.end,r=this.context.src,o=t;o<n;++o)if("\n"===r[o])return!0;return!1}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return b}),n.d(t,"c",function(){return x}),n.d(t,"d",function(){return w}),n.d(t,"e",function(){return k});var r=n(3),o=n.n(r),i=n(5),a=n.n(i),s=n(6),c=n.n(s),l=n(4),u=n.n(l),p=n(7),f=n.n(p),d=n(241),h=n.n(d),v=n(1),m=n(73),g=n(11),y=function(e){function t(e,n,r){var i;if(o()(this,t),!(r&&n instanceof v.a))throw new Error("Invalid arguments for new ".concat(e));return(i=c()(this,u()(t).call(this))).name=e,i.message=r,i.source=n,i}return f()(t,e),a()(t,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var e=this.source.context&&this.source.context.root;if("number"==typeof this.offset){this.range=new g.a(this.offset,this.offset+1);var t=e&&Object(m.a)(this.offset,e);if(t){var n={line:t.line,col:t.col+1};this.linePos={start:t,end:n}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var r=this.linePos.start,o=r.line,i=r.col;this.message+=" at line ".concat(o,", column ").concat(i);var a=e&&Object(m.b)(this.linePos,e);a&&(this.message+=":\n\n".concat(a,"\n"))}delete this.source}}}]),t}(h()(Error)),b=function(e){function t(e,n){return o()(this,t),c()(this,u()(t).call(this,"YAMLReferenceError",e,n))}return f()(t,e),t}(y),x=function(e){function t(e,n){return o()(this,t),c()(this,u()(t).call(this,"YAMLSemanticError",e,n))}return f()(t,e),t}(y),w=function(e){function t(e,n){return o()(this,t),c()(this,u()(t).call(this,"YAMLSyntaxError",e,n))}return f()(t,e),t}(y),k=function(e){function t(e,n){return o()(this,t),c()(this,u()(t).call(this,"YAMLWarning",e,n))}return f()(t,e),t}(y)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}},function(e,t,n){var r=n(22),o=n(31);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t,n){var r=n(124);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t,n){e.exports=function(){"use strict";function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){r&&(e=r);var o=0;return function(){return o>=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},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<r;){var i=e.charAt(r-o-1);if(i!==t||n){if(i===t||!n)break;o++}else o++}return e.substr(0,r-o)}var w=function(e,t){if(t){if(o.test(e))return e.replace(i,l)}else if(a.test(e))return e.replace(s,l);return e},k=p,S=function(e,t){e=e.source||e,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(f,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n},O=function(e,t,n){if(e){var r;try{r=decodeURIComponent(p(n)).replace(d,"").toLowerCase()}catch(e){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!h.test(n)&&(n=b(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},_={exec:function(){}},E=function(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},A=function(e,t){var n=e.replace(/\|/g,function(e,t,n){for(var r=!1,o=t;--o>=0&&"\\"===n[o];)r=!r;return r?"|":" |"}).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},T=x,C=function(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,o=0;o<n;o++)if("\\"===e[o])o++;else if(e[o]===t[0])r++;else if(e[o]===t[1]&&--r<0)return o;return-1},j=function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},P=r.defaults,I=T,R=A,L=w,N=C;function M(e,t,n){var r=t.href,o=t.title?L(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:L(i)}}var B=function(){function e(e){this.options=e||P}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:I(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:R(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<o;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(o=n.cells.length,r=0;r<o;r++)n.cells[r]=R(n.cells[r],n.header.length);return n}}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){for(var n,r,o,i,a,s,c,l=t[0],u=t[2],p=u.length>1,f=")"===u[u.length-1],d={type:"list",raw:l,ordered:p,start:p?+u.slice(0,-1):"",loose:!1,items:[]},h=t[0].match(this.rules.block.item),v=!1,m=h.length,g=0;g<m;g++)l=n=h[g],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"),"")),g!==m-1&&(o=this.rules.block.bullet.exec(h[g+1])[0],(p?1===o.length||!f&&")"===o[o.length-1]:o.length>1||this.options.smartLists&&o!==u)&&(i=h.slice(g+1).join("\n"),d.raw=d.raw.substring(0,d.raw.length-i.length),g=m-1)),a=v||/\n\n(?!\s*$)/.test(n),g!==m-1&&(v="\n"===n.charAt(n.length-1),a||(a=v)),a&&(d.loose=!0),c=void 0,(s=/^\[[ xX]\] /.test(n))&&(c=" "!==n[1],n=n.replace(/^\[[ xX]\] +/,"")),d.items.push({type:"list_item",raw:l,task:s,checked:c,loose:a,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]):L(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:R(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<o;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(o=n.cells.length,r=0;r<o;r++)n.cells[r]=R(n.cells[r].replace(/^ *\| *| *\| *$/g,""),n.header.length);return n}}},t.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1]}},t.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t)return{type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1]}},t.text=function(e,t){var n=this.rules.block.text.exec(e);if(n){var r=t[t.length-1];return r&&"text"===r.type?{raw:n[0],text:n[0]}:{type:"text",raw:n[0],text:n[0]}}},t.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:L(t[1])}},t.tag=function(e,t,n){var r=this.rules.inline.tag.exec(e);if(r)return!t&&/^<a /i.test(r[0])?t=!0:t&&/^<\/a>/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]):L(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=N(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 M(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 M(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=L(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[1]}},t.autolink=function(e,t){var n,r,o=this.rules.inline.autolink.exec(e);if(o)return r="@"===o[2]?"mailto:"+(n=L(this.options.mangle?t(o[1]):o[1])):n=L(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=L(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=L(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]):L(o[0]):o[0]:L(this.options.smartypants?n(o[0]):o[0]),{type:"text",raw:o[0],text:r}},e}(),D=_,F=S,z=E,q={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,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:D,table:D,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?'|\([^()]*\))/};q.def=F(q.def).replace("label",q._label).replace("title",q._title).getRegex(),q.bullet=/(?:[*+-]|\d{1,9}[.)])/,q.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,q.item=F(q.item,"gm").replace(/bull/g,q.bullet).getRegex(),q.list=F(q.list).replace(/bull/g,q.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+q.def.source+")").getRegex(),q._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",q._comment=/<!--(?!-?>)[\s\S]*?-->/,q.html=F(q.html,"i").replace("comment",q._comment).replace("tag",q._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),q.paragraph=F(q._paragraph).replace("hr",q.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.blockquote=F(q.blockquote).replace("paragraph",q.paragraph).getRegex(),q.normal=z({},q),q.gfm=z({},q.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n *([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n *\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),q.gfm.nptable=F(q.gfm.nptable).replace("hr",q.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.gfm.table=F(q.gfm.table).replace("hr",q.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","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",q._tag).getRegex(),q.pedantic=z({},q.normal,{html:F("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q._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:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:D,paragraph:F(q.normal._paragraph).replace("hr",q.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",q.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var U={escape:/^\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:D,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\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:D,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/,punctuation:/^([\s*punctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};U.punctuation=F(U.punctuation).replace(/punctuation/g,U._punctuation).getRegex(),U._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",U._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",U.em.start=F(U.em.start).replace(/punctuation/g,U._punctuation).getRegex(),U.em.middle=F(U.em.middle).replace(/punctuation/g,U._punctuation).replace(/overlapSkip/g,U._overlapSkip).getRegex(),U.em.endAst=F(U.em.endAst,"g").replace(/punctuation/g,U._punctuation).getRegex(),U.em.endUnd=F(U.em.endUnd,"g").replace(/punctuation/g,U._punctuation).getRegex(),U.strong.start=F(U.strong.start).replace(/punctuation/g,U._punctuation).getRegex(),U.strong.middle=F(U.strong.middle).replace(/punctuation/g,U._punctuation).replace(/blockSkip/g,U._blockSkip).getRegex(),U.strong.endAst=F(U.strong.endAst,"g").replace(/punctuation/g,U._punctuation).getRegex(),U.strong.endUnd=F(U.strong.endUnd,"g").replace(/punctuation/g,U._punctuation).getRegex(),U.blockSkip=F(U._blockSkip,"g").getRegex(),U.overlapSkip=F(U._overlapSkip,"g").getRegex(),U._escapes=/\\([!"#$%&'()*+,\-.\/:;<=>?@\[\]\\^_`{|}~])/g,U._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,U._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])?)+(?![-_])/,U.autolink=F(U.autolink).replace("scheme",U._scheme).replace("email",U._email).getRegex(),U._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,U.tag=F(U.tag).replace("comment",q._comment).replace("attribute",U._attribute).getRegex(),U._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,U._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,U._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,U.link=F(U.link).replace("label",U._label).replace("href",U._href).replace("title",U._title).getRegex(),U.reflink=F(U.reflink).replace("label",U._label).getRegex(),U.reflinkSearch=F(U.reflinkSearch,"g").replace("reflink",U.reflink).replace("nolink",U.nolink).getRegex(),U.normal=z({},U),U.pedantic=z({},U.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:F(/^!?\[(label)\]\((.*?)\)/).replace("label",U._label).getRegex(),reflink:F(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",U._label).getRegex()}),U.gfm=z({},U.normal,{escape:F(U.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/}),U.gfm.url=F(U.gfm.url,"i").replace("email",U.gfm._extended_email).getRegex(),U.breaks=z({},U.gfm,{br:F(U.br).replace("{2,}","*").getRegex(),text:F(U.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $={block:q,inline:U},H=r.defaults,W=$.block,V=$.inline;function K(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function Y(e){var t,n,r="",o=e.length;for(t=0;t<o;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}var J=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||H,this.options.tokenizer=this.options.tokenizer||new B,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:W.normal,inline:V.normal};this.options.pedantic?(t.block=W.pedantic,t.inline=V.pedantic):this.options.gfm&&(t.block=W.gfm,this.options.breaks?t.inline=V.breaks:t.inline=V.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(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;o<i;o++)r.items[o].tokens=this.blockTokens(r.items[o].text,[],!1);t.push(r)}else if(r=this.tokenizer.html(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.def(e)))e=e.substring(r.raw.length),this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});else if(r=this.tokenizer.table(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.lheading(e))e=e.substring(r.raw.length),t.push(r);else if(n&&(r=this.tokenizer.paragraph(e)))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.text(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(e){var s="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(s);break}throw new Error(s)}return t},i.inline=function(e){var t,n,r,o,i,a,s=e.length;for(t=0;t<s;t++)switch((a=e[t]).type){case"paragraph":case"text":case"heading":a.tokens=[],this.inlineTokens(a.text,a.tokens);break;case"table":for(a.tokens={header:[],cells:[]},o=a.header.length,n=0;n<o;n++)a.tokens.header[n]=[],this.inlineTokens(a.header[n],a.tokens.header[n]);for(o=a.cells.length,n=0;n<o;n++)for(i=a.cells[n],a.tokens.cells[n]=[],r=0;r<i.length;r++)a.tokens.cells[n][r]=[],this.inlineTokens(i[r],a.tokens.cells[n][r]);break;case"blockquote":this.inline(a.tokens);break;case"list":for(o=a.items.length,n=0;n<o;n++)this.inline(a.items[n].tokens)}return e},i.inlineTokens=function(e,t,n,r,o){var i;void 0===t&&(t=[]),void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===o&&(o="");var a,s=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)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)+"["+"a".repeat(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)+"["+"a".repeat(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,Y))e=e.substring(i.raw.length),t.push(i);else if(n||!(i=this.tokenizer.url(e,Y))){if(i=this.tokenizer.inlineText(e,r,K))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:W,inline:V}}}],(r=null)&&e(n.prototype,r),o&&e(n,o),t}(),G=r.defaults,Q=O,X=w,Z=function(){function e(e){this.options=e||G}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?'<pre><code class="'+this.options.langPrefix+X(r,!0)+'">'+(n?e:X(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:X(e,!0))+"</code></pre>\n"},t.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},t.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},t.listitem=function(e){return"<li>"+e+"</li>\n"},t.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},t.paragraph=function(e){return"<p>"+e+"</p>\n"},t.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},t.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},t.strong=function(e){return"<strong>"+e+"</strong>"},t.em=function(e){return"<em>"+e+"</em>"},t.codespan=function(e){return"<code>"+e+"</code>"},t.br=function(){return this.options.xhtml?"<br/>":"<br>"},t.del=function(e){return"<del>"+e+"</del>"},t.link=function(e,t,n){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+X(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},t.image=function(e,t,n){if(null===(e=Q(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},t.text=function(e){return e},e}(),ee=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}(),te=function(){function e(){this.seen={}}return e.prototype.slug=function(e){var t=e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,.\/:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(t)){var n=t;do{this.seen[n]++,t=n+"-"+this.seen[n]}while(this.seen.hasOwnProperty(t))}return this.seen[t]=0,t},e}(),ne=r.defaults,re=k,oe=function(){function e(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee,this.slugger=new te}e.parse=function(t,n){return new e(n).parse(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;n<w;n++)switch((p=e[n]).type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(p.tokens),p.depth,re(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(l="",c="",i=p.header.length,r=0;r<i;r++)c+=this.renderer.tablecell(this.parseInline(p.tokens.header[r]),{header:!0,align:p.align[r]});for(l+=this.renderer.tablerow(c),u="",i=p.cells.length,r=0;r<i;r++){for(c="",a=(s=p.tokens.cells[r]).length,o=0;o<a;o++)c+=this.renderer.tablecell(this.parseInline(s[o]),{header:!1,align:p.align[o]});u+=this.renderer.tablerow(c)}x+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(p.tokens),x+=this.renderer.blockquote(u);continue;case"list":for(f=p.ordered,d=p.start,h=p.loose,i=p.items.length,u="",r=0;r<i;r++)g=(m=p.items[r]).checked,y=m.task,v="",m.task&&(b=this.renderer.checkbox(g),h?m.tokens.length>0&&"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+1<w&&"text"===e[n+1].type;)u+="\n"+((p=e[++n]).tokens?this.parseInline(p.tokens):p.text);x+=t?this.renderer.paragraph(u):u;continue;default:var k='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}return x},t.parseInline=function(e,t){t=t||this.renderer;var n,r,o="",i=e.length;for(n=0;n<i;n++)switch((r=e[n]).type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:var a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}return o},e}(),ie=E,ae=j,se=w,ce=r.getDefaults,le=r.changeDefaults,ue=r.defaults;function pe(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=ie({},pe.defaults,t||{}),ae(t),n){var r,o=t.highlight;try{r=J.lex(e,t)}catch(e){return n(e)}var i=function(e){var i;if(!e)try{i=oe.parse(r,t)}catch(t){e=t}return t.highlight=o,e?n(e):n(null,i)};if(!o||o.length<3)return i();if(delete t.highlight,!r.length)return i();var a=0;return pe.walkTokens(r,function(e){"code"===e.type&&(a++,setTimeout(function(){o(e.text,e.lang,function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0==--a&&i()})},0))}),void(0===a&&i())}try{var s=J.lex(e,t);return t.walkTokens&&pe.walkTokens(s,t.walkTokens),oe.parse(s,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+se(e.message+"",!0)+"</pre>";throw e}}return pe.options=pe.setOptions=function(e){return ie(pe.defaults,e),le(pe.defaults),pe},pe.getDefaults=ce,pe.defaults=ue,pe.use=function(e){var t=ie({},e);if(e.renderer&&function(){var n=pe.defaults.renderer||new Z,r=function(t){var r=n[t];n[t]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=e.renderer[t].apply(n,i);return!1===s&&(s=r.apply(n,i)),s}};for(var o in e.renderer)r(o);t.renderer=n}(),e.tokenizer&&function(){var n=pe.defaults.tokenizer||new B,r=function(t){var r=n[t];n[t]=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=e.tokenizer[t].apply(n,i);return!1===s&&(s=r.apply(n,i)),s}};for(var o in e.tokenizer)r(o);t.tokenizer=n}(),e.walkTokens){var n=pe.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens(t),n&&n(t)}}pe.setOptions(t)},pe.walkTokens=function(e,t){for(var r,o=n(e);!(r=o()).done;){var i=r.value;switch(t(i),i.type){case"table":for(var a,s=n(i.tokens.header);!(a=s()).done;){var c=a.value;pe.walkTokens(c,t)}for(var l,u=n(i.tokens.cells);!(l=u()).done;)for(var p,f=n(l.value);!(p=f()).done;){var d=p.value;pe.walkTokens(d,t)}break;case"list":pe.walkTokens(i.items,t);break;default:i.tokens&&pe.walkTokens(i.tokens,t)}}},pe.Parser=oe,pe.parser=oe.parse,pe.Renderer=Z,pe.TextRenderer=ee,pe.Lexer=J,pe.lexer=J.lex,pe.Tokenizer=B,pe.Slugger=te,pe.parse=pe,pe}()},function(e,t,n){e.exports=n(346)},function(e,t,n){e.exports=n(313)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n(3),o=n.n(r),i=n(5),a=n.n(i),s=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;o<e.length&&!(e[o]>n);)++o;this.origStart=n+o;for(var i=o;o<e.length&&!(e[o]>=r);)++o;return this.origEnd=r+o,i}}]),e}()},function(e,t,n){var r=n(127),o=n(299),i=n(304),a=n(193),s=n(194),c=n(10),l=n(169);function u(e,t){var n=c(e);if(s){var r=s(e);t&&(r=r.filter(function(t){return a(e,t).enumerable})),n.push.apply(n,r)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach(function(t){l(e,t,n[t])}):i?o(e,i(n)):u(Object(n)).forEach(function(t){r(e,t,a(n,t))})}return e}},function(e,t,n){var r=n(211),o=n(106);function i(t){return e.exports=i="function"==typeof o&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof o&&e.constructor===o&&e!==o.prototype?"symbol":typeof e},i(t)}e.exports=i},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return s});var r=n(0),o={defaultType:r.b.BLOCK_LITERAL,lineWidth:76},i={trueStr:"true",falseStr:"false"},a={nullStr:"null"},s={defaultType:r.b.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(19),o=n(14),i=n(49),a=n(50),s=n(44),c=function(e,t,n){var l,u,p,f=e&c.F,d=e&c.G,h=e&c.S,v=e&c.P,m=e&c.B,g=e&c.W,y=d?o:o[t]||(o[t]={}),b=y.prototype,x=d?r:h?r[t]:(r[t]||{}).prototype;for(l in d&&(n=t),n)(u=!f&&x&&void 0!==x[l])&&s(y,l)||(p=u?x[l]:n[l],y[l]=d&&"function"!=typeof x[l]?n[l]:m&&u?i(p,r):g&&x[l]==p?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}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((y.virtual||(y.virtual={}))[l]=p,e&c.R&&b&&!b[l]&&a(b,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var r=n(272);function o(t,n,i){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=o=Reflect.get:e.exports=o=function(e,t,n){var o=r(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}},o(t,n,i||t)}e.exports=o},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(87),o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach(function(t){if(-1===o.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach(function(e){n[e].forEach(function(t){a[String(t)]=e})}),a),-1===i.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",function(){return f}),n.d(t,"b",function(){return m});var r=n(37),o=n(0),i="flow",a="block",s="quoted",c=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 l(e,t,n,r){var o=r.indentAtStart,i=r.lineWidth,l=void 0===i?80:i,u=r.minContentWidth,p=void 0===u?20:u,f=r.onFold,d=r.onOverflow;if(!l||l<0)return e;var h=Math.max(1+p,1+l-t.length);if(e.length<=h)return e;var v,m=[],g={},y=l-("number"==typeof o?o:t.length),b=void 0,x=void 0,w=!1,k=-1;for(n===a&&-1!==(k=c(e,k))&&(y=k+h);v=e[k+=1];){if(n===s&&"\\"===v)switch(e[k+1]){case"x":k+=3;break;case"u":k+=5;break;case"U":k+=9;break;default:k+=1}if("\n"===v)n===a&&(k=c(e,k)),y=k+h,b=void 0;else{if(" "===v&&x&&" "!==x&&"\n"!==x&&"\t"!==x){var S=e[k+1];S&&" "!==S&&"\n"!==S&&"\t"!==S&&(b=k)}if(k>=y)if(b)m.push(b),y=b+h,b=void 0;else if(n===s){for(;" "===x||"\t"===x;)x=v,v=e[k+=1],w=!0;m.push(k-2),g[k-2]=!0,y=k-2+h,b=void 0}else w=!0}x=v}if(w&&d&&d(),0===m.length)return e;f&&f();for(var O=e.slice(0,m[0]),_=0;_<m.length;++_){var E=m[_],A=m[_+1]||e.length;n===s&&g[E]&&(O+="".concat(e[E],"\\")),O+="\n".concat(t).concat(e.slice(E+1,A))}return O}var u=n(15),p=function(e){var t=e.indentAtStart;return t?Object.assign({indentAtStart:t},u.d.fold):u.d.fold};function f(e){var t=e.format,n=e.minFractionDigits,r=e.tag,o=e.value;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 d(e,t){var n=t.implicitKey,r=t.indent,o=u.d.doubleQuoted,i=o.jsonEncoding,a=o.minMultiLineLength,c=JSON.stringify(e);if(i)return c;for(var f="",d=0,h=0,v=c[h];v;v=c[++h])if(" "===v&&"\\"===c[h+1]&&"n"===c[h+2]&&(f+=c.slice(d,h)+"\\ ",d=h+=1,v="\\"),"\\"===v)switch(c[h+1]){case"u":f+=c.slice(d,h);var m=c.substr(h+2,4);switch(m){case"0000":f+="\\0";break;case"0007":f+="\\a";break;case"000b":f+="\\v";break;case"001b":f+="\\e";break;case"0085":f+="\\N";break;case"00a0":f+="\\_";break;case"2028":f+="\\L";break;case"2029":f+="\\P";break;default:"00"===m.substr(0,2)?f+="\\x"+m.substr(2):f+=c.substr(h,6)}d=(h+=5)+1;break;case"n":if(n||'"'===c[h+2]||c.length<a)h+=1;else{for(f+=c.slice(d,h)+"\n\n";"\\"===c[h+2]&&"n"===c[h+3]&&'"'!==c[h+4];)f+="\n",h+=2;f+=r," "===c[h+2]&&(f+="\\"),d=(h+=1)+1}break;default:h+=1}return f=d?f+c.slice(d):c,n?f:l(f,r,s,p(t))}function h(e,t){var n=t.indent,r=t.implicitKey;if(r){if(/\n/.test(e))return d(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return d(e,t);var o="'"+e.replace(/'/g,"''").replace(/\n+/g,"$&\n".concat(n))+"'";return r?o:l(o,n,i,p(t))}function v(e,t,n,r){var i=e.comment,s=e.type,c=e.value;if(/\n[\t ]+$/.test(c)||/^\s*$/.test(c))return d(c,t);var p=t.indent||(t.forceBlockIndent?" ":""),f=p?"2":"1",h=s!==o.b.BLOCK_FOLDED&&(s===o.b.BLOCK_LITERAL||!function(e,t){var n=e.length;if(n<=t)return!1;for(var r=0,o=0;r<n;++r)if("\n"===e[r]){if(r-o>t)return!0;if(n-(o=r+1)<=t)return!1}return!0}(c,u.d.fold.lineWidth-p.length)),v=h?"|":">";if(!c)return v+"\n";var m="",g="";if(c=c.replace(/[\n\t ]*$/,function(e){var t=e.indexOf("\n");return-1===t?v+="-":c!==e&&t===e.length-1||(v+="+",r&&r()),g=e.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(e){-1!==e.indexOf(" ")&&(v+=f);var t=e.match(/ +$/);return t?(m=e.slice(0,-t[0].length),t[0]):(m=e,"")}),g&&(g=g.replace(/\n+(?!\n|$)/g,"$&".concat(p))),m&&(m=m.replace(/\n+/g,"$&".concat(p))),i&&(v+=" #"+i.replace(/ ?[\r\n]+/g," "),n&&n()),!c)return"".concat(v).concat(f,"\n").concat(p).concat(g);if(h)return c=c.replace(/\n+/g,"$&".concat(p)),"".concat(v,"\n").concat(p).concat(m).concat(c).concat(g);c=c.replace(/\n+/g,"\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(p));var y=l("".concat(m).concat(c).concat(g),p,a,u.d.fold);return"".concat(v,"\n").concat(p).concat(y)}function m(e,t,n,a){var s=u.d.defaultType,c=t.implicitKey,f=t.inFlow,m=e,g=m.type,y=m.value;"string"!=typeof y&&(y=String(y),e=Object.assign({},e,{value:y}));var b=function(s){switch(s){case o.b.BLOCK_FOLDED:case o.b.BLOCK_LITERAL:return v(e,t,n,a);case o.b.QUOTE_DOUBLE:return d(y,t);case o.b.QUOTE_SINGLE:return h(y,t);case o.b.PLAIN:return function(e,t,n,a){var s=e.comment,c=e.type,u=e.value,f=t.actualString,m=t.implicitKey,g=t.indent,y=t.inFlow,b=t.tags;if(m&&/[\n[\]{},]/.test(u)||y&&/[[\]{},]/.test(u))return d(u,t);if(!u||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(u))return m||y||-1===u.indexOf("\n")?-1!==u.indexOf('"')&&-1===u.indexOf("'")?h(u,t):d(u,t):v(e,t,n,a);if(!m&&!y&&c!==o.b.PLAIN&&-1!==u.indexOf("\n"))return v(e,t,n,a);var x=u.replace(/\n+/g,"$&\n".concat(g));if(f&&"string"!=typeof b.resolveScalar(x).value)return d(u,t);var w=m?x:l(x,g,i,p(t));return!s||y||-1===w.indexOf("\n")&&-1===s.indexOf("\n")?w:(n&&n(),Object(r.a)(w,g,s))}(e,t,n,a);default:return null}};g!==o.b.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(y)?g=o.b.QUOTE_DOUBLE:!c&&!f||g!==o.b.BLOCK_FOLDED&&g!==o.b.BLOCK_LITERAL||(g=o.b.QUOTE_DOUBLE);var x=b(g);if(null===x&&null===(x=b(s)))throw new Error("Unsupported default string type ".concat(s));return x}},function(e,t,n){e.exports=n(443)},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(134)("wks"),o=n(97),i=n(19).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},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,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var o,i,a=r.util.type(t);switch(n=n||{},a){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var s in o={},n[i]=o,t)t.hasOwnProperty(s)&&(o[s]=e(t[s],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach(function(t,r){o[r]=e(t,n)}),o);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(r){var e=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}}},languages:{extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=o[e];return o[e]=a,r.languages.DFS(r.languages,function(t,n){n===l&&t!=e&&(this[t]=a)}),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var c=t[s],l=r.util.type(c);"Object"!==l||i[a(c)]?"Array"!==l||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var o={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",o),o.elements=Array.prototype.slice.apply(o.container.querySelectorAll(o.selector)),r.hooks.run("before-all-elements-highlight",o);for(var i,a=0;i=o.elements[a++];)r.highlightElement(i,!0===t,o.callback)},highlightElement:function(n,o,i){var a=r.util.getLanguage(n),s=r.languages[a];n.className=n.className.replace(t,"").replace(/\s+/g," ")+" language-"+a;var c=n.parentNode;c&&"pre"===c.nodeName.toLowerCase()&&(c.className=c.className.replace(t,"").replace(/\s+/g," ")+" language-"+a);var l={element:n,language:a,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),i&&i.call(l.element)}if(r.hooks.run("before-sanity-check",l),!l.code)return r.hooks.run("complete",l),void(i&&i.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(o&&e.Worker){var p=new Worker(r.filename);p.onmessage=function(e){u(e.data)},p.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(r.highlight(l.code,l.grammar,l.language));else u(r.util.encode(l.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var c in n)t[c]=n[c];delete t.rest}var l=new i;return a(l,l.head,e),function e(t,n,i,c,l,u,p){for(var f in i)if(i.hasOwnProperty(f)&&i[f]){var d=i[f];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(p&&p==f+","+h)return;var v=d[h],m=v.inside,g=!!v.lookbehind,y=!!v.greedy,b=0,x=v.alias;if(y&&!v.pattern.global){var w=v.pattern.toString().match(/[imsuy]*$/)[0];v.pattern=RegExp(v.pattern.source,w+"g")}v=v.pattern||v;for(var k=c.next,S=l;k!==n.tail;S+=k.value.length,k=k.next){var O=k.value;if(n.length>t.length)return;if(!(O instanceof o)){var _=1;if(y&&k!=n.tail.prev){if(v.lastIndex=S,!(j=v.exec(t)))break;var E=j.index+(g&&j[1]?j[1].length:0),A=j.index+j[0].length,T=S;for(T+=k.value.length;E>=T;)k=k.next,T+=k.value.length;if(T-=k.value.length,S=T,k.value instanceof o)continue;for(var C=k;C!==n.tail&&(T<A||"string"==typeof C.value&&!C.prev.value.greedy);C=C.next)_++,T+=C.value.length;_--,O=t.slice(S,T),j.index-=S}else{v.lastIndex=0;var j=v.exec(O)}if(j){g&&(b=j[1]?j[1].length:0);E=j.index+b,j=j[0].slice(b),A=E+j.length;var P=O.slice(0,E),I=O.slice(A),R=k.prev;P&&(R=a(n,R,P),S+=P.length),s(n,R,_);var L=new o(f,m?r.tokenize(j,m):j,x,j,y);if(k=a(n,R,L),I&&a(n,k,I),_>1&&e(t,n,i,k.prev,S,!0,f+","+h),u)break}else if(u)break}}}}}(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,o){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length,this.greedy=!!o}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<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}if(e.Prism=r,o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach(function(t){o+=e(t,n)}),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},!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:{});e.exports&&(e.exports=n),void 0!==t&&(t.Prism=n),n.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:(?!<!--)[^"'\]]|"[^"]*"|'[^']*'|<!--[\s\S]*?-->)*\]\s*)?>/i,greedy:!0},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s\/>])))+)?\s*\/?>/i,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/i,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/i,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:/&#?[\da-z]{1,8};/i},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};o["language-"+t]={pattern:/[\s\S]+/,inside:n.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[\s\S]*?>)(?:<!\[CDATA\[[\s\S]*?\]\]>\s*|[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",i)}}),n.languages.xml=n.languages.extend("markup",{}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"}}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&|\|\||[!=]==|<<=?|>>>?=?|[-+*\/%&|^!=<>]=?|\.{3}|\?[.?]?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s])\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^\/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*[\s\S]*?\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}}),n.languages.markup&&n.languages.markup.tag.addInlined("script","javascript"),n.languages.js=n.languages.javascript,"undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector&&(self.Prism.fileHighlight=function(e){e=e||document;var t={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"};Array.prototype.slice.call(e.querySelectorAll("pre[data-src]")).forEach(function(e){if(!e.hasAttribute("data-src-loaded")){for(var r,o=e.getAttribute("data-src"),i=e,a=/\blang(?:uage)?-([\w-]+)\b/i;i&&!a.test(i.className);)i=i.parentNode;if(i&&(r=(e.className.match(a)||[,""])[1]),!r){var s=(o.match(/\.(\w+)$/)||[,""])[1];r=t[s]||s}var c=document.createElement("code");c.className="language-"+r,e.textContent="",c.textContent="Loading…",e.appendChild(c);var l=new XMLHttpRequest;l.open("GET",o,!0),l.onreadystatechange=function(){4==l.readyState&&(l.status<400&&l.responseText?(c.textContent=l.responseText,n.highlightElement(c),e.setAttribute("data-src-loaded","")):l.status>=400?c.textContent="✖ Error "+l.status+" while fetching file: "+l.statusText:c.textContent="✖ Error: File does not exist or is empty")},l.send(null)}})},document.addEventListener("DOMContentLoaded",function(){self.Prism.fileHighlight()}))}).call(this,n(25))},function(e,t,n){var r=n(21);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){"use strict";(function(e){
  7. /*!
  8. * The buffer module from node.js, for the browser.
  9. *
  10. * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
  11. * @license MIT
  12. */
  13. var r=n(277),o=n(278),i=n(177);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return p(this,e)}return l(this,e,t,n)}function l(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=f(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|d(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function p(e,t){if(u(t),e=s(e,t<0?0:0|d(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function f(e,t){var n=t.length<0?0:0|d(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function d(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return q(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return U(e).length;default:if(r)return q(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return j(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:y(e,t,n,r,o);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,r,o){var i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;i<s;i++)if(l(e,i)===l(t,-1===u?0:i-u)){if(-1===u&&(u=i),i-u+1===c)return u*a}else-1!==u&&(i-=i-u),u=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){for(var p=!0,f=0;f<c;f++)if(l(e,i+f)!==l(t,f)){p=!1;break}if(p)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function x(e,t,n,r){return $(q(t,e.length-n),e,n,r)}function w(e,t,n,r){return $(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function k(e,t,n,r){return w(e,t,n,r)}function S(e,t,n,r){return $(U(t),e,n,r)}function O(e,t,n,r){return $(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,c,l=e[o],u=null,p=l>239?4:l>223?3:l>191?2:1;if(o+p<=n)switch(p){case 1:l<128&&(u=l);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&l)<<6|63&i)>127&&(u=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&l)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(u=c)}null===u?(u=65533,p=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=p}return function(e){var t=e.length;if(t<=A)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=A));return n}(r)}t.Buffer=c,t.SlowBuffer=function(e){+e!=e&&(e=0);return c.alloc(+e)},t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return l(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return function(e,t,n,r){return u(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},c.allocUnsafe=function(e){return p(null,e)},c.allocUnsafeSlow=function(e){return p(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?E(this,0,e):v.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,t,n,r,o){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),p=0;p<s;++p)if(l[p]!==u[p]){i=l[p],a=u[p];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return S(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var A=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function C(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function j(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=z(e[i]);return o}function P(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function I(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function M(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,i){return i||M(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function D(e,t,n,r,i){return i||M(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=c.prototype;else{var o=t-e;n=new c(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},c.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return t||I(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||I(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||I(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||I(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);R(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return D(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return D(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=c.isBuffer(e)?e:q(new c(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function z(e){return e<16?"0"+e.toString(16):e.toString(16)}function q(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function U(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function $(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(25))},function(e,t,n){e.exports=n(338)},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){"use strict";var r=n(266),o=n(267);function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=b,t.resolve=function(e,t){return b(e,!1,!0).resolve(t)},t.resolveObject=function(e,t){return e?b(e,!1,!0).resolveObject(t):t},t.format=function(e){o.isString(e)&&(e=b(e));return e instanceof i?e.format():i.prototype.format.call(e)},t.Url=i;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,c=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(l),p=["%","/","?",";","#"].concat(u),f=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(268);function b(e,t,n){if(e&&o.isObject(e)&&e instanceof i)return e;var r=new i;return r.parse(e,t,n),r}i.prototype.parse=function(e,t,n){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),s=-1!==i&&i<e.indexOf("#")?"?":"#",l=e.split(s);l[0]=l[0].replace(/\\/g,"/");var b=e=l.join(s);if(b=b.trim(),!n&&1===e.split("#").length){var x=c.exec(b);if(x)return this.path=b,this.href=b,this.pathname=x[1],x[2]?(this.search=x[2],this.query=t?y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var w=a.exec(b);if(w){var k=(w=w[0]).toLowerCase();this.protocol=k,b=b.substr(w.length)}if(n||w||b.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===b.substr(0,2);!S||w&&m[w]||(b=b.substr(2),this.slashes=!0)}if(!m[w]&&(S||w&&!g[w])){for(var O,_,E=-1,A=0;A<f.length;A++){-1!==(T=b.indexOf(f[A]))&&(-1===E||T<E)&&(E=T)}-1!==(_=-1===E?b.lastIndexOf("@"):b.lastIndexOf("@",E))&&(O=b.slice(0,_),b=b.slice(_+1),this.auth=decodeURIComponent(O)),E=-1;for(A=0;A<p.length;A++){var T;-1!==(T=b.indexOf(p[A]))&&(-1===E||T<E)&&(E=T)}-1===E&&(E=b.length),this.host=b.slice(0,E),b=b.slice(E),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var j=this.hostname.split(/\./),P=(A=0,j.length);A<P;A++){var I=j[A];if(I&&!I.match(d)){for(var R="",L=0,N=I.length;L<N;L++)I.charCodeAt(L)>127?R+="x":R+=I[L];if(!R.match(d)){var M=j.slice(0,A),B=j.slice(A+1),D=I.match(h);D&&(M.push(D[1]),B.unshift(D[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=M.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",z=this.hostname||"";this.host=z+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!v[k])for(A=0,P=u.length;A<P;A++){var q=u[A];if(-1!==b.indexOf(q)){var U=encodeURIComponent(q);U===q&&(U=escape(q)),b=b.split(q).join(U)}}var $=b.indexOf("#");-1!==$&&(this.hash=b.substr($),b=b.slice(0,$));var H=b.indexOf("?");if(-1!==H?(this.search=b.substr(H),this.query=b.substr(H+1),t&&(this.query=y.parse(this.query)),b=b.slice(0,H)):t&&(this.search="",this.query={}),b&&(this.pathname=b),g[k]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){F=this.pathname||"";var W=this.search||"";this.path=F+W}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",n=this.pathname||"",r=this.hash||"",i=!1,a="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&o.isObject(this.query)&&Object.keys(this.query).length&&(a=y.stringify(this.query));var s=this.search||a&&"?"+a||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||g[t])&&!1!==i?(i="//"+(i||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):i||(i=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),t+i+(n=n.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(s=s.replace("#","%23"))+r},i.prototype.resolve=function(e){return this.resolveObject(b(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(o.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var n=new i,r=Object.keys(this),a=0;a<r.length;a++){var s=r[a];n[s]=this[s]}if(n.hash=e.hash,""===e.href)return n.href=n.format(),n;if(e.slashes&&!e.protocol){for(var c=Object.keys(e),l=0;l<c.length;l++){var u=c[l];"protocol"!==u&&(n[u]=e[u])}return g[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(e.protocol&&e.protocol!==n.protocol){if(!g[e.protocol]){for(var p=Object.keys(e),f=0;f<p.length;f++){var d=p[f];n[d]=e[d]}return n.href=n.format(),n}if(n.protocol=e.protocol,e.host||m[e.protocol])n.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),n.pathname=h.join("/")}if(n.search=e.search,n.query=e.query,n.host=e.host||"",n.auth=e.auth,n.hostname=e.hostname||e.host,n.port=e.port,n.pathname||n.search){var v=n.pathname||"",y=n.search||"";n.path=v+y}return n.slashes=n.slashes||e.slashes,n.href=n.format(),n}var b=n.pathname&&"/"===n.pathname.charAt(0),x=e.host||e.pathname&&"/"===e.pathname.charAt(0),w=x||b||n.host&&e.pathname,k=w,S=n.pathname&&n.pathname.split("/")||[],O=(h=e.pathname&&e.pathname.split("/")||[],n.protocol&&!g[n.protocol]);if(O&&(n.hostname="",n.port=null,n.host&&(""===S[0]?S[0]=n.host:S.unshift(n.host)),n.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),w=w&&(""===h[0]||""===S[0])),x)n.host=e.host||""===e.host?e.host:n.host,n.hostname=e.hostname||""===e.hostname?e.hostname:n.hostname,n.search=e.search,n.query=e.query,S=h;else if(h.length)S||(S=[]),S.pop(),S=S.concat(h),n.search=e.search,n.query=e.query;else if(!o.isNullOrUndefined(e.search)){if(O)n.hostname=n.host=S.shift(),(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var _=S.slice(-1)[0],E=(n.host||e.host||S.length>1)&&("."===_||".."===_)||""===_,A=0,T=S.length;T>=0;T--)"."===(_=S[T])?S.splice(T,1):".."===_?(S.splice(T,1),A++):A&&(S.splice(T,1),A--);if(!w&&!k)for(;A--;A)S.unshift("..");!w||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),E&&"/"!==S.join("/").substr(-1)&&S.push("");var C,j=""===S[0]||S[0]&&"/"===S[0].charAt(0);O&&(n.hostname=n.host=j?"":S.length?S.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(w=w||n.host&&S.length)&&!j&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),o.isNull(n.pathname)&&o.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){var r=n(358),o=n(359),i=n(152),a=n(362);e.exports=function(e,t){return r(e)||o(e,t)||i(e,t)||a()}},function(e,t,n){e.exports=!n(51)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=Array.isArray;e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e,t,n){if(!n)return e;var r=n.replace(/[\s\S]^/gm,"$&".concat(t,"#"));return"#".concat(r,"\n").concat(t).concat(e)}function o(e,t,n){return n?-1===n.indexOf("\n")?"".concat(e," #").concat(n):"".concat(e,"\n")+n.replace(/^/gm,"".concat(t||"","#")):e}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o})},function(e,t,n){var r=n(440),o=n(441),i=n(152),a=n(442);e.exports=function(e){return r(e)||o(e)||i(e)||a()}},function(e,t,n){var r=n(28),o=n(189),i=n(129),a=Object.defineProperty;t.f=n(34)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(199),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(209),o=n(9),i=n(211),a=n(106),s=n(152);e.exports=function(e,t){var n;if(void 0===a||null==e[i]){if(o(e)||(n=s(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var c=0,l=function(){};return{s:l,n:function(){return c>=e.length?{done:!0}:{done:!1,value:e[c++]}},e:function(e){throw e},f:l}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,p=!0,f=!1;return{s:function(){n=r(e)},n:function(){var e=n.next();return p=e.done,e},e:function(e){f=!0,u=e},f:function(){try{p||null==n.return||n.return()}finally{if(f)throw u}}}}},function(e,t,n){e.exports=n(363)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,l=[],u=!1,p=-1;function f(){u&&c&&(u=!1,c.length?l=c.concat(l):p=-1,l.length&&d())}function d(){if(!u){var e=s(f);u=!0;for(var t=l.length;t;){for(c=l,l=[];++p<t;)c&&c[p].run();p=-1,t=l.length}c=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(130),o=n(131);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(175),o=n(275),i=n(176);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t,n){var r=n(64),o=n(36),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==c}},function(e,t,n){var r=n(157);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},function(e,t,n){var r=n(56);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(39),o=n(77);e.exports=n(34)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t){e.exports=null},function(e,t,n){"use strict";n.d(t,"b",function(){return i});var r=n(23),o=n(15),i=function(e,t){var n=t.strValue;return n?"string"==typeof n?n:(n.errors.forEach(function(n){n.source||(n.source=t),e.errors.push(n)}),n.str):""};t.a={identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:i,stringify:function(e,t,n,o){return t=Object.assign({actualString:!0},t),Object(r.b)(e,t,n,o)},options:o.d}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(131);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(315),o=n(320);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(101),o=n(83),i=n(321),a=n(84),s=n(104),c=n(66),l=Object.prototype.hasOwnProperty,u=i(function(e,t){if(s(t)||a(t))o(t,c(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])});e.exports=u},function(e,t,n){e.exports=n(357)},function(e,t,n){var r=n(127);function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),r(e,o.key,o)}}e.exports=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e}},function(e,t,n){"use strict";var r=n(94),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=p;var i=n(76);i.inherits=n(55);var a=n(182),s=n(186);i.inherits(p,a);for(var c=o(s.prototype),l=0;l<c.length;l++){var u=c[l];p.prototype[u]||(p.prototype[u]=s.prototype[u])}function p(e){if(!(this instanceof p))return new p(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",f)}function f(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),p.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},function(e,t,n){var r=n(191),o=n(135);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t,n){var r=n(65),o=n(316),i=n(317),a="[object Null]",s="[object Undefined]",c=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:c&&c in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(40).Symbol;e.exports=r},function(e,t,n){var r=n(203),o=n(332),i=n(84);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t){e.exports={}},function(e,t,n){"use strict";function r(e){return null==e}e.exports.isNothing=r,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n<t;n+=1)r+=e;return r},e.exports.isNegativeZero=function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},e.exports.extend=function(e,t){var n,r,o,i;if(t)for(n=0,r=(i=Object.keys(t)).length;n<r;n+=1)e[o=i[n]]=t[o];return e}},function(e,t,n){"use strict";var r=n(68),o=n(87),i=n(20);function a(e,t,n){var r=[];return e.include.forEach(function(e){n=a(e,t,n)}),e[t].forEach(function(e){n.forEach(function(t,n){t.tag===e.tag&&t.kind===e.kind&&r.push(n)}),n.push(e)}),n.filter(function(e,t){return-1===r.indexOf(t)})}function s(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new o("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=a(this,"implicit",[]),this.compiledExplicit=a(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,n={scalar:{},sequence:{},mapping:{},fallback:{}};function r(e){n[e.kind][e.tag]=n.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(r);return n}(this.compiledImplicit,this.compiledExplicit)}s.DEFAULT=null,s.create=function(){var e,t;switch(arguments.length){case 1:e=s.DEFAULT,t=arguments[0];break;case 2:e=arguments[0],t=arguments[1];break;default:throw new o("Wrong number of arguments for Schema.create function")}if(e=r.toArray(e),t=r.toArray(t),!e.every(function(e){return e instanceof s}))throw new o("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!t.every(function(e){return e instanceof i}))throw new o("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:e,explicit:t})},e.exports=s},function(e,t,n){var r=n(42);function o(e,t,n,o,i,a,s){try{var c=e[a](s),l=c.value}catch(e){return void n(e)}c.done?t(l):r.resolve(l).then(o,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new r(function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,c,"next",e)}function c(e){o(a,r,i,s,c,"throw",e)}s(void 0)})}}},function(e,t,n){var r=n(392),o=n(417)(function(e,t){return null==e?{}:r(e,t)});e.exports=o},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";function r(e){for(var t=[0],n=e.indexOf("\n");-1!==n;)n+=1,t.push(n),n=e.indexOf("\n",n);return t}function o(e){var t,n;return"string"==typeof e?(t=r(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=r(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function i(e,t){if("number"!=typeof e||e<0)return null;var n=o(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var a=0;a<r.length;++a){var s=r[a];if(e<s)return{line:a,col:e-r[a-1]+1};if(e===s)return{line:a+1,col:1}}var c=r.length;return{line:c,col:e-r[c-1]+1}}function a(e,t){var n=e.start,r=e.end,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:80,a=function(e,t){var n=o(t),r=n.lineStarts,i=n.src;if(!r||!(e>=1)||e>r.length)return null;for(var a=r[e-1],s=r[e];s&&s>a&&"\n"===i[s-1];)--s;return i.slice(a,s)}(n.line,t);if(!a)return null;var s=n.col;if(a.length>i)if(s<=i-10)a=a.substr(0,i-1)+"…";else{var c=Math.round(i/2);a.length>s+c&&(a=a.substr(0,s+c-1)+"…"),s-=a.length-i,a="…"+a.substr(1-i)}var l=1,u="";r&&(r.line===n.line&&s+(r.col-n.col)<=i+1?l=r.col-n.col:(l=Math.min(a.length+1,i)-s,u="…"));var p=s>1?" ".repeat(s-1):"",f="^".repeat(l);return"".concat(a,"\n").concat(p).concat(f).concat(u)}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a})},function(e,t,n){var r=n(175),o=n(276),i=n(176);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t,n){var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});
  14. /*!
  15. * https://github.com/Starcounter-Jack/JSON-Patch
  16. * (c) 2017 Joachim Wester
  17. * MIT license
  18. */
  19. var o=n(115),i=n(164),a=n(164);t.applyOperation=a.applyOperation,t.applyPatch=a.applyPatch,t.applyReducer=a.applyReducer,t.getValueByPointer=a.getValueByPointer,t.validate=a.validate,t.validator=a.validator;var s=n(115);t.JsonPatchError=s.PatchError,t.deepClone=s._deepClone,t.escapePathComponent=s.escapePathComponent,t.unescapePathComponent=s.unescapePathComponent;var c=new WeakMap,l=function(e){this.observers=new Map,this.obj=e},u=function(e,t){this.callback=e,this.observer=t};function p(e,t){t.unobserve()}function f(e,t){var n,r=function(e){return c.get(e)}(e);if(r){var i=function(e,t){return e.observers.get(t)}(r,t);n=i&&i.observer}else r=new l(e),c.set(e,r);if(n)return n;if(n={},r.value=o._deepClone(e),t){n.callback=t,n.next=null;var a=function(){d(n)},s=function(){clearTimeout(n.next),n.next=setTimeout(a)};"undefined"!=typeof window&&(window.addEventListener("mouseup",s),window.addEventListener("keyup",s),window.addEventListener("mousedown",s),window.addEventListener("keydown",s),window.addEventListener("change",s))}return n.patches=[],n.object=e,n.unobserve=function(){d(n),clearTimeout(n.next),function(e,t){e.observers.delete(t.callback)}(r,n),"undefined"!=typeof window&&(window.removeEventListener("mouseup",s),window.removeEventListener("keyup",s),window.removeEventListener("mousedown",s),window.removeEventListener("keydown",s),window.removeEventListener("change",s))},r.observers.set(t,new u(t,n)),n}function d(e,t){void 0===t&&(t=!1);var n=c.get(e.object);h(n.value,e.object,e.patches,"",t),e.patches.length&&i.applyPatch(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function h(e,t,n,r,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=o._objectKeys(t),s=o._objectKeys(e),c=!1,l=s.length-1;l>=0;l--){var u=e[f=s[l]];if(!o.hasOwnProperty(t,f)||void 0===t[f]&&void 0!==u&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:"test",path:r+"/"+o.escapePathComponent(f),value:o._deepClone(u)}),n.push({op:"remove",path:r+"/"+o.escapePathComponent(f)}),c=!0):(i&&n.push({op:"test",path:r,value:e}),n.push({op:"replace",path:r,value:t}),!0);else{var p=t[f];"object"==typeof u&&null!=u&&"object"==typeof p&&null!=p?h(u,p,n,r+"/"+o.escapePathComponent(f),i):u!==p&&(!0,i&&n.push({op:"test",path:r+"/"+o.escapePathComponent(f),value:o._deepClone(u)}),n.push({op:"replace",path:r+"/"+o.escapePathComponent(f),value:o._deepClone(p)}))}}if(c||a.length!=s.length)for(l=0;l<a.length;l++){var f=a[l];o.hasOwnProperty(e,f)||void 0===t[f]||n.push({op:"add",path:r+"/"+o.escapePathComponent(f),value:o._deepClone(t[f])})}}}function v(e,t,n){void 0===n&&(n=!1);var r=[];return h(e,t,r,"",n),r}t.unobserve=p,t.observe=f,t.generate=d,t.compare=v;var m=n(164),g=n(115);t.default=r({},m,{unobserve:p,observe:f,generate:d,compare:v,JsonPatchError:g.PatchError,deepClone:o._deepClone,escapePathComponent:o.escapePathComponent,unescapePathComponent:g.unescapePathComponent})},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.isBoolean=function(e){return"boolean"==typeof e},t.isNull=function(e){return null===e},t.isNullOrUndefined=function(e){return null==e},t.isNumber=function(e){return"number"==typeof e},t.isString=function(e){return"string"==typeof e},t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=function(e){return void 0===e},t.isRegExp=function(e){return"[object RegExp]"===n(e)},t.isObject=function(e){return"object"==typeof e&&null!==e},t.isDate=function(e){return"[object Date]"===n(e)},t.isError=function(e){return"[object Error]"===n(e)||e instanceof Error},t.isFunction=function(e){return"function"==typeof e},t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=e.isBuffer}).call(this,n(29).Buffer)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t,n){var r=n(81),o=n(77),i=n(45),a=n(129),s=n(44),c=n(189),l=Object.getOwnPropertyDescriptor;t.f=n(34)?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return o(!r.f.call(e,t),e[t])}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(39).f,o=n(44),i=n(26)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(101),o=n(197);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var l=t[s],u=i?i(n[l],e[l],l,n,e):void 0;void 0===u&&(u=e[l]),a?o(n,l,u):r(n,l,u)}return n}},function(e,t,n){var r=n(47),o=n(143);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){n(340);for(var r=n(19),o=n(50),i=n(67),a=n(26)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=r[l],p=u&&u.prototype;p&&!p[a]&&o(p,a,l),i[l]=i.Array}},function(e,t,n){"use strict";var r=n(344)(!0);n(210)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";function r(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r.prototype.toString=function(e){var t=this.name+": ";return t+=this.reason||"(unknown reason)",!e&&this.mark&&(t+=" "+this.mark.toString()),t},e.exports=r},function(e,t,n){"use strict";var r=n(69);e.exports=new r({include:[n(222)],implicit:[n(381),n(382)],explicit:[n(383),n(384),n(385),n(386)]})},function(e,t,n){var r=n(105),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(334),o=n(206),i=n(207),a=n(208);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(i(n),0,e.length),t=o(t),e.slice(n,n+t.length)==t}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";function r(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}e.exports={jptr:function(e,t,n){if(void 0===e)return!1;if(!t||"string"!=typeof t||"#"===t)return void 0!==n?n:e;if(t.indexOf("#")>=0){let e=t.split("#");if(e[0])return!1;t=e[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let o=t.split("/");for(let t=0;t<o.length;t++){o[t]=r(o[t]);let i=void 0!==n&&t==o.length-1,a=parseInt(o[t],10);if(!Array.isArray(e)||isNaN(a)||a.toString()!==o[t]?a=Array.isArray(e)&&"-"===o[t]?-2:-1:o[t]=t>0?o[t-1]:"",-1!=a||e.hasOwnProperty(o[t]))if(a>=0)i&&(e[a]=n),e=e[a];else{if(-2===a)return i?(Array.isArray(e)&&e.push(n),n):void 0;i&&(e[o[t]]=n),e=e[o[t]]}else{if(void 0===n||"object"!=typeof e||Array.isArray(e))return!1;e[o[t]]=i?n:"0"===o[t+1]||"-"===o[t+1]?[]:{},e=e[o[t]]}}return e},jpescape:function(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")},jpunescape:r}},function(e,t,n){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){let t={};for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},deepClone:function e(t){let n=Array.isArray(t)?[]:{};for(let r in t)(t.hasOwnProperty(r)||Array.isArray(t))&&(n[r]="object"==typeof t[r]?e(t[r]):t[r]);return n},fastClone:function(e){return Object.assign({},e)},circularClone:function e(t,n){if(n||(n=new WeakMap),Object(t)!==t||t instanceof Function)return t;if(n.has(t))return n.get(t);try{var r=new t.constructor}catch(e){r=Object.create(Object.getPrototypeOf(t))}return n.set(t,r),Object.assign(r,...Object.keys(t).map(r=>({[r]:e(t[r],n)})))}}},function(e,t,n){"use strict";(function(t){!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,o){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return t.nextTick(function(){e.apply(null,i)})}}}:e.exports=t}).call(this,n(43))},function(e,t,n){var r=n(29),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(132),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(97)("meta"),o=n(21),i=n(44),a=n(39).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(51)(function(){return c(Object.preventExtensions({}))}),u=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&p.NEED&&c(e)&&!i(e,r)&&u(e),e}}},function(e,t,n){var r=n(28),o=n(190),i=n(135),a=n(133)("IE_PROTO"),s=function(){},c=function(){var e,t=n(128)("iframe"),r=i.length;for(t.style.display="none",n(196).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[i[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=c(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(197),o=n(102),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var o=typeof e;return!!(t=null==t?n:t)&&("number"==o||"symbol"!=o&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){var r=n(64),o=n(52),i="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||o(e)&&r(e)==i}},function(e,t,n){e.exports=n(349)},function(e,t,n){var r=n(49),o=n(212),i=n(213),a=n(28),s=n(96),c=n(149),l={},u={};(t=e.exports=function(e,t,n,p,f){var d,h,v,m,g=f?function(){return e}:c(e),y=r(n,p,t?2:1),b=0;if("function"!=typeof g)throw TypeError(e+" is not iterable!");if(i(g)){for(d=s(e.length);d>b;b++)if((m=t?y(a(h=e[b])[0],h[1]):y(e[b]))===l||m===u)return m}else for(v=g.call(e);!(h=v.next()).done;)if((m=o(v,y,h.value,t))===l||m===u)return m}).BREAK=l,t.RETURN=u},function(e,t,n){"use strict";var r=n(69);e.exports=r.DEFAULT=new r({include:[n(88)],explicit:[n(387),n(388),n(389)]})},function(e,t,n){var r=n(35),o=n(158),i=n(394),a=n(208);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},function(e,t,n){var r=n(58)(Object,"create");e.exports=r},function(e,t,n){var r=n(404),o=n(405),i=n(406),a=n(407),s=n(408);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(102);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(410);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(464),o=n(160),i=n(465),a=n(466),s=n(467),c=n(64),l=n(200),u=l(r),p=l(o),f=l(i),d=l(a),h=l(s),v=c;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?l(n):"";if(r)switch(r){case u:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case d:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=v},function(e,t){
  20. /*!
  21. * https://github.com/Starcounter-Jack/JSON-Patch
  22. * (c) 2017 Joachim Wester
  23. * MIT license
  24. */
  25. var n,r=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var o=Object.prototype.hasOwnProperty;function i(e,t){return o.call(e,t)}function a(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);t=[];for(var r in e)i(e,r)&&t.push(r);return t}function s(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e,t){var n;for(var r in e)if(i(e,r)){if(e[r]===t)return s(r)+"/";if("object"==typeof e[r]&&""!=(n=c(e[r],t)))return s(r)+"/"+n}return""}function l(e,t){var n=[e];for(var r in t){var o="object"==typeof t[r]?JSON.stringify(t[r],null,2):t[r];void 0!==o&&n.push(r+": "+o)}return n.join("\n")}t.hasOwnProperty=i,t._objectKeys=a,t._deepClone=function(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}},t.isInteger=function(e){for(var t,n=0,r=e.length;n<r;){if(!((t=e.charCodeAt(n))>=48&&t<=57))return!1;n++}return!0},t.escapePathComponent=s,t.unescapePathComponent=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t._getPathRecursive=c,t.getPath=function(e,t){if(e===t)return"/";var n=c(e,t);if(""===n)throw new Error("Object not found in root");return"/"+n},t.hasUndefined=function e(t){if(void 0===t)return!0;if(t)if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)if(e(t[n]))return!0}else if("object"==typeof t){var o=a(t),i=o.length;for(n=0;n<i;n++)if(e(t[o[n]]))return!0}return!1};var u=function(e){function t(t,n,r,o,i){var a=this.constructor,s=e.call(this,l(t,{name:n,index:r,operation:o,tree:i}))||this;return s.name=n,s.index=r,s.operation=o,s.tree=i,Object.setPrototypeOf(s,a.prototype),s.message=l(t,{name:n,index:r,operation:o,tree:i}),s}return r(t,e),t}(Error);t.PatchError=u},function(e,t,n){e.exports=n(352)},function(e,t,n){var r=n(425),o=n(225);function i(t){return e.exports=i=o?r:function(e){return e.__proto__||r(e)},i(t)}e.exports=i},function(e,t,n){"use strict";(function(e){function r(t,n){if(!e||!e._YAML_SILENCE_WARNINGS){var r=(e&&e.process).emitWarning;r?r(t,n):console.warn(n?"".concat(n,": ").concat(t):t)}}n.d(t,"a",function(){return r}),n.d(t,"b",function(){return i});var o={};function i(t,n){if(!(e&&e._YAML_SILENCE_DEPRECATION_WARNINGS||o[t])){o[t]=!0;var i="The option '".concat(t,"' will be removed in a future release");r(i+=n?", use '".concat(n,"' instead."):".","DeprecationWarning")}}}).call(this,n(25))},function(e,t,n){"use strict";(function(e){var r=n(0),o=n(2),i=n(23),a=n(54),s=n(15);t.a={identify:function(e){return e instanceof Uint8Array},default:!1,tag:"tag:yaml.org,2002:binary",resolve:function(t,n){var r=Object(a.b)(t,n);if("function"==typeof e)return e.from(r,"base64");if("function"==typeof atob){for(var i=atob(r.replace(/[\n\r]/g,"")),s=new Uint8Array(i.length),c=0;c<i.length;++c)s[c]=i.charCodeAt(c);return s}return t.errors.push(new o.b(n,"This environment does not support reading binary tags; either Buffer or atob is required")),null},options:s.a,stringify:function(t,n,o,a){var c,l=t.comment,u=t.type,p=t.value;if("function"==typeof e)c=p instanceof e?p.toString("base64"):e.from(p.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");for(var f="",d=0;d<p.length;++d)f+=String.fromCharCode(p[d]);c=btoa(f)}if(u||(u=s.a.defaultType),u===r.b.QUOTE_DOUBLE)p=c;else{for(var h=s.a.lineWidth,v=Math.ceil(c.length/h),m=new Array(v),g=0,y=0;g<v;++g,y+=h)m[g]=c.substr(y,h);p=m.join(u===r.b.BLOCK_LITERAL?"\n":" ")}return Object(i.b)({comment:l,type:u,value:p},n,o,a)}}}).call(this,n(29).Buffer)},function(e,t,n){"use strict";var r=n(371);e.exports=r},function(e,t,n){e.exports=n(431)},function(e,t,n){(function(t){!function(){"use strict";e.exports=function(e){return(e instanceof t?e:t.from(e.toString(),"binary")).toString("base64")}}()}).call(this,n(29).Buffer)},function(e,t,n){"use strict";n.r(t);var r=n(239),o=n.n(r)()(!0);o.push([e.i,"html,\nbody {\n width:100%;\n height:100%;\n margin:0;\n padding:0;\n}","",{version:3,sources:["main.css"],names:[],mappings:"AAAA;;EAEE,UAAU;EACV,WAAW;EACX,QAAQ;EACR,SAAS;AACX",file:"main.css",sourcesContent:["html,\nbody {\n width:100%;\n height:100%;\n margin:0;\n padding:0;\n}"]}]),t.default=o},function(e,t){function n(t,r){return e.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(t,r)}e.exports=n},function(e,t,n){"use strict";e.exports={isRef:function(e,t){return"$ref"===t&&!!e&&"string"==typeof e[t]}}},function(e,t,n){"use strict";const r=n(92).jpescape;e.exports={recurse:function e(t,n,o){if(n||(n={depth:0}),n.depth||(n=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},n)),"object"!=typeof t)return;let i=n.path;for(let a in t){if(n.key=a,n.path=n.path+"/"+encodeURIComponent(r(a)),n.identityPath=n.seen.get(t[a]),n.identity=void 0!==n.identityPath,t.hasOwnProperty(a)&&o(t,a,n),"object"==typeof t[a]&&!n.identity){n.identityDetection&&!Array.isArray(t[a])&&null!==t[a]&&n.seen.set(t[a],n.path);let r={};r.parent=t,r.path=n.path,r.depth=n.depth?n.depth+1:1,r.pkey=a,r.payload=n.payload,r.seen=n.seen,r.identity=!1,r.identityDetection=n.identityDetection,e(t[a],r,o)}n.path=i}}}},function(e,t,n){e.exports=n(297)},function(e,t,n){var r=n(21),o=n(19).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(78);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(134)("keys"),o=n(97);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(14),o=n(19),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(79)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(191),o=n(135).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(17),o=n(14),i=n(51);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t,n){e.exports=n(50)},function(e,t,n){t.f=n(26)},function(e,t,n){var r=n(19),o=n(14),i=n(79),a=n(139),s=n(39).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(78);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t){e.exports=function(e){return e}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(329),o=n(52),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},function(e,t,n){(function(e){var r=n(40),o=n(330),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c}).call(this,n(91)(e))},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(199),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(91)(e))},function(e,t,n){var r=n(44),o=n(57),i=n(133)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(150),o=n(26)("iterator"),i=n(67);e.exports=n(14).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(78),o=n(26)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){},function(e,t,n){var r=n(116),o=n(215);e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?r(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){"use strict";var r=n(56);function o(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new o(e)}},function(e,t,n){var r=n(50);e.exports=function(e,t,n){for(var o in t)n&&e[o]?e[o]=t[o]:r(e,o,t[o]);return e}},function(e,t,n){"use strict";var r=n(69);e.exports=new r({explicit:[n(374),n(375),n(376)]})},function(e,t,n){var r=n(109),o=n(89);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t,n){var r=n(35),o=n(105),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(397),o=n(409),i=n(411),a=n(412),s=n(413);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(58)(n(40),"Map");e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(111),o=n(448),i=n(449),a=n(450),s=n(451),c=n(452);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,e.exports=l},function(e,t,n){var r=n(463),o=n(234),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(475),o=n(115);t.JsonPatchError=o.PatchError,t.deepClone=o._deepClone;var i={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=s(n,this.path);r&&(r=o._deepClone(r));var i=c(n,{op:"remove",path:this.from}).removed;return c(n,{op:"add",path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=s(n,this.from);return c(n,{op:"add",path:this.path,value:o._deepClone(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:r(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},a={add:function(e,t,n){return o.isInteger(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:i.move,copy:i.copy,test:i.test,_get:i._get};function s(e,t){if(""==t)return e;var n={op:"_get",path:t};return c(e,n),n.value}function c(e,n,c,l,u,f){if(void 0===c&&(c=!1),void 0===l&&(l=!0),void 0===u&&(u=!0),void 0===f&&(f=0),c&&("function"==typeof c?c(n,0,e,n.path):p(n,0)),""===n.path){var d={newDocument:e};if("add"===n.op)return d.newDocument=n.value,d;if("replace"===n.op)return d.newDocument=n.value,d.removed=e,d;if("move"===n.op||"copy"===n.op)return d.newDocument=s(e,n.from),"move"===n.op&&(d.removed=e),d;if("test"===n.op){if(d.test=r(e,n.value),!1===d.test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",f,n,e);return d.newDocument=e,d}if("remove"===n.op)return d.removed=e,d.newDocument=null,d;if("_get"===n.op)return n.value=e,d;if(c)throw new t.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",f,n,e);return d}l||(e=o._deepClone(e));var h=(n.path||"").split("/"),v=e,m=1,g=h.length,y=void 0,b=void 0,x=void 0;for(x="function"==typeof c?c:p;;){if(b=h[m],u&&"__proto__"==b)throw new TypeError("JSON-Patch: modifying `__proto__` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(c&&void 0===y&&(void 0===v[b]?y=h.slice(0,m).join("/"):m==g-1&&(y=n.path),void 0!==y&&x(n,0,e,y)),m++,Array.isArray(v)){if("-"===b)b=v.length;else{if(c&&!o.isInteger(b))throw new t.JsonPatchError("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",f,n,e);o.isInteger(b)&&(b=~~b)}if(m>=g){if(c&&"add"===n.op&&b>v.length)throw new t.JsonPatchError("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",f,n,e);if(!1===(d=a[n.op].call(n,v,b,e)).test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",f,n,e);return d}}else if(b&&-1!=b.indexOf("~")&&(b=o.unescapePathComponent(b)),m>=g){if(!1===(d=i[n.op].call(n,v,b,e)).test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",f,n,e);return d}v=v[b]}}function l(e,n,r,i,a){if(void 0===i&&(i=!0),void 0===a&&(a=!0),r&&!Array.isArray(n))throw new t.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");i||(e=o._deepClone(e));for(var s=new Array(n.length),l=0,u=n.length;l<u;l++)s[l]=c(e,n[l],r,!0,a,l),e=s[l].newDocument;return s.newDocument=e,s}function u(e,n,r){var o=c(e,n);if(!1===o.test)throw new t.JsonPatchError("Test operation failed","TEST_OPERATION_FAILED",r,n,e);return o.newDocument}function p(e,n,r,a){if("object"!=typeof e||null===e||Array.isArray(e))throw new t.JsonPatchError("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,e,r);if(!i[e.op])throw new t.JsonPatchError("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,e,r);if("string"!=typeof e.path)throw new t.JsonPatchError("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new t.JsonPatchError('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",n,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new t.JsonPatchError("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new t.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&o.hasUndefined(e.value))throw new t.JsonPatchError("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,e,r);if(r)if("add"==e.op){var s=e.path.split("/").length,c=a.split("/").length;if(s!==c+1&&s!==c)throw new t.JsonPatchError("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==a)throw new t.JsonPatchError("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,e,r)}else if("move"===e.op||"copy"===e.op){var l=f([{op:"_get",path:e.from,value:void 0}],r);if(l&&"OPERATION_PATH_UNRESOLVABLE"===l.name)throw new t.JsonPatchError("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,e,r)}}function f(e,n,r){try{if(!Array.isArray(e))throw new t.JsonPatchError("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(n)l(o._deepClone(n),o._deepClone(e),r||!0);else{r=r||p;for(var i=0;i<e.length;i++)r(e[i],i,n,void 0)}}catch(e){if(e instanceof t.JsonPatchError)return e;throw e}}t.getValueByPointer=s,t.applyOperation=c,t.applyPatch=l,t.applyReducer=u,t.validator=p,t.validate=f,t.default={JsonPatchError:t.JsonPatchError,deepClone:t.deepClone,getValueByPointer:s,applyOperation:c,applyPatch:l,applyReducer:u,validator:p,validate:f}},function(e,t,n){var r=n(205)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(231);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(49),o=n(130),i=n(57),a=n(96),s=n(501);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,p=6==e,f=5==e||p,d=t||s;return function(t,s,h){for(var v,m,g=i(t),y=o(g),b=r(s,h,3),x=a(y.length),w=0,k=n?d(t,x):c?d(t,0):void 0;x>w;w++)if((f||w in y)&&(m=b(v=y[w],w,g),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return w;case 2:k.push(v)}else if(u)return!1;return p?-1:l||u?u:k}}},function(e,t,n){var r=n(21);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(127);e.exports=function(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=t,o=n(29).Buffer;function i(e,t){try{return decodeURIComponent(e)}catch(n){return r.unescapeBuffer(e,t).toString()}}r.unescapeBuffer=function(e,t){for(var n,r,i,a=new o(e.length),s=0,c=0,l=0;c<=e.length;c++){var u=c<e.length?e.charCodeAt(c):NaN;switch(s){case 0:switch(u){case 37:n=0,r=0,s=1;break;case 43:t&&(u=32);default:a[l++]=u}break;case 1:if(i=u,u>=48&&u<=57)n=u-48;else if(u>=65&&u<=70)n=u-65+10;else{if(!(u>=97&&u<=102)){a[l++]=37,a[l++]=u,s=0;break}n=u-97+10}s=2;break;case 2:if(s=0,u>=48&&u<=57)r=u-48;else if(u>=65&&u<=70)r=u-65+10;else{if(!(u>=97&&u<=102)){a[l++]=37,a[l++]=i,a[l++]=u;break}r=u-97+10}a[l++]=16*n+r}}return a.slice(0,l-1)},r.unescape=i;for(var a=new Array(256),s=0;s<256;++s)a[s]="%"+((s<16?"0":"")+s.toString(16)).toUpperCase();r.escape=function(e){"string"!=typeof e&&(e+="");for(var t="",n=0,r=0;r<e.length;++r){var o=e.charCodeAt(r);if(!(33===o||45===o||46===o||95===o||126===o||o>=39&&o<=42||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122))if(r-n>0&&(t+=e.slice(n,r)),o<128)n=r+1,t+=a[o];else if(o<2048)n=r+1,t+=a[192|o>>6]+a[128|63&o];else if(o<55296||o>=57344)n=r+1,t+=a[224|o>>12]+a[128|o>>6&63]+a[128|63&o];else{var i;if(!(++r<e.length))throw new URIError("URI malformed");i=1023&e.charCodeAt(r),n=r+1,t+=a[240|(o=65536+((1023&o)<<10|i))>>18]+a[128|o>>12&63]+a[128|o>>6&63]+a[128|63&o]}}return 0===n?e:n<e.length?t+e.slice(n):t};var c=function(e){return"string"==typeof e?e:"number"==typeof e&&isFinite(e)?""+e:"boolean"==typeof e?e?"true":"false":""};function l(e,t){try{return t(e)}catch(t){return r.unescape(e,!0)}}r.stringify=r.encode=function(e,t,n,o){t=t||"&",n=n||"=";var i=r.escape;if(o&&"function"==typeof o.encodeURIComponent&&(i=o.encodeURIComponent),null!==e&&"object"==typeof e){for(var a=Object.keys(e),s=a.length,l=s-1,u="",p=0;p<s;++p){var f=a[p],d=e[f],h=i(c(f))+n;if(Array.isArray(d)){for(var v=d.length,m=v-1,g=0;g<v;++g)u+=h+i(c(d[g])),g<m&&(u+=t);v&&p<l&&(u+=t)}else u+=h+i(c(d)),p<l&&(u+=t)}return u}return""},r.parse=r.decode=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;"string"!=typeof t&&(t+="");var s=n.length,c=t.length,u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var p=1/0;u>0&&(p=u);var f=r.unescape;o&&"function"==typeof o.decodeURIComponent&&(f=o.decodeURIComponent);for(var d=f!==i,h=[],v=0,m=0,g=0,y="",b="",x=d,w=d,k=0,S=0;S<e.length;++S){var O=e.charCodeAt(S);if(O!==t.charCodeAt(m)){if(m=0,w||(37===O?k=1:k>0&&(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102)?3==++k&&(w=!0):k=0),g<s){if(O===n.charCodeAt(g)){if(++g===s)v<(E=S-g+1)&&(y+=e.slice(v,E)),k=0,v=S+1;continue}g=0,x||(37===O?k=1:k>0&&(O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102)?3==++k&&(x=!0):k=0)}43===O&&(g<s?(S-v>0&&(y+=e.slice(v,S)),y+="%20",x=!0):(S-v>0&&(b+=e.slice(v,S)),b+="%20",w=!0),v=S+1)}else if(++m===c){var _,E=S-m+1;if(g<s?v<E&&(y+=e.slice(v,E)):v<E&&(b+=e.slice(v,E)),x&&(y=l(y,f)),w&&(b=l(b,f)),-1===h.indexOf(y))a[y]=b,h[h.length]=y;else(_=a[y])instanceof Array?_[_.length]=b:a[y]=[_,b];if(0==--p)break;x=w=d,k=0,y=b="",v=S+1,m=g=0}}p>0&&(v<e.length||g>0)&&(v<e.length&&(g<s?y+=e.slice(v):m<c&&(b+=e.slice(v))),x&&(y=l(y,f)),w&&(b=l(b,f)),-1===h.indexOf(y)?(a[y]=b,h[h.length]=y):(_=a[y])instanceof Array?_[_.length]=b:a[y]=[_,b]);return a}},function(e,t){},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),function(e){return!!e}),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=n(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c<a;c++)if(o[c]!==i[c]){s=c;break}var l=[];for(c=s;c<o.length;c++)l.push("..");return(l=l.concat(i.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!=typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(o=!1,r=a+1),46===s?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=a+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(43))},function(e,t,n){e.exports=n(511).default},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";(function(t){const r=n(281),o=t.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function i(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(t,e)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(e,t){return t.toUpperCase()})};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}e.exports={colour:o,uniqueOnly:function(e,t,n){return n.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let n of e){t.find(function(e,t,r){return i(e,n)})||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find(function(t,n,r){return e.indexOf(t)<n})},hash:function(e){let t,n=0;if(0===e.length)return n;for(let r=0;r<e.length;r++)n=(n<<5)-n+(t=e.charCodeAt(r)),n|=0;return n},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:a,sanitiseAll:function(e){return a(e.split("/").join("_"))}}}).call(this,n(43))},function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function o(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var i=void 0!==e.ArrayBuffer,a=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"==typeof e}t.arraybuffer=t.fetch||i&&o("arraybuffer"),t.msstream=!t.fetch&&a&&o("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&i&&o("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n(25))},function(e,t,n){(function(e,r,o){var i=n(179),a=n(55),s=n(181),c=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=t.IncomingMessage=function(t,n,a,c){var l=this;if(s.Readable.call(l),l._mode=a,l.headers={},l.rawHeaders=[],l.trailers={},l.rawTrailers=[],l.on("end",function(){e.nextTick(function(){l.emit("close")})}),"fetch"===a){if(l._fetchResponse=n,l.url=n.url,l.statusCode=n.status,l.statusMessage=n.statusText,n.headers.forEach(function(e,t){l.headers[t.toLowerCase()]=e,l.rawHeaders.push(t,e)}),i.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(t,n){l._destroyed?n():l.push(new r(e))?t():l._resumeFetch=t})},close:function(){o.clearTimeout(c),l._destroyed||l.push(null)},abort:function(e){l._destroyed||l.emit("error",e)}});try{return void n.body.pipeTo(u).catch(function(e){o.clearTimeout(c),l._destroyed||l.emit("error",e)})}catch(e){}}var p=n.body.getReader();!function e(){p.read().then(function(t){if(!l._destroyed){if(t.done)return o.clearTimeout(c),void l.push(null);l.push(new r(t.value)),e()}}).catch(function(e){o.clearTimeout(c),l._destroyed||l.emit("error",e)})}()}else{if(l._xhr=t,l._pos=0,l.url=t.responseURL,l.statusCode=t.status,l.statusMessage=t.statusText,t.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===l.headers[n]&&(l.headers[n]=[]),l.headers[n].push(t[2])):void 0!==l.headers[n]?l.headers[n]+=", "+t[2]:l.headers[n]=t[2],l.rawHeaders.push(t[1],t[2])}}),l._charset="x-user-defined",!i.overrideMimeType){var f=l.rawHeaders["mime-type"];if(f){var d=f.match(/;\s*charset=([^;])(;|$)/);d&&(l._charset=d[1].toLowerCase())}l._charset||(l._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},l.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==c.DONE)break;try{n=new o.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var i=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);e.push(a)}else e.push(i,e._charset);e._pos=n.length}break;case"arraybuffer":if(t.readyState!==c.DONE||!t.response)break;n=t.response,e.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=t.response,t.readyState!==c.LOADING||!n)break;e.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=t.response,t.readyState!==c.LOADING)break;var l=new o.MSStreamReader;l.onprogress=function(){l.result.byteLength>e._pos&&(e.push(new r(new Uint8Array(l.result.slice(e._pos)))),e._pos=l.result.byteLength)},l.onload=function(){e.push(null)},l.readAsArrayBuffer(n)}e._xhr.readyState===c.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n(43),n(29).Buffer,n(25))},function(e,t,n){(t=e.exports=n(182)).Stream=t,t.Readable=t,t.Writable=n(186),t.Duplex=n(62),t.Transform=n(188),t.PassThrough=n(292)},function(e,t,n){"use strict";(function(t,r){var o=n(94);e.exports=b;var i,a=n(177);b.ReadableState=y;n(183).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=n(184),l=n(95).Buffer,u=t.Uint8Array||function(){};var p=n(76);p.inherits=n(55);var f=n(286),d=void 0;d=f&&f.debuglog?f.debuglog("stream"):function(){};var h,v=n(287),m=n(185);p.inherits(b,c);var g=["error","close","destroy","pause","resume"];function y(e,t){e=e||{};var r=t instanceof(i=i||n(62));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var o=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=n(187).StringDecoder),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function b(e){if(i=i||n(62),!(this instanceof b))return new b(e);this._readableState=new y(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function x(e,t,n,r,o){var i,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,O(e)}(e,a)):(o||(i=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof u||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),i?e.emit("error",i):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):E(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function w(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&O(e)),E(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=m.destroy,b.prototype._undestroy=m.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=l.from(e,t),t=""),n=!0),x(this,e,t,!1,n)},b.prototype.unshift=function(e){return x(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return h||(h=n(187).StringDecoder),this._readableState.decoder=new h(e),this._readableState.encoding=e,this};var k=8388608;function S(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function O(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?o.nextTick(_,e):_(e))}function _(e){d("emit readable"),e.emit("readable"),j(e)}function E(e,t){t.readingMore||(t.readingMore=!0,o.nextTick(A,e,t))}function A(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),n!==t.length);)n=t.length;t.readingMore=!1}function T(e){d("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),j(e),t.flowing&&!t.reading&&e.read(0)}function j(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function P(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():n?function(e,t){var n=t.head,r=1,o=n.data;e-=o.length;for(;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(a===i.length?o+=i:o+=i.slice(0,e),0===(e-=a)){a===i.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=i.slice(a));break}++r}return t.length-=r,o}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,o=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var i=r.data,a=e>i.length?i.length:e;if(i.copy(n,n.length-e,0,a),0===(e-=a)){a===i.length?(++o,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=i.slice(a));break}++o}return t.length-=o,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function I(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,o.nextTick(R,t,e))}function R(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?I(this):O(this),null;if(0===(e=S(e,t))&&t.ended)return 0===t.length&&I(this),null;var r,o=t.needReadable;return d("need readable",o),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",o=!0),t.ended||t.reading?d("reading or ended",o=!1):o&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=S(n,t))),null===(r=e>0?P(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&I(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,d("pipe count=%d opts=%j",i.pipesCount,t);var c=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?u:b;function l(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",g),e.removeListener("finish",y),e.removeListener("drain",p),e.removeListener("error",m),e.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",b),n.removeListener("data",v),f=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function u(){d("onend"),e.end()}i.endEmitted?o.nextTick(c):n.once("end",c),e.on("unpipe",l);var p=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,j(e))}}(n);e.on("drain",p);var f=!1;var h=!1;function v(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==L(i.pipes,e))&&!f&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function m(t){d("onerror",t),b(),e.removeListener("error",m),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",y),b()}function y(){d("onfinish"),e.removeListener("close",g),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",v),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",m),e.once("close",g),e.once("finish",y),e.emit("pipe",n),i.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)r[i].emit("unpipe",this,n);return this}var a=L(t.pipes,e);return-1===a?this:(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n),this)},b.prototype.on=function(e,t){var n=c.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&O(this):o.nextTick(T,this))}return n},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,o.nextTick(C,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var o in e.on("end",function(){if(d("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)}),e.on("data",function(o){(d("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(t.push(o)||(r=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(t){return function(){return e[t].apply(e,arguments)}}(o));for(var i=0;i<g.length;i++)e.on(g[i],this.emit.bind(this,g[i]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=P}).call(this,n(25),n(43))},function(e,t,n){"use strict";var r,o="object"==typeof Reflect?Reflect:null,i=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function s(){s.init.call(this)}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var c=10;function l(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,s;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n);if(void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=l(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,s=c,console&&console.warn&&console.warn(s)}return e}function p(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,i(this.listener,this.target,e))}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=p.bind(r);return o.listener=n,r.wrapFn=o,o}function d(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):v(o,o.length)}function h(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},s.prototype.getMaxListeners=function(){return l(this)},s.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)i(c,this,t);else{var l=c.length,u=v(c,l);for(n=0;n<l;++n)i(u[n],this,t)}return!0},s.prototype.addListener=function(e,t){return u(this,e,t,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(e,t){return u(this,e,t,!0)},s.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.on(e,f(this,e,t)),this},s.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);return this.prependListener(e,f(this,e,t)),this},s.prototype.removeListener=function(e,t){var n,r,o,i,a;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t);if(void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return d(this,e,!0)},s.prototype.rawListeners=function(e){return d(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):h.call(e,t)},s.prototype.listenerCount=h,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){e.exports=n(183).EventEmitter},function(e,t,n){"use strict";var r=n(94);function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return i||a?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(o,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(o,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){"use strict";(function(t,r,o){var i=n(94);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=y;var s,c=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:i.nextTick;y.WritableState=g;var l=n(76);l.inherits=n(55);var u={deprecate:n(291)},p=n(184),f=n(95).Buffer,d=o.Uint8Array||function(){};var h,v=n(185);function m(){}function g(e,t){s=s||n(62),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var o=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:r&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,o=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,o){--t.pendingcb,n?(i.nextTick(o,r),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(o(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}(e,n,r,t,o);else{var a=k(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?c(x,e,n,a,o):x(e,n,a,o)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(e){if(s=s||n(62),!(h.call(y,this)||this instanceof s))return new y(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),p.call(this)}function b(e,t,n,r,o,i,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function x(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,o=new Array(r),i=t.corkedRequestsFree;i.entry=n;for(var s=0,c=!0;n;)o[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;o.allBuffers=c,b(e,t,!0,t.length,o,"",i.finish),t.pendingcb++,t.lastBufferedRequest=null,i.next?(t.corkedRequestsFree=i.next,i.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function S(e,t){e._final(function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)})}function O(e,t){var n=k(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,i.nextTick(S,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(y,p),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===y&&(e&&e._writableState instanceof g)}})):h=function(e){return e instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(e,t,n){var r,o=this._writableState,a=!1,s=!o.objectMode&&(r=e,f.isBuffer(r)||r instanceof d);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=o.defaultEncoding),"function"!=typeof n&&(n=m),o.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}(this,o,e,n))&&(o.pendingcb++,a=function(e,t,n,r,o,i){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,o);r!==a&&(n=!0,o="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:o,isBuf:n,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else b(e,t,!1,s,r,o,i);return c}(this,o,s,e,t,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||w(this,e))},y.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),y.prototype.destroy=v.destroy,y.prototype._undestroy=v.undestroy,y.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(43),n(289).setImmediate,n(25))},function(e,t,n){"use strict";var r=n(95).Buffer,o=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=f,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.StringDecoder=i,i.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var o=a(t[r]);if(o>=0)return o>0&&(e.lastNeed=o-1),o;if(--r<n||-2===o)return 0;if((o=a(t[r]))>=0)return o>0&&(e.lastNeed=o-2),o;if(--r<n||-2===o)return 0;if((o=a(t[r]))>=0)return o>0&&(2===o?o=0:e.lastNeed=o-3),o;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},i.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(62),o=n(76);function i(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:i.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush(function(t,n){c(e,t,n)}):c(this,null,null)}function c(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}o.inherits=n(55),o.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var n=this;r.prototype._destroy.call(this,e,function(e){t(e),n.emit("close")})}},function(e,t,n){e.exports=!n(34)&&!n(51)(function(){return 7!=Object.defineProperty(n(128)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(39),o=n(28),i=n(63);e.exports=n(34)?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),s=a.length,c=0;s>c;)r.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var r=n(44),o=n(45),i=n(302)(!1),a=n(133)("IE_PROTO");e.exports=function(e,t){var n,s=o(e),c=0,l=[];for(n in s)n!=a&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t,n){"use strict";var r=n(39),o=n(77);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},function(e,t,n){e.exports=n(308)},function(e,t,n){e.exports=n(310)},function(e,t,n){"use strict";var r=n(19),o=n(44),i=n(34),a=n(17),s=n(138),c=n(99).KEY,l=n(51),u=n(134),p=n(82),f=n(97),d=n(26),h=n(139),v=n(140),m=n(311),g=n(141),y=n(28),b=n(21),x=n(57),w=n(45),k=n(129),S=n(77),O=n(100),_=n(312),E=n(80),A=n(98),T=n(39),C=n(63),j=E.f,P=T.f,I=_.f,R=r.Symbol,L=r.JSON,N=L&&L.stringify,M=d("_hidden"),B=d("toPrimitive"),D={}.propertyIsEnumerable,F=u("symbol-registry"),z=u("symbols"),q=u("op-symbols"),U=Object.prototype,$="function"==typeof R&&!!A.f,H=r.QObject,W=!H||!H.prototype||!H.prototype.findChild,V=i&&l(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=j(U,t);r&&delete U[t],P(e,t,n),r&&e!==U&&P(U,t,r)}:P,K=function(e){var t=z[e]=O(R.prototype);return t._k=e,t},Y=$&&"symbol"==typeof R.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof R},J=function(e,t,n){return e===U&&J(q,t,n),y(e),t=k(t,!0),y(n),o(z,t)?(n.enumerable?(o(e,M)&&e[M][t]&&(e[M][t]=!1),n=O(n,{enumerable:S(0,!1)})):(o(e,M)||P(e,M,S(1,{})),e[M][t]=!0),V(e,t,n)):P(e,t,n)},G=function(e,t){y(e);for(var n,r=m(t=w(t)),o=0,i=r.length;i>o;)J(e,n=r[o++],t[n]);return e},Q=function(e){var t=D.call(this,e=k(e,!0));return!(this===U&&o(z,e)&&!o(q,e))&&(!(t||!o(this,e)||!o(z,e)||o(this,M)&&this[M][e])||t)},X=function(e,t){if(e=w(e),t=k(t,!0),e!==U||!o(z,t)||o(q,t)){var n=j(e,t);return!n||!o(z,t)||o(e,M)&&e[M][t]||(n.enumerable=!0),n}},Z=function(e){for(var t,n=I(w(e)),r=[],i=0;n.length>i;)o(z,t=n[i++])||t==M||t==c||r.push(t);return r},ee=function(e){for(var t,n=e===U,r=I(n?q:w(e)),i=[],a=0;r.length>a;)!o(z,t=r[a++])||n&&!o(U,t)||i.push(z[t]);return i};$||(s((R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===U&&t.call(q,n),o(this,M)&&o(this[M],e)&&(this[M][e]=!1),V(this,e,S(1,n))};return i&&W&&V(U,e,{configurable:!0,set:t}),K(e)}).prototype,"toString",function(){return this._k}),E.f=X,T.f=J,n(136).f=_.f=Z,n(81).f=Q,A.f=ee,i&&!n(79)&&s(U,"propertyIsEnumerable",Q,!0),h.f=function(e){return K(d(e))}),a(a.G+a.W+a.F*!$,{Symbol:R});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)d(te[ne++]);for(var re=C(d.store),oe=0;re.length>oe;)v(re[oe++]);a(a.S+a.F*!$,"Symbol",{for:function(e){return o(F,e+="")?F[e]:F[e]=R(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!$,"Object",{create:function(e,t){return void 0===t?O(e):G(O(e),t)},defineProperty:J,defineProperties:G,getOwnPropertyDescriptor:X,getOwnPropertyNames:Z,getOwnPropertySymbols:ee});var ie=l(function(){A.f(1)});a(a.S+a.F*ie,"Object",{getOwnPropertySymbols:function(e){return A.f(x(e))}}),L&&a(a.S+a.F*(!$||l(function(){var e=R();return"[null]"!=N([e])||"{}"!=N({a:e})||"{}"!=N(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return g(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,N.apply(L,r)}}),R.prototype[B]||n(50)(R.prototype,B,R.prototype.valueOf),p(R,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){var r=n(19).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(198);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(58),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(25))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(323),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=i[a];return l[t]=n(c),r(e,this,l)}}},function(e,t,n){var r=n(324),o=n(326)(r);e.exports=o},function(e,t,n){var r=n(328),o=n(144),i=n(35),a=n(145),s=n(103),c=n(204),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),u=!n&&o(e),p=!n&&!u&&a(e),f=!n&&!u&&!p&&c(e),d=n||u||p||f,h=d?r(e.length,String):[],v=h.length;for(var m in e)!t&&!l.call(e,m)||d&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||h.push(m);return h}},function(e,t,n){var r=n(331),o=n(146),i=n(147),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(65),o=n(335),i=n(35),a=n(105),s=1/0,c=r?r.prototype:void 0,l=c?c.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(336);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(206);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){e.exports=n(339)},function(e,t,n){"use strict";var r=n(79),o=n(17),i=n(138),a=n(50),s=n(67),c=n(343),l=n(82),u=n(148),p=n(26)("iterator"),f=!([].keys&&"next"in[].keys()),d=function(){return this};e.exports=function(e,t,n,h,v,m,g){c(n,t,h);var y,b,x,w=function(e){if(!f&&e in _)return _[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",S="values"==v,O=!1,_=e.prototype,E=_[p]||_["@@iterator"]||v&&_[v],A=E||w(v),T=v?S?w("entries"):A:void 0,C="Array"==t&&_.entries||E;if(C&&(x=u(C.call(new e)))!==Object.prototype&&x.next&&(l(x,k,!0),r||"function"==typeof x[p]||a(x,p,d)),S&&E&&"values"!==E.name&&(O=!0,A=function(){return E.call(this)}),r&&!g||!f&&!O&&_[p]||a(_,p,A),s[t]=A,s[k]=d,v)if(y={values:S?A:w("values"),keys:m?A:w("keys"),entries:T},g)for(b in y)b in _||i(_,b,y[b]);else o(o.P+o.F*(f||O),t,y);return y}},function(e,t,n){e.exports=n(348)},function(e,t,n){var r=n(28);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){var r=n(67),o=n(26)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(26)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}},function(e,t,n){e.exports=n(360)},function(e,t,n){var r=n(28),o=n(56),i=n(26)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},function(e,t,n){var r,o,i,a=n(49),s=n(219),c=n(196),l=n(128),u=n(19),p=u.process,f=u.setImmediate,d=u.clearImmediate,h=u.MessageChannel,v=u.Dispatch,m=0,g={},y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&d||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},d=function(e){delete g[e]},"process"==n(78)(p)?r=function(e){p.nextTick(a(y,e,1))}:v&&v.now?r=function(e){v.now(a(y,e,1))}:h?(i=(o=new h).port2,o.port1.onmessage=b,r=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):r="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:f,clear:d}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(28),o=n(21),i=n(154);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(69);e.exports=new r({include:[n(223)]})},function(e,t,n){"use strict";var r=n(69);e.exports=new r({include:[n(156)],implicit:[n(377),n(378),n(379),n(380)]})},function(e,t,n){var r=n(415),o=n(416);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){e.exports=n(428)},function(e,t,n){e.exports=n(434)},function(e,t,n){"use strict";var r=n(34),o=n(63),i=n(98),a=n(81),s=n(57),c=n(130),l=Object.assign;e.exports=!l||n(51)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=s(e),l=arguments.length,u=1,p=i.f,f=a.f;l>u;)for(var d,h=c(arguments[u++]),v=p?o(h).concat(p(h)):o(h),m=v.length,g=0;m>g;)d=v[g++],r&&!f.call(h,d)||(n[d]=h[d]);return n}:l},function(e,t,n){var r=n(446),o=n(469),i=n(142),a=n(35),s=n(470);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(453),o=n(52);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},function(e,t,n){var r=n(454),o=n(457),i=n(458),a=1,s=2;e.exports=function(e,t,n,c,l,u){var p=n&a,f=e.length,d=t.length;if(f!=d&&!(p&&d>f))return!1;var h=u.get(e);if(h&&u.get(t))return h==t;var v=-1,m=!0,g=n&s?new r:void 0;for(u.set(e,t),u.set(t,e);++v<f;){var y=e[v],b=t[v];if(c)var x=p?c(b,y,v,t,e,u):c(y,b,v,e,t,u);if(void 0!==x){if(x)continue;m=!1;break}if(g){if(!o(t,function(e,t){if(!i(g,t)&&(y===e||l(y,e,n,c,u)))return g.push(t)})){m=!1;break}}else if(y!==b&&!l(y,b,n,c,u)){m=!1;break}}return u.delete(e),u.delete(t),m}},function(e,t,n){var r=n(40).Uint8Array;e.exports=r},function(e,t,n){var r=n(233),o=n(163),i=n(66);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(161),o=n(35);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(36);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(203),o=n(480),i=n(84);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){var r=n(161),o=n(165),i=n(163),a=n(234),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),i=r.sources.map(function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")});return[n].concat(i).concat([o]).join("\n")}var a,s,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n}).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(o[a]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";const r=n(172),o=n(32),i=(n(173),n(271)),a=n(53),s=n(174),c=n(92),l=c.jptr,u=n(125).isRef,p=n(93).clone,f=n(93).circularClone,d=n(126).recurse,h=n(279),v=n(282),m=n(178),g=n(283).statusCodes,y=n(296).version,b="3.0.0";let x;class w extends Error{constructor(e){super(e),this.name="S2OError"}}function k(e,t){let n=new w(e);if(n.options=t,!t.promise)throw n;t.promise.reject(n)}function S(e,t,n){n.warnOnly?t[n.warnProperty||"x-s2o-warning"]=e:k(e,n)}function O(e,t){v.walkSchema(e,{},{},function(e,n,r){!function(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),"boolean"==typeof e["x-nullable"]&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),"object"==typeof e["x-discriminator"]&&"string"==typeof e["x-discriminator"].propertyName){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let t in e.discriminator.mapping){let n=e.discriminator.mapping[t];n.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=n.replace("#/definitions/","#/components/schemas/"))}}}(e),function(e,t,n){if(e.discriminator&&"string"==typeof e.discriminator&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(0===e.items.length?e.items={}:1===e.items.length?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(n.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let t of e.type){let n={};if("null"===t)e.nullable=!0;else{n.type=t;for(let t of m.arrayProperties)void 0!==e.prop&&(n[t]=e[t],delete e[t])}n.type&&e.oneOf.push(n)}delete e.type,0===e.oneOf.length?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&S("Lost properties from oneOf",e,n),delete e.oneOf)}e.type&&Array.isArray(e.type)&&1===e.type.length&&(e.type=e.type[0])}else k("(Patchable) schema type must not be an array",n);e.type&&"null"===e.type&&(delete e.type,e.nullable=!0),"array"!==e.type||e.items||(e.items={}),"boolean"==typeof e.required&&(e.required&&e.name&&(void 0===t.required&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&"string"==typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace)}(e,n,t)})}function _(e,t,n){let r=n.payload.options;if(u(e,t)){if(e[t].startsWith("#/components/"));else if("#/consumes"===e[t])delete e[t],n.parent[n.pkey]=p(r.openapi.consumes);else if("#/produces"===e[t])delete e[t],n.parent[n.pkey]=p(r.openapi.produces);else if(e[t].startsWith("#/definitions/")){let n=e[t].replace("#/definitions/","").split("/");const o=c.jpunescape(n[0]);let i=x.schemas[decodeURIComponent(o)];i?n[0]=i:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+m.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+m.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let n=p(c.jptr(r.openapi,e[t]));if(!1===n)S("direct $ref not found "+e[t],e,r);else if(r.refmap[e[t]])e[t]=r.refmap[e[t]];else{let i=e[t],a="schemas",s=(i=(i=(i=(i=i.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(a=i.indexOf("/headers/")>s?"headers":i.indexOf("/responses/")>s?"responses":i.indexOf("/example")>s?"examples":i.indexOf("/x-")>s?"extensions":i.indexOf("/parameters/")>s?"parameters":"schemas")&&O(n,r),"responses"!==a&&"extensions"!==a){let i=a.substr(0,a.length-1);"parameter"===i&&n.name&&n.name===m.sanitise(n.name)&&(i=encodeURIComponent(n.name));let s=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],i=encodeURIComponent(m.sanitise(o)),s="");c.jptr(r.openapi,"#/components/"+a+"/"+i+s);)s=""===s?2:++s;let l="#/components/"+a+"/"+i+s,u="";"examples"===a&&(n={value:n},u="/value"),c.jptr(r.openapi,l,n),r.refmap[e[t]]=l+u,e[t]=l+u}}}if(delete e["x-miro"],Object.keys(e).length>1){const o=e[t],i=n.path.indexOf("/schema")>=0;"preserve"===r.refSiblings||(i&&"allOf"===r.refSiblings?(delete e.$ref,n.parent[n.pkey]={allOf:[{$ref:o},e]}):n.parent[n.pkey]={$ref:o})}}var o;if("x-ms-odata"===t&&"string"==typeof e[t]&&e[t].startsWith("#/")){let n=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=x.schemas[decodeURIComponent(n[0])];o?n[0]=o:S("Could not resolve reference "+e[t],e,r),e[t]="#/components/schemas/"+n.join("/")}}function E(e){for(let t in e)for(let n in e[t]){let r=m.sanitise(n);n!=r&&(e[t][r]=e[t][n],delete e[t][n])}}function A(e,t){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){let n={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),void 0!==e.authorizationUrl&&(n.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"==typeof e.tokenUrl&&(n.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),n.scopes=e.scopes||{},e.flows={},e.flows[r]=n,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,void 0!==e.name&&(t.patch?delete e.name:k("(Patchable) oauth2 securitySchemes should not have name property",t))}}function T(e){return e&&!e["x-s2o-delete"]}function C(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&"array"!==e.items.type&&(e.items.collectionFormat!==e.collectionFormat&&S("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),"array"===e.type?("ssv"===e.collectionFormat?S("collectionFormat:ssv is no longer supported for headers",e,t):"pipes"===e.collectionFormat?S("collectionFormat:pipes is no longer supported for headers",e,t):"multi"===e.collectionFormat?e.explode=!0:"tsv"===e.collectionFormat?(S("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?delete e.collectionFormat:k("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t]);for(let t of m.arrayProperties)void 0!==e[t]&&(e.schema[t]=e[t],delete e[t])}}function j(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+m.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&S("Definition used as parameter",e,t)}function P(e,t,n,r,o,i,a){let s,c={},u=!0;if(t&&t.consumes&&"string"==typeof t.consumes){if(!a.patch)return k("(Patchable) operation.consumes must be an array",a);t.consumes=[t.consumes]}Array.isArray(i.consumes)||delete i.consumes;let f=((t?t.consumes:null)||i.consumes||[]).filter(m.uniqueOnly);if(e&&e.$ref&&"string"==typeof e.$ref){j(e,a);let t=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),n=!1,r=i.components.parameters[t];if(r&&!r["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,n=!0),n){let t=e.$ref,n=l(i,e.$ref);!n&&t.startsWith("#/")?S("Could not resolve reference "+t,e,a):n&&(e=n)}}if(e&&(e.name||e.in)){"boolean"==typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),void 0!==e["x-example"]&&(e.example=e["x-example"],delete e["x-example"]),"body"==e.in||e.type||(a.patch?e.type="string":k("(Patchable) parameter.type is mandatory for non-body parameters",a)),e.type&&"object"==typeof e.type&&e.type.$ref&&(e.type=l(i,e.type.$ref)),"file"===e.type&&(e["x-s2o-originalType"]=e.type,s=e.type),e.description&&"object"==typeof e.description&&e.description.$ref&&(e.description=l(i,e.description.$ref)),null===e.description&&delete e.description;let t=e.collectionFormat;if("array"!==e.type||t||(t="csv"),t&&("array"!=e.type&&(a.patch?delete e.collectionFormat:k("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==t||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==t||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===t&&("query"===e.in?e.style="spaceDelimited":S("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===t&&("query"===e.in?e.style="pipeDelimited":S("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===t&&(e.explode=!0),"tsv"===t&&(S("collectionFormat:tsv is no longer supported",e,a),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&"object"!=e.type&&"body"!=e.type&&"formData"!=e.in)if(e.items&&e.schema)S("parameter has array,items and schema",e,a);else{e.schema&&"object"==typeof e.schema||(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,d(e.schema.items,null,function(n,r,o){"collectionFormat"===r&&"string"==typeof n[r]&&(t&&n[r]!==t&&S("Nested collectionFormats are not supported",e,a),delete n[r])}));for(let t of m.parameterTypeProperties)void 0!==e[t]&&(e.schema[t]=e[t]),delete e[t]}e.schema&&O(e.schema,a),e["x-ms-skip-url-encoding"]&&"query"===e.in&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&"formData"===e.in){u=!1,c.content={};let t="application/x-www-form-urlencoded";if(f.length&&f.indexOf("multipart/form-data")>=0&&(t="multipart/form-data"),c.content[t]={},e.schema)c.content[t].schema=e.schema,e.schema.$ref&&(c["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{c.content[t].schema={},c.content[t].schema.type="object",c.content[t].schema.properties={},c.content[t].schema.properties[e.name]={};let n=c.content[t].schema,r=c.content[t].schema.properties[e.name];e.description&&(r.description=e.description),e.example&&(r.example=e.example),e.type&&(r.type=e.type);for(let t of m.parameterTypeProperties)void 0!==e[t]&&(r[t]=e[t]);!0===e.required&&(n.required||(n.required=[]),n.required.push(e.name)),void 0!==e.default&&(r.default=e.default),r.properties&&(r.properties=e.properties),e.allOf&&(r.allOf=e.allOf),"array"===e.type&&e.items&&(r.items=e.items,r.items.collectionFormat&&delete r.items.collectionFormat),"file"!==s&&"file"!==e["x-s2o-originalType"]||(r.type="string",r.format="binary"),I(e,r)}}else e&&"file"===e.type&&(e.required&&(c.required=e.required),c.content={},c.content["application/octet-stream"]={},c.content["application/octet-stream"].schema={},c.content["application/octet-stream"].schema.type="string",c.content["application/octet-stream"].schema.format="binary",I(e,c));if(e&&"body"===e.in){c.content={},e.name&&(c["x-s2o-name"]=(t&&t.operationId?m.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(c.description=e.description),e.required&&(c.required=e.required),t&&a.rbname&&e.name&&(t[a.rbname]=e.name),e.schema&&e.schema.$ref?c["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&"array"===e.schema.type&&e.schema.items&&e.schema.items.$ref&&(c["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),f.length||f.push("application/json");for(let t of f)c.content[t]={},c.content[t].schema=p(e.schema||{}),O(c.content[t].schema,a);I(e,c)}if(Object.keys(c).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&u){t.requestBody["x-s2o-overloaded"]=!0,S("Operation "+(t.operationId||o)+" has multiple requestBodies",t,a)}else t.requestBody||(t=n[r]=function(e,t){let n={};for(let r of Object.keys(e))n[r]=e[r],"parameters"===r&&(n.requestBody={},t.rbname&&(n[t.rbname]=""));return n.requestBody={},n}(t,a)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&c.content["multipart/form-data"]&&c.content["multipart/form-data"].schema&&c.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,c.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(c.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&c.content["application/x-www-form-urlencoded"]&&c.content["application/x-www-form-urlencoded"].schema&&c.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,c.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(c.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,c),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=m.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let t of m.parameterTypeProperties)delete e[t];"path"!==e.in||void 0!==e.required&&!0===e.required||(a.patch?e.required=!0:k("(Patchable) path parameters must be required:true ["+e.name+" in "+o+"]",a))}return t}function I(e,t){for(let n in e)n.startsWith("x-")&&!n.startsWith("x-s2o")&&(t[n]=e[n])}function R(e,t,n,r,o){if(!e)return!1;if(e.$ref&&"string"==typeof e.$ref)e.$ref.indexOf("#/definitions/")>=0?S("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((void 0===e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!=typeof e||Array.isArray(e)||(e.description=g[e]||""):k("(Patchable) response.description is mandatory",o)),void 0!==e.schema){if(O(e.schema,o),e.schema.$ref&&"string"==typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),n&&n.produces&&"string"==typeof n.produces){if(!o.patch)return k("(Patchable) operation.produces must be an array",o);n.produces=[n.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;let t=((n?n.produces:null)||r.produces||[]).filter(m.uniqueOnly);t.length||t.push("*/*"),e.content={};for(let n of t){if(e.content[n]={},e.content[n].schema=p(e.schema),e.examples&&e.examples[n]){let t={};t.value=e.examples[n],e.content[n].examples={},e.content[n].examples.response=t,delete e.examples[n]}"file"===e.content[n].schema.type&&(e.content[n].schema={type:"string",format:"binary"})}delete e.schema}for(let t in e.examples)e.content||(e.content={}),e.content[t]||(e.content[t]={}),e.content[t].examples={},e.content[t].examples.response={},e.content[t].examples.response.value=e.examples[t];if(delete e.examples,e.headers)for(let t in e.headers)"status code"===t.toLowerCase()?o.patch?delete e.headers[t]:k('(Patchable) "Status Code" is not a valid header',o):C(e.headers[t],o)}}function L(e,t,n,r,i){for(let a in e){let s=e[a];s&&s["x-trace"]&&"object"==typeof s["x-trace"]&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&"string"==typeof s["x-summary"]&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&"string"==typeof s["x-description"]&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]);for(let e in s)if(m.httpMethods.indexOf(e)>=0||"x-amazon-apigateway-any-method"===e){let u=s[e];if(u&&u.parameters&&Array.isArray(u.parameters)){if(s.parameters)for(let t of s.parameters){"string"==typeof t.$ref&&(j(t,n),t=l(i,t.$ref)),u.parameters.find(function(e,n,r){return e.name===t.name&&e.in===t.in})||"formData"!==t.in&&"body"!==t.in&&"file"!==t.type||(u=P(t,u,s,e,a,i,n),n.rbname&&""===u[n.rbname]&&delete u[n.rbname])}for(let t of u.parameters)u=P(t,u,s,e,e+":"+a,i,n);n.rbname&&""===u[n.rbname]&&delete u[n.rbname],n.debug||(u.parameters=u.parameters.filter(T))}if(u&&u.security&&E(u.security),"object"==typeof u){if(!u.responses){let e={description:"Default response"};u.responses={default:e}}for(let e in u.responses){R(u.responses[e],0,u,i,n)}}if(u&&u["x-servers"]&&Array.isArray(u["x-servers"]))u.servers=u["x-servers"],delete u["x-servers"];else if(u&&u.schemes&&u.schemes.length)for(let e of u.schemes)if((!i.schemes||i.schemes.indexOf(e)<0)&&(u.servers||(u.servers=[]),Array.isArray(i.servers)))for(let t of i.servers){let n=p(t),r=o.parse(n.url);r.protocol=e,n.url=r.format(),u.servers.push(n)}if(n.debug&&(u["x-s2o-consumes"]=u.consumes||[],u["x-s2o-produces"]=u.produces||[]),u){if(delete u.consumes,delete u.produces,delete u.schemes,u["x-ms-examples"]){for(let e in u["x-ms-examples"]){let t=u["x-ms-examples"][e],n=m.sanitiseAll(e);if(t.parameters)for(let n in t.parameters){let r=t.parameters[n];for(let t of(u.parameters||[]).concat(s.parameters||[]))t.$ref&&(t=c.jptr(i,t.$ref)),t.name!==n||t.example||(t.examples||(t.examples={}),t.examples[e]={value:r})}if(t.responses)for(let r in t.responses){if(t.responses[r].headers)for(let e in t.responses[r].headers){let n=t.responses[r].headers[e];for(let t in u.responses[r].headers)if(t===e){u.responses[r].headers[t].example=n}}if(t.responses[r].body&&(i.components.examples[n]={value:p(t.responses[r].body)},u.responses[r]&&u.responses[r].content))for(let t in u.responses[r].content){let o=u.responses[r].content[t];o.examples||(o.examples={}),o.examples[e]={$ref:"#/components/examples/"+n}}}}delete u["x-ms-examples"]}if(u.parameters&&0===u.parameters.length&&delete u.parameters,u.requestBody){let n=u.operationId?m.sanitiseAll(u.operationId):m.sanitiseAll(e+a).toCamelCase(),o=m.sanitise(u.requestBody["x-s2o-name"]||n||"");delete u.requestBody["x-s2o-name"];let i=JSON.stringify(u.requestBody),s=m.hash(i);if(!r[s]){let e={};e.name=o,e.body=u.requestBody,e.refs=[],r[s]=e}let l="#/"+t+"/"+encodeURIComponent(c.jpescape(a))+"/"+e+"/requestBody";r[s].refs.push(l)}}}if(s&&s.parameters){for(let e in s.parameters){P(s.parameters[e],null,s,null,a,i,n)}!n.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(T))}}}function N(e,t){let n={};x={schemas:{}},e.security&&E(e.security);for(let n in e.components.securitySchemes){let r=m.sanitise(n);n!=r&&(e.components.securitySchemes[r]&&k("Duplicate sanitised securityScheme name "+r,t),e.components.securitySchemes[r]=e.components.securitySchemes[n],delete e.components.securitySchemes[n]),A(e.components.securitySchemes[r],t)}for(let n in e.components.schemas){let r=m.sanitiseAll(n),o="";if(n!=r){for(;e.components.schemas[r+o];)o=o?++o:2;e.components.schemas[r+o]=e.components.schemas[n],delete e.components.schemas[n]}x.schemas[n]=r+o,O(e.components.schemas[r+o],t)}t.refmap={},d(e,{payload:{options:t}},_),function(e,t){for(let n in t.refmap)c.jptr(e,n,{$ref:t.refmap[n]})}(e,t);for(let n in e.components.parameters){let r=m.sanitise(n);n!=r&&(e.components.parameters[r]&&k("Duplicate sanitised parameter name "+r,t),e.components.parameters[r]=e.components.parameters[n],delete e.components.parameters[n]),P(e.components.parameters[r],null,null,null,r,e,t)}for(let n in e.components.responses){let r=m.sanitise(n);n!=r&&(e.components.responses[r]&&k("Duplicate sanitised response name "+r,t),e.components.responses[r]=e.components.responses[n],delete e.components.responses[n]);let o=e.components.responses[r];if(R(o,0,null,e,t),o.headers)for(let e in o.headers)"status code"===e.toLowerCase()?t.patch?delete o.headers[e]:k('(Patchable) "Status Code" is not a valid header',t):C(o.headers[e],t)}for(let t in e.components.requestBodies){let r=e.components.requestBodies[t],o=JSON.stringify(r),i=m.hash(o),a={};a.name=t,a.body=r,a.refs=[],n[i]=a}if(L(e.paths,"paths",t,n,e),e["x-ms-paths"]&&L(e["x-ms-paths"],"x-ms-paths",t,n,e),!t.debug)for(let t in e.components.parameters){e.components.parameters[t]["x-s2o-delete"]&&delete e.components.parameters[t]}t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let r=[];if(e.components.requestBodies={},!t.resolveInternal){let t=1;for(let o in n){let i=n[o];if(i.refs.length>1){let n="";for(i.name||(i.name="requestBody",n=t++);r.indexOf(i.name+n)>=0;)n=n?++n:2;i.name=i.name+n,r.push(i.name),e.components.requestBodies[i.name]=p(i.body);for(let t in i.refs){let n={};n.$ref="#/components/requestBodies/"+i.name,c.jptr(e,i.refs[t],n)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function M(e){return e&&e.url&&"string"==typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,n){e.variables||(e.variables={}),e.variables[n]={default:"unknown"}}),e):e}function B(e,t,n){if(void 0===e.info||null===e.info){if(!t.patch)return n(new w("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!=typeof e.info||Array.isArray(e.info))return n(new w("info must be an object"));if(void 0===e.info.title||null===e.info.title){if(!t.patch)return n(new w("(Patchable) info.title cannot be null"));e.info.title=""}if(void 0===e.info.version||null===e.info.version){if(!t.patch)return n(new w("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!=typeof e.info.version){if(!t.patch)return n(new w("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if(void 0!==e.info.logo){if(!t.patch)return n(new w("(Patchable) info should not have logo property"));e.info["x-logo"]=e.info.logo,delete e.info.logo}if(void 0!==e.info.termsOfService){if(null===e.info.termsOfService){if(!t.patch)return n(new w("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(o.URL&&t.whatwg)try{o.URL.parse(e.info.termsOfService)}catch(r){if(!t.patch)return n(new w("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function D(e,t,n){if(void 0===e.paths){if(!t.patch)return n(new w("(Patchable) paths object is mandatory"));e.paths={}}}function F(e,t,n){return i(n,new Promise(function(n,r){if(e||(e={}),t.original=e,t.text||(t.text=s.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=r,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),e.openapi&&"string"==typeof e.openapi&&e.openapi.startsWith("3."))return t.openapi=f(e),B(t.openapi,t,r),D(t.openapi,t,r),void h.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)});if(!e.swagger||"2.0"!=e.swagger)return r(new w("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi="string"==typeof t.targetVersion&&t.targetVersion.startsWith("3.")?t.targetVersion:b,t.origin){o["x-origin"]||(o["x-origin"]=[]);let n={};n.url=t.source||t.origin,n.format="swagger",n.version=e.swagger,n.converter={},n.converter.url="https://github.com/mermade/oas-kit",n.converter.version=y,o["x-origin"].push(n)}if(delete(o=Object.assign(o,f(e))).swagger,d(o,{},function(e,t,n){null===e[t]&&!t.startsWith("x-")&&"default"!==t&&n.path.indexOf("/example")<0&&delete e[t]}),e.host)for(let t of Array.isArray(e.schemes)?e.schemes:[""]){let n={};n.url=(t?t+":":"")+"//"+e.host+(e.basePath?e.basePath:""),M(n),o.servers||(o.servers=[]),o.servers.push(n)}else if(e.basePath){let t={};t.url=e.basePath,M(t),o.servers||(o.servers=[]),o.servers.push(t)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let t=e["x-ms-parameterized-host"],n={};n.url=t.hostTemplate+(e.basePath?e.basePath:""),n.variables={};for(let e in t.parameters){let r=t.parameters[e];r.$ref&&(r=p(l(o,r.$ref))),e.startsWith("x-")||(delete r.required,delete r.type,delete r.in,void 0===r.default&&(r.enum?r.default=r.enum[0]:r.default=""),n.variables[r.name]=r,delete r.name)}o.servers||(o.servers=[]),!1===t.useSchemePrefix?o.servers.push(n):e.schemes.forEach(e=>{o.servers.push(Object.assign({},n,{url:e+"://"+n.url}))}),delete o["x-ms-parameterized-host"]}B(o,t,r),D(o,t,r),"string"==typeof o.consumes&&(o.consumes=[o.consumes]),"string"==typeof o.produces&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,h.optionalResolve(t).then(function(){N(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(e){console.warn(e),r(e)})}))}function z(e,t,n){return i(n,new Promise(function(n,r){let o=null,i=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(n){i=n;try{o=s.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(e){i=e}}o?F(o,t).then(e=>n(e)).catch(e=>r(e)):r(new w(i?i.message:"Could not parse string"))}))}e.exports={S2OError:w,targetVersion:b,convert:F,convertObj:F,convertUrl:function(e,t,n){return i(n,new Promise(function(n,r){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),a(e,{agent:t.agent}).then(function(t){if(200!==t.status)throw new w(`Received status code ${t.status}: ${e}`);return t.text()}).then(function(e){z(e,t).then(e=>n(e)).catch(e=>r(e))}).catch(function(e){r(e)})}))},convertStr:z,convertFile:function(e,t,n){return i(n,new Promise(function(n,o){r.readFile(e,t.encoding||"utf8",function(r,i){r?o(r):(t.sourceFile=e,z(i,t).then(e=>n(e)).catch(e=>o(e)))})}))},convertStream:function(e,t,n){return i(n,new Promise(function(n,r){let o="";e.on("data",function(e){o+=e}).on("end",function(){z(o,t).then(e=>n(e)).catch(e=>r(e))})}))}}},function(e,t,n){var r=n(4),o=n(124),i=n(273),a=n(274);function s(t){var n="function"==typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!i(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o(t,e)},s(t)}e.exports=s},function(e,t,n){e.exports=n(354)},function(e,t,n){var r=n(193),o=n(421),i=n(424);function a(t,n,s){return"undefined"!=typeof Reflect&&o?e.exports=a=o:e.exports=a=function(e,t,n){var o=i(e,t);if(o){var a=r(o,t);return a.get?a.get.call(n):a.value}},a(t,n,s||t)}e.exports=a},function(e,t,n){var r=n(121),o=n(433);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=r(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t,n){var r=n(226),o=n(117),i=n(437),a=n(438);e.exports=function(e){var t=i();return function(){var n,i=o(e);if(t){var s=o(this).constructor;n=r(i,arguments,s)}else n=i.apply(this,arguments);return a(this,n)}}},function(e,t){e.exports=window.FormData},function(e,t,n){var r=n(445)(n(473));e.exports=r},function(e,t,n){"use strict";(function(t){
  26. /*!
  27. * @description Recursive object extending
  28. * @author Viacheslav Lotsmanov <lotsmanov89@gmail.com>
  29. * @license MIT
  30. *
  31. * The MIT License (MIT)
  32. *
  33. * Copyright (c) 2013-2018 Viacheslav Lotsmanov
  34. *
  35. * Permission is hereby granted, free of charge, to any person obtaining a copy of
  36. * this software and associated documentation files (the "Software"), to deal in
  37. * the Software without restriction, including without limitation the rights to
  38. * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
  39. * the Software, and to permit persons to whom the Software is furnished to do so,
  40. * subject to the following conditions:
  41. *
  42. * The above copyright notice and this permission notice shall be included in all
  43. * copies or substantial portions of the Software.
  44. *
  45. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  46. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
  47. * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
  48. * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
  49. * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  50. * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  51. */
  52. function n(e){return e instanceof t||e instanceof Date||e instanceof RegExp}function r(e){if(e instanceof t){var n=t.alloc?t.alloc(e.length):new t(e.length);return e.copy(n),n}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function o(e){var t=[];return e.forEach(function(e,i){"object"==typeof e&&null!==e?Array.isArray(e)?t[i]=o(e):n(e)?t[i]=r(e):t[i]=a({},e):t[i]=e}),t}function i(e,t){return"__proto__"===t?void 0:e[t]}var a=e.exports=function(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];var e,t,s=arguments[0],c=Array.prototype.slice.call(arguments,1);return c.forEach(function(c){"object"!=typeof c||null===c||Array.isArray(c)||Object.keys(c).forEach(function(l){return t=i(s,l),(e=i(c,l))===s?void 0:"object"!=typeof e||null===e?void(s[l]=e):Array.isArray(e)?void(s[l]=o(e)):n(e)?void(s[l]=r(e)):"object"!=typeof t||null===t||Array.isArray(t)?void(s[l]=a({},e)):void(s[l]=a(t,e))})}),s}}).call(this,n(29).Buffer)},function(e,t,n){var r=n(476),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){e.exports=n(499)},function(e,t){var n=e.exports=function(e){return new r(e)};function r(e){this.value=e}function o(e,t,n){var r=[],o=[],s=!0;return function e(p){var f=n?i(p):p,d={},h=!0,v={node:f,node_:p,path:[].concat(r),parent:o[o.length-1],parents:o,key:r.slice(-1)[0],isRoot:0===r.length,level:r.length,circular:null,update:function(e,t){v.isRoot||(v.parent.node[v.key]=e),v.node=e,t&&(h=!1)},delete:function(e){delete v.parent.node[v.key],e&&(h=!1)},remove:function(e){c(v.parent.node)?v.parent.node.splice(v.key,1):delete v.parent.node[v.key],e&&(h=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){s=!1},block:function(){h=!1}};if(!s)return v;function m(){if("object"==typeof v.node&&null!==v.node){v.keys&&v.node_===v.node||(v.keys=a(v.node)),v.isLeaf=0==v.keys.length;for(var e=0;e<o.length;e++)if(o[e].node_===p){v.circular=o[e];break}}else v.isLeaf=!0,v.keys=null;v.notLeaf=!v.isLeaf,v.notRoot=!v.isRoot}m();var g=t.call(v,v.node);return void 0!==g&&v.update&&v.update(g),d.before&&d.before.call(v,v.node),h?("object"!=typeof v.node||null===v.node||v.circular||(o.push(v),m(),l(v.keys,function(t,o){r.push(t),d.pre&&d.pre.call(v,v.node[t],t);var i=e(v.node[t]);n&&u.call(v.node,t)&&(v.node[t]=i.node),i.isLast=o==v.keys.length-1,i.isFirst=0==o,d.post&&d.post.call(v,i),r.pop()}),o.pop()),d.after&&d.after.call(v,v.node),v):v}(e).node}function i(e){if("object"==typeof e&&null!==e){var t;if(c(e))t=[];else if("[object Date]"===s(e))t=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===s(e)}(e))t=new RegExp(e);else if(function(e){return"[object Error]"===s(e)}(e))t={message:e.message};else if(function(e){return"[object Boolean]"===s(e)}(e))t=new Boolean(e);else if(function(e){return"[object Number]"===s(e)}(e))t=new Number(e);else if(function(e){return"[object String]"===s(e)}(e))t=new String(e);else if(Object.create&&Object.getPrototypeOf)t=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)t={};else{var n=e.constructor&&e.constructor.prototype||e.__proto__||{},r=function(){};r.prototype=n,t=new r}return l(a(e),function(n){t[n]=e[n]}),t}return e}r.prototype.get=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r)){t=void 0;break}t=t[r]}return t},r.prototype.has=function(e){for(var t=this.value,n=0;n<e.length;n++){var r=e[n];if(!t||!u.call(t,r))return!1;t=t[r]}return!0},r.prototype.set=function(e,t){for(var n=this.value,r=0;r<e.length-1;r++){var o=e[r];u.call(n,o)||(n[o]={}),n=n[o]}return n[e[r]]=t,t},r.prototype.map=function(e){return o(this.value,e,!0)},r.prototype.forEach=function(e){return this.value=o(this.value,e,!1),this.value},r.prototype.reduce=function(e,t){var n=1===arguments.length,r=n?this.value:t;return this.forEach(function(t){this.isRoot&&n||(r=e.call(this,r,t))}),r},r.prototype.paths=function(){var e=[];return this.forEach(function(t){e.push(this.path)}),e},r.prototype.nodes=function(){var e=[];return this.forEach(function(t){e.push(this.node)}),e},r.prototype.clone=function(){var e=[],t=[];return function n(r){for(var o=0;o<e.length;o++)if(e[o]===r)return t[o];if("object"==typeof r&&null!==r){var s=i(r);return e.push(r),t.push(s),l(a(r),function(e){s[e]=n(r[e])}),e.pop(),t.pop(),s}return r}(this.value)};var a=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};function s(e){return Object.prototype.toString.call(e)}var c=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},l=function(e,t){if(e.forEach)return e.forEach(t);for(var n=0;n<e.length;n++)t(e[n],n,e)};l(a(r.prototype),function(e){n[e]=function(t){var n=[].slice.call(arguments,1),o=new r(t);return o[e].apply(o,n)}});var u=Object.hasOwnProperty||function(e,t){return t in e}},function(e,t,n){var r=n(194),o=n(509);e.exports=function(e,t){if(null==e)return{};var n,i,a=o(e,t);if(r){var s=r(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){var r=n(64),o=n(165),i=n(52),a="[object Object]",s=Function.prototype,c=Object.prototype,l=s.toString,u=c.hasOwnProperty,p=l.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}},function(e,t,n){"use strict";
  53. /*!
  54. * cookie
  55. * Copyright(c) 2012-2014 Roman Shtylman
  56. * Copyright(c) 2015 Douglas Christopher Wilson
  57. * MIT Licensed
  58. */t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");for(var n={},o=t||{},a=e.split(i),c=o.decode||r,l=0;l<a.length;l++){var u=a[l],p=u.indexOf("=");if(!(p<0)){var f=u.substr(0,p).trim(),d=u.substr(++p,u.length).trim();'"'==d[0]&&(d=d.slice(1,-1)),null==n[f]&&(n[f]=s(d,c))}}return n},t.serialize=function(e,t,n){var r=n||{},i=r.encode||o;if("function"!=typeof i)throw new TypeError("option encode is invalid");if(!a.test(e))throw new TypeError("argument name is invalid");var s=i(t);if(s&&!a.test(s))throw new TypeError("argument val is invalid");var c=e+"="+s;if(null!=r.maxAge){var l=r.maxAge-0;if(isNaN(l)||!isFinite(l))throw new TypeError("option maxAge is invalid");c+="; Max-Age="+Math.floor(l)}if(r.domain){if(!a.test(r.domain))throw new TypeError("option domain is invalid");c+="; Domain="+r.domain}if(r.path){if(!a.test(r.path))throw new TypeError("option path is invalid");c+="; Path="+r.path}if(r.expires){if("function"!=typeof r.expires.toUTCString)throw new TypeError("option expires is invalid");c+="; Expires="+r.expires.toUTCString()}r.httpOnly&&(c+="; HttpOnly");r.secure&&(c+="; Secure");if(r.sameSite){switch("string"==typeof r.sameSite?r.sameSite.toLowerCase():r.sameSite){case!0:c+="; SameSite=Strict";break;case"lax":c+="; SameSite=Lax";break;case"strict":c+="; SameSite=Strict";break;case"none":c+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return c};var r=decodeURIComponent,o=encodeURIComponent,i=/; */,a=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e,t){try{return t(e)}catch(t){return e}}},function(e,t,n){var r=n(256),o=n(123);"string"==typeof(o=o.__esModule?o.default:o)&&(o=[[e.i,o,""]]);var i={insert:"head",singleton:!1},a=r(o,i);if(!o.locals||e.hot.invalidate){var s=o.locals;e.hot.accept(123,function(){"string"==typeof(o=(o=n(123)).__esModule?o.default:o)&&(o=[[e.i,o,""]]),function(e,t){if(!e&&t||e&&!t)return!1;var n;for(n in e)if(e[n]!==t[n])return!1;for(n in t)if(!e[n])return!1;return!0}(s,o.locals)?(s=o.locals,a(o)):e.hot.invalidate()})}e.hot.dispose(function(){a()}),e.exports=o.locals||{}},function(e,t,n){"use strict";var r,o=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function c(e,t){for(var n={},r=[],o=0;o<e.length;o++){var i=e[o],c=t.base?i[0]+t.base:i[0],l=n[c]||0,u="".concat(c," ").concat(l);n[c]=l+1;var p=s(u),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==p?(a[p].references++,a[p].updater(f)):a.push({identifier:u,updater:m(f,t),references:1}),r.push(u)}return r}function l(e){var t=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var o=n.nc;o&&(r.nonce=o)}if(Object.keys(r).forEach(function(e){t.setAttribute(e,r[e])}),"function"==typeof e.insert)e.insert(t);else{var a=i(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,p=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function f(e,t,n,r){var o=n?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=p(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function d(e,t,n){var r=n.css,o=n.media,i=n.sourceMap;if(o?e.setAttribute("media",o):e.removeAttribute("media"),i&&btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var h=null,v=0;function m(e,t){var n,r,o;if(t.singleton){var i=v++;n=h||(h=l(t)),r=f.bind(null,n,i,!1),o=f.bind(null,n,i,!0)}else n=l(t),r=d.bind(null,n,t),o=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=o());var n=c(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<n.length;r++){var o=s(n[r]);a[o].references--}for(var i=c(e,t),l=0;l<n.length;l++){var u=s(n[l]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=i}}}},function(e,t){!function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\((?!\s*\))\s*)(?:[^()]|\((?:[^()]|\([^()]*\))*\))+?(?=\s*\))/,lookbehind:!0,alias:"selector"}}},url:{pattern:RegExp("url\\((?:"+t.source+"|[^\n\r()]*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/}},selector:RegExp("[^{}\\s](?:[^{};\"']|"+t.source+")*?(?=\\s*\\{)"),string:{pattern:t,greedy:!0},property:/[-_a-z\xA0-\uFFFF][-\w\xA0-\uFFFF]*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),e.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\s*style=("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/i,inside:{"attr-name":{pattern:/^\s*style/i,inside:n.tag.inside},punctuation:/^\s*=\s*['"]|['"]\s*$/,"attr-value":{pattern:/.+/i,inside:e.languages.css}},alias:"language-css"}},n.tag))}(Prism)},function(e,t){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;\/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;\/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)";function o(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|]|}|\s*#))/.source.replace(/<<prop>>/g,function(){return r}).replace(/<<value>>/g,function(){return e});return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)[^\r\n]+(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)[^\r\n{[\]},#\s]+?(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return r})),lookbehind:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?)?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/true|false/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(/("|')(?:(?!\2)[^\\\r\n]|\\.)*\2/.source),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+\.?\d*|\.?\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},function(e,t){Prism.languages.go=Prism.languages.extend("clike",{keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/(?:\b0x[a-f\d]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[-+]?\d+)?)i?/i,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0}}),delete Prism.languages.go["class-name"]},function(e,t){!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|null|open|opens|package|private|protected|provides|public|record|requires|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/\b[A-Z](?:\w*[a-z]\w*)?\b/;e.languages.java=e.languages.extend("clike",{"class-name":[n,/\b[A-Z]\w*(?=\s+\w+\s*[;,=())])/],keyword:t,function:[e.languages.clike.function,{pattern:/(\:\:)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x[\da-f_]*\.?[\da-f_p+-]+\b|(?:\b\d[\d_]*\.?[\d_]*|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*\/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{alias:"punctuation",pattern:/(^|[^.])@\w+/,lookbehind:!0},namespace:{pattern:/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)[a-z]\w*(?:\.[a-z]\w*)+/,lookbehind:!0,inside:{punctuation:/\./}},generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism)},function(e,t){Prism.languages.json={property:{pattern:/"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,greedy:!0},comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,number:/-?\d+\.?\d*(?:e[+-]?\d+)?/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}}},function(e,t){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)\w+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b\w+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+?)\s*(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s*(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\](?:\\\\)*)(["'])(?:\\[\s\S]|\$\([^)]+\)|`[^`]+`|(?!\2)[^\\])*\2/,lookbehind:!0,greedy:!0,inside:n}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|==?|!=?|=~|<<[<-]?|[&\d]?>>|\d?[<>]&?|&[>&]?|\|[&|]?|<=?|>=?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};for(var r=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],o=n.variable[1].inside,i=0;i<r.length;i++)o[r[i]]=e.languages.bash[r[i]];e.languages.shell=e.languages.bash}(Prism)},function(e,t){Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]+?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},function(e,t){!function(e){e.languages.http={"request-line":{pattern:/^(?:POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\s(?:https?:\/\/|\/)\S+\sHTTP\/[0-9.]+/m,inside:{property:/^(?:POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b/,"attr-name":/:\w+/}},"response-status":{pattern:/^HTTP\/1.[01] \d+.*/m,inside:{property:{pattern:/(^HTTP\/1.[01] )\d+.*/i,lookbehind:!0}}},"header-name":{pattern:/^[\w-]+:(?=.)/m,alias:"keyword"}};var t,n=e.languages,r={"application/javascript":n.javascript,"application/json":n.json||n.javascript,"application/xml":n.xml,"text/xml":n.xml,"text/html":n.html,"text/css":n.css},o={"application/json":!0,"application/xml":!0};function i(e){var t=e.replace(/^[a-z]+\//,"");return"(?:"+e+"|"+("\\w+/(?:[\\w.-]+\\+)+"+t+"(?![+\\w.-])")+")"}for(var a in r)if(r[a]){t=t||{};var s=o[a]?i(a):a;t[a.replace(/\//g,"-")]={pattern:RegExp("(content-type:\\s*"+s+"[\\s\\S]*?)(?:\\r?\\n|\\r){2}[\\s\\S]*","i"),lookbehind:!0,inside:r[a]}}t&&e.languages.insertBefore("http","header-name",t)}(Prism)},function(e,t){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+t[+n]+")"})}function n(e,n,r){return RegExp(t(e,n),r||"")}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,function(){return"(?:"+e+")"});return e.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface struct",a="add alias ascending async await by descending from get global group into join let nameof notnull on orderby partial remove select set unmanaged value when where where",s="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function c(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var l=c(i),u=RegExp(c(o+" "+i+" "+a+" "+s)),p=c(i+" "+a+" "+s),f=c(o+" "+i+" "+s),d=r(/<(?:[^<>;=+\-*\/%&|^]|<<self>>)*>/.source,2),h=r(/\((?:[^()]|<<self>>)*\)/.source,2),v=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[v,d]),g=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[p,m]),y=/\[\s*(?:,\s*)*\]/.source,b=t(/[^,()<>[\];=+\-*\/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,h,y]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[b]),w=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,g,y]),k={keyword:u,punctuation:/[<>()?,.:[\]]/},S=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,O=/"(?:\\.|[^\\"\r\n])*"/.source,_=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[_]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[O]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:"character"}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[g]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[v,w]),lookbehind:!0,inside:k},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[v]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[l,m]),lookbehind:!0,inside:k},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[g]),lookbehind:!0,inside:k},{pattern:n(/(\bwhere\s+)<<0>>/.source,[v]),lookbehind:!0},{pattern:n(/(\b(?:is|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:k},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>)<<2>>(?:\s*[=,;:{)\]]|\s+in))/.source,[w,f,v]),inside:k}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*\/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[v]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[v]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|typeof|sizeof)\s*\(\s*)(?:[^()\s]|\s(?!\s*\))|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:k},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[w,g]),inside:k,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[w]),lookbehind:!0,inside:k,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[v,d]),inside:{function:n(/^<<0>>/.source,[v]),generic:{pattern:RegExp(d),alias:"class-name",inside:k}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>)(?:\s*,\s*(?:<<3>>|<<4>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,m,v,w,u.source]),lookbehind:!0,inside:{keyword:u,"class-name":{pattern:RegExp(w),greedy:!0,inside:k},punctuation:/,/}},preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var E=O+"|"+S,A=t(/\/(?![*\/])|\/\/[^\r\n]*[\r\n]|\/\*[\s\S]*?\*\/|<<0>>/.source,[E]),T=r(t(/[^"'\/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),C=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,j=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[g,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[C,j]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[C]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(g),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var P=/:[^}\r\n]+/.source,I=r(t(/[^"'\/()]|<<0>>|\(<<self>>*\)/.source,[A]),2),R=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[I,P]),L=r(t(/[^"'\/()]|\/(?!\*)|\/\*.*?\*\/|<<0>>|\(<<self>>*\)/.source,[E]),2),N=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[L,P]);function M(t,r){return{interpolation:{pattern:n(/([^{](?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[r,P]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[R]),lookbehind:!0,greedy:!0,inside:M(R,I)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[N]),lookbehind:!0,greedy:!0,inside:M(N,L)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp},function(e,t,n){(function(e,r){var o;/*! https://mths.be/punycode v1.4.1 by @mathias */!function(i){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,c=2147483647,l=36,u=1,p=26,f=38,d=700,h=72,v=128,m="-",g=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=l-u,k=Math.floor,S=String.fromCharCode;function O(e){throw new RangeError(x[e])}function _(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function E(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+_((e=e.replace(b,".")).split("."),t).join(".")}function A(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function T(e){return _(e,function(e){var t="";return e>65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function C(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function j(e,t,n){var r=0;for(e=n?k(e/d):e>>1,e+=k(e/t);e>w*p>>1;r+=l)e=k(e/w);return k(r+(w+1)*e/(e+f))}function P(e){var t,n,r,o,i,a,s,f,d,g,y,b=[],x=e.length,w=0,S=v,_=h;for((n=e.lastIndexOf(m))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&O("not-basic"),b.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<x;){for(i=w,a=1,s=l;o>=x&&O("invalid-input"),((f=(y=e.charCodeAt(o++))-48<10?y-22:y-65<26?y-65:y-97<26?y-97:l)>=l||f>k((c-w)/a))&&O("overflow"),w+=f*a,!(f<(d=s<=_?u:s>=_+p?p:s-_));s+=l)a>k(c/(g=l-d))&&O("overflow"),a*=g;_=j(w-i,t=b.length+1,0==i),k(w/t)>c-S&&O("overflow"),S+=k(w/t),w%=t,b.splice(w++,0,S)}return T(b)}function I(e){var t,n,r,o,i,a,s,f,d,g,y,b,x,w,_,E=[];for(b=(e=A(e)).length,t=v,n=0,i=h,a=0;a<b;++a)(y=e[a])<128&&E.push(S(y));for(r=o=E.length,o&&E.push(m);r<b;){for(s=c,a=0;a<b;++a)(y=e[a])>=t&&y<s&&(s=y);for(s-t>k((c-n)/(x=r+1))&&O("overflow"),n+=(s-t)*x,t=s,a=0;a<b;++a)if((y=e[a])<t&&++n>c&&O("overflow"),y==t){for(f=n,d=l;!(f<(g=d<=i?u:d>=i+p?p:d-i));d+=l)_=f-g,w=l-g,E.push(S(C(g+_%w,0))),f=k(_/w);E.push(S(C(f,0))),i=j(n,x,r==o),n=0,++r}++n,++t}return E.join("")}s={version:"1.4.1",ucs2:{decode:A,encode:T},decode:P,encode:I,toASCII:function(e){return E(e,function(e){return y.test(e)?"xn--"+I(e):e})},toUnicode:function(e){return E(e,function(e){return g.test(e)?P(e.slice(4).toLowerCase()):e})}},void 0===(o=function(){return s}.call(t,n,t,e))||(e.exports=o)}()}).call(this,n(91)(e),n(25))},function(e,t,n){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},function(e,t,n){"use strict";t.decode=t.parse=n(269),t.encode=t.stringify=n(270)},function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var p,f,d,h,v=e[u].replace(s,"%20"),m=v.indexOf(n);m>=0?(p=v.substr(0,m),f=v.substr(m+1)):(p=v,f=""),d=decodeURIComponent(p),h=decodeURIComponent(f),r(a,d)?o(a[d])?a[d].push(h):a[d]=[a[d],h]:a[d]=h}return a};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?i(a(e),function(a){var s=encodeURIComponent(r(a))+n;return o(e[a])?i(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function i(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var a=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},function(e,t,n){"use strict";(function(t,n){var r=t.process&&n.nextTick||t.setImmediate||function(e){setTimeout(e,0)};e.exports=function(e,t){return e?void t.then(function(t){r(function(){e(null,t)})},function(t){r(function(){e(t)})}):t}}).call(this,n(25),n(43))},function(e,t,n){var r=n(4);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}},function(e,t,n){var r=n(124);function o(t,n,i){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?e.exports=o=function(e,t,n){var o=[null];o.push.apply(o,t);var i=new(Function.bind.apply(e,o));return n&&r(i,n.prototype),i}:e.exports=o=Reflect.construct,o.apply(null,arguments)}e.exports=o},function(e,t){e.exports=function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t,n){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){for(var t,n=l(e),r=n[0],a=n[1],s=new i(function(e,t,n){return 3*(t+n)/4-n}(0,r,a)),c=0,u=a>0?r-4:r,p=0;p<u;p+=4)t=o[e.charCodeAt(p)]<<18|o[e.charCodeAt(p+1)]<<12|o[e.charCodeAt(p+2)]<<6|o[e.charCodeAt(p+3)],s[c++]=t>>16&255,s[c++]=t>>8&255,s[c++]=255&t;2===a&&(t=o[e.charCodeAt(p)]<<2|o[e.charCodeAt(p+1)]>>4,s[c++]=255&t);1===a&&(t=o[e.charCodeAt(p)]<<10|o[e.charCodeAt(p+1)]<<4|o[e.charCodeAt(p+2)]>>2,s[c++]=t>>8&255,s[c++]=255&t);return s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(u(e,a,a+16383>s?s:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?o-1:0,f=n?-1:1,d=e[t+p];for(p+=f,i=d&(1<<-u)-1,d>>=-u,u+=s;u>0;i=256*i+e[t+p],p+=f,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+p],p+=f,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),i-=l}return(d?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<<l)-1,p=u>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+p>=1?f/c:f*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=u?(s=0,a=u):a+p>=1?(s=(t*c-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[n+d]=255&s,d+=h,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;e[n+d]=255&a,d+=h,a/=256,l-=8);e[n+d-h]|=128*v}},function(e,t,n){"use strict";const r=n(172),o=n(173),i=n(32),a=n(53),s=n(174),c=n(92).jptr,l=n(126).recurse,u=n(93).clone,p=n(280).dereference,f=n(125).isRef,d=n(178);function h(e,t,n,r,o,a){let s=a.externalRefs[n+r].paths[0],p=i.parse(o),h={},v=1;for(;v;)v=0,l(e,{identityDetection:!0},function(e,n,r){if(f(e,n))if(e[n].startsWith("#"))if(h[e[n]]||e.$fixed){if(!e.$fixed){let t=(s+"/"+h[e[n]]).split("/#/").join("/");r.parent[r.pkey]={$ref:t,"x-miro":e[n],$fixed:!0},a.verbose>1&&console.warn("Replacing with",t),v++}}else{let o=u(c(t,e[n]));if(a.verbose>1&&console.warn((!1===o?d.colour.red:d.colour.green)+"Fragment resolution",e[n],d.colour.normal),!1===o){if(r.parent[r.pkey]={},a.fatal){let t=new Error("Fragment $ref resolution failed "+e[n]);if(!a.promise)throw t;a.promise.reject(t)}}else v++,r.parent[r.pkey]=o,h[e[n]]=r.path.replace("/%24ref","")}else if(p.protocol){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(d.colour.yellow+"Rewriting external url ref",e[n],"as",t,d.colour.normal),e["x-miro"]=e[n],e[n]=t}else if(!e["x-miro"]){let t=i.resolve(o,e[n]).toString();a.verbose>1&&console.warn(d.colour.yellow+"Rewriting external ref",e[n],"as",t,d.colour.normal),e["x-miro"]=e[n],e[n]=t}});return l(e,{},function(e,t,n){f(e,t)&&void 0!==e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function v(e,t){if(!t.filters||!t.filters.length)return e;for(let n of t.filters)e=n(e,t);return e}function m(e,t,n,l){var p=i.parse(n.source),f=n.source.split("\\").join("/").split("/");f.pop()||f.pop();let d="",m=t.split("#");m.length>1&&(d="#"+m[1],t=m[0]),f=f.join("/");let g=i.parse(t),y=(b=g.protocol,x=p.protocol,b&&b.length>2?b:x&&x.length>2?x:"file:");var b,x;let w;if(w="file:"===y?o.resolve(f?f+"/":"",t):i.resolve(f?f+"/":"",t),n.cache[w]){n.verbose&&console.warn("CACHED",w,d);let e=u(n.cache[w]),r=n.externalRef=e;if(d&&!1===(r=c(r,d))&&(r={},n.fatal)){let e=new Error("Cached $ref resolution failed "+w+d);if(!n.promise)throw e;n.promise.reject(e)}return r=v(r=h(r,e,t,d,w,n),n),l(u(r),w,n),Promise.resolve(r)}return n.verbose&&console.warn("GET",w,d),n.handlers&&n.handlers[y]?n.handlers[y](f,t,d,n).then(function(e){return n.externalRef=e,e=v(e,n),n.cache[w]=e,l(e,w,n),e}).catch(function(e){throw n.verbose&&console.warn(e),e}):y&&y.startsWith("http")?a(w,{agent:n.agent}).then(function(e){if(200!==e.status)throw new Error(`Received status code ${e.status}: ${w}`);return e.text()}).then(function(e){try{let r=s.parse(e,{schema:"core",prettyErrors:!0});if(e=n.externalRef=r,n.cache[w]=u(e),d&&!1===(e=c(e,d))&&(e={},n.fatal)){let e=new Error("Remote $ref resolution failed "+w+d);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=h(e,r,t,d,w,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return l(e,w,n),e}).catch(function(e){if(n.verbose&&console.warn(e),n.cache[w]={},!n.promise||!n.fatal)throw e;n.promise.reject(e)}):(k=w,S=n.encoding||"utf8",new Promise(function(e,t){r.readFile(k,S,function(n,r){n?t(n):e(r)})})).then(function(e){try{let r=s.parse(e,{schema:"core",prettyErrors:!0});if(e=n.externalRef=r,n.cache[w]=u(e),d&&!1===(e=c(e,d))&&(e={},n.fatal)){let e=new Error("File $ref resolution failed "+w+d);if(!n.promise)throw e;n.promise.reject(e)}e=v(e=h(e,r,t,d,w,n),n)}catch(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)}return l(e,w,n),e}).catch(function(e){if(n.verbose&&console.warn(e),!n.promise||!n.fatal)throw e;n.promise.reject(e)});var k,S}function g(e){return new Promise(function(t,n){(function(e){return new Promise(function(t,n){function r(t,n,r){if(t[n]&&f(t[n],"$ref")){let i=t[n].$ref;if(!i.startsWith("#")){let a="";if(!o[i]){let t=Object.keys(o).find(function(e,t,n){return i.startsWith(e+"/")});t&&(e.verbose&&console.warn("Found potential subschema at",t),a=(a="/"+(i.split("#")[1]||"").replace(t.split("#")[1]||"")).split("/undefined").join(""),i=t)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:t[n].description}),o[i].resolved)if(e.rewriteRefs){let r=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,r),t[n]["x-miro"]=i,t[n].$ref=r+a}else t[n]=u(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}let o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(o);l(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),l(e.openapi.components,{identityDetection:!0,path:"#/components"},r),l(e.openapi,{identityDetection:!0},r),t(o)})})(e).then(function(t){for(let n in t)if(!t[n].resolved){let r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return m(e.openapi,n,e,function(e,r,o){if(!t[n].resolved){let i={};i.context=t[n],i.$ref=n,i.original=u(e),i.updated=e,i.source=r,o.externals.push(i),t[n].resolved=!0}let i=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&t[n].description&&!e.description&&"object"==typeof e&&(e.description=t[n].description),t[n].data=e;let a=(s=t[n].paths,[...new Set(s)]);var s;a=a.sort(function(e,t){const n=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=t.startsWith("#/components/")||t.startsWith("#/definitions/");return n&&!r?-1:r&&!n?1:0});for(let r of a)if(t[n].resolvedAt&&r!==t[n].resolvedAt&&r.indexOf("x-ms-examples/")<0)o.verbose>1&&console.warn("Creating pointer to data at",r),c(o.openapi,r,{$ref:t[n].resolvedAt+t[n].extras[r],"x-miro":n+t[n].extras[r]});else{t[n].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(t[n].resolvedAt=r,o.verbose>1&&console.warn("Creating initial clone of data at",r));let i=u(e);c(o.openapi,r,i)}0===o.resolver.actions[i.resolver.depth].length&&o.resolver.actions[i.resolver.depth].push(function(){return g(i)})})})}}).catch(function(t){e.verbose&&console.warn(t),n(t)});let r={options:e};r.actions=e.resolver.actions[e.resolver.depth],t(r)})}const y=e=>e.reduce((e,t)=>e.then(e=>t().then(Array.prototype.concat.bind(e))),Promise.resolve([]));function b(e,t,n){e.resolver.actions.push([]),g(e).then(function(r){y(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){b(r.options,t,n)},0):(e.verbose>1&&console.warn(d.colour.yellow+"Finished external resolution!",d.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(d.colour.yellow+"Starting internal resolution!",d.colour.normal),e.openapi=p(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(d.colour.yellow+"Finished internal resolution!",d.colour.normal)),l(e.openapi,{},function(t,n,r){f(t,n)&&(e.preserveMiro||delete t["x-miro"])}),t(e))}).catch(function(t){e.verbose&&console.warn(t),n(t)})}).catch(function(t){e.verbose&&console.warn(t),n(t)})}function x(e){if(e.cache||(e.cache={}),e.source){let t=i.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=o.resolve(e.source))}e.externals||(e.externals=[]),e.externalRefs||(e.externalRefs={}),e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}e.exports={optionalResolve:function(e){return x(e),new Promise(function(t,n){e.resolve?b(e,t,n):t(e)})},resolve:function(e,t,n){return n||(n={}),n.openapi=e,n.source=t,n.resolve=!0,x(n),new Promise(function(e,t){b(n,e,t)})}}},function(e,t,n){"use strict";const r=n(126).recurse,o=n(93).shallowClone,i=n(92).jptr,a=n(125).isRef;var s=function(e){return e&&e.verbose?{warn:function(){var e=Array.prototype.slice.call(arguments);console.warn.apply(console,e)}}:{warn:function(){}}};e.exports={dereference:function e(t,n,c){c||(c={}),c.cache||(c.cache={}),c.state||(c.state={}),c.state.identityDetection=!0,c.depth=c.depth?c.depth+1:1;let l=c.depth>1?t:o(t),u={data:l},p=c.depth>1?n:o(n);c.master||(c.master=l);let f=s(c),d=1;for(;d>0;)d=0,r(u,c.state,function(t,n,r){if(a(t,n)){let o=t[n];if(d++,c.cache[o]){let e=c.cache[o];if(e.resolved)f.warn("Patching %s for %s",o,e.path),r.parent[r.pkey]=e.data,c.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][c.$ref]=o);else{if(o===e.path)throw new Error(`Tight circle at ${e.path}`);f.warn("Unresolved ref"),r.parent[r.pkey]=i(e.source,e.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(e.source,e.key)),c.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[c.$ref]=o)}}else{let t={};t.path=r.path.split("/$ref")[0],t.key=o,f.warn("Dereffing %s at %s",o,t.path),t.source=p,t.data=i(t.source,t.key),!1===t.data&&(t.data=i(c.master,t.key),t.source=c.master),!1===t.data&&f.warn("Missing $ref target",t.key),c.cache[o]=t,t.data=r.parent[r.pkey]=e(i(t.source,t.key),t.source,c),c.$ref&&"object"==typeof r.parent[r.pkey]&&(r.parent[r.pkey][c.$ref]=o),t.resolved=!0}}});return u.data}}},function(e,t){e.exports=o,o.default=o,o.stable=a,o.stableStringify=a;var n=[],r=[];function o(e,t,o){var i;for(!function e(t,o,i,a){var s;if("object"==typeof t&&null!==t){for(s=0;s<i.length;s++)if(i[s]===t){var c=Object.getOwnPropertyDescriptor(a,o);return void(void 0!==c.get?c.configurable?(Object.defineProperty(a,o,{value:"[Circular]"}),n.push([a,o,t,c])):r.push([t,o]):(a[o]="[Circular]",n.push([a,o,t])))}if(i.push(t),Array.isArray(t))for(s=0;s<t.length;s++)e(t[s],s,i,t);else{var l=Object.keys(t);for(s=0;s<l.length;s++){var u=l[s];e(t[u],u,i,t)}}i.pop()}}(e,"",[],void 0),i=0===r.length?JSON.stringify(e,t,o):JSON.stringify(e,s(t),o);0!==n.length;){var a=n.pop();4===a.length?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}return i}function i(e,t){return e<t?-1:e>t?1:0}function a(e,t,o){var a,c=function e(t,o,a,s){var c;if("object"==typeof t&&null!==t){for(c=0;c<a.length;c++)if(a[c]===t){var l=Object.getOwnPropertyDescriptor(s,o);return void(void 0!==l.get?l.configurable?(Object.defineProperty(s,o,{value:"[Circular]"}),n.push([s,o,t,l])):r.push([t,o]):(s[o]="[Circular]",n.push([s,o,t])))}if("function"==typeof t.toJSON)return;if(a.push(t),Array.isArray(t))for(c=0;c<t.length;c++)e(t[c],c,a,t);else{var u={},p=Object.keys(t).sort(i);for(c=0;c<p.length;c++){var f=p[c];e(t[f],f,a,t),u[f]=t[f]}if(void 0===s)return u;n.push([s,o,t]),s[o]=u}a.pop()}}(e,"",[],void 0)||e;for(a=0===r.length?JSON.stringify(c,t,o):JSON.stringify(c,s(t),o);0!==n.length;){var l=n.pop();4===l.length?Object.defineProperty(l[0],l[1],l[3]):l[0][l[1]]=l[2]}return a}function s(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(r.length>0)for(var o=0;o<r.length;o++){var i=r[o];if(i[1]===t&&i[0]===n){n="[Circular]",r.splice(o,1);break}}return e.call(this,t,n)}}},function(e,t,n){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(t,n,o,i){if(void 0===o.depth&&(o=r()),null==t)return t;if(void 0!==t.$ref){let e={$ref:t.$ref};return o.allowRefSiblings&&t.description&&(e.description=t.description),i(e,n,o),e}if(o.combine&&(t.allOf&&Array.isArray(t.allOf)&&1===t.allOf.length&&delete(t=Object.assign({},t.allOf[0],t)).allOf,t.anyOf&&Array.isArray(t.anyOf)&&1===t.anyOf.length&&delete(t=Object.assign({},t.anyOf[0],t)).anyOf,t.oneOf&&Array.isArray(t.oneOf)&&1===t.oneOf.length&&delete(t=Object.assign({},t.oneOf[0],t)).oneOf),i(t,n,o),o.seen.has(t))return t;if("object"==typeof t&&null!==t&&o.seen.set(t,!0),o.top=!1,o.depth++,void 0!==t.items&&(o.property="items",e(t.items,t,o,i)),t.additionalItems&&"object"==typeof t.additionalItems&&(o.property="additionalItems",e(t.additionalItems,t,o,i)),t.additionalProperties&&"object"==typeof t.additionalProperties&&(o.property="additionalProperties",e(t.additionalProperties,t,o,i)),t.properties)for(let n in t.properties){let r=t.properties[n];o.property="properties/"+n,e(r,t,o,i)}if(t.patternProperties)for(let n in t.patternProperties){let r=t.patternProperties[n];o.property="patternProperties/"+n,e(r,t,o,i)}if(t.allOf)for(let n in t.allOf){let r=t.allOf[n];o.property="allOf/"+n,e(r,t,o,i)}if(t.anyOf)for(let n in t.anyOf){let r=t.anyOf[n];o.property="anyOf/"+n,e(r,t,o,i)}if(t.oneOf)for(let n in t.oneOf){let r=t.oneOf[n];o.property="oneOf/"+n,e(r,t,o,i)}return t.not&&(o.property="not",e(t.not,t,o,i)),o.depth--,t}}},function(e,t,n){"use strict";const r=n(284);e.exports={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},r.STATUS_CODES)}},function(e,t,n){(function(e){var r=n(285),o=n(180),i=n(294),a=n(295),s=n(32),c=t;c.request=function(t,n){t="string"==typeof t?s.parse(t):i(t);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||o,c=t.hostname||t.host,l=t.port,u=t.path||"/";c&&-1!==c.indexOf(":")&&(c="["+c+"]"),t.url=(c?a+"//"+c:"")+(l?":"+l:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var p=new r(t);return n&&p.on("response",n),p},c.get=function(e,t){var n=c.request(e,t);return n.end(),n},c.ClientRequest=r,c.IncomingMessage=o.IncomingMessage,c.Agent=function(){},c.Agent.defaultMaxSockets=4,c.globalAgent=new c.Agent,c.STATUS_CODES=a,c.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n(25))},function(e,t,n){(function(t,r,o){var i=n(179),a=n(55),s=n(180),c=n(181),l=n(293),u=s.IncomingMessage,p=s.readyStates;var f=e.exports=function(e){var n,r=this;c.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=function(e,t){return i.fetch&&t?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(n,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(f,c.Writable),f.prototype.setHeader=function(e,t){var n=e.toLowerCase();-1===d.indexOf(n)&&(this._headers[n]={name:e,value:t})},f.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},f.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},f.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=i.arraybuffer?l(t.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return l(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var c=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){c.push([t,e])}):c.push([t,n])}),"fetch"===e._mode){var u=null;if(i.abortController){var f=new AbortController;u=f.signal,e._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:c,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var d=e._xhr=new r.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}"responseType"in d&&(d.responseType=e._mode.split(":")[0]),"withCredentials"in d&&(d.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(d.timeout=n.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),c.forEach(function(e){d.setRequestHeader(e[0],e[1])}),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{d.send(s)}catch(t){return void o.nextTick(function(){e.emit("error",t)})}}}},f.prototype._onXHRProgress=function(){(function(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},f.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},f.prototype._write=function(e,t,n){this._body.push(e),n()},f.prototype.abort=f.prototype.destroy=function(){this._destroyed=!0,r.clearTimeout(this._fetchTimer),this._response&&(this._response._destroyed=!0),this._xhr?this._xhr.abort():this._fetchAbortController&&this._fetchAbortController.abort()},f.prototype.end=function(e,t,n){"function"==typeof e&&(n=e,e=void 0),c.Writable.prototype.end.call(this,e,t,n)},f.prototype.flushHeaders=function(){},f.prototype.setTimeout=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var d=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n(29).Buffer,n(25),n(43))},function(e,t){},function(e,t,n){"use strict";var r=n(95).Buffer,o=n(288);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var t,n,o,i=r.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,o=s,t.copy(n,o),s+=a.data.length,a=a.next;return i},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(290),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(25))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,o,i,a,s,c=1,l={},u=!1,p=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(o=p.documentElement,r=function(e){var t=p.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return l[c]=o,r(c),c++},f.clearImmediate=d}function d(e){delete l[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=l[e];if(t){u=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{d(e),u=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(25),n(43))},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(25))},function(e,t,n){"use strict";e.exports=i;var r=n(188),o=n(76);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}o.inherits=n(55),o.inherits(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},function(e,t,n){var r=n(29).Buffer;e.exports=function(e){if(e instanceof Uint8Array){if(0===e.byteOffset&&e.byteLength===e.buffer.byteLength)return e.buffer;if("function"==typeof e.buffer.slice)return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}if(r.isBuffer(e)){for(var t=new Uint8Array(e.length),n=e.length,o=0;o<n;o++)t[o]=e[o];return t.buffer}throw new Error("Argument must be a Buffer")}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var o in r)n.call(r,o)&&(e[o]=r[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(e){e.exports=JSON.parse('{"name":"swagger2openapi","version":"5.4.0","description":"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate","main":"index.js","bin":{"swagger2openapi":"./swagger2openapi.js","oas-validate":"./oas-validate.js","boast":"./boast.js"},"scripts":{"test":"mocha"},"browserify":{"transform":[["babelify",{"presets":["es2015"]}]]},"repository":{"url":"https://github.com/Mermade/oas-kit.git","type":"git"},"bugs":{"url":"https://github.com/mermade/oas-kit/issues"},"author":"Mike Ralphson <mike.ralphson@gmail.com>","license":"BSD-3-Clause","dependencies":{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.3.0","oas-schema-walker":"^1.1.3","oas-validator":"^3.4.0","reftools":"^1.1.0","yaml":"^1.8.3","yargs":"^12.0.5"},"keywords":["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],"gitHead":"56775c59b1a2e7a8b77dc9e23821e70faf15bdb7"}')},function(e,t,n){n(298);var r=n(14).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(17);r(r.S+r.F*!n(34),"Object",{defineProperty:n(39).f})},function(e,t,n){e.exports=n(300)},function(e,t,n){n(301);var r=n(14).Object;e.exports=function(e,t){return r.defineProperties(e,t)}},function(e,t,n){var r=n(17);r(r.S+r.F*!n(34),"Object",{defineProperties:n(190)})},function(e,t,n){var r=n(45),o=n(96),i=n(303);e.exports=function(e){return function(t,n,a){var s,c=r(t),l=o(c.length),u=i(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(132),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){e.exports=n(305)},function(e,t,n){n(306),e.exports=n(14).Object.getOwnPropertyDescriptors},function(e,t,n){var r=n(17),o=n(307),i=n(45),a=n(80),s=n(192);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),c=a.f,l=o(r),u={},p=0;l.length>p;)void 0!==(n=c(r,t=l[p++]))&&s(u,t,n);return u}})},function(e,t,n){var r=n(136),o=n(98),i=n(28),a=n(19).Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){n(309);var r=n(14).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},function(e,t,n){var r=n(45),o=n(80).f;n(137)("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},function(e,t,n){n(195),e.exports=n(14).Object.getOwnPropertySymbols},function(e,t,n){var r=n(63),o=n(98),i=n(81);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var a,s=n(e),c=i.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},function(e,t,n){var r=n(45),o=n(136).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return a.slice()}}(e):o(r(e))}},function(e,t,n){n(314),e.exports=n(14).Object.keys},function(e,t,n){var r=n(57),o=n(63);n(137)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(47),o=n(318),i=n(36),a=n(200),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,f=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:s).test(a(e))}},function(e,t,n){var r=n(65),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(319),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(40)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(322),o=n(327);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t})}},function(e,t,n){var r=n(142),o=n(201),i=n(202);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(325),o=n(198),i=n(142),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(102),o=n(84),i=n(103),a=n(36);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(64),o=n(52),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(64),o=n(143),i=n(52),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(104),o=n(333),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(205)(Object.keys,Object);e.exports=r},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(337),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){var r=n(36),o=n(105),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=c.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new A(r||[]);return i._invoke=function(e,t,n){var r=u;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=O(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?d:p,c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=d,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",p="suspendedYield",f="executing",d="completed",h={};function v(){}function m(){}function g(){}var y={};y[i]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(T([])));x&&x!==n&&r.call(x,i)&&(y=x);var w=g.prototype=v.prototype=Object.create(y);function k(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(e,t){var n;this._invoke=function(o,i){function a(){return new t(function(n,a){!function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,p=u.value;return p&&"object"==typeof p&&r.call(p,"__await")?t.resolve(p.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):t.resolve(p).then(function(e){u.value=e,a(u)},function(e){return n("throw",e,a,s)})}s(c.arg)}(o,i,n,a)})}return n=n?n.then(a,a):a()}}function O(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,O(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:C}}function C(){return{value:t,done:!0}}return m.prototype=w.constructor=g,g.constructor=m,g[s]=m.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},k(S.prototype),S.prototype[a]=function(){return this},e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(c(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},k(w),w[s]="Generator",w[i]=function(){return this},w.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){n(85),n(86),e.exports=n(345)},function(e,t,n){"use strict";var r=n(341),o=n(342),i=n(67),a=n(45);e.exports=n(210)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(100),o=n(77),i=n(82),a={};n(50)(a,n(26)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var r=n(132),o=n(131);e.exports=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){var r=n(28),o=n(149);e.exports=n(14).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(347),e.exports=n(14).Array.isArray},function(e,t,n){var r=n(17);r(r.S,"Array",{isArray:n(141)})},function(e,t,n){n(86),n(85),e.exports=n(139).f("iterator")},function(e,t,n){n(195),n(151),n(350),n(351),e.exports=n(14).Symbol},function(e,t,n){n(140)("asyncIterator")},function(e,t,n){n(140)("observable")},function(e,t,n){n(86),n(353),e.exports=n(14).Array.from},function(e,t,n){"use strict";var r=n(49),o=n(17),i=n(57),a=n(212),s=n(213),c=n(96),l=n(192),u=n(149);o(o.S+o.F*!n(214)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,o,p,f=i(e),d="function"==typeof this?this:Array,h=arguments.length,v=h>1?arguments[1]:void 0,m=void 0!==v,g=0,y=u(f);if(m&&(v=r(v,h>2?arguments[2]:void 0,2)),null==y||d==Array&&s(y))for(n=new d(t=c(f.length));t>g;g++)l(n,g,m?v(f[g],g):f[g]);else for(p=y.call(f),n=new d;!(o=p.next()).done;g++)l(n,g,m?a(p,v,[o.value,g],!0):o.value);return n.length=g,n}})},function(e,t,n){n(355),e.exports=n(14).Object.entries},function(e,t,n){var r=n(17),o=n(356)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(34),o=n(63),i=n(45),a=n(81).f;e.exports=function(e){return function(t){for(var n,s=i(t),c=o(s),l=c.length,u=0,p=[];l>u;)n=c[u++],r&&!a.call(s,n)||p.push(e?[n,s[n]]:s[n]);return p}}},function(e,t,n){var r=n(14),o=r.JSON||(r.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,n){var r=n(9);e.exports=function(e){if(r(e))return e}},function(e,t,n){var r=n(209),o=n(216),i=n(106);e.exports=function(e,t){if(void 0!==i&&o(Object(e))){var n=[],a=!0,s=!1,c=void 0;try{for(var l,u=r(e);!(a=(l=u.next()).done)&&(n.push(l.value),!t||n.length!==t);a=!0);}catch(e){s=!0,c=e}finally{try{a||null==u.return||u.return()}finally{if(s)throw c}}return n}}},function(e,t,n){n(85),n(86),e.exports=n(361)},function(e,t,n){var r=n(150),o=n(26)("iterator"),i=n(67);e.exports=n(14).isIterable=function(e){var t=Object(e);return void 0!==t[o]||"@@iterator"in t||i.hasOwnProperty(r(t))}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){n(151),n(86),n(85),n(364),n(368),n(369),e.exports=n(14).Promise},function(e,t,n){"use strict";var r,o,i,a,s=n(79),c=n(19),l=n(49),u=n(150),p=n(17),f=n(21),d=n(56),h=n(153),v=n(107),m=n(217),g=n(218).set,y=n(365)(),b=n(154),x=n(220),w=n(366),k=n(221),S=c.TypeError,O=c.process,_=O&&O.versions,E=_&&_.v8||"",A=c.Promise,T="process"==u(O),C=function(){},j=o=b.f,P=!!function(){try{var e=A.resolve(1),t=(e.constructor={})[n(26)("species")]=function(e){e(C,C)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(C)instanceof t&&0!==E.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},R=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,o=1==e._s,i=0,a=function(t){var n,i,a,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(o||(2==e._h&&M(e),e._h=1),!0===s?n=r:(u&&u.enter(),n=s(r),u&&(u.exit(),a=!0)),n===t.promise?l(S("Promise-chain cycle")):(i=I(n))?i.call(n,c,l):c(n)):l(r)}catch(e){u&&!a&&u.exit(),l(e)}};n.length>i;)a(n[i++]);e._c=[],e._n=!1,t&&!e._h&&L(e)})}},L=function(e){g.call(c,function(){var t,n,r,o=e._v,i=N(e);if(i&&(t=x(function(){T?O.emit("unhandledRejection",o,e):(n=c.onunhandledrejection)?n({promise:e,reason:o}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=T||N(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},M=function(e){g.call(c,function(){var t;T?O.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},B=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),R(t,!0))},D=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=I(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,l(D,r,1),l(B,r,1))}catch(e){B.call(r,e)}}):(n._v=e,n._s=1,R(n,!1))}catch(e){B.call({_w:n,_d:!1},e)}}};P||(A=function(e){h(this,A,"Promise","_h"),d(e),r.call(this);try{e(l(D,this,1),l(B,this,1))}catch(e){B.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(155)(A.prototype,{then:function(e,t){var n=j(m(this,A));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?O.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&R(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=l(D,e,1),this.reject=l(B,e,1)},b.f=j=function(e){return e===A||e===a?new i(e):o(e)}),p(p.G+p.W+p.F*!P,{Promise:A}),n(82)(A,"Promise"),n(367)("Promise"),a=n(14).Promise,p(p.S+p.F*!P,"Promise",{reject:function(e){var t=j(this);return(0,t.reject)(e),t.promise}}),p(p.S+p.F*(s||!P),"Promise",{resolve:function(e){return k(s&&this===a?A:this,e)}}),p(p.S+p.F*!(P&&n(214)(function(e){A.all(e).catch(C)})),"Promise",{all:function(e){var t=this,n=j(t),r=n.resolve,o=n.reject,i=x(function(){var n=[],i=0,a=1;v(e,!1,function(e){var s=i++,c=!1;n.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=j(t),r=n.reject,o=x(function(){v(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){var r=n(19),o=n(218).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,c="process"==n(78)(a);e.exports=function(){var e,t,n,l=function(){var r,o;for(c&&(r=a.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(c)n=function(){a.nextTick(l)};else if(!i||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){o.call(r,l)};else{var p=!0,f=document.createTextNode("");new i(l).observe(f,{characterData:!0}),n=function(){f.data=p=!p}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t,n){var r=n(19).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(19),o=n(14),i=n(39),a=n(34),s=n(26)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:r[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){"use strict";var r=n(17),o=n(14),i=n(19),a=n(217),s=n(221);r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var r=n(17),o=n(154),i=n(220);r(r.S,"Promise",{try:function(e){var t=o.f(this),n=i(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t){!function(e){!function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(n.arrayBuffer)var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],o=ArrayBuffer.isView||function(e){return e&&r.indexOf(Object.prototype.toString.call(e))>-1};function i(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function c(e){this.map={},e instanceof c?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=u(t);return t.readAsArrayBuffer(e),n}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function d(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:n.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:n.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():n.arrayBuffer&&n.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?l(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=l(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=u(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(m)}),this.json=function(){return this.text().then(JSON.parse)},this}c.prototype.append=function(e,t){e=i(e),t=a(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},c.prototype.delete=function(e){delete this.map[i(e)]},c.prototype.get=function(e){return e=i(e),this.has(e)?this.map[e]:null},c.prototype.has=function(e){return this.map.hasOwnProperty(i(e))},c.prototype.set=function(e,t){this.map[i(e)]=a(t)},c.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},c.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),s(e)},c.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),s(e)},c.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),s(e)},n.iterable&&(c.prototype[Symbol.iterator]=c.prototype.entries);var h=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function v(e,t){var n,r,o=(t=t||{}).body;if(e instanceof v){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new c(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new c(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),h.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function m(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new c(t.headers),this.url=t.url||"",this._initBody(e)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},d.call(v.prototype),d.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var y=[301,302,303,307,308];g.redirect=function(e,t){if(-1===y.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function b(e,r){return new Promise(function(o,i){var a=new v(e,r);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new c,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}}),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var r="response"in s?s.response:s.responseText;o(new g(r,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&n.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send(void 0===a._bodyInit?null:a._bodyInit)})}b.polyfill=!0,e.fetch||(e.fetch=b,e.Headers=c,e.Request=v,e.Response=g),t.Headers=c,t.Request=v,t.Response=g,t.fetch=b}({})}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";var r=n(372),o=n(391);function i(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}e.exports.Type=n(20),e.exports.Schema=n(69),e.exports.FAILSAFE_SCHEMA=n(156),e.exports.JSON_SCHEMA=n(223),e.exports.CORE_SCHEMA=n(222),e.exports.DEFAULT_SAFE_SCHEMA=n(88),e.exports.DEFAULT_FULL_SCHEMA=n(108),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.safeLoad=r.safeLoad,e.exports.safeLoadAll=r.safeLoadAll,e.exports.dump=o.dump,e.exports.safeDump=o.safeDump,e.exports.YAMLException=n(87),e.exports.MINIMAL_SCHEMA=n(156),e.exports.SAFE_SCHEMA=n(88),e.exports.DEFAULT_SCHEMA=n(108),e.exports.scan=i("scan"),e.exports.parse=i("parse"),e.exports.compose=i("compose"),e.exports.addConstructor=i("addConstructor")},function(e,t,n){"use strict";var r=n(68),o=n(87),i=n(373),a=n(88),s=n(108),c=Object.prototype.hasOwnProperty,l=1,u=2,p=3,f=4,d=1,h=2,v=3,m=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,g=/[\x85\u2028\u2029]/,y=/[,\[\]\{\}]/,b=/^(?:!|!!|![a-z\-]+!)$/i,x=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function w(e){return Object.prototype.toString.call(e)}function k(e){return 10===e||13===e}function S(e){return 9===e||32===e}function O(e){return 9===e||32===e||10===e||13===e}function _(e){return 44===e||91===e||93===e||123===e||125===e}function E(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function A(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e?"\t":9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"…":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function T(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var C=new Array(256),j=new Array(256),P=0;P<256;P++)C[P]=A(P)?1:0,j[P]=A(P);function I(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||s,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function R(e,t){return new o(t,new i(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function L(e,t){throw R(e,t)}function N(e,t){e.onWarning&&e.onWarning.call(null,R(e,t))}var M={YAML:function(e,t,n){var r,o,i;null!==e.version&&L(e,"duplication of %YAML directive"),1!==n.length&&L(e,"YAML directive accepts exactly one argument"),null===(r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]))&&L(e,"ill-formed argument of the YAML directive"),o=parseInt(r[1],10),i=parseInt(r[2],10),1!==o&&L(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&N(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var r,o;2!==n.length&&L(e,"TAG directive accepts exactly two arguments"),r=n[0],o=n[1],b.test(r)||L(e,"ill-formed tag handle (first argument) of the TAG directive"),c.call(e.tagMap,r)&&L(e,'there is a previously declared suffix for "'+r+'" tag handle'),x.test(o)||L(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[r]=o}};function B(e,t,n,r){var o,i,a,s;if(t<n){if(s=e.input.slice(t,n),r)for(o=0,i=s.length;o<i;o+=1)9===(a=s.charCodeAt(o))||32<=a&&a<=1114111||L(e,"expected valid JSON character");else m.test(s)&&L(e,"the stream contains non-printable characters");e.result+=s}}function D(e,t,n,o){var i,a,s,l;for(r.isObject(n)||L(e,"cannot merge mappings; the provided source object is unacceptable"),s=0,l=(i=Object.keys(n)).length;s<l;s+=1)a=i[s],c.call(t,a)||(t[a]=n[a],o[a]=!0)}function F(e,t,n,r,o,i,a,s){var l,u;if(Array.isArray(o))for(l=0,u=(o=Array.prototype.slice.call(o)).length;l<u;l+=1)Array.isArray(o[l])&&L(e,"nested arrays are not supported inside keys"),"object"==typeof o&&"[object Object]"===w(o[l])&&(o[l]="[object Object]");if("object"==typeof o&&"[object Object]"===w(o)&&(o="[object Object]"),o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)D(e,t,i[l],n);else D(e,t,i,n);else e.json||c.call(n,o)||!c.call(t,o)||(e.line=a||e.line,e.position=s||e.position,L(e,"duplicated mapping key")),t[o]=i,delete n[o];return t}function z(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):L(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function q(e,t,n){for(var r=0,o=e.input.charCodeAt(e.position);0!==o;){for(;S(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do{o=e.input.charCodeAt(++e.position)}while(10!==o&&13!==o&&0!==o);if(!k(o))break;for(z(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==r&&e.lineIndent<n&&N(e,"deficient indentation"),r}function U(e){var t,n=e.position;return!(45!==(t=e.input.charCodeAt(n))&&46!==t||t!==e.input.charCodeAt(n+1)||t!==e.input.charCodeAt(n+2)||(n+=3,0!==(t=e.input.charCodeAt(n))&&!O(t)))}function $(e,t){1===t?e.result+=" ":t>1&&(e.result+=r.repeat("\n",t-1))}function H(e,t){var n,r,o=e.tag,i=e.anchor,a=[],s=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=a),r=e.input.charCodeAt(e.position);0!==r&&45===r&&O(e.input.charCodeAt(e.position+1));)if(s=!0,e.position++,q(e,!0,-1)&&e.lineIndent<=t)a.push(null),r=e.input.charCodeAt(e.position);else if(n=e.line,K(e,t,p,!1,!0),a.push(e.result),q(e,!0,-1),r=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&0!==r)L(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!s&&(e.tag=o,e.anchor=i,e.kind="sequence",e.result=a,!0)}function W(e){var t,n,r,o,i=!1,a=!1;if(33!==(o=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&L(e,"duplication of a tag property"),60===(o=e.input.charCodeAt(++e.position))?(i=!0,o=e.input.charCodeAt(++e.position)):33===o?(a=!0,n="!!",o=e.input.charCodeAt(++e.position)):n="!",t=e.position,i){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&62!==o);e.position<e.length?(r=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):L(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==o&&!O(o);)33===o&&(a?L(e,"tag suffix cannot contain exclamation marks"):(n=e.input.slice(t-1,e.position+1),b.test(n)||L(e,"named tag handle cannot contain such characters"),a=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);r=e.input.slice(t,e.position),y.test(r)&&L(e,"tag suffix cannot contain flow indicator characters")}return r&&!x.test(r)&&L(e,"tag name cannot contain such characters: "+r),i?e.tag=r:c.call(e.tagMap,n)?e.tag=e.tagMap[n]+r:"!"===n?e.tag="!"+r:"!!"===n?e.tag="tag:yaml.org,2002:"+r:L(e,'undeclared tag handle "'+n+'"'),!0}function V(e){var t,n;if(38!==(n=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&L(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!O(n)&&!_(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&L(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function K(e,t,n,o,i){var a,s,m,g,y,b,x,w,A=1,P=!1,I=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,a=s=m=f===n||p===n,o&&q(e,!0,-1)&&(P=!0,e.lineIndent>t?A=1:e.lineIndent===t?A=0:e.lineIndent<t&&(A=-1)),1===A)for(;W(e)||V(e);)q(e,!0,-1)?(P=!0,m=a,e.lineIndent>t?A=1:e.lineIndent===t?A=0:e.lineIndent<t&&(A=-1)):m=!1;if(m&&(m=P||i),1!==A&&f!==n||(x=l===n||u===n?t:t+1,w=e.position-e.lineStart,1===A?m&&(H(e,w)||function(e,t,n){var r,o,i,a,s,c=e.tag,l=e.anchor,p={},d={},h=null,v=null,m=null,g=!1,y=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=p),s=e.input.charCodeAt(e.position);0!==s;){if(r=e.input.charCodeAt(e.position+1),i=e.line,a=e.position,63!==s&&58!==s||!O(r)){if(!K(e,n,u,!1,!0))break;if(e.line===i){for(s=e.input.charCodeAt(e.position);S(s);)s=e.input.charCodeAt(++e.position);if(58===s)O(s=e.input.charCodeAt(++e.position))||L(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(F(e,p,d,h,v,null),h=v=m=null),y=!0,g=!1,o=!1,h=e.tag,v=e.result;else{if(!y)return e.tag=c,e.anchor=l,!0;L(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!y)return e.tag=c,e.anchor=l,!0;L(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===s?(g&&(F(e,p,d,h,v,null),h=v=m=null),y=!0,g=!0,o=!0):g?(g=!1,o=!0):L(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,s=r;if((e.line===i||e.lineIndent>t)&&(K(e,t,f,!0,o)&&(g?v=e.result:m=e.result),g||(F(e,p,d,h,v,m,i,a),h=v=m=null),q(e,!0,-1),s=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==s)L(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&F(e,p,d,h,v,null),y&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=p),y}(e,w,x))||function(e,t){var n,r,o,i,a,s,c,u,p,f,d=!0,h=e.tag,v=e.anchor,m={};if(91===(f=e.input.charCodeAt(e.position)))o=93,s=!1,r=[];else{if(123!==f)return!1;o=125,s=!0,r={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=r),f=e.input.charCodeAt(++e.position);0!==f;){if(q(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=h,e.anchor=v,e.kind=s?"mapping":"sequence",e.result=r,!0;d||L(e,"missed comma between flow collection entries"),p=null,i=a=!1,63===f&&O(e.input.charCodeAt(e.position+1))&&(i=a=!0,e.position++,q(e,!0,t)),n=e.line,K(e,t,l,!1,!0),u=e.tag,c=e.result,q(e,!0,t),f=e.input.charCodeAt(e.position),!a&&e.line!==n||58!==f||(i=!0,f=e.input.charCodeAt(++e.position),q(e,!0,t),K(e,t,l,!1,!0),p=e.result),s?F(e,r,m,u,c,p):i?r.push(F(e,null,m,u,c,p)):r.push(c),q(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(d=!0,f=e.input.charCodeAt(++e.position)):d=!1}L(e,"unexpected end of the stream within a flow collection")}(e,x)?I=!0:(s&&function(e,t){var n,o,i,a,s,c=d,l=!1,u=!1,p=t,f=0,m=!1;if(124===(a=e.input.charCodeAt(e.position)))o=!1;else{if(62!==a)return!1;o=!0}for(e.kind="scalar",e.result="";0!==a;)if(43===(a=e.input.charCodeAt(++e.position))||45===a)d===c?c=43===a?v:h:L(e,"repeat of a chomping mode identifier");else{if(!((i=48<=(s=a)&&s<=57?s-48:-1)>=0))break;0===i?L(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):u?L(e,"repeat of an indentation width identifier"):(p=t+i-1,u=!0)}if(S(a)){do{a=e.input.charCodeAt(++e.position)}while(S(a));if(35===a)do{a=e.input.charCodeAt(++e.position)}while(!k(a)&&0!==a)}for(;0!==a;){for(z(e),e.lineIndent=0,a=e.input.charCodeAt(e.position);(!u||e.lineIndent<p)&&32===a;)e.lineIndent++,a=e.input.charCodeAt(++e.position);if(!u&&e.lineIndent>p&&(p=e.lineIndent),k(a))f++;else{if(e.lineIndent<p){c===v?e.result+=r.repeat("\n",l?1+f:f):c===d&&l&&(e.result+="\n");break}for(o?S(a)?(m=!0,e.result+=r.repeat("\n",l?1+f:f)):m?(m=!1,e.result+=r.repeat("\n",f+1)):0===f?l&&(e.result+=" "):e.result+=r.repeat("\n",f):e.result+=r.repeat("\n",l?1+f:f),l=!0,u=!0,f=0,n=e.position;!k(a)&&0!==a;)a=e.input.charCodeAt(++e.position);B(e,n,e.position,!1)}}return!0}(e,x)||function(e,t){var n,r,o;if(39!==(n=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(B(e,r,e.position,!0),39!==(n=e.input.charCodeAt(++e.position)))return!0;r=e.position,e.position++,o=e.position}else k(n)?(B(e,r,o,!0),$(e,q(e,!1,t)),r=o=e.position):e.position===e.lineStart&&U(e)?L(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);L(e,"unexpected end of the stream within a single quoted scalar")}(e,x)||function(e,t){var n,r,o,i,a,s,c;if(34!==(s=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return B(e,n,e.position,!0),e.position++,!0;if(92===s){if(B(e,n,e.position,!0),k(s=e.input.charCodeAt(++e.position)))q(e,!1,t);else if(s<256&&C[s])e.result+=j[s],e.position++;else if((a=120===(c=s)?2:117===c?4:85===c?8:0)>0){for(o=a,i=0;o>0;o--)(a=E(s=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+a:L(e,"expected hexadecimal character");e.result+=T(i),e.position++}else L(e,"unknown escape sequence");n=r=e.position}else k(s)?(B(e,n,r,!0),$(e,q(e,!1,t)),n=r=e.position):e.position===e.lineStart&&U(e)?L(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}L(e,"unexpected end of the stream within a double quoted scalar")}(e,x)?I=!0:!function(e){var t,n,r;if(42!==(r=e.input.charCodeAt(e.position)))return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!O(r)&&!_(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&L(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(n)||L(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],q(e,!0,-1),!0}(e)?function(e,t,n){var r,o,i,a,s,c,l,u,p=e.kind,f=e.result;if(O(u=e.input.charCodeAt(e.position))||_(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(O(r=e.input.charCodeAt(e.position+1))||n&&_(r)))return!1;for(e.kind="scalar",e.result="",o=i=e.position,a=!1;0!==u;){if(58===u){if(O(r=e.input.charCodeAt(e.position+1))||n&&_(r))break}else if(35===u){if(O(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&U(e)||n&&_(u))break;if(k(u)){if(s=e.line,c=e.lineStart,l=e.lineIndent,q(e,!1,-1),e.lineIndent>=t){a=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=s,e.lineStart=c,e.lineIndent=l;break}}a&&(B(e,o,i,!1),$(e,e.line-s),o=i=e.position,a=!1),S(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return B(e,o,i,!1),!!e.result||(e.kind=p,e.result=f,!1)}(e,x,l===n)&&(I=!0,null===e.tag&&(e.tag="?")):(I=!0,null===e.tag&&null===e.anchor||L(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===A&&(I=m&&H(e,w))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&L(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),g=0,y=e.implicitTypes.length;g<y;g+=1)if((b=e.implicitTypes[g]).resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else c.call(e.typeMap[e.kind||"fallback"],e.tag)?(b=e.typeMap[e.kind||"fallback"][e.tag],null!==e.result&&b.kind!==e.kind&&L(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result)?(e.result=b.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):L(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):L(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||I}function Y(e){var t,n,r,o,i=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(q(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!O(o);)o=e.input.charCodeAt(++e.position);for(r=[],(n=e.input.slice(t,e.position)).length<1&&L(e,"directive name must not be less than one character in length");0!==o;){for(;S(o);)o=e.input.charCodeAt(++e.position);if(35===o){do{o=e.input.charCodeAt(++e.position)}while(0!==o&&!k(o));break}if(k(o))break;for(t=e.position;0!==o&&!O(o);)o=e.input.charCodeAt(++e.position);r.push(e.input.slice(t,e.position))}0!==o&&z(e),c.call(M,n)?M[n](e,n,r):N(e,'unknown document directive "'+n+'"')}q(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,q(e,!0,-1)):a&&L(e,"directives end mark is expected"),K(e,e.lineIndent-1,f,!1,!0),q(e,!0,-1),e.checkLineBreaks&&g.test(e.input.slice(i,e.position))&&N(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&U(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,q(e,!0,-1)):e.position<e.length-1&&L(e,"end of the stream or a document separator is expected")}function J(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var n=new I(e,t),r=e.indexOf("\0");for(-1!==r&&(n.position=r,L(n,"null byte is not allowed in input")),n.input+="\0";32===n.input.charCodeAt(n.position);)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Y(n);return n.documents}function G(e,t,n){null!==t&&"object"==typeof t&&void 0===n&&(n=t,t=null);var r=J(e,n);if("function"!=typeof t)return r;for(var o=0,i=r.length;o<i;o+=1)t(r[o])}function Q(e,t){var n=J(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new o("expected a single document in the stream, but found more")}}e.exports.loadAll=G,e.exports.load=Q,e.exports.safeLoadAll=function(e,t,n){return"object"==typeof t&&null!==t&&void 0===n&&(n=t,t=null),G(e,t,r.extend({schema:a},n))},e.exports.safeLoad=function(e,t){return Q(e,r.extend({schema:a},t))}},function(e,t,n){"use strict";var r=n(68);function o(e,t,n,r,o){this.name=e,this.buffer=t,this.position=n,this.line=r,this.column=o}o.prototype.getSnippet=function(e,t){var n,o,i,a,s;if(!this.buffer)return null;for(e=e||4,t=t||75,n="",o=this.position;o>0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(o-1));)if(o-=1,this.position-o>t/2-1){n=" ... ",o+=5;break}for(i="",a=this.position;a<this.buffer.length&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(a));)if((a+=1)-this.position>t/2-1){i=" ... ",a-=5;break}return s=this.buffer.slice(o,a),r.repeat(" ",e)+n+s+i+"\n"+r.repeat(" ",e+this.position-o+n.length)+"^"},o.prototype.toString=function(e){var t,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(n+=":\n"+t),n},e.exports=o},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(68),o=n(20);function i(e){return 48<=e&&e<=55}function a(e){return 48<=e&&e<=57}e.exports=new o("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=e.length,o=0,s=!1;if(!r)return!1;if("-"!==(t=e[o])&&"+"!==t||(t=e[++o]),"0"===t){if(o+1===r)return!0;if("b"===(t=e[++o])){for(o++;o<r;o++)if("_"!==(t=e[o])){if("0"!==t&&"1"!==t)return!1;s=!0}return s&&"_"!==t}if("x"===t){for(o++;o<r;o++)if("_"!==(t=e[o])){if(!(48<=(n=e.charCodeAt(o))&&n<=57||65<=n&&n<=70||97<=n&&n<=102))return!1;s=!0}return s&&"_"!==t}for(;o<r;o++)if("_"!==(t=e[o])){if(!i(e.charCodeAt(o)))return!1;s=!0}return s&&"_"!==t}if("_"===t)return!1;for(;o<r;o++)if("_"!==(t=e[o])){if(":"===t)break;if(!a(e.charCodeAt(o)))return!1;s=!0}return!(!s||"_"===t)&&(":"!==t||/^(:[0-5]?[0-9])+$/.test(e.slice(o)))},construct:function(e){var t,n,r=e,o=1,i=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(o=-1),t=(r=r.slice(1))[0]),"0"===r?0:"0"===t?"b"===r[1]?o*parseInt(r.slice(2),2):"x"===r[1]?o*parseInt(r,16):o*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach(function(e){i.unshift(parseInt(e,10))}),r=0,n=1,i.forEach(function(e){r+=e*n,n*=60}),o*r):o*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!r.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(e,t,n){"use strict";var r=n(68),o=n(20),i=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var a=/^[-+]?[0-9]+e/;e.exports=new o("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!i.test(e)||"_"===e[e.length-1])},construct:function(e){var t,n,r,o;return n="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,o=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){o.unshift(parseFloat(e,10))}),t=0,r=1,o.forEach(function(e){t+=e*r,r*=60}),n*t):n*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||r.isNegativeZero(e))},represent:function(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(e))return"-0.0";return n=e.toString(10),a.test(n)?n.replace("e",".e"):n},defaultStyle:"lowercase"})},function(e,t,n){"use strict";var r=n(20),o=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==o.exec(e)||null!==i.exec(e))},construct:function(e){var t,n,r,a,s,c,l,u,p=0,f=null;if(null===(t=o.exec(e))&&(t=i.exec(e)),null===t)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,a=+t[3],!t[4])return new Date(Date.UTC(n,r,a));if(s=+t[4],c=+t[5],l=+t[6],t[7]){for(p=t[7].slice(0,3);p.length<3;)p+="0";p=+p}return t[9]&&(f=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(f=-f)),u=new Date(Date.UTC(n,r,a,s,c,l,p)),f&&u.setTime(u.getTime()-f),u},instanceOf:Date,represent:function(e){return e.toISOString()}})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},function(e,t,n){"use strict";var r;try{r=n(29).Buffer}catch(e){}var o=n(20),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";e.exports=new o("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,n,r=0,o=e.length,a=i;for(n=0;n<o;n++)if(!((t=a.indexOf(e.charAt(n)))>64)){if(t<0)return!1;r+=6}return r%8==0},construct:function(e){var t,n,o=e.replace(/[\r\n=]/g,""),a=o.length,s=i,c=0,l=[];for(t=0;t<a;t++)t%4==0&&t&&(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)),c=c<<6|s.indexOf(o.charAt(t));return 0===(n=a%4*6)?(l.push(c>>16&255),l.push(c>>8&255),l.push(255&c)):18===n?(l.push(c>>10&255),l.push(c>>2&255)):12===n&&l.push(c>>4&255),r?r.from?r.from(l):new r(l):l},predicate:function(e){return r&&r.isBuffer(e)},represent:function(e){var t,n,r="",o=0,a=e.length,s=i;for(t=0;t<a;t++)t%3==0&&t&&(r+=s[o>>18&63],r+=s[o>>12&63],r+=s[o>>6&63],r+=s[63&o]),o=(o<<8)+e[t];return 0===(n=a%3)?(r+=s[o>>18&63],r+=s[o>>12&63],r+=s[o>>6&63],r+=s[63&o]):2===n?(r+=s[o>>10&63],r+=s[o>>4&63],r+=s[o<<2&63],r+=s[64]):1===n&&(r+=s[o>>2&63],r+=s[o<<4&63],r+=s[64],r+=s[64]),r}})},function(e,t,n){"use strict";var r=n(20),o=Object.prototype.hasOwnProperty,i=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,a,s,c=[],l=e;for(t=0,n=l.length;t<n;t+=1){if(r=l[t],s=!1,"[object Object]"!==i.call(r))return!1;for(a in r)if(o.call(r,a)){if(s)return!1;s=!0}if(!s)return!1;if(-1!==c.indexOf(a))return!1;c.push(a)}return!0},construct:function(e){return null!==e?e:[]}})},function(e,t,n){"use strict";var r=n(20),o=Object.prototype.toString;e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,n,r,i,a,s=e;for(a=new Array(s.length),t=0,n=s.length;t<n;t+=1){if(r=s[t],"[object Object]"!==o.call(r))return!1;if(1!==(i=Object.keys(r)).length)return!1;a[t]=[i[0],r[i[0]]]}return!0},construct:function(e){if(null===e)return[];var t,n,r,o,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],o=Object.keys(r),i[t]=[o[0],r[o[0]]];return i}})},function(e,t,n){"use strict";var r=n(20),o=Object.prototype.hasOwnProperty;e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,n=e;for(t in n)if(o.call(n,t)&&null!==n[t])return!1;return!0},construct:function(e){return null!==e?e:{}}})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},function(e,t,n){"use strict";var r=n(20);e.exports=new r("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,n=/\/([gim]*)$/.exec(e),r="";if("/"===t[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==t[t.length-r.length-1])return!1}return!0},construct:function(e){var t=e,n=/\/([gim]*)$/.exec(e),r="";return"/"===t[0]&&(n&&(r=n[1]),t=t.slice(1,t.length-r.length-1)),new RegExp(t,r)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},function(e,t,n){"use strict";var r;try{r=n(390)}catch(e){"undefined"!=typeof window&&(r=window.esprima)}var o=n(20);e.exports=new o("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",n=r.parse(t,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&("ArrowFunctionExpression"===n.body[0].expression.type||"FunctionExpression"===n.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,n="("+e+")",o=r.parse(n,{range:!0}),i=[];if("Program"!==o.type||1!==o.body.length||"ExpressionStatement"!==o.body[0].type||"ArrowFunctionExpression"!==o.body[0].expression.type&&"FunctionExpression"!==o.body[0].expression.type)throw new Error("Failed to resolve function");return o.body[0].expression.params.forEach(function(e){i.push(e.name)}),t=o.body[0].expression.body.range,"BlockStatement"===o.body[0].expression.body.type?new Function(i,n.slice(t[0]+1,t[1]-1)):new Function(i,"return "+n.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},function(e,t){if("undefined"==typeof esprima){var n=new Error("Cannot find module 'esprima'");throw n.code="MODULE_NOT_FOUND",n}e.exports=esprima},function(e,t,n){"use strict";var r=n(68),o=n(87),i=n(108),a=n(88),s=Object.prototype.toString,c=Object.prototype.hasOwnProperty,l=9,u=10,p=13,f=32,d=33,h=34,v=35,m=37,g=38,y=39,b=42,x=44,w=45,k=58,S=61,O=62,_=63,E=64,A=91,T=93,C=96,j=123,P=124,I=125,R={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},L=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function N(e){var t,n,i;if(t=e.toString(16).toUpperCase(),e<=255)n="x",i=2;else if(e<=65535)n="u",i=4;else{if(!(e<=4294967295))throw new o("code point within a string may not be greater than 0xFFFFFFFF");n="U",i=8}return"\\"+n+r.repeat("0",i-t.length)+t}function M(e){this.schema=e.schema||i,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=r.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,r,o,i,a,s,l;if(null===t)return{};for(n={},o=0,i=(r=Object.keys(t)).length;o<i;o+=1)a=r[o],s=String(t[a]),"!!"===a.slice(0,2)&&(a="tag:yaml.org,2002:"+a.slice(2)),(l=e.compiledTypeMap.fallback[a])&&c.call(l.styleAliases,s)&&(s=l.styleAliases[s]),n[a]=s;return n}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function B(e,t){for(var n,o=r.repeat(" ",t),i=0,a=-1,s="",c=e.length;i<c;)-1===(a=e.indexOf("\n",i))?(n=e.slice(i),i=c):(n=e.slice(i,a+1),i=a+1),n.length&&"\n"!==n&&(s+=o),s+=n;return s}function D(e,t){return"\n"+r.repeat(" ",e.indent*t)}function F(e){return e===f||e===l}function z(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&65279!==e||65536<=e&&e<=1114111}function q(e,t){return z(e)&&65279!==e&&e!==x&&e!==A&&e!==T&&e!==j&&e!==I&&e!==k&&(e!==v||t&&function(e){return z(e)&&!F(e)&&65279!==e&&e!==p&&e!==u}(t))}function U(e){return/^\n* /.test(e)}var $=1,H=2,W=3,V=4,K=5;function Y(e,t,n,r,o){var i,a,s,c,l=!1,p=!1,f=-1!==r,R=-1,L=z(c=e.charCodeAt(0))&&65279!==c&&!F(c)&&c!==w&&c!==_&&c!==k&&c!==x&&c!==A&&c!==T&&c!==j&&c!==I&&c!==v&&c!==g&&c!==b&&c!==d&&c!==P&&c!==S&&c!==O&&c!==y&&c!==h&&c!==m&&c!==E&&c!==C&&!F(e.charCodeAt(e.length-1));if(t)for(i=0;i<e.length;i++){if(!z(a=e.charCodeAt(i)))return K;s=i>0?e.charCodeAt(i-1):null,L=L&&q(a,s)}else{for(i=0;i<e.length;i++){if((a=e.charCodeAt(i))===u)l=!0,f&&(p=p||i-R-1>r&&" "!==e[R+1],R=i);else if(!z(a))return K;s=i>0?e.charCodeAt(i-1):null,L=L&&q(a,s)}p=p||f&&i-R-1>r&&" "!==e[R+1]}return l||p?n>9&&U(e)?K:p?V:W:L&&!o(e)?$:H}function J(e,t,n,r){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==L.indexOf(t))return"'"+t+"'";var i=e.indent*Math.max(1,n),a=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),s=r||e.flowLevel>-1&&n>=e.flowLevel;switch(Y(t,s,e.indent,a,function(t){return function(e,t){var n,r;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}(e,t)})){case $:return t;case H:return"'"+t.replace(/'/g,"''")+"'";case W:return"|"+G(t,e.indent)+Q(B(t,i));case V:return">"+G(t,e.indent)+Q(B(function(e,t){var n,r,o=/(\n+)([^\n]*)/g,i=(s=e.indexOf("\n"),s=-1!==s?s:e.length,o.lastIndex=s,X(e.slice(0,s),t)),a="\n"===e[0]||" "===e[0];var s;for(;r=o.exec(e);){var c=r[1],l=r[2];n=" "===l[0],i+=c+(a||n||""===l?"":"\n")+X(l,t),a=n}return i}(t,a),i));case K:return'"'+function(e){for(var t,n,r,o="",i=0;i<e.length;i++)(t=e.charCodeAt(i))>=55296&&t<=56319&&(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o+=N(1024*(t-55296)+n-56320+65536),i++):(r=R[t],o+=!r&&z(t)?e[i]:r||N(t));return o}(t)+'"';default:throw new o("impossible error: invalid scalar style")}}()}function G(e,t){var n=U(e)?String(t):"",r="\n"===e[e.length-1];return n+(r&&("\n"===e[e.length-2]||"\n"===e)?"+":r?"":"-")+"\n"}function Q(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function X(e,t){if(""===e||" "===e[0])return e;for(var n,r,o=/ [^ ]/g,i=0,a=0,s=0,c="";n=o.exec(e);)(s=n.index)-i>t&&(r=a>i?a:s,c+="\n"+e.slice(i,r),i=r+1),a=s;return c+="\n",e.length-i>t&&a>i?c+=e.slice(i,a)+"\n"+e.slice(a+1):c+=e.slice(i),c.slice(1)}function Z(e,t,n){var r,i,a,l,u,p;for(a=0,l=(i=n?e.explicitTypes:e.implicitTypes).length;a<l;a+=1)if(((u=i[a]).instanceOf||u.predicate)&&(!u.instanceOf||"object"==typeof t&&t instanceof u.instanceOf)&&(!u.predicate||u.predicate(t))){if(e.tag=n?u.tag:"?",u.represent){if(p=e.styleMap[u.tag]||u.defaultStyle,"[object Function]"===s.call(u.represent))r=u.represent(t,p);else{if(!c.call(u.represent,p))throw new o("!<"+u.tag+'> tag resolver accepts not "'+p+'" style');r=u.represent[p](t,p)}e.dump=r}return!0}return!1}function ee(e,t,n,r,i,a){e.tag=null,e.dump=n,Z(e,n,!1)||Z(e,n,!0);var c=s.call(e.dump);r&&(r=e.flowLevel<0||e.flowLevel>t);var l,p,f="[object Object]"===c||"[object Array]"===c;if(f&&(p=-1!==(l=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(i=!1),p&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(f&&p&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===c)r&&0!==Object.keys(e.dump).length?(!function(e,t,n,r){var i,a,s,c,l,p,f="",d=e.tag,h=Object.keys(n);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new o("sortKeys must be a boolean or a function");for(i=0,a=h.length;i<a;i+=1)p="",r&&0===i||(p+=D(e,t)),c=n[s=h[i]],ee(e,t+1,s,!0,!0,!0)&&((l=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&u===e.dump.charCodeAt(0)?p+="?":p+="? "),p+=e.dump,l&&(p+=D(e,t)),ee(e,t+1,c,!0,l)&&(e.dump&&u===e.dump.charCodeAt(0)?p+=":":p+=": ",f+=p+=e.dump));e.tag=d,e.dump=f||"{}"}(e,t,e.dump,i),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,n){var r,o,i,a,s,c="",l=e.tag,u=Object.keys(n);for(r=0,o=u.length;r<o;r+=1)s="",0!==r&&(s+=", "),e.condenseFlow&&(s+='"'),a=n[i=u[r]],ee(e,t,i,!1,!1)&&(e.dump.length>1024&&(s+="? "),s+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),ee(e,t,a,!1,!1)&&(c+=s+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===c){var d=e.noArrayIndent&&t>0?t-1:t;r&&0!==e.dump.length?(!function(e,t,n,r){var o,i,a="",s=e.tag;for(o=0,i=n.length;o<i;o+=1)ee(e,t+1,n[o],!0,!0)&&(r&&0===o||(a+=D(e,t)),e.dump&&u===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=s,e.dump=a||"[]"}(e,d,e.dump,i),p&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,n){var r,o,i="",a=e.tag;for(r=0,o=n.length;r<o;r+=1)ee(e,t,n[r],!1,!1)&&(0!==r&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=a,e.dump="["+i+"]"}(e,d,e.dump),p&&(e.dump="&ref_"+l+" "+e.dump))}else{if("[object String]"!==c){if(e.skipInvalid)return!1;throw new o("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&J(e,e.dump,t,a)}null!==e.tag&&"?"!==e.tag&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function te(e,t){var n,r,o=[],i=[];for(function e(t,n,r){var o,i,a;if(null!==t&&"object"==typeof t)if(-1!==(i=n.indexOf(t)))-1===r.indexOf(i)&&r.push(i);else if(n.push(t),Array.isArray(t))for(i=0,a=t.length;i<a;i+=1)e(t[i],n,r);else for(o=Object.keys(t),i=0,a=o.length;i<a;i+=1)e(t[o[i]],n,r)}(e,o,i),n=0,r=i.length;n<r;n+=1)t.duplicates.push(o[i[n]]);t.usedDuplicates=new Array(r)}function ne(e,t){var n=new M(t=t||{});return n.noRefs||te(e,n),ee(n,0,e,!0,!0)?n.dump+"\n":""}e.exports.dump=ne,e.exports.safeDump=function(e,t){return ne(e,r.extend({schema:a},t))}},function(e,t,n){var r=n(393),o=n(224);e.exports=function(e,t){return r(e,t,function(t,n){return o(e,n)})}},function(e,t,n){var r=n(157),o=n(414),i=n(109);e.exports=function(e,t,n){for(var a=-1,s=t.length,c={};++a<s;){var l=t[a],u=r(e,l);n(u,l)&&o(c,i(l,e),u)}return c}},function(e,t,n){var r=n(395),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=a},function(e,t,n){var r=n(396),o=500;e.exports=function(e){var t=r(e,function(e){return n.size===o&&n.clear(),e}),n=t.cache;return t}},function(e,t,n){var r=n(159),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(398),o=n(111),i=n(160);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(399),o=n(400),i=n(401),a=n(402),s=n(403);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},function(e,t,n){var r=n(110);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(110),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(110),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(110),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(112),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(112);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(112);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(113);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(113);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(113);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(113);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t,n){var r=n(101),o=n(109),i=n(103),a=n(36),s=n(89);e.exports=function(e,t,n,c){if(!a(e))return e;for(var l=-1,u=(t=o(t,e)).length,p=u-1,f=e;null!=f&&++l<u;){var d=s(t[l]),h=n;if(l!=p){var v=f[d];void 0===(h=c?c(v,d,f):void 0)&&(h=a(v)?v:i(t[l+1])?[]:{})}r(f,d,h),f=f[d]}return e}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(109),o=n(144),i=n(35),a=n(103),s=n(143),c=n(89);e.exports=function(e,t,n){for(var l=-1,u=(t=r(t,e)).length,p=!1;++l<u;){var f=c(t[l]);if(!(p=null!=e&&n(e,f)))break;e=e[f]}return p||++l!=u?p:!!(u=null==e?0:e.length)&&s(u)&&a(f,u)&&(i(e)||o(e))}},function(e,t,n){var r=n(418),o=n(201),i=n(202);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t,n){var r=n(419);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(161),o=n(420);e.exports=function e(t,n,i,a,s){var c=-1,l=t.length;for(i||(i=o),s||(s=[]);++c<l;){var u=t[c];n>0&&i(u)?n>1?e(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},function(e,t,n){var r=n(65),o=n(144),i=n(35),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t,n){e.exports=n(422)},function(e,t,n){n(423),e.exports=n(14).Reflect.get},function(e,t,n){var r=n(80),o=n(148),i=n(44),a=n(17),s=n(21),c=n(28);a(a.S,"Reflect",{get:function e(t,n){var a,l,u=arguments.length<3?t:arguments[2];return c(t)===u?t[n]:(a=r.f(t,n))?i(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(l=o(t))?e(l,n,u):void 0}})},function(e,t,n){var r=n(117);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){e.exports=n(426)},function(e,t,n){n(427),e.exports=n(14).Object.getPrototypeOf},function(e,t,n){var r=n(57),o=n(148);n(137)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){n(429),e.exports=n(14).Object.setPrototypeOf},function(e,t,n){var r=n(17);r(r.S,"Object",{setPrototypeOf:n(430).set})},function(e,t,n){var r=n(21),o=n(28),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(49)(Function.call,n(80).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){n(432);var r=n(14).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){var r=n(17);r(r.S,"Object",{create:n(100)})},function(e,t,n){var r=n(225);function o(t,n){return e.exports=o=r||function(e,t){return e.__proto__=t,e},o(t,n)}e.exports=o},function(e,t,n){n(435),e.exports=n(14).Reflect.construct},function(e,t,n){var r=n(17),o=n(100),i=n(56),a=n(28),s=n(21),c=n(51),l=n(436),u=(n(19).Reflect||{}).construct,p=c(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),f=!c(function(){u(function(){})});r(r.S+r.F*(p||f),"Reflect",{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(f&&!p)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(l.apply(e,r))}var c=n.prototype,d=o(s(c)?c:Object.prototype),h=Function.apply.call(e,d,t);return s(h)?h:d}})},function(e,t,n){"use strict";var r=n(56),o=n(21),i=n(219),a=[].slice,s={},c=function(e,t,n){if(!(t in s)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";s[t]=Function("F,a","return new F("+r.join(",")+")")}return s[t](e,n)};e.exports=Function.bind||function(e){var t=r(this),n=a.call(arguments,1),s=function(){var r=n.concat(a.call(arguments));return this instanceof s?c(t,r.length,r):i(t,r,e)};return o(t.prototype)&&(s.prototype=t.prototype),s}},function(e,t,n){var r=n(226);e.exports=function(){if("undefined"==typeof Reflect||!r)return!1;if(r.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(r(Date,[],function(){})),!0}catch(e){return!1}}},function(e,t,n){var r=n(13),o=n(439);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?o(e):t}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(9),o=n(215);e.exports=function(e){if(r(e))return o(e)}},function(e,t,n){var r=n(116),o=n(216),i=n(106);e.exports=function(e){if(void 0!==i&&o(Object(e)))return r(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(e,t,n){n(444),e.exports=n(14).Object.assign},function(e,t,n){var r=n(17);r(r.S+r.F,"Object",{assign:n(227)})},function(e,t,n){var r=n(228),o=n(84),i=n(66);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!o(t)){var c=r(n,3);t=i(t),n=function(e){return c(s[e],e,s)}}var l=e(t,n,a);return l>-1?s[c?t[l]:l]:void 0}}},function(e,t,n){var r=n(447),o=n(468),i=n(236);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(162),o=n(229),i=1,a=2;e.exports=function(e,t,n,s){var c=n.length,l=c,u=!s;if(null==e)return!l;for(e=Object(e);c--;){var p=n[c];if(u&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++c<l;){var f=(p=n[c])[0],d=e[f],h=p[1];if(u&&p[2]){if(void 0===d&&!(f in e))return!1}else{var v=new r;if(s)var m=s(d,h,f,e,t,v);if(!(void 0===m?o(h,d,i|a,s,v):m))return!1}}return!0}},function(e,t,n){var r=n(111);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(111),o=n(160),i=n(159),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(162),o=n(230),i=n(459),a=n(462),s=n(114),c=n(35),l=n(145),u=n(204),p=1,f="[object Arguments]",d="[object Array]",h="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var b=c(e),x=c(t),w=b?d:s(e),k=x?d:s(t),S=(w=w==f?h:w)==h,O=(k=k==f?h:k)==h,_=w==k;if(_&&l(e)){if(!l(t))return!1;b=!0,S=!1}if(_&&!S)return y||(y=new r),b||u(e)?o(e,t,n,m,g,y):i(e,t,w,n,m,g,y);if(!(n&p)){var E=S&&v.call(e,"__wrapped__"),A=O&&v.call(t,"__wrapped__");if(E||A){var T=E?e.value():e,C=A?t.value():t;return y||(y=new r),g(T,C,n,m,y)}}return!!_&&(y||(y=new r),a(e,t,n,m,g,y))}},function(e,t,n){var r=n(159),o=n(455),i=n(456);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(65),o=n(231),i=n(102),a=n(230),s=n(460),c=n(461),l=1,u=2,p="[object Boolean]",f="[object Date]",d="[object Error]",h="[object Map]",v="[object Number]",m="[object RegExp]",g="[object Set]",y="[object String]",b="[object Symbol]",x="[object ArrayBuffer]",w="[object DataView]",k=r?r.prototype:void 0,S=k?k.valueOf:void 0;e.exports=function(e,t,n,r,k,O,_){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!O(new o(e),new o(t)));case p:case f:case v:return i(+e,+t);case d:return e.name==t.name&&e.message==t.message;case m:case y:return e==t+"";case h:var E=s;case g:var A=r&l;if(E||(E=c),e.size!=t.size&&!A)return!1;var T=_.get(e);if(T)return T==t;r|=u,_.set(e,t);var C=a(E(e),E(t),r,k,O,_);return _.delete(e),C;case b:if(S)return S.call(e)==S.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(232),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,c){var l=n&o,u=r(e),p=u.length;if(p!=r(t).length&&!l)return!1;for(var f=p;f--;){var d=u[f];if(!(l?d in t:i.call(t,d)))return!1}var h=c.get(e);if(h&&c.get(t))return h==t;var v=!0;c.set(e,t),c.set(t,e);for(var m=l;++f<p;){var g=e[d=u[f]],y=t[d];if(a)var b=l?a(y,g,d,t,e,c):a(g,y,d,e,t,c);if(!(void 0===b?g===y||s(g,y,n,a,c):b)){v=!1;break}m||(m="constructor"==d)}if(v&&!m){var x=e.constructor,w=t.constructor;x!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w)&&(v=!1)}return c.delete(e),c.delete(t),v}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(58)(n(40),"DataView");e.exports=r},function(e,t,n){var r=n(58)(n(40),"Promise");e.exports=r},function(e,t,n){var r=n(58)(n(40),"Set");e.exports=r},function(e,t,n){var r=n(58)(n(40),"WeakMap");e.exports=r},function(e,t,n){var r=n(235),o=n(66);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(229),o=n(48),i=n(224),a=n(158),s=n(235),c=n(236),l=n(89),u=1,p=2;e.exports=function(e,t){return a(e)&&s(t)?c(l(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,u|p)}}},function(e,t,n){var r=n(471),o=n(472),i=n(158),a=n(89);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(157);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(474),o=n(228),i=n(207),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var c=null==n?0:i(n);return c<0&&(c=a(s+c,0)),r(e,o(t,3),c)}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){"use strict";var r=Array.isArray,o=Object.keys,i=Object.prototype.hasOwnProperty;e.exports=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var a,s,c,l=r(t),u=r(n);if(l&&u){if((s=t.length)!=n.length)return!1;for(a=s;0!=a--;)if(!e(t[a],n[a]))return!1;return!0}if(l!=u)return!1;var p=t instanceof Date,f=n instanceof Date;if(p!=f)return!1;if(p&&f)return t.getTime()==n.getTime();var d=t instanceof RegExp,h=n instanceof RegExp;if(d!=h)return!1;if(d&&h)return t.toString()==n.toString();var v=o(t);if((s=v.length)!==o(n).length)return!1;for(a=s;0!=a--;)if(!i.call(n,v[a]))return!1;for(a=s;0!=a--;)if(!e(t[c=v[a]],n[c]))return!1;return!0}return t!=t&&n!=n}},function(e,t,n){var r=n(162),o=n(477),i=n(101),a=n(478),s=n(479),c=n(482),l=n(483),u=n(484),p=n(485),f=n(232),d=n(486),h=n(114),v=n(487),m=n(488),g=n(493),y=n(35),b=n(145),x=n(495),w=n(36),k=n(497),S=n(66),O=1,_=2,E=4,A="[object Arguments]",T="[object Function]",C="[object GeneratorFunction]",j="[object Object]",P={};P[A]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[j]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[T]=P["[object WeakMap]"]=!1,e.exports=function e(t,n,I,R,L,N){var M,B=n&O,D=n&_,F=n&E;if(I&&(M=L?I(t,R,L,N):I(t)),void 0!==M)return M;if(!w(t))return t;var z=y(t);if(z){if(M=v(t),!B)return l(t,M)}else{var q=h(t),U=q==T||q==C;if(b(t))return c(t,B);if(q==j||q==A||U&&!L){if(M=D||U?{}:g(t),!B)return D?p(t,s(M,t)):u(t,a(M,t))}else{if(!P[q])return L?t:{};M=m(t,q,B)}}N||(N=new r);var $=N.get(t);if($)return $;N.set(t,M),k(t)?t.forEach(function(r){M.add(e(r,n,I,r,t,N))}):x(t)&&t.forEach(function(r,o){M.set(o,e(r,n,I,o,t,N))});var H=F?D?d:f:D?keysIn:S,W=z?void 0:H(t);return o(W||t,function(r,o){W&&(r=t[o=r]),i(M,o,e(r,n,I,o,t,N))}),M}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(83),o=n(66);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(83),o=n(237);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(36),o=n(104),i=n(481),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){(function(e){var r=n(40),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(91)(e))},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(83),o=n(163);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(83),o=n(238);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(233),o=n(238),i=n(237);e.exports=function(e){return r(e,i,o)}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(166),o=n(489),i=n(490),a=n(491),s=n(492),c="[object Boolean]",l="[object Date]",u="[object Map]",p="[object Number]",f="[object RegExp]",d="[object Set]",h="[object String]",v="[object Symbol]",m="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",b="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",k="[object Int32Array]",S="[object Uint8Array]",O="[object Uint8ClampedArray]",_="[object Uint16Array]",E="[object Uint32Array]";e.exports=function(e,t,n){var A=e.constructor;switch(t){case m:return r(e);case c:case l:return new A(+e);case g:return o(e,n);case y:case b:case x:case w:case k:case S:case O:case _:case E:return s(e,n);case u:return new A;case p:case h:return new A(e);case f:return i(e);case d:return new A;case v:return a(e)}}},function(e,t,n){var r=n(166);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(65),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(166);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(494),o=n(165),i=n(104);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(36),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(496),o=n(146),i=n(147),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(114),o=n(52),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(498),o=n(146),i=n(147),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(114),o=n(52),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){n(151),n(85),n(500),n(505),n(507),e.exports=n(14).WeakMap},function(e,t,n){"use strict";var r,o=n(19),i=n(167)(0),a=n(138),s=n(99),c=n(227),l=n(503),u=n(21),p=n(168),f=n(168),d=!o.ActiveXObject&&"ActiveXObject"in o,h=s.getWeak,v=Object.isExtensible,m=l.ufstore,g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(u(e)){var t=h(e);return!0===t?m(p(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(p(this,"WeakMap"),e,t)}},b=e.exports=n(504)("WeakMap",g,y,l,!0,!0);f&&d&&(c((r=l.getConstructor(g,"WeakMap")).prototype,y),s.NEED=!0,i(["delete","has","get","set"],function(e){var t=b.prototype,n=t[e];a(t,e,function(t,o){if(u(t)&&!v(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},function(e,t,n){var r=n(502);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(21),o=n(141),i=n(26)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(155),o=n(99).getWeak,i=n(28),a=n(21),s=n(153),c=n(107),l=n(167),u=n(44),p=n(168),f=l(5),d=l(6),h=0,v=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},g=function(e,t){return f(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=g(this,e);if(t)return t[1]},has:function(e){return!!g(this,e)},set:function(e,t){var n=g(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var l=e(function(e,r){s(e,l,t,"_i"),e._t=t,e._i=h++,e._l=void 0,null!=r&&c(r,n,e[i],e)});return r(l.prototype,{delete:function(e){if(!a(e))return!1;var n=o(e);return!0===n?v(p(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!a(e))return!1;var n=o(e);return!0===n?v(p(this,t)).has(e):n&&u(n,this._i)}}),l},def:function(e,t,n){var r=o(i(t),!0);return!0===r?v(e).set(t,n):r[e._i]=n,e},ufstore:v}},function(e,t,n){"use strict";var r=n(19),o=n(17),i=n(99),a=n(51),s=n(50),c=n(155),l=n(107),u=n(153),p=n(21),f=n(82),d=n(39).f,h=n(167)(0),v=n(34);e.exports=function(e,t,n,m,g,y){var b=r[e],x=b,w=g?"set":"add",k=x&&x.prototype,S={};return v&&"function"==typeof x&&(y||k.forEach&&!a(function(){(new x).entries().next()}))?(x=t(function(t,n){u(t,x,e,"_c"),t._c=new b,null!=n&&l(n,g,t[w],t)}),h("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in k&&(!y||"clear"!=e)&&s(x.prototype,e,function(n,r){if(u(this,x,e),!t&&y&&!p(n))return"get"==e&&void 0;var o=this._c[e](0===n?0:n,r);return t?this:o})}),y||d(x.prototype,"size",{get:function(){return this._c.size}})):(x=m.getConstructor(t,e,g,w),c(x.prototype,n),i.NEED=!0),f(x,e),S[e]=x,o(o.G+o.W+o.F,S),y||m.setStrong(x,e,g),x}},function(e,t,n){n(506)("WeakMap")},function(e,t,n){"use strict";var r=n(17);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){n(508)("WeakMap")},function(e,t,n){"use strict";var r=n(17),o=n(56),i=n(49),a=n(107);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,s,c=arguments[1];return o(this),(t=void 0!==c)&&o(c),null==e?new this:(n=[],t?(r=0,s=i(c,arguments[2],2),a(e,!1,function(e){n.push(s(e,r++))})):a(e,!1,n.push,n),new this(n))}})}},function(e,t,n){var r=n(10);e.exports=function(e,t){if(null==e)return{};var n,o,i={},a=r(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(i[n]=e[n]);return i}},function(e,t,n){"use strict";n.r(t),n.d(t,"OAuthReceiver",function(){return Vu});var r={};n.r(r),n.d(r,"path",function(){return Jr}),n.d(r,"query",function(){return Gr}),n.d(r,"header",function(){return Xr}),n.d(r,"cookie",function(){return Zr});n(255);
  59. /**
  60. * @license
  61. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  62. * This code may only be used under the BSD style license found at
  63. * http://polymer.github.io/LICENSE.txt
  64. * The complete set of authors may be found at
  65. * http://polymer.github.io/AUTHORS.txt
  66. * The complete set of contributors may be found at
  67. * http://polymer.github.io/CONTRIBUTORS.txt
  68. * Code distributed by Google as part of the polymer project is also
  69. * subject to an additional IP rights grant found at
  70. * http://polymer.github.io/PATENTS.txt
  71. */const o="undefined"!=typeof window&&null!=window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,i=(e,t,n=null)=>{for(;t!==n;){const n=t.nextSibling;e.removeChild(t),t=n}},a=`{{lit-${String(Math.random()).slice(2)}}}`,s=`\x3c!--${a}--\x3e`,c=new RegExp(`${a}|${s}`),l="$lit$";class u{constructor(e,t){this.parts=[],this.element=t;const n=[],r=[],o=document.createTreeWalker(t.content,133,null,!1);let i=0,s=-1,u=0;const{strings:f,values:{length:v}}=e;for(;u<v;){const e=o.nextNode();if(null!==e){if(s++,1===e.nodeType){if(e.hasAttributes()){const t=e.attributes,{length:n}=t;let r=0;for(let e=0;e<n;e++)p(t[e].name,l)&&r++;for(;r-- >0;){const t=f[u],n=h.exec(t)[2],r=n.toLowerCase()+l,o=e.getAttribute(r);e.removeAttribute(r);const i=o.split(c);this.parts.push({type:"attribute",index:s,name:n,strings:i}),u+=i.length-1}}"TEMPLATE"===e.tagName&&(r.push(e),o.currentNode=e.content)}else if(3===e.nodeType){const t=e.data;if(t.indexOf(a)>=0){const r=e.parentNode,o=t.split(c),i=o.length-1;for(let t=0;t<i;t++){let n,i=o[t];if(""===i)n=d();else{const e=h.exec(i);null!==e&&p(e[2],l)&&(i=i.slice(0,e.index)+e[1]+e[2].slice(0,-l.length)+e[3]),n=document.createTextNode(i)}r.insertBefore(n,e),this.parts.push({type:"node",index:++s})}""===o[i]?(r.insertBefore(d(),e),n.push(e)):e.data=o[i],u+=i}}else if(8===e.nodeType)if(e.data===a){const t=e.parentNode;null!==e.previousSibling&&s!==i||(s++,t.insertBefore(d(),e)),i=s,this.parts.push({type:"node",index:s}),null===e.nextSibling?e.data="":(n.push(e),s--),u++}else{let t=-1;for(;-1!==(t=e.data.indexOf(a,t+1));)this.parts.push({type:"node",index:-1}),u++}}else o.currentNode=r.pop()}for(const e of n)e.parentNode.removeChild(e)}}const p=(e,t)=>{const n=e.length-t.length;return n>=0&&e.slice(n)===t},f=e=>-1!==e.index,d=()=>document.createComment(""),h=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/,v=133;function m(e,t){const{element:{content:n},parts:r}=e,o=document.createTreeWalker(n,v,null,!1);let i=y(r),a=r[i],s=-1,c=0;const l=[];let u=null;for(;o.nextNode();){s++;const e=o.currentNode;for(e.previousSibling===u&&(u=null),t.has(e)&&(l.push(e),null===u&&(u=e)),null!==u&&c++;void 0!==a&&a.index===s;)a.index=null!==u?-1:a.index-c,a=r[i=y(r,i)]}l.forEach(e=>e.parentNode.removeChild(e))}const g=e=>{let t=11===e.nodeType?0:1;const n=document.createTreeWalker(e,v,null,!1);for(;n.nextNode();)t++;return t},y=(e,t=-1)=>{for(let n=t+1;n<e.length;n++){const t=e[n];if(f(t))return n}return-1};
  72. /**
  73. * @license
  74. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  75. * This code may only be used under the BSD style license found at
  76. * http://polymer.github.io/LICENSE.txt
  77. * The complete set of authors may be found at
  78. * http://polymer.github.io/AUTHORS.txt
  79. * The complete set of contributors may be found at
  80. * http://polymer.github.io/CONTRIBUTORS.txt
  81. * Code distributed by Google as part of the polymer project is also
  82. * subject to an additional IP rights grant found at
  83. * http://polymer.github.io/PATENTS.txt
  84. */
  85. const b=new WeakMap,x=e=>"function"==typeof e&&b.has(e),w={},k={};
  86. /**
  87. * @license
  88. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  89. * This code may only be used under the BSD style license found at
  90. * http://polymer.github.io/LICENSE.txt
  91. * The complete set of authors may be found at
  92. * http://polymer.github.io/AUTHORS.txt
  93. * The complete set of contributors may be found at
  94. * http://polymer.github.io/CONTRIBUTORS.txt
  95. * Code distributed by Google as part of the polymer project is also
  96. * subject to an additional IP rights grant found at
  97. * http://polymer.github.io/PATENTS.txt
  98. */
  99. class S{constructor(e,t,n){this.__parts=[],this.template=e,this.processor=t,this.options=n}update(e){let t=0;for(const n of this.__parts)void 0!==n&&n.setValue(e[t]),t++;for(const e of this.__parts)void 0!==e&&e.commit()}_clone(){const e=o?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),t=[],n=this.template.parts,r=document.createTreeWalker(e,133,null,!1);let i,a=0,s=0,c=r.nextNode();for(;a<n.length;)if(i=n[a],f(i)){for(;s<i.index;)s++,"TEMPLATE"===c.nodeName&&(t.push(c),r.currentNode=c.content),null===(c=r.nextNode())&&(r.currentNode=t.pop(),c=r.nextNode());if("node"===i.type){const e=this.processor.handleTextExpression(this.options);e.insertAfterNode(c.previousSibling),this.__parts.push(e)}else this.__parts.push(...this.processor.handleAttributeExpressions(c,i.name,i.strings,this.options));a++}else this.__parts.push(void 0),a++;return o&&(document.adoptNode(e),customElements.upgrade(e)),e}}
  100. /**
  101. * @license
  102. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  103. * This code may only be used under the BSD style license found at
  104. * http://polymer.github.io/LICENSE.txt
  105. * The complete set of authors may be found at
  106. * http://polymer.github.io/AUTHORS.txt
  107. * The complete set of contributors may be found at
  108. * http://polymer.github.io/CONTRIBUTORS.txt
  109. * Code distributed by Google as part of the polymer project is also
  110. * subject to an additional IP rights grant found at
  111. * http://polymer.github.io/PATENTS.txt
  112. */const O=` ${a} `;class _{constructor(e,t,n,r){this.strings=e,this.values=t,this.type=n,this.processor=r}getHTML(){const e=this.strings.length-1;let t="",n=!1;for(let r=0;r<e;r++){const e=this.strings[r],o=e.lastIndexOf("\x3c!--");n=(o>-1||n)&&-1===e.indexOf("--\x3e",o+1);const i=h.exec(e);t+=null===i?e+(n?O:s):e.substr(0,i.index)+i[1]+i[2]+l+i[3]+a}return t+=this.strings[e]}getTemplateElement(){const e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}
  113. /**
  114. * @license
  115. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  116. * This code may only be used under the BSD style license found at
  117. * http://polymer.github.io/LICENSE.txt
  118. * The complete set of authors may be found at
  119. * http://polymer.github.io/AUTHORS.txt
  120. * The complete set of contributors may be found at
  121. * http://polymer.github.io/CONTRIBUTORS.txt
  122. * Code distributed by Google as part of the polymer project is also
  123. * subject to an additional IP rights grant found at
  124. * http://polymer.github.io/PATENTS.txt
  125. */
  126. const E=e=>null===e||!("object"==typeof e||"function"==typeof e),A=e=>Array.isArray(e)||!(!e||!e[Symbol.iterator]);class T{constructor(e,t,n){this.dirty=!0,this.element=e,this.name=t,this.strings=n,this.parts=[];for(let e=0;e<n.length-1;e++)this.parts[e]=this._createPart()}_createPart(){return new C(this)}_getValue(){const e=this.strings,t=e.length-1;let n="";for(let r=0;r<t;r++){n+=e[r];const t=this.parts[r];if(void 0!==t){const e=t.value;if(E(e)||!A(e))n+="string"==typeof e?e:String(e);else for(const t of e)n+="string"==typeof t?t:String(t)}}return n+=e[t]}commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}class C{constructor(e){this.value=void 0,this.committer=e}setValue(e){e===w||E(e)&&e===this.value||(this.value=e,x(e)||(this.committer.dirty=!0))}commit(){for(;x(this.value);){const e=this.value;this.value=w,e(this)}this.value!==w&&this.committer.commit()}}class j{constructor(e){this.value=void 0,this.__pendingValue=void 0,this.options=e}appendInto(e){this.startNode=e.appendChild(d()),this.endNode=e.appendChild(d())}insertAfterNode(e){this.startNode=e,this.endNode=e.nextSibling}appendIntoPart(e){e.__insert(this.startNode=d()),e.__insert(this.endNode=d())}insertAfterPart(e){e.__insert(this.startNode=d()),this.endNode=e.endNode,e.endNode=this.startNode}setValue(e){this.__pendingValue=e}commit(){if(null===this.startNode.parentNode)return;for(;x(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=w,e(this)}const e=this.__pendingValue;e!==w&&(E(e)?e!==this.value&&this.__commitText(e):e instanceof _?this.__commitTemplateResult(e):e instanceof Node?this.__commitNode(e):A(e)?this.__commitIterable(e):e===k?(this.value=k,this.clear()):this.__commitText(e))}__insert(e){this.endNode.parentNode.insertBefore(e,this.endNode)}__commitNode(e){this.value!==e&&(this.clear(),this.__insert(e),this.value=e)}__commitText(e){const t=this.startNode.nextSibling,n="string"==typeof(e=null==e?"":e)?e:String(e);t===this.endNode.previousSibling&&3===t.nodeType?t.data=n:this.__commitNode(document.createTextNode(n)),this.value=e}__commitTemplateResult(e){const t=this.options.templateFactory(e);if(this.value instanceof S&&this.value.template===t)this.value.update(e.values);else{const n=new S(t,e.processor,this.options),r=n._clone();n.update(e.values),this.__commitNode(r),this.value=n}}__commitIterable(e){Array.isArray(this.value)||(this.value=[],this.clear());const t=this.value;let n,r=0;for(const o of e)void 0===(n=t[r])&&(n=new j(this.options),t.push(n),0===r?n.appendIntoPart(this):n.insertAfterPart(t[r-1])),n.setValue(o),n.commit(),r++;r<t.length&&(t.length=r,this.clear(n&&n.endNode))}clear(e=this.startNode){i(this.startNode.parentNode,e.nextSibling,this.endNode)}}class P{constructor(e,t,n){if(this.value=void 0,this.__pendingValue=void 0,2!==n.length||""!==n[0]||""!==n[1])throw new Error("Boolean attributes can only contain a single expression");this.element=e,this.name=t,this.strings=n}setValue(e){this.__pendingValue=e}commit(){for(;x(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=w,e(this)}if(this.__pendingValue===w)return;const e=!!this.__pendingValue;this.value!==e&&(e?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name),this.value=e),this.__pendingValue=w}}class I extends T{constructor(e,t,n){super(e,t,n),this.single=2===n.length&&""===n[0]&&""===n[1]}_createPart(){return new R(this)}_getValue(){return this.single?this.parts[0].value:super._getValue()}commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}class R extends C{}let L=!1;(()=>{try{const e={get capture(){return L=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){}})();class N{constructor(e,t,n){this.value=void 0,this.__pendingValue=void 0,this.element=e,this.eventName=t,this.eventContext=n,this.__boundHandleEvent=e=>this.handleEvent(e)}setValue(e){this.__pendingValue=e}commit(){for(;x(this.__pendingValue);){const e=this.__pendingValue;this.__pendingValue=w,e(this)}if(this.__pendingValue===w)return;const e=this.__pendingValue,t=this.value,n=null==e||null!=t&&(e.capture!==t.capture||e.once!==t.once||e.passive!==t.passive),r=null!=e&&(null==t||n);n&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=M(e),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=e,this.__pendingValue=w}handleEvent(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}const M=e=>e&&(L?{capture:e.capture,passive:e.passive,once:e.once}:e.capture);
  127. /**
  128. * @license
  129. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  130. * This code may only be used under the BSD style license found at
  131. * http://polymer.github.io/LICENSE.txt
  132. * The complete set of authors may be found at
  133. * http://polymer.github.io/AUTHORS.txt
  134. * The complete set of contributors may be found at
  135. * http://polymer.github.io/CONTRIBUTORS.txt
  136. * Code distributed by Google as part of the polymer project is also
  137. * subject to an additional IP rights grant found at
  138. * http://polymer.github.io/PATENTS.txt
  139. */function B(e){let t=D.get(e.type);void 0===t&&(t={stringsArray:new WeakMap,keyString:new Map},D.set(e.type,t));let n=t.stringsArray.get(e.strings);if(void 0!==n)return n;const r=e.strings.join(a);return void 0===(n=t.keyString.get(r))&&(n=new u(e,e.getTemplateElement()),t.keyString.set(r,n)),t.stringsArray.set(e.strings,n),n}const D=new Map,F=new WeakMap;
  140. /**
  141. * @license
  142. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  143. * This code may only be used under the BSD style license found at
  144. * http://polymer.github.io/LICENSE.txt
  145. * The complete set of authors may be found at
  146. * http://polymer.github.io/AUTHORS.txt
  147. * The complete set of contributors may be found at
  148. * http://polymer.github.io/CONTRIBUTORS.txt
  149. * Code distributed by Google as part of the polymer project is also
  150. * subject to an additional IP rights grant found at
  151. * http://polymer.github.io/PATENTS.txt
  152. */const z=new
  153. /**
  154. * @license
  155. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  156. * This code may only be used under the BSD style license found at
  157. * http://polymer.github.io/LICENSE.txt
  158. * The complete set of authors may be found at
  159. * http://polymer.github.io/AUTHORS.txt
  160. * The complete set of contributors may be found at
  161. * http://polymer.github.io/CONTRIBUTORS.txt
  162. * Code distributed by Google as part of the polymer project is also
  163. * subject to an additional IP rights grant found at
  164. * http://polymer.github.io/PATENTS.txt
  165. */
  166. class{handleAttributeExpressions(e,t,n,r){const o=t[0];if("."===o){return new I(e,t.slice(1),n).parts}return"@"===o?[new N(e,t.slice(1),r.eventContext)]:"?"===o?[new P(e,t.slice(1),n)]:new T(e,t,n).parts}handleTextExpression(e){return new j(e)}};
  167. /**
  168. * @license
  169. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  170. * This code may only be used under the BSD style license found at
  171. * http://polymer.github.io/LICENSE.txt
  172. * The complete set of authors may be found at
  173. * http://polymer.github.io/AUTHORS.txt
  174. * The complete set of contributors may be found at
  175. * http://polymer.github.io/CONTRIBUTORS.txt
  176. * Code distributed by Google as part of the polymer project is also
  177. * subject to an additional IP rights grant found at
  178. * http://polymer.github.io/PATENTS.txt
  179. */"undefined"!=typeof window&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.2.1");const q=(e,...t)=>new _(e,t,"html",z),U=(e,t)=>`${e}--${t}`;let $=!0;void 0===window.ShadyCSS?$=!1:void 0===window.ShadyCSS.prepareTemplateDom&&(console.warn("Incompatible ShadyCSS version detected. Please update to at least @webcomponents/webcomponentsjs@2.0.2 and @webcomponents/shadycss@1.3.1."),$=!1);const H=e=>t=>{const n=U(t.type,e);let r=D.get(n);void 0===r&&(r={stringsArray:new WeakMap,keyString:new Map},D.set(n,r));let o=r.stringsArray.get(t.strings);if(void 0!==o)return o;const i=t.strings.join(a);if(void 0===(o=r.keyString.get(i))){const n=t.getTemplateElement();$&&window.ShadyCSS.prepareTemplateDom(n,e),o=new u(t,n),r.keyString.set(i,o)}return r.stringsArray.set(t.strings,o),o},W=["html","svg"],V=new Set,K=(e,t,n)=>{V.add(e);const r=n?n.element:document.createElement("template"),o=t.querySelectorAll("style"),{length:i}=o;if(0===i)return void window.ShadyCSS.prepareTemplateStyles(r,e);const a=document.createElement("style");for(let e=0;e<i;e++){const t=o[e];t.parentNode.removeChild(t),a.textContent+=t.textContent}(e=>{W.forEach(t=>{const n=D.get(U(t,e));void 0!==n&&n.keyString.forEach(e=>{const{element:{content:t}}=e,n=new Set;Array.from(t.querySelectorAll("style")).forEach(e=>{n.add(e)}),m(e,n)})})})(e);const s=r.content;n?function(e,t,n=null){const{element:{content:r},parts:o}=e;if(null==n)return void r.appendChild(t);const i=document.createTreeWalker(r,v,null,!1);let a=y(o),s=0,c=-1;for(;i.nextNode();){for(c++,i.currentNode===n&&(s=g(t),n.parentNode.insertBefore(t,n));-1!==a&&o[a].index===c;){if(s>0){for(;-1!==a;)o[a].index+=s,a=y(o,a);return}a=y(o,a)}}}(n,a,s.firstChild):s.insertBefore(a,s.firstChild),window.ShadyCSS.prepareTemplateStyles(r,e);const c=s.querySelector("style");if(window.ShadyCSS.nativeShadow&&null!==c)t.insertBefore(c.cloneNode(!0),t.firstChild);else if(n){s.insertBefore(a,s.firstChild);const e=new Set;e.add(a),m(n,e)}};window.JSCompiler_renameProperty=(e,t)=>e;const Y={toAttribute(e,t){switch(t){case Boolean:return e?"":null;case Object:case Array:return null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){switch(t){case Boolean:return null!==e;case Number:return null===e?null:Number(e);case Object:case Array:return JSON.parse(e)}return e}},J=(e,t)=>t!==e&&(t==t||e==e),G={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:J},Q=1,X=4,Z=8,ee=16,te="finalized";class ne extends HTMLElement{constructor(){super(),this._updateState=0,this._instanceProperties=void 0,this._updatePromise=new Promise(e=>this._enableUpdatingResolver=e),this._changedProperties=new Map,this._reflectingProperties=void 0,this.initialize()}static get observedAttributes(){this.finalize();const e=[];return this._classProperties.forEach((t,n)=>{const r=this._attributeNameForProperty(n,t);void 0!==r&&(this._attributeToPropertyMap.set(r,n),e.push(r))}),e}static _ensureClassProperties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;const e=Object.getPrototypeOf(this)._classProperties;void 0!==e&&e.forEach((e,t)=>this._classProperties.set(t,e))}}static createProperty(e,t=G){if(this._ensureClassProperties(),this._classProperties.set(e,t),t.noAccessor||this.prototype.hasOwnProperty(e))return;const n="symbol"==typeof e?Symbol():`__${e}`,r=this.getPropertyDescriptor(e,n,t);void 0!==r&&Object.defineProperty(this.prototype,e,r)}static getPropertyDescriptor(e,t,n){return{get(){return this[t]},set(n){const r=this[e];this[t]=n,this._requestUpdate(e,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this._classProperties&&this._classProperties.get(e)||G}static finalize(){const e=Object.getPrototypeOf(this);if(e.hasOwnProperty(te)||e.finalize(),this[te]=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){const e=this.properties,t=[...Object.getOwnPropertyNames(e),..."function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]];for(const n of t)this.createProperty(n,e[n])}}static _attributeNameForProperty(e,t){const n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}static _valueHasChanged(e,t,n=J){return n(e,t)}static _propertyValueFromAttribute(e,t){const n=t.type,r=t.converter||Y,o="function"==typeof r?r:r.fromAttribute;return o?o(e,n):e}static _propertyValueToAttribute(e,t){if(void 0===t.reflect)return;const n=t.type,r=t.converter;return(r&&r.toAttribute||Y.toAttribute)(e,n)}initialize(){this._saveInstanceProperties(),this._requestUpdate()}_saveInstanceProperties(){this.constructor._classProperties.forEach((e,t)=>{if(this.hasOwnProperty(t)){const e=this[t];delete this[t],this._instanceProperties||(this._instanceProperties=new Map),this._instanceProperties.set(t,e)}})}_applyInstanceProperties(){this._instanceProperties.forEach((e,t)=>this[t]=e),this._instanceProperties=void 0}connectedCallback(){this.enableUpdating()}enableUpdating(){void 0!==this._enableUpdatingResolver&&(this._enableUpdatingResolver(),this._enableUpdatingResolver=void 0)}disconnectedCallback(){}attributeChangedCallback(e,t,n){t!==n&&this._attributeToProperty(e,n)}_propertyToAttribute(e,t,n=G){const r=this.constructor,o=r._attributeNameForProperty(e,n);if(void 0!==o){const e=r._propertyValueToAttribute(t,n);if(void 0===e)return;this._updateState=this._updateState|Z,null==e?this.removeAttribute(o):this.setAttribute(o,e),this._updateState=this._updateState&~Z}}_attributeToProperty(e,t){if(this._updateState&Z)return;const n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){const e=n.getPropertyOptions(r);this._updateState=this._updateState|ee,this[r]=n._propertyValueFromAttribute(t,e),this._updateState=this._updateState&~ee}}_requestUpdate(e,t){let n=!0;if(void 0!==e){const r=this.constructor,o=r.getPropertyOptions(e);r._valueHasChanged(this[e],t,o.hasChanged)?(this._changedProperties.has(e)||this._changedProperties.set(e,t),!0!==o.reflect||this._updateState&ee||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,o))):n=!1}!this._hasRequestedUpdate&&n&&(this._updatePromise=this._enqueueUpdate())}requestUpdate(e,t){return this._requestUpdate(e,t),this.updateComplete}async _enqueueUpdate(){this._updateState=this._updateState|X;try{await this._updatePromise}catch(e){}const e=this.performUpdate();return null!=e&&await e,!this._hasRequestedUpdate}get _hasRequestedUpdate(){return this._updateState&X}get hasUpdated(){return this._updateState&Q}performUpdate(){this._instanceProperties&&this._applyInstanceProperties();let e=!1;const t=this._changedProperties;try{(e=this.shouldUpdate(t))?this.update(t):this._markUpdated()}catch(t){throw e=!1,this._markUpdated(),t}e&&(this._updateState&Q||(this._updateState=this._updateState|Q,this.firstUpdated(t)),this.updated(t))}_markUpdated(){this._changedProperties=new Map,this._updateState=this._updateState&~X}get updateComplete(){return this._getUpdateComplete()}_getUpdateComplete(){return this._updatePromise}shouldUpdate(e){return!0}update(e){void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach((e,t)=>this._propertyToAttribute(t,this[t],e)),this._reflectingProperties=void 0),this._markUpdated()}updated(e){}firstUpdated(e){}}ne[te]=!0;
  180. /**
  181. @license
  182. Copyright (c) 2019 The Polymer Project Authors. All rights reserved.
  183. This code may only be used under the BSD style license found at
  184. http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
  185. http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
  186. found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
  187. part of the polymer project is also subject to an additional IP rights grant
  188. found at http://polymer.github.io/PATENTS.txt
  189. */
  190. const re="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,oe=Symbol();class ie{constructor(e,t){if(t!==oe)throw new Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e}get styleSheet(){return void 0===this._styleSheet&&(re?(this._styleSheet=new CSSStyleSheet,this._styleSheet.replaceSync(this.cssText)):this._styleSheet=null),this._styleSheet}toString(){return this.cssText}}const ae=e=>new ie(String(e),oe),se=(e,...t)=>{const n=t.reduce((t,n,r)=>t+(e=>{if(e instanceof ie)return e.cssText;if("number"==typeof e)return e;throw new Error(`Value passed to 'css' function must be a 'css' function result: ${e}. Use 'unsafeCSS' to pass non-literal values, but\n take care to ensure page security.`)})(n)+e[r+1],e[0]);return new ie(n,oe)};
  191. /**
  192. * @license
  193. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  194. * This code may only be used under the BSD style license found at
  195. * http://polymer.github.io/LICENSE.txt
  196. * The complete set of authors may be found at
  197. * http://polymer.github.io/AUTHORS.txt
  198. * The complete set of contributors may be found at
  199. * http://polymer.github.io/CONTRIBUTORS.txt
  200. * Code distributed by Google as part of the polymer project is also
  201. * subject to an additional IP rights grant found at
  202. * http://polymer.github.io/PATENTS.txt
  203. */
  204. (window.litElementVersions||(window.litElementVersions=[])).push("2.3.1");const ce={};class le extends ne{static getStyles(){return this.styles}static _getUniqueStyles(){if(this.hasOwnProperty(JSCompiler_renameProperty("_styles",this)))return;const e=this.getStyles();if(void 0===e)this._styles=[];else if(Array.isArray(e)){const t=(e,n)=>e.reduceRight((e,n)=>Array.isArray(n)?t(n,e):(e.add(n),e),n),n=t(e,new Set),r=[];n.forEach(e=>r.unshift(e)),this._styles=r}else this._styles=[e]}initialize(){super.initialize(),this.constructor._getUniqueStyles(),this.renderRoot=this.createRenderRoot(),window.ShadowRoot&&this.renderRoot instanceof window.ShadowRoot&&this.adoptStyles()}createRenderRoot(){return this.attachShadow({mode:"open"})}adoptStyles(){const e=this.constructor._styles;0!==e.length&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow?re?this.renderRoot.adoptedStyleSheets=e.map(e=>e.styleSheet):this._needsShimAdoptedStyleSheets=!0:window.ShadyCSS.ScopingShim.prepareAdoptedCssText(e.map(e=>e.cssText),this.localName))}connectedCallback(){super.connectedCallback(),this.hasUpdated&&void 0!==window.ShadyCSS&&window.ShadyCSS.styleElement(this)}update(e){const t=this.render();super.update(e),t!==ce&&this.constructor.render(t,this.renderRoot,{scopeName:this.localName,eventContext:this}),this._needsShimAdoptedStyleSheets&&(this._needsShimAdoptedStyleSheets=!1,this.constructor._styles.forEach(e=>{const t=document.createElement("style");t.textContent=e.cssText,this.renderRoot.appendChild(t)}))}render(){return ce}}le.finalized=!0,le.render=(e,t,n)=>{if(!n||"object"!=typeof n||!n.scopeName)throw new Error("The `scopeName` option is required.");const r=n.scopeName,o=F.has(t),a=$&&11===t.nodeType&&!!t.host,s=a&&!V.has(r),c=s?document.createDocumentFragment():t;if(((e,t,n)=>{let r=F.get(t);void 0===r&&(i(t,t.firstChild),F.set(t,r=new j(Object.assign({templateFactory:B},n))),r.appendInto(t)),r.setValue(e),r.commit()})(e,c,Object.assign({templateFactory:H(r)},n)),s){const e=F.get(c);F.delete(c);const n=e.value instanceof S?e.value.template:void 0;K(r,c,n),i(t,t.firstChild),t.appendChild(c),F.set(t,e)}!o&&a&&window.ShadyCSS.styleElement(t.host)};var ue=n(8),pe=n.n(ue),fe=n(27),de=n.n(fe);n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265);function he(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["::selection {\n background: var(--selection-bg);\n color: var(--selection-fg);\n }\n .regular-font{ \n font-family:var(--font-regular); \n }\n .mono-font { \n font-family:var(--font-mono); \n }\n .title { \n font-size: calc(var(--font-size-small) + 18px);\n font-weight: normal \n }\n .sub-title{ font-size: 20px;}\n .req-res-title {\n font-family: var(--font-regular);\n font-size: calc(var(--font-size-small) + 4px);\n font-weight:bold;\n margin-bottom:8px;\n }\n .tiny-title { \n font-size:calc(var(--font-size-small) + 1px); \n font-weight:bold; \n }\n .regular-font-size { font-size: var(--font-size-regular); }\n .small-font-size { font-size: var(--font-size-small); }\n .upper { text-transform: uppercase; }\n .primary-text{ color: var(--primary-color); }\n .bold-text { font-weight:bold; }\n .gray-text { color: var(--light-fg); }\n .red-text {color: var(--red)}\n .blue-text {color: var(--blue)}\n .multiline {\n overflow: scroll;\n max-height: var(--resp-area-height, 300px);\n color: var(--fg3); \n }\n .method-fg.put { color: var(--orange); }\n .method-fg.post { color: var(--green); }\n .method-fg.get { color: var(--blue); }\n .method-fg.delete { color: var(--red); }\n .method-fg.head, \n .method-fg.patch { \n color: var(--yellow); \n }\n\n h1{ font-family:var(--font-regular); font-size:28px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }\n h2{ font-family:var(--font-regular); font-size:24px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }\n h3{ font-family:var(--font-regular); font-size:18px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }\n h4{ font-family:var(--font-regular); font-size:16px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }\n h5{ font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }\n h6{ font-family:var(--font-regular); font-size:14px; padding-top: 10px; letter-spacing:normal; font-weight:normal; }\n\n h1,h2,h3,h4,h5,h5{\n margin-block-end: 0.2em;\n }\n p { margin-block-start: 0.5em; }\n\n code,\n pre {\n margin: 0px;\n font-family: var(--font-mono);\n font-size: calc(var(--font-size-mono) - 1px);\n }\n\n .m-markdown,\n .m-markdown-small {\n display:block;\n }\n\n .m-markdown p,\n .m-markdown span,\n .m-markdown li {\n font-size: var(--font-size-regular);\n line-height:calc(var(--font-size-regular) + 8px);\n }\n \n .m-markdown-small p,\n .m-markdown-small span,\n .m-markdown-small li {\n font-size: var(--font-size-small);\n line-height: calc(var(--font-size-small) + 6px);\n }\n .m-markdown-small li {\n line-height: calc(var(--font-size-small) + 8px);\n }\n\n .m-markdown p:not(:first-child) {\n margin-block-start: 24px;\n }\n\n .m-markdown-small p:not(:first-child) {\n margin-block-start: 12px;\n }\n .m-markdown-small p:first-child {\n margin-block-start: 0;\n }\n\n .m-markdown p,\n .m-markdown-small p {\n margin-block-end: 0\n }\n\n .m-markdown code span {\n font-size:var(--font-size-mono);\n }\n\n .m-markdown-small code,\n .m-markdown code {\n padding: 1px 6px;\n border-radius: 2px;\n color: var(--inline-code-fg);\n background-color: var(--bg3);\n font-size: calc(var(--font-size-mono));\n line-height: 1.2;\n }\n\n .m-markdown-small code {\n font-size: calc(var(--font-size-mono) - 1px);\n }\n\n .m-markdown-small pre,\n .m-markdown pre {\n white-space: pre-wrap;\n overflow-x: auto;\n line-height: normal;\n border-radius: 2px;\n border: 1px solid var(--code-border-color);\n }\n\n .m-markdown pre {\n margin-top: 8px;\n padding: 12px;\n background-color: var(--code-bg);\n color:var(--code-fg);\n }\n\n .m-markdown-small pre {\n margin-top: 4px;\n padding: 2px 4px;\n background-color: var(--bg3);\n color: var(--fg2);\n }\n\n .m-markdown-small pre code,\n .m-markdown pre code {\n border:none;\n padding:0;\n }\n\n .m-markdown pre code {\n color: var(--code-fg);\n background-color: var(--code-bg);\n }\n\n .m-markdown-small pre code {\n color: var(--fg2);\n background-color: var(--bg3);\n }\n\n .m-markdown ul,\n .m-markdown ol {\n padding-inline-start: 30px;\n }\n\n .m-markdown-small ul,\n .m-markdown-small ol {\n padding-inline-start: 20px;\n }\n\n .m-markdown-small a,\n .m-markdown a {\n color:var(--blue);\n }\n\n .m-markdown-small img,\n .m-markdown img { \n max-width: 100%; \n }\n\n /* Markdown table */\n\n .m-markdown-small table,\n .m-markdown table {\n border-spacing: 0;\n margin: 10px 0;\n border-collapse: separate;\n border: 1px solid var(--border-color);\n border-radius: var(--border-radius);\n font-size: calc(var(--font-size-small) + 1px);\n line-height: calc(var(--font-size-small) + 4px);\n max-width: 100%;\n }\n\n .m-markdown-small table {\n font-size: var(--font-size-small);\n line-height: calc(var(--font-size-small) + 2px);\n margin: 8px 0;\n }\n\n .m-markdown-small td, \n .m-markdown-small th,\n .m-markdown td, \n .m-markdown th {\n vertical-align: top;\n border-top: 1px solid var(--border-color);\n line-height: calc(var(--font-size-small) + 4px);\n }\n\n .m-markdown-small tr:first-child th,\n .m-markdown tr:first-child th {\n border-top: 0 none;\n }\n\n .m-markdown th, \n .m-markdown td { \n padding: 10px 12px; \n }\n\n .m-markdown-small th,\n .m-markdown-small td { \n padding: 8px 8px; \n }\n\n .m-markdown th,\n .m-markdown-small th {\n font-weight: 600;\n background-color: var(--bg2);\n vertical-align: middle;\n }\n\n .m-markdown-small table code {\n font-size: calc(var(--font-size-mono) - 2px);\n }\n\n .m-markdown table code {\n font-size: calc(var(--font-size-mono) - 1px);\n }\n\n .m-markdown blockquote,\n .m-markdown-small blockquote {\n margin-inline-start: 0;\n margin-inline-end: 0;\n border-left: 3px solid var(--border-color);\n padding: 6px 0 6px 6px;\n }"]);return he=function(){return e},e}var ve=se(he());function me(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['/* Button */\n.m-btn {\n border-radius: var(--border-radius);\n box-sizing: border-box;\n font-weight: 600;\n display: inline-block;\n padding: 6px 16px;\n font-size: var(--font-size-small);\n outline: 0;\n line-height: 1;\n text-align: center;\n white-space: nowrap;\n border: 2px solid var(--primary-color);\n background-color:transparent;\n transition: background-color 0.2s;\n user-select: none;\n cursor: pointer;\n}\n.m-btn.primary {\n background-color: var(--primary-color);\n color: var(--primary-color-invert);\n}\n.m-btn.thin-border { border-width: 1px; }\n.m-btn.large { padding:8px 14px; }\n.m-btn.small { padding:5px 12px; }\n.m-btn.circle { border-radius: 50%; }\n.m-btn:hover { \n background-color: var(--primary-color);\n color: var(--primary-color-invert);\n}\n.m-btn:disabled{ \n background-color: var(--bg3);\n color: var(--fg3);\n border-color: var(--fg3);\n cursor: not-allowed;\n opacity: 0.4;\n}\n.toolbar-btn{\n cursor: pointer;\n padding: 2px 0 4px;\n margin:0 2px;\n min-width: 50px;\n color: var(--primary-color-invert);\n border-radius: 2px;\n border: none;\n background-color: var(--primary-color);\n}\n\ninput, textarea, select, button, pre {\n color:var(--fg);\n outline: none;\n background-color: var(--input-bg);\n border: 1px solid var(--border-color);\n border-radius: var(--border-radius);\n}\n\n/* Form Inputs */\npre,\nselect,\ntextarea,\ninput[type="file"],\ninput[type="text"],\ninput[type="password"] {\n font-family: var(--font-mono);\n font-weight: 400;\n font-size: var(--font-size-small);\n transition: border .2s;\n padding: 6px 5px;\n box-sizing: border-box;\n}\n\nselect {\n font-family: var(--font-regular);\n padding: 5px 30px 5px 5px;\n background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2212%22%3E%3Cpath%20d%3D%22M10.3%203.3L6%207.6%201.7%203.3A1%201%200%2000.3%204.7l5%205a1%201%200%20001.4%200l5-5a1%201%200%2010-1.4-1.4z%22%20fill%3D%22%23777777%22%2F%3E%3C%2Fsvg%3E"); \n background-position: calc(100% - 5px) center;\n background-repeat: no-repeat; \n background-size: 10px;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n cursor: pointer;\n}\nselect:hover {\n border-color: var(--primary-color);\n}\n\ntextarea::placeholder,\ninput[type="text"]::placeholder,\ninput[type="password"]::placeholder {\n color: var(--placeholder-color);\n opacity:1;\n}\n\nselect:focus,\ntextarea:focus,\ninput[type="text"]:focus,\ninput[type="password"]:focus,\ntextarea:active,\ninput[type="text"]:active,\ninput[type="password"]:active {\n border:1px solid var(--primary-color);\n}\n\ninput[type="file"]{\n font-family: var(--font-regular);\n padding:2px;\n cursor:pointer;\n border: 1px solid var(--primary-color);\n min-height: calc(var(--font-size-small) + 18px);\n}\ninput[type="file"]::-webkit-file-upload-button {\n font-family: var(--font-regular);\n font-size: var(--font-size-small);\n outline: none;\n cursor:pointer;\n padding: 3px 8px;\n border: 1px solid var(--primary-color);\n background-color: var(--primary-color);\n color: var(--primary-color-invert);\n border-radius: var(--border-radius);;\n -webkit-appearance: none;\n}\n\npre,\ntextarea {\n scrollbar-width: thin;\n scrollbar-color: var(--border-color) var(--input-bg);\n}\n\npre::-webkit-scrollbar,\ntextarea::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n}\n\npre::-webkit-scrollbar-track,\ntextarea::-webkit-scrollbar-track {\n background:var(--input-bg);\n}\n \npre::-webkit-scrollbar-thumb,\ntextarea::-webkit-scrollbar-thumb {\n border-radius: 2px;\n background-color: var(--border-color);\n}\n\n.link {\n font-size:var(--font-size-small);\n text-decoration: underline;\n color:var(--blue);\n font-family:var(--font-mono);\n margin-bottom:2px;\n}']);return me=function(){return e},e}var ge=se(me());function ye(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".row, .col{\n display:flex;\n} \n.row {\n align-items:center;\n flex-direction: row;\n}\n.col {\n align-items:stretch;\n flex-direction: column;\n}"]);return ye=function(){return e},e}var be=se(ye());function xe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".m-table {\n border-spacing: 0; \n border-collapse: separate;\n border: 1px solid var(--light-border-color);\n border-radius: var(--border-radius);\n margin: 0;\n max-width: 100%;\n}\n.m-table tr:first-child td,\n.m-table tr:first-child th {\n border-top: 0 none;\n}\n.m-table td, \n.m-table th {\n font-size: var(--font-size-small);\n line-height: calc(var(--font-size-small) + 4px);\n padding: 4px 5px 4px;\n vertical-align: top;\n}\n\n.m-table td:not([align]), \n.m-table th:not([align]) {\n text-align: left;\n}\n\n.m-table th {\n color: var(--fg2);\n font-size: var(--font-size-small);\n line-height: calc(var(--font-size-small) + 18px);\n font-weight: 600;\n letter-spacing: normal;\n background-color: var(--bg2);\n vertical-align: bottom;\n border-bottom: 1px solid var(--light-border-color);\n}\n\n.m-table > tbody > tr > td,\n.m-table > tr > td {\n border-top: 1px solid var(--light-border-color);\n text-overflow: ellipsis;\n overflow: hidden;\n}\n.table-title {\n font-size:var(--font-size-small);\n font-weight:bold;\n vertical-align: middle;\n margin: 12px 0 4px 0;\n}"]);return xe=function(){return e},e}var we=se(xe());function ke(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".only-large-screen { display:none; }\n.endpoint-head .path{\n display: flex;\n font-family:var(--font-mono);\n font-size: var(--font-size-small);\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n}\n\n.endpoint-head .descr{\n font-size: var(--font-size-small);\n color:var(--light-fg);\n font-weight:400;\n align-items: center;\n overflow-wrap: break-word;\n word-break: break-all;\n display:none;\n}\n\n.m-endpoint.expanded{margin-bottom:16px; }\n.m-endpoint > .endpoint-head{\n border-width:1px 1px 1px 5px;\n border-style:solid;\n border-color:transparent;\n border-top-color:var(--light-border-color);\n display:flex;\n padding:6px 16px;\n align-items: center;\n cursor: pointer;\n}\n.m-endpoint > .endpoint-head.put:hover,\n.m-endpoint > .endpoint-head.put.expanded{\n border-color:var(--orange); \n background-color:var(--light-orange); \n}\n.m-endpoint > .endpoint-head.post:hover,\n.m-endpoint > .endpoint-head.post.expanded{\n border-color:var(--green); \n background-color:var(--light-green); \n}\n.m-endpoint > .endpoint-head.get:hover,\n.m-endpoint > .endpoint-head.get.expanded{\n border-color:var(--blue); \n background-color:var(--light-blue); \n}\n.m-endpoint > .endpoint-head.delete:hover,\n.m-endpoint > .endpoint-head.delete.expanded{\n border-color:var(--red); \n background-color:var(--light-red); \n}\n\n.m-endpoint > .endpoint-head.head:hover,\n.m-endpoint > .endpoint-head.head.expanded,\n.m-endpoint > .endpoint-head.patch:hover,\n.m-endpoint > .endpoint-head.patch.expanded {\n border-color:var(--yellow); \n background-color:var(--light-yellow); \n}\n\n.m-endpoint > .endpoint-head.deprecated:hover,\n.m-endpoint > .endpoint-head.deprecated.expanded {\n border-color:var(--border-color); \n filter:opacity(0.6);\n}\n\n.m-endpoint .endpoint-body {\n flex-wrap:wrap;\n padding:16px 0px 0 0px;\n border-width:0px 1px 1px 5px;\n border-style:solid;\n box-shadow: 0px 4px 3px -3px rgba(0, 0, 0, 0.15);\n}\n.m-endpoint .endpoint-body.delete{ border-color:var(--red); }\n.m-endpoint .endpoint-body.put{ border-color:var(--orange); }\n.m-endpoint .endpoint-body.post{border-color:var(--green);}\n.m-endpoint .endpoint-body.get{ border-color:var(--blue); }\n.m-endpoint .endpoint-body.head,\n.m-endpoint .endpoint-body.patch { \n border-color:var(--yellow); \n}\n\n.m-endpoint .endpoint-body.deprecated{ \n border-color:var(--border-color);\n filter:opacity(0.6);\n}\n\n.endpoint-head .deprecated{\n color: var(--light-fg);\n filter:opacity(0.6);\n}\n\n.summary{\n padding:8px 8px;\n}\n.summary .title{\n font-size:calc(var(--title-font-size) + 2px);\n margin-bottom: 6px;\n word-break: break-all;\n}\n\n.method{\n padding:2px 5px;\n vertical-align: middle;\n font-size:var(--font-size-small);\n height: calc(var(--font-size-small) + 8px);\n line-height: calc(var(--font-size-small) + 8px);\n min-width: 48px;\n border-radius: 2px;\n display:inline-block;\n text-align: center;\n font-weight: bold;\n text-transform:uppercase;\n margin-right:5px;\n}\n.method.delete{ border: 2px solid var(--red);}\n.method.put{ border: 2px solid var(--orange); }\n.method.post{ border: 2px solid var(--green); }\n.method.get{ border: 2px solid var(--blue); }\n.method.get.deprecated{ border: 2px solid var(--border-color); }\n.method.head,\n.method.patch { \n border: 2px solid var(--yellow); \n}\n\n.req-resp-container{\n display: flex;\n margin-top:16px;\n align-items: stretch;\n flex-wrap: wrap;\n flex-direction: column;\n border-top:1px solid var(--light-border-color);\n}\n.request,\n.response{\n flex:1; \n min-height:100px;\n padding:16px 8px;\n overflow:hidden;\n}\n.request{\n border-width:0 0 1px 0;\n border-style:dashed;\n}\n\n.head .request,\n.patch .request { \n border-color:var(--yellow); \n}\n.put .request{ \n border-color:var(--orange); \n}\n.post .request{ \n border-color:var(--green); \n}\n.get .request{ \n border-color:var(--blue); \n}\n.delete .request{ \n border-color:var(--red); \n}\n\n@media only screen and (min-width: 768px) {\n .only-large-screen { display:block; }\n .endpoint-head .path{\n font-size: var(--font-size-regular);\n min-width:400px;\n }\n .endpoint-head .descr{\n display: flex;\n }\n .endpoint-head .m-markdown-small,\n .descr .m-markdown-small{\n display:block;\n }\n .req-resp-container{\n flex-direction: var(--layout, row);\n }\n .request{\n border-width:0 1px 0 0;\n padding:16px 24px;\n }\n .response{\n padding:16px 24px;\n } \n .summary{\n padding:8px 24px;\n }\n}"]);return ke=function(){return e},e}var Se=se(ke());function Oe(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['code[class*="language-"],\npre[class*="language-"] {\n text-align: left;\n white-space: pre;\n word-spacing: normal;\n word-break: normal;\n word-wrap: normal;\n line-height: 1.5;\n tab-size: 2;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n}\n\n/* Code blocks */\npre[class*="language-"] {\n padding: 1em;\n margin: .5em 0;\n overflow: auto;\n}\n\n/* Inline code */\n:not(pre) > code[class*="language-"] {\n white-space: normal;\n}\n\n.token.comment,\n.token.block-comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n color: #999;\n}\n\n.token.punctuation {\n color: #ccc;\n}\n\n.token.tag,\n.token.attr-name,\n.token.namespace,\n.token.deleted {\n color: #ffb2b2;\n}\n\n.token.function-name {\n color: #71b7ff;\n}\n\n.token.boolean,\n.token.number,\n.token.function {\n color: #f08d49;\n}\n\n.token.property,\n.token.class-name,\n.token.constant,\n.token.symbol {\n color: #f8c555;\n}\n\n.token.selector,\n.token.important,\n.token.atrule,\n.token.keyword,\n.token.builtin {\n color: #cc99cd;\n}\n\n.token.string,\n.token.char,\n.token.attr-value,\n.token.regex,\n.token.variable { \n color: #7ec699;\n}\n\n.token.operator,\n.token.entity,\n.token.url {\n color: #67cdcc;\n}\n\n.token.important,\n.token.bold {\n font-weight: bold;\n}\n.token.italic {\n font-style: italic;\n}\n\n.token.entity {\n cursor: help;\n}\n\n.token.inserted {\n color: green;\n}']);return Oe=function(){return e},e}var _e=se(Oe());function Ee(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".tab-panel {\n border: none;\n}\n.tab-buttons {\n height:30px;\n border-bottom: 1px solid var(--light-border-color) ;\n align-items: stretch;\n overflow-y: hidden;\n overflow-x: auto;\n scrollbar-width: thin;\n}\n.tab-buttons::-webkit-scrollbar {\n height: 1px;\n background-color: var(--border-color);\n}\n.tab-btn {\n border: none;\n border-bottom: 3px solid transparent; \n white-space: nowrap;\n background-color:transparent;\n cursor:pointer;\n outline:none;\n font-size:var(--font-size-small);\n margin-right:16px;\n padding:1px;\n}\n.tab-btn.active {\n border-bottom: 3px solid var(--primary-color); \n font-weight:bold;\n color:var(--primary-color);\n}\n\n.tab-btn:hover {\n color:var(--primary-color);\n}\n.tab-content {\n margin:-1px 0 0 0;\n position:relative;\n}"]);return Ee=function(){return e},e}var Ae=se(Ee());function Te(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([".nav-bar {\n width:0;\n height:100%;\n overflow: hidden;\n color:var(--nav-text-color);\n background-color: var(--nav-bg-color);\n background-image: var(--nav-bg-image);\n background-size: var(--nav-bg-image-size);\n background-repeat: var(--nav-bg-image-repeat, 'no-repeat');\n background-blend-mode: multiply;\n box-sizing:border-box;\n line-height: calc(var(--font-size-small) + 4px);\n display:none;\n position:relative;\n flex-direction:column;\n flex-wrap:nowrap;\n word-break:break-word;\n}\n.nav-scroll {\n overflow-x: hidden;\n overflow-y: auto;\n overflow-y: overlay;\n scrollbar-width: thin;\n scrollbar-color: var(--nav-hover-bg-color) transparent;\n}\n\n.nav-scroll::-webkit-scrollbar {\n width: 10px;\n}\n.nav-scroll::-webkit-scrollbar-track {\n background:transparent;\n}\n.nav-scroll::-webkit-scrollbar-thumb {\n background-color: var(--nav-hover-bg-color);\n}\n\n.nav-bar-tag {\n font-size: var(--font-size-regular);\n border-left:4px solid transparent;\n font-weight:bold;\n padding: 15px 30px 15px 10px;\n text-transform: capitalize;\n}\n\n.nav-bar-components,\n.nav-bar-h1,\n.nav-bar-h2,\n.nav-bar-info,\n.nav-bar-tag,\n.nav-bar-path {\n display:flex;\n cursor:pointer;\n border-left:4px solid transparent;\n}\n\n.nav-bar-h1,\n.nav-bar-h2,\n.nav-bar-path {\n font-size: calc(var(--font-size-small) + 1px);\n padding: var(--nav-item-padding);\n}\n.nav-bar-info {\n font-size: var(--font-size-regular);\n padding: 16px 10px;\n font-weight:bold;\n}\n.nav-bar-section {\n display: block;\n font-size: var(--font-size-small);\n color: var(--nav-text-color);\n text-transform: uppercase;\n padding: 15px 15px 5px 5px;\n text-align: right;\n filter:opacity(0.5);\n font-weight:bold;\n border-bottom: 1px solid var(--nav-text-color);\n}\n.nav-bar-section:first-child {\n display: none;\n}\n.nav-bar-h2 {margin-left:12px;}\n\n.nav-bar-h1.active,\n.nav-bar-h2.active,\n.nav-bar-info.active,\n.nav-bar-tag.active,\n.nav-bar-path.active {\n border-left:4px solid var(--nav-accent-color);\n color:var(--nav-hover-text-color);\n}\n\n.nav-bar-h1:hover,\n.nav-bar-h2:hover,\n.nav-bar-info:hover,\n.nav-bar-tag:hover,\n.nav-bar-path:hover {\n color:var(--nav-hover-text-color);\n background-color:var(--nav-hover-bg-color);\n}"]);return Te=function(){return e},e}var Ce=se(Te());var je=new RegExp(/[\s#:?&=]/,"g");function Pe(e){return new Promise(t=>setTimeout(t,e))}function Ie(e,t){var n=t.currentTarget,r=document.createElement("textarea");r.value=e,r.style.position="fixed",document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy"),n.innerText="Copied",setTimeout(()=>{n.innerText="Copy"},5e3)}catch(e){console.error("Unable to copy",e)}document.body.removeChild(r)}function Re(e,t){return"".concat(t.method," ").concat(t.path," ").concat(t.summary||t.description||""," ").concat(t.operationId||"").toLowerCase().includes(e)}var Le=n(240),Ne=n.n(Le),Me=n(12),Be=n.n(Me),De=n(59),Fe=n.n(De),ze=n(90),qe=n.n(ze),Ue=n(32),$e=n.n(Ue),He=n(30),We=n.n(He),Ve=n(41),Ke=n.n(Ve),Ye=n(242),Je=n.n(Ye),Ge=n(10),Qe=n.n(Ge),Xe=n(60),Ze=n.n(Xe),et=n(9),tt=n.n(et),nt=n(13),rt=n.n(nt),ot=n(33),it=n.n(ot),at=n(116),st=n.n(at),ct=n(70),lt=n.n(ct),ut=(n(370),n(53)),pt=n.n(ut),ft=n(120),dt=n.n(ft),ht=n(71),vt=n.n(ht),mt=n(47),gt=n.n(mt),yt=n(29),bt=n(72),xt=n.n(bt),wt=n(61),kt=n.n(wt),St=n(243),Ot=n.n(St),_t=n(117),Et=n.n(_t),At=n(244),Tt=n.n(At),Ct=n(245),jt=n.n(Ct),Pt=n(246),It=function(e){var t=function(e,t){return{name:e,value:t}};return gt()(e.prototype.set)||gt()(e.prototype.get)||gt()(e.prototype.getAll)||gt()(e.prototype.has)?e:function(e){Tt()(r,e);var n=jt()(r);function r(e){var t;return xt()(this,r),(t=n.call(this,e)).entryList=[],t}return kt()(r,[{key:"append",value:function(e,n,o){return this.entryList.push(t(e,n)),Ot()(Et()(r.prototype),"append",this).call(this,e,n,o)}},{key:"set",value:function(e,n){var r=t(e,n);this.entryList=this.entryList.filter(function(t){return t.name!==e}),this.entryList.push(r)}},{key:"get",value:function(e){var t=this.entryList.find(function(t){return t.name===e});return void 0===t?null:t}},{key:"getAll",value:function(e){return this.entryList.filter(function(t){return t.name===e}).map(function(e){return e.value})}},{key:"has",value:function(e){return this.entryList.some(function(t){return t.name===e})}}]),r}(e)}(n.n(Pt).a),Rt=n(38),Lt=n.n(Rt),Nt=n(29).Buffer,Mt=function(e){return":/?#[]@!$&'()*+,;=".indexOf(e)>-1},Bt=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function Dt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).escape,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?n?JSON.parse(e):Lt()(e).map(function(e){return Bt(e)?e:Mt(e)&&"unsafe"===t?e:(Nt.from(e).toJSON().data||[]).map(function(e){return"0".concat(e.toString(16).toUpperCase()).slice(-2)}).map(function(e){return"%".concat(e)}).join("")}).join(""):e}function Ft(e){var t=e.value;return tt()(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return Dt(e,{escape:i})};if("simple"===r)return n.map(function(e){return a(e)}).join(",");if("label"===r)return".".concat(n.map(function(e){return a(e)}).join("."));if("matrix"===r)return n.map(function(e){return a(e)}).reduce(function(e,n){return!e||o?"".concat(e||"",";").concat(t,"=").concat(n):"".concat(e,",").concat(n)},"");if("form"===r){var s=o?"&".concat(t,"="):",";return n.map(function(e){return a(e)}).join(s)}if("spaceDelimited"===r){var c=o?"".concat(t,"="):"";return n.map(function(e){return a(e)}).join(" ".concat(c))}if("pipeDelimited"===r){var l=o?"".concat(t,"="):"";return n.map(function(e){return a(e)}).join("|".concat(l))}return}(e):"object"===rt()(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return Dt(e,{escape:i})},s=Qe()(n);if("simple"===r)return s.reduce(function(e,t){var r=a(n[t]),i=o?"=":",",s=e?"".concat(e,","):"";return"".concat(s).concat(t).concat(i).concat(r)},"");if("label"===r)return s.reduce(function(e,t){var r=a(n[t]),i=o?"=":".",s=e?"".concat(e,"."):".";return"".concat(s).concat(t).concat(i).concat(r)},"");if("matrix"===r&&o)return s.reduce(function(e,t){var r=a(n[t]),o=e?"".concat(e,";"):";";return"".concat(o).concat(t,"=").concat(r)},"");if("matrix"===r)return s.reduce(function(e,r){var o=a(n[r]),i=e?"".concat(e,","):";".concat(t,"=");return"".concat(i).concat(r,",").concat(o)},"");if("form"===r)return s.reduce(function(e,t){var r=a(n[t]),i=e?"".concat(e).concat(o?"&":","):"",s=o?"=":",";return"".concat(i).concat(t).concat(s).concat(r)},"");return}(e):function(e){var t=e.key,n=e.value,r=e.style,o=e.escape,i=function(e){return Dt(e,{escape:o})};if("simple"===r)return i(n);if("label"===r)return".".concat(i(n));if("matrix"===r)return";".concat(t,"=").concat(i(n));if("form"===r)return i(n);if("deepObject"===r)return i(n);return}(e)}var zt={serializeRes:Ht,mergeInQueryOrForm:Zt};function qt(e){return Ut.apply(this,arguments)}function Ut(){return(Ut=lt()(We.a.mark(function e(t){var n,r,o,i,a,s=arguments;return We.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=s.length>1&&void 0!==s[1]?s[1]:{},"object"===rt()(t)&&(t=(n=t).url),n.headers=n.headers||{},zt.mergeInQueryOrForm(n),n.headers&&Qe()(n.headers).forEach(function(e){var t=n.headers[e];"string"==typeof t&&(n.headers[e]=t.replace(/\n+/g," "))}),!n.requestInterceptor){e.next=12;break}return e.next=8,n.requestInterceptor(n);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=n;case 11:n=e.t0;case 12:return r=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(r)&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),e.prev=14,e.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=e.sent,e.next=20,zt.serializeRes(o,t,n);case 20:if(o=e.sent,!n.responseInterceptor){e.next=28;break}return e.next=24,n.responseInterceptor(o);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=o;case 27:o=e.t1;case 28:e.next=39;break;case 30:if(e.prev=30,e.t2=e.catch(14),o){e.next=34;break}throw e.t2;case 34:throw(i=new Error(o.statusText)).status=o.status,i.statusCode=o.status,i.responseError=e.t2,i;case 39:if(o.ok){e.next=45;break}throw(a=new Error(o.statusText)).status=o.status,a.statusCode=o.status,a.response=o,a;case 45:return e.abrupt("return",o);case 46:case"end":return e.stop()}},e,null,[[14,30]])}))).apply(this,arguments)}var $t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function Ht(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).loadSpec,r=void 0!==n&&n,o={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Wt(e.headers)},i=o.headers["content-type"],a=r||$t(i);return(a?e.text:e.blob||e.buffer).call(e).then(function(e){if(o.text=e,o.data=e,a)try{var t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):dt.a.safeLoad(e)}(e,i);o.body=t,o.obj=t}catch(e){o.parseError=e}return o})}function Wt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return gt()(e.entries)?st()(e.entries()).reduce(function(e,t){var n=it()(t,2),r=n[0],o=n[1];return e[r]=function(e){return e.includes(", ")?e.split(", "):e}(o),e},{}):{}}function Vt(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!==rt()(e)||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(void 0!==yt.Buffer&&e instanceof yt.Buffer||null!==e&&"object"===rt()(e)&&"function"==typeof e.pipe))}function Kt(e,t){return tt()(e)&&e.some(function(e){return Vt(e,t)})}var Yt={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Jt={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Gt(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.collectionFormat,o=t.allowEmptyValue,i=t.serializationOption,a=t.encoding,s="object"!==rt()(t)||tt()(t)?t:t.value,c=n?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},l=c(e);return void 0===s&&o?[[l,""]]:Vt(s)||Kt(s)?[[l,s]]:i?Qt(e,s,n,i):a?[rt()(a.style),rt()(a.explode),rt()(a.allowReserved)].some(function(e){return"undefined"!==e})?Qt(e,s,n,vt()(a,["style","explode","allowReserved"])):a.contentType?"application/json"===a.contentType?[[l,c("string"==typeof s?s:Ze()(s))]]:[[l,c(s.toString())]]:"object"!==rt()(s)?[[l,c(s)]]:tt()(s)&&s.every(function(e){return"object"!==rt()(e)})?[[l,s.map(c).join(",")]]:[[l,c(Ze()(s))]]:"object"!==rt()(s)?[[l,c(s)]]:tt()(s)?"multi"===r?[[l,s.map(c)]]:[[l,s.map(c).join(Jt[r||"csv"])]]:[[l,""]]}function Qt(e,t,n,r){var o=r.style||"form",i=void 0===r.explode?"form"===o:r.explode,a=!n&&(r&&r.allowReserved?"unsafe":"reserved"),s=function(e){return Dt(e,{escape:a})},c=n?function(e){return e}:function(e){return Dt(e,{escape:a})};return"object"!==rt()(t)?[[c(e),s(t)]]:tt()(t)?i?[[c(e),t.map(s)]]:[[c(e),t.map(s).join(Yt[o])]]:"deepObject"===o?Qe()(t).map(function(n){return[c("".concat(e,"[").concat(n,"]")),s(t[n])]}):i?Qe()(t).map(function(e){return[c(e),s(t[e])]}):[[c(e),Qe()(t).map(function(e){return["".concat(c(e),",").concat(s(t[e]))]}).join(",")]]}function Xt(e){var t=Qe()(e).reduce(function(t,n){var r,o=Ke()(Gt(n,e[n]));try{for(o.s();!(r=o.n()).done;){var i=it()(r.value,2),a=i[0],s=i[1];t[a]=s}}catch(e){o.e(e)}finally{o.f()}return t},{});return pt.a.stringify(t,{encode:!1,indices:!1})||""}function Zt(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.url,r=void 0===n?"":n,o=t.query,i=t.form;if(i){var a=Qe()(i).some(function(e){var t=i[e].value;return Vt(t)||Kt(t)}),s=t.headers["content-type"]||t.headers["Content-Type"];a||/multipart\/form-data/i.test(s)?t.body=(e=t.form,Je()(e).reduce(function(e,t){var n,r=it()(t,2),o=r[0],i=r[1],a=Ke()(Gt(o,i,!0));try{for(a.s();!(n=a.n()).done;){var s=it()(n.value,2),c=s[0],l=s[1];if(tt()(l)){var u,p=Ke()(l);try{for(p.s();!(u=p.n()).done;){var f=u.value;e.append(c,f)}}catch(e){p.e(e)}finally{p.f()}}else e.append(c,l)}}catch(e){a.e(e)}finally{a.f()}return e},new It)):t.body=Xt(i),delete t.form}if(o){var c=r.split("?"),l=it()(c,2),u=l[0],p=l[1],f="";if(p){var d=pt.a.parse(p);Qe()(o).forEach(function(e){return delete d[e]}),f=pt.a.stringify(d,{encode:!0})}var h=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(function(e){return e}).join("&");return r?"?".concat(r):""}(f,Xt(o));t.url=u+h,delete t.query}return t}var en=n(42),tn=n.n(en),nn=n(121),rn=n.n(nn),on=n(24),an=n.n(on),sn=n(247),cn=n.n(sn),ln=n(170),un=n.n(ln),pn=n(169),fn=n.n(pn),dn=n(75),hn=n(248),vn=n.n(hn),mn=n(249),gn=n.n(mn),yn={add:function(e,t){return{op:"add",path:e,value:t}},replace:xn,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(function(e,t){return void 0!==t&&e?e[t]:e},e)},applyPatch:function(e,t,n){if(n=n||{},"merge"===(t=Be()(Be()({},t),{},{path:t.path&&bn(t.path)})).op){var r=Rn(e,t.path);an()(r,t.value),dn.applyPatch(e,[xn(t.path,r)])}else if("mergeDeep"===t.op){var o=Rn(e,t.path);for(var i in t.value){var a=t.value[i],s=tt()(a);if(s){var c=o[i]||[];o[i]=c.concat(a)}else if(An(a)&&!s){var l=Be()({},o[i]);for(var u in a){if(Object.prototype.hasOwnProperty.call(l,u)){l=vn()(gn()(l),a);break}an()(l,fn()({},u,a[u]))}o[i]=l}else o[i]=a}}else if("add"===t.op&&""===t.path&&An(t.value)){var p=Qe()(t.value).reduce(function(e,n){return e.push({op:"add",path:"/".concat(bn(n)),value:t.value[n]}),e},[]);dn.applyPatch(e,p)}else if("replace"===t.op&&""===t.path){var f=t.value;n.allowMetaPatches&&t.meta&&Pn(t)&&(tt()(t.value)||An(t.value))&&(f=Be()(Be()({},f),t.meta)),e=f}else if(dn.applyPatch(e,[t]),n.allowMetaPatches&&t.meta&&Pn(t)&&(tt()(t.value)||An(t.value))){var d=Rn(e,t.path),h=Be()(Be()({},d),t.meta);dn.applyPatch(e,[xn(t.path,h)])}return e},parentPathMatch:function(e,t){if(!tt()(t))return!1;for(var n=0,r=t.length;n<r;n+=1)if(t[n]!==e[n])return!1;return!0},flatten:_n,fullyNormalizeArray:function(e){return En(_n(On(e)))},normalizeArray:On,isPromise:function(e){return An(e)&&Tn(e.then)},forEachNew:function(e,t){try{return wn(e,Sn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return wn(e,kn,t)}catch(e){return e}},isJsonPatch:Cn,isContextPatch:function(e){return In(e)&&"context"===e.type},isPatch:In,isMutation:jn,isAdditiveMutation:Pn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Tn,isObject:An,isError:function(e){return e instanceof Error}};function bn(e){return tt()(e)?e.length<1?"":"/".concat(e.map(function(e){return(e+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function xn(e,t,n){return{op:"replace",path:e,value:t,meta:n}}function wn(e,t,n){return En(_n(e.filter(Pn).map(function(e){return t(e.value,n,e.path)})||[]))}function kn(e,t,n){return n=n||[],tt()(e)?e.map(function(e,r){return kn(e,t,n.concat(r))}):An(e)?Qe()(e).map(function(r){return kn(e[r],t,n.concat(r))}):t(e,n[n.length-1],n)}function Sn(e,t,n){var r=[];if((n=n||[]).length>0){var o=t(e,n[n.length-1],n);o&&(r=r.concat(o))}if(tt()(e)){var i=e.map(function(e,r){return Sn(e,t,n.concat(r))});i&&(r=r.concat(i))}else if(An(e)){var a=Qe()(e).map(function(r){return Sn(e[r],t,n.concat(r))});a&&(r=r.concat(a))}return r=_n(r)}function On(e){return tt()(e)?e:[e]}function _n(e){var t;return(t=[]).concat.apply(t,Lt()(e.map(function(e){return tt()(e)?_n(e):e})))}function En(e){return e.filter(function(e){return void 0!==e})}function An(e){return e&&"object"===rt()(e)}function Tn(e){return e&&"function"==typeof e}function Cn(e){if(In(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function jn(e){return Cn(e)||In(e)&&"mutation"===e.type}function Pn(e){return jn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function In(e){return e&&"object"===rt()(e)}function Rn(e,t){try{return dn.getValueByPointer(e,t)}catch(e){return console.error(e),{}}}var Ln=n(250),Nn=n.n(Ln),Mn=n(171),Bn=n.n(Mn);function Dn(e,t){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];this.message=n[0],t&&t.apply(this,n)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var Fn=n(251),zn=n.n(Fn),qn=["properties"],Un=["properties"],$n=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Hn=["schema/example","items/example"];function Wn(e){var t=e[e.length-1],n=e[e.length-2],r=e.join("/");return qn.indexOf(t)>-1&&-1===Un.indexOf(n)||$n.indexOf(r)>-1||Hn.some(function(e){return r.indexOf(e)>-1})}function Vn(e,t){var n=e.split("#"),r=it()(n,2),o=r[0],i=r[1],a=$e.a.resolve(o||"",t||"");return i?"".concat(a,"#").concat(i):a}var Kn="application/json, application/yaml",Yn=new RegExp("^([a-z]+://|//)","i"),Jn=Dn("JSONRefError",function(e,t,n){this.originalError=n,an()(this,t||{})}),Gn={},Qn=new Nn.a,Xn=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]}],Zn={key:"$ref",plugin:function(e,t,n,r){var o=r.getInstance(),i=n.slice(0,-1);if(!Wn(i)&&(a=i,!Xn.some(function(e){return e(a)}))){var a,s=r.getContext(n).baseDoc;if("string"!=typeof e)return new Jn("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:s,fullPath:n});var c,l,u,p=or(e),f=p[0],d=p[1]||"";try{c=s||f?nr(f,s):null}catch(t){return rr(t,{pointer:d,$ref:e,basePath:c,fullPath:n})}if(function(e,t,n,r){var o=Qn.get(r);o||(o={},Qn.set(r,o));var i=function(e){if(0===e.length)return"";return"/".concat(e.map(ur).join("/"))}(n),a="".concat(t||"<specmap-base>","#").concat(e),s=i.replace(/allOf\/\d+\/?/g,""),c=r.contextTree.get([]).baseDoc;if(t==c&&fr(s,e))return!0;var l="";if(n.some(function(e){return l="".concat(l,"/").concat(ur(e)),o[l]&&o[l].some(function(e){return fr(e,a)||fr(a,e)})}))return!0;return void(o[s]=(o[s]||[]).concat(a))}(d,c,i,r)&&!o.useCircularStructures){var h=Vn(e,c);return e===h?null:yn.replace(n,h)}if(null==c?(u=cr(d),void 0===(l=r.get(u))&&(l=new Jn("Could not resolve reference: ".concat(e),{pointer:d,$ref:e,baseDoc:s,fullPath:n}))):l=null!=(l=ir(c,d)).__value?l.__value:l.catch(function(t){throw rr(t,{pointer:d,$ref:e,baseDoc:s,fullPath:n})}),l instanceof Error)return[yn.remove(n),l];var v=Vn(e,c),m=yn.replace(i,l,{$$ref:v});if(c&&c!==s)return[m,yn.context(i,{baseDoc:c})];try{if(!function(e,t){var n=[e];return t.path.reduce(function(e,t){return n.push(e[t]),e[t]},e),function e(t){return yn.isObject(t)&&(n.indexOf(t)>=0||Qe()(t).some(function(n){return e(t[n])}))}(t.value)}(r.state,m)||o.useCircularStructures)return m}catch(e){return null}}}},er=an()(Zn,{docCache:Gn,absoluteify:nr,clearCache:function(e){void 0!==e?delete Gn[e]:Qe()(Gn).forEach(function(e){delete Gn[e]})},JSONRefError:Jn,wrapError:rr,getDoc:ar,split:or,extractFromDoc:ir,fetchJSON:function(e){return Object(ut.fetch)(e,{headers:{Accept:Kn},loadSpec:!0}).then(function(e){return e.text()}).then(function(e){return dt.a.safeLoad(e)})},extract:sr,jsonPointerToArray:cr,unescapeJsonPointerToken:lr}),tr=er;function nr(e,t){if(!Yn.test(e)){if(!t)throw new Jn("Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '").concat(t,"'"));return $e.a.resolve(t,e)}return e}function rr(e,t){var n;return n=e&&e.response&&e.response.body?"".concat(e.response.body.code," ").concat(e.response.body.message):e.message,new Jn("Could not resolve reference: ".concat(n),t,e)}function or(e){return(e+"").split("#")}function ir(e,t){var n=Gn[e];if(n&&!yn.isPromise(n))try{var r=sr(t,n);return an()(tn.a.resolve(r),{__value:r})}catch(e){return tn.a.reject(e)}return ar(e).then(function(e){return sr(t,e)})}function ar(e){var t=Gn[e];return t?yn.isPromise(t)?t:tn.a.resolve(t):(Gn[e]=er.fetchJSON(e).then(function(t){return Gn[e]=t,t}),Gn[e])}function sr(e,t){var n=cr(e);if(n.length<1)return t;var r=yn.getIn(t,n);if(void 0===r)throw new Jn("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return r}function cr(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat(rt()(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(lr)}function lr(e){return"string"!=typeof e?e:Bn.a.unescape(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function ur(e){return Bn.a.escape(e.replace(/~/g,"~0").replace(/\//g,"~1"))}var pr=function(e){return!e||"/"===e||"#"===e};function fr(e,t){if(pr(t))return!0;var n=e.charAt(t.length),r=t.slice(-1);return 0===e.indexOf(t)&&(!n||"/"===n||"#"===n)&&"#"!==r}var dr={key:"allOf",plugin:function(e,t,n,r,o){if(!o.meta||!o.meta.$$ref){var i=n.slice(0,-1);if(!Wn(i)){if(!tt()(e)){var a=new TypeError("allOf must be an array");return a.fullPath=n,a}var s=!1,c=o.value;i.forEach(function(e){c&&(c=c[e])}),delete(c=Be()({},c)).allOf;var l=[];return l.push(r.replace(i,{})),e.forEach(function(e,t){if(!r.isObject(e)){if(s)return null;s=!0;var o=new TypeError("Elements in allOf must be objects");return o.fullPath=n,l.push(o)}l.push(r.mergeDeep(i,e));var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.specmap,o=n.getBaseUrlForNodePath,i=void 0===o?function(e){return r.getContext([].concat(Lt()(t),Lt()(e))).baseDoc}:o,a=n.targetKeys,s=void 0===a?["$ref","$$ref"]:a,c=[];return zn()(e).forEach(function(){if(s.indexOf(this.key)>-1){var e=this.path,n=t.concat(this.path),o=Vn(this.node,i(e));c.push(r.replace(n,o))}}),c}(e,n.slice(0,-1),{getBaseUrlForNodePath:function(e){return r.getContext([].concat(Lt()(n),[t],Lt()(e))).baseDoc},specmap:r});l.push.apply(l,Lt()(a))}),l.push(r.mergeDeep(i,c)),c.$$ref||l.push(r.remove([].concat(i,"$$ref"))),l}}}},hr={key:"parameters",plugin:function(e,t,n,r){if(tt()(e)&&e.length){var o=an()([],e),i=n.slice(0,-1),a=Be()({},yn.getIn(r.spec,i));return e.forEach(function(e,t){try{o[t].default=r.parameterMacro(a,e)}catch(e){var i=new Error(e);return i.fullPath=n,i}}),yn.replace(n,o)}return yn.replace(n,e)}},vr={key:"properties",plugin:function(e,t,n,r){var o=Be()({},e);for(var i in e)try{o[i].default=r.modelPropertyMacro(o[i])}catch(e){var a=new Error(e);return a.fullPath=n,a}return yn.replace(n,o)}},mr=function(){function e(t){xt()(this,e),this.root=gr(t||{})}return kt()(e,[{key:"set",value:function(e,t){var n=this.getParent(e,!0);if(n){var r=e[e.length-1],o=n.children;o[r]?yr(o[r],t,n):o[r]=gr(t,n)}else yr(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,n,r=this.root,o=0;o<e.length&&(n=e[o],(t=r.children)[n]);o+=1)r=t[n];return r&&r.protoValue}},{key:"getParent",value:function(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(function(e,n){if(!e)return e;var r=e.children;return!r[n]&&t&&(r[n]=gr(null,e)),r[n]},this.root)}}]),e}();function gr(e,t){return yr({children:{}},e,t)}function yr(e,t,n){return e.value=t||{},e.protoValue=n?Be()(Be()({},n.protoValue),e.value):e.value,Qe()(e.children).forEach(function(t){var n=e.children[t];e.children[t]=yr(n,n.value,e)}),e}var br=function(){function e(t){var n=this;xt()(this,e),an()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new mr,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:an()(rn()(this),yn,{getInstance:function(){return n}}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(yn.isFunction),this.patches.push(yn.add([],this.spec)),this.patches.push(yn.context([],this.context)),this.updatePatches(this.patches)}return kt()(e,null,[{key:"getPluginName",value:function(e){return e.pluginName}},{key:"getPatchesOfType",value:function(e,t){return e.filter(t)}}]),kt()(e,[{key:"debug",value:function(e){if(this.debugLevel===e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,r)}}},{key:"verbose",value:function(e){if("verbose"===this.debugLevel){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];(t=console).log.apply(t,["[".concat(e,"] ")].concat(r))}}},{key:"wrapPlugin",value:function(e,t){var n,r,o,i=this.pathDiscriminator,a=null;return e[this.pluginProp]?(a=e,n=e[this.pluginProp]):yn.isFunction(e)?n=e:yn.isObject(e)&&(r=e,o=function(e,t){return!tt()(e)||e.every(function(e,n){return e===t[n]})},n=We.a.mark(function e(t,n){var a,s,c,l,u,p;return We.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:p=function(e,t,c){var l,u,f,d,h,v,m,g,y,b,x,w,k;return We.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(yn.isObject(e)){a.next=6;break}if(r.key!==t[t.length-1]){a.next=4;break}return a.next=4,r.plugin(e,r.key,t,n);case 4:a.next=30;break;case 6:l=t.length-1,u=t[l],f=t.indexOf("properties"),d="properties"===u&&l===f,h=n.allowMetaPatches&&s[e.$$ref],v=0,m=Qe()(e);case 12:if(!(v<m.length)){a.next=30;break}if(g=m[v],y=e[g],b=t.concat(g),x=yn.isObject(y),w=e.$$ref,h){a.next=22;break}if(!x){a.next=22;break}return n.allowMetaPatches&&w&&(s[w]=!0),a.delegateYield(p(y,b,c),"t0",22);case 22:if(d||g!==r.key){a.next=27;break}if(k=o(i,t),i&&!k){a.next=27;break}return a.next=27,r.plugin(y,g,b,n,c);case 27:v++,a.next=12;break;case 30:case"end":return a.stop()}},a)},a=We.a.mark(p),s={},c=Ke()(t.filter(yn.isAdditiveMutation)),e.prev=4,c.s();case 6:if((l=c.n()).done){e.next=11;break}return u=l.value,e.delegateYield(p(u.value,u.path,u),"t0",9);case 9:e.next=6;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(4),c.e(e.t1);case 16:return e.prev=16,c.f(),e.finish(16);case 19:case"end":return e.stop()}},e,null,[[4,13,16,19]])})),an()(n.bind(a),{pluginName:e.name||t,isGenerator:yn.isGenerator(n)})}},{key:"nextPlugin",value:function(){var e=this;return cn()(this.wrappedPlugins,function(t){return e.getMutationsForPlugin(t).length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0)return tn.a.race(this.promisedPatches.map(function(e){return e.value}))}},{key:"getPluginHistory",value:function(e){var t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"updatePluginHistory",value:function(e,t){var n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(t)}},{key:"updatePatches",value:function(e){var t=this;yn.normalizeArray(e).forEach(function(e){if(e instanceof Error)t.errors.push(e);else try{if(!yn.isObject(e))return void t.debug("updatePatches","Got a non-object patch",e);if(t.showDebug&&t.allPatches.push(e),yn.isPromise(e.value))return t.promisedPatches.push(e),void t.promisedPatchThen(e);if(yn.isContextPatch(e))return void t.setContext(e.path,e.value);if(yn.isMutation(e))return void t.updateMutations(e)}catch(e){console.error(e),t.errors.push(e)}})}},{key:"updateMutations",value:function(e){"object"===rt()(e.value)&&!tt()(e.value)&&this.allowMetaPatches&&(e.value=Be()({},e.value));var t=yn.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then(function(n){var r=Be()(Be()({},e),{},{value:n});t.removePromisedPatch(e),t.updatePatches(r)}).catch(function(n){t.removePromisedPatch(e),t.updatePatches(n)}),e.value}},{key:"getMutations",value:function(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return yn.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"dispatch",value:function(){var e=this,t=this,n=this.nextPlugin();if(!n){var r=this.nextPromisedPatch();if(r)return r.then(function(){return e.dispatch()}).catch(function(){return e.dispatch()});var o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),tn.a.resolve(o)}if(t.pluginCount=t.pluginCount||{},t.pluginCount[n]=(t.pluginCount[n]||0)+1,t.pluginCount[n]>100)return tn.a.resolve({spec:t.state,errors:t.errors.concat(new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(n!==this.currentPlugin&&this.promisedPatches.length){var i=this.promisedPatches.map(function(e){return e.value});return tn.a.all(i.map(function(e){return e.then(un.a,un.a)})).then(function(){return e.dispatch()})}return function(){t.currentPlugin=n;var e=t.getCurrentMutations(),r=t.mutations.length-1;try{if(n.isGenerator){var o,i=Ke()(n(e,t.getLib()));try{for(i.s();!(o=i.n()).done;){a(o.value)}}catch(e){i.e(e)}finally{i.f()}}else{a(n(e,t.getLib()))}}catch(e){console.error(e),a([an()(rn()(e),{plugin:n})])}finally{t.updatePluginHistory(n,{mutationIndex:r})}return t.dispatch()}();function a(e){e&&(e=yn.fullyNormalizeArray(e),t.updatePatches(e,n))}}}]),e}();var xr={refs:tr,allOf:dr,parameters:hr,properties:vr},wr=n(36),kr=n.n(wr),Sr=function(e){return String.prototype.toLowerCase.call(e)},Or=function(e){return e.replace(/[^\w]/gi,"_")};function _r(e){var t=e.openapi;return!!t&&qe()(t,"3")}function Er(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).v2OperationIdCompatibilityMode;return e&&"object"===rt()(e)?(e.operationId||"").replace(/\s/g,"").length?Or(e.operationId):function(e,t){if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).v2OperationIdCompatibilityMode){var n="".concat(t.toLowerCase(),"_").concat(e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|.\/?,\\'""-]/g,"_");return(n=n||"".concat(e.substring(1),"_").concat(t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return"".concat(Sr(t)).concat(Or(e))}(t,n,{v2OperationIdCompatibilityMode:r}):null}function Ar(e,t){return"".concat(Sr(t),"-").concat(e)}function Tr(e,t){return e&&e.paths?function(e,t){return Cr(e,t,!0)||null}(e,function(e){var n=e.pathName,r=e.method,o=e.operation;if(!o||"object"!==rt()(o))return!1;var i=o.operationId;return[Er(o,n,r),Ar(n,r),i].some(function(e){return e&&e===t})}):null}function Cr(e,t,n){if(!e||"object"!==rt()(e)||!e.paths||"object"!==rt()(e.paths))return null;var r=e.paths;for(var o in r)for(var i in r[o])if("PARAMETERS"!==i.toUpperCase()){var a=r[o][i];if(a&&"object"===rt()(a)){var s={spec:e,pathName:o,method:i.toUpperCase(),operation:a},c=t(s);if(n&&c)return s}}}function jr(e){var t=e.spec,n=t.paths,r={};if(!n||t.$$normalized)return e;for(var o in n){var i=n[o];if(kr()(i)){var a=i.parameters,s=function(e){var n=i[e];if(!kr()(n))return"continue";var s=Er(n,o,e);if(s){r[s]?r[s].push(n):r[s]=[n];var c=r[s];if(c.length>1)c.forEach(function(e,t){e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId="".concat(s).concat(t+1)});else if(void 0!==n.operationId){var l=c[0];l.__originalOperationId=l.__originalOperationId||n.operationId,l.operationId=s}}if("parameters"!==e){var u=[],p={};for(var f in t)"produces"!==f&&"consumes"!==f&&"security"!==f||(p[f]=t[f],u.push(p));if(a&&(p.parameters=a,u.push(p)),u.length){var d,h=Ke()(u);try{for(h.s();!(d=h.n()).done;){var v=d.value;for(var m in v)if(n[m]){if("parameters"===m){var g,y=Ke()(v[m]);try{var b=function(){var e=g.value;n[m].some(function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e})||n[m].push(e)};for(y.s();!(g=y.n()).done;)b()}catch(e){y.e(e)}finally{y.f()}}}else n[m]=v[m]}}catch(e){h.e(e)}finally{h.f()}}}};for(var c in i)s(c)}}return t.$$normalized=!0,e}function Pr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestInterceptor,r=t.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:Kn},credentials:o}).then(function(e){return e.body})}}function Ir(e){var t=e.fetch,n=e.spec,r=e.url,o=e.mode,i=e.allowMetaPatches,a=void 0===i||i,s=e.pathDiscriminator,c=e.modelPropertyMacro,l=e.parameterMacro,u=e.requestInterceptor,p=e.responseInterceptor,f=e.skipNormalization,d=e.useCircularStructures,h=e.http,v=e.baseDoc;return v=v||r,h=t||h||qt,n?m(n):Pr(h,{requestInterceptor:u,responseInterceptor:p})(v).then(m);function m(e){v&&(xr.refs.docCache[v]=e),xr.refs.fetchJSON=Pr(h,{requestInterceptor:u,responseInterceptor:p});var t,n=[xr.refs];return"function"==typeof l&&n.push(xr.parameters),"function"==typeof c&&n.push(xr.properties),"strict"!==o&&n.push(xr.allOf),(t={spec:e,context:{baseDoc:v},plugins:n,allowMetaPatches:a,pathDiscriminator:s,parameterMacro:l,modelPropertyMacro:c,useCircularStructures:d},new br(t).dispatch()).then(f?function(){var e=lt()(We.a.mark(function e(t){return We.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}():jr)}}var Rr=n(48),Lr=n.n(Rr);function Nr(){return(Nr=lt()(We.a.mark(function e(t,n){var r,o,i,a,s,c,l,u,p,f,d,h,v=arguments;return We.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=v.length>2&&void 0!==v[2]?v[2]:{},o=r.returnEntireTree,i=r.baseDoc,a=r.requestInterceptor,s=r.responseInterceptor,c=r.parameterMacro,l=r.modelPropertyMacro,u=r.useCircularStructures,p={pathDiscriminator:n,baseDoc:i,requestInterceptor:a,responseInterceptor:s,parameterMacro:c,modelPropertyMacro:l,useCircularStructures:u},f=jr({spec:t}),d=f.spec,e.next=6,Ir(Be()(Be()({},p),{},{spec:d,allowMetaPatches:!0,skipNormalization:!0}));case 6:return h=e.sent,!o&&tt()(n)&&n.length&&(h.spec=Lr()(h.spec,n)||null),e.abrupt("return",h);case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}var Mr=function(){return null},Br=function(e){return tt()(e)?e:[e]},Dr={mapTagOperations:function(e){var t=e.spec,n=e.cb,r=void 0===n?Mr:n,o=e.defaultTag,i=void 0===o?"default":o,a=e.v2OperationIdCompatibilityMode,s={},c={};return Cr(t,function(e){var n=e.pathName,o=e.method,l=e.operation;(l.tags?Br(l.tags):[i]).forEach(function(e){if("string"==typeof e){c[e]=c[e]||{};var i=c[e],u=Er(l,n,o,{v2OperationIdCompatibilityMode:a}),p=r({spec:t,pathName:n,method:o,operation:l,operationId:u});if(s[u])s[u]+=1,i["".concat(u).concat(s[u])]=p;else if(void 0!==i[u]){var f=s[u]||1;s[u]=f+1,i["".concat(u).concat(s[u])]=p;var d=i[u];delete i[u],i["".concat(u).concat(f)]=d}else i[u]=p}})}),c},makeExecute:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.pathName,r=t.method,o=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.execute(Be()(Be()({spec:e.spec},vt()(e,"requestInterceptor","responseInterceptor","userFetch")),{},{pathName:n,method:r,parameters:t,operationId:o},i))}}}};var Fr=n(252),zr=n.n(Fr),qr=n(253),Ur=n.n(qr),$r=n(35),Hr=n.n($r),Wr=n(254),Vr=n.n(Wr),Kr={body:function(e){var t=e.req,n=e.value;t.body=n},header:function(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{},void 0!==r&&(t.headers[n.name]=r)},query:function(e){var t=e.req,n=e.value,r=e.parameter;t.query=t.query||{},!1===n&&"boolean"===r.type&&(n="false");0===n&&["number","integer"].indexOf(r.type)>-1&&(n="0");if(n)t.query[r.name]={collectionFormat:r.collectionFormat,value:n};else if(r.allowEmptyValue&&void 0!==n){var o=r.name;t.query[o]=t.query[o]||{},t.query[o].allowEmptyValue=!0}},path:function(e){var t=e.req,n=e.value,r=e.parameter;t.url=t.url.split("{".concat(r.name,"}")).join(encodeURIComponent(n))},formData:function(e){var t=e.req,n=e.value,r=e.parameter;(n||r.allowEmptyValue)&&(t.form=t.form||{},t.form[r.name]={value:n,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};function Yr(e,t){return t.includes("application/json")?"string"==typeof e?e:Ze()(e):e.toString()}function Jr(e){var t=e.req,n=e.value,r=e.parameter,o=r.name,i=r.style,a=r.explode,s=r.content;if(s){var c=Qe()(s)[0];t.url=t.url.split("{".concat(o,"}")).join(Dt(Yr(n,c),{escape:!0}))}else{var l=Ft({key:r.name,value:n,style:i||"simple",explode:a||!1,escape:!0});t.url=t.url.split("{".concat(o,"}")).join(l)}}function Gr(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},r.content){var o=Qe()(r.content)[0];t.query[r.name]=Yr(n,o)}else if(!1===n&&(n="false"),0===n&&(n="0"),n)t.query[r.name]={value:n,serializationOption:vt()(r,["style","explode","allowReserved"])};else if(r.allowEmptyValue&&void 0!==n){var i=r.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}}var Qr=["accept","authorization","content-type"];function Xr(e){var t=e.req,n=e.parameter,r=e.value;if(t.headers=t.headers||{},!(Qr.indexOf(n.name.toLowerCase())>-1))if(n.content){var o=Qe()(n.content)[0];t.headers[n.name]=Yr(r,o)}else void 0!==r&&(t.headers[n.name]=Ft({key:n.name,value:r,style:n.style||"simple",explode:void 0!==n.explode&&n.explode,escape:!1}))}function Zr(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{};var o=rt()(r);if(n.content){var i=Qe()(n.content)[0];t.headers.Cookie="".concat(n.name,"=").concat(Yr(r,i))}else if("undefined"!==o){var a="object"===o&&!tt()(r)&&n.explode?"":"".concat(n.name,"=");t.headers.Cookie=a+Ft({key:n.name,value:r,escape:!1,style:n.style||"form",explode:void 0!==n.explode&&n.explode})}}var eo=n(122),to=n.n(eo);function no(e,t){var n=e.operation,r=e.requestBody,o=e.securities,i=e.spec,a=e.attachContentTypeForEmptyPayload,s=e.requestContentType;t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=Fe()({},t),c=r.authorized,l=void 0===c?{}:c,u=i.security||a.security||[],p=l&&!!Qe()(l).length,f=Lr()(a,["components","securitySchemes"])||{};if(s.headers=s.headers||{},s.query=s.query||{},!Qe()(r).length||!p||!u||tt()(i.security)&&!i.security.length)return t;return u.forEach(function(e){Qe()(e).forEach(function(e){var t=l[e],n=f[e];if(t){var r=t.value||t,o=n.type;if(t)if("apiKey"===o)"query"===n.in&&(s.query[n.name]=r),"header"===n.in&&(s.headers[n.name]=r),"cookie"===n.in&&(s.cookies[n.name]=r);else if("http"===o){if(/^basic$/i.test(n.scheme)){var i=r.username||"",a=r.password||"",c=to()("".concat(i,":").concat(a));s.headers.Authorization="Basic ".concat(c)}/^bearer$/i.test(n.scheme)&&(s.headers.Authorization="Bearer ".concat(r))}else if("oauth2"===o){var u=t.token||{},p=u[n["x-tokenName"]||"access_token"],d=u.token_type;d&&"bearer"!==d.toLowerCase()||(d="Bearer"),s.headers.Authorization="".concat(d," ").concat(p)}}})}),s}({request:t,securities:o,operation:n,spec:i});var c=n.requestBody||{},l=Qe()(c.content||{}),u=s&&l.indexOf(s)>-1;if(r||a){if(s&&u)t.headers["Content-Type"]=s;else if(!s){var p=l[0];p&&(t.headers["Content-Type"]=p,s=p)}}else s&&u&&(t.headers["Content-Type"]=s);if(r)if(s){if(l.indexOf(s)>-1)if("application/x-www-form-urlencoded"===s||"multipart/form-data"===s)if("object"===rt()(r)){var f=(c.content[s]||{}).encoding||{};t.form={},Qe()(r).forEach(function(e){t.form[e]={value:r[e],encoding:f[e]||{}}})}else t.form=r;else t.body=r}else t.body=r;return t}function ro(e,t){var n=e.spec,r=e.operation,o=e.securities,i=e.requestContentType,a=e.attachContentTypeForEmptyPayload;if((t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,s=Fe()({},t),c=r.authorized,l=void 0===c?{}:c,u=r.specSecurity,p=void 0===u?[]:u,f=i.security||p,d=l&&!!Qe()(l).length,h=a.securityDefinitions;if(s.headers=s.headers||{},s.query=s.query||{},!Qe()(r).length||!d||!f||tt()(i.security)&&!i.security.length)return t;return f.forEach(function(e){Qe()(e).forEach(function(e){var t=l[e];if(t){var n=t.token,r=t.value||t,o=h[e],i=o.type,a=o["x-tokenName"]||"access_token",c=n&&n[a],u=n&&n.token_type;if(t)if("apiKey"===i){var p="query"===o.in?"query":"headers";s[p]=s[p]||{},s[p][o.name]=r}else if("basic"===i)if(r.header)s.headers.authorization=r.header;else{var f=r.username||"",d=r.password||"";r.base64=to()("".concat(f,":").concat(d)),s.headers.authorization="Basic ".concat(r.base64)}else"oauth2"===i&&c&&(u=u&&"bearer"!==u.toLowerCase()?u:"Bearer",s.headers.authorization="".concat(u," ").concat(c))}})}),s}({request:t,securities:o,operation:r,spec:n})).body||t.form||a)if(i)t.headers["Content-Type"]=i;else if(tt()(r.consumes)){var s=it()(r.consumes,1);t.headers["Content-Type"]=s[0]}else if(tt()(n.consumes)){var c=it()(n.consumes,1);t.headers["Content-Type"]=c[0]}else r.parameters&&r.parameters.filter(function(e){return"file"===e.type}).length?t.headers["Content-Type"]="multipart/form-data":r.parameters&&r.parameters.filter(function(e){return"formData"===e.in}).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){var l=r.parameters&&r.parameters.filter(function(e){return"body"===e.in}).length>0,u=r.parameters&&r.parameters.filter(function(e){return"formData"===e.in}).length>0;(l||u)&&(t.headers["Content-Type"]=i)}return t}var oo=function(e){return tt()(e)?e:[]},io=Dn("OperationNotFoundError",function(e,t,n){this.originalError=n,an()(this,t||{})}),ao=function(e,t){return t.filter(function(t){return t.name===e})},so=function(e){var t={};e.forEach(function(e){t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});var n=[];return Qe()(t).forEach(function(e){Qe()(t[e]).forEach(function(r){n.push(t[e][r])})}),n},co={buildRequest:lo};function lo(e){var t=e.spec,n=e.operationId,o=e.responseContentType,i=e.scheme,a=e.requestInterceptor,s=e.responseInterceptor,c=e.contextUrl,l=e.userFetch,u=e.server,p=e.serverVariables,f=e.http,d=e.parameters,h=e.parameterBuilders,v=_r(t);h||(h=v?r:Kr);var m={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};a&&(m.requestInterceptor=a),s&&(m.responseInterceptor=s),l&&(m.userFetch=l);var g=Tr(t,n);if(!g)throw new io("Operation ".concat(n," not found"));var y=g.operation,b=void 0===y?{}:y,x=g.method,w=g.pathName;if(m.url+=po({spec:t,scheme:i,contextUrl:c,server:u,serverVariables:p,pathName:w,method:x}),!n)return delete m.cookies,m;m.url+=w,m.method="".concat(x).toUpperCase(),d=d||{};var k=t.paths[w]||{};o&&(m.headers.accept=o);var S=so([].concat(oo(b.parameters)).concat(oo(k.parameters)));S.forEach(function(e){var n,r=h[e.in];if("body"===e.in&&e.schema&&e.schema.properties&&(n=d),void 0===(n=e&&e.name&&d[e.name])?n=e&&e.name&&d["".concat(e.in,".").concat(e.name)]:ao(e.name,S).length>1&&console.warn("Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '").concat(e.name,"' and the passed-in parameter values did not define an 'in' value.")),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(v&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:m,parameter:e,value:n,operation:b,spec:t})}});var O=Be()(Be()({},e),{},{operation:b});if((m=v?no(O,m):ro(O,m)).cookies&&Qe()(m.cookies).length){var _=Qe()(m.cookies).reduce(function(e,t){var n=m.cookies[t];return e+(e?"&":"")+Vr.a.serialize(t,n)},"");m.headers.Cookie=_}return m.cookies&&delete m.cookies,Zt(m),m}var uo=function(e){return e?e.replace(/\W/g,""):null};function po(e){return _r(e.spec)?function(e){var t=e.spec,n=e.pathName,r=e.method,o=e.server,i=e.contextUrl,a=e.serverVariables,s=void 0===a?{}:a,c=Lr()(t,["paths",n,(r||"").toLowerCase(),"servers"])||Lr()(t,["paths",n,"servers"])||Lr()(t,["servers"]),l="",u=null;if(o&&c&&c.length){var p=c.map(function(e){return e.url});p.indexOf(o)>-1&&(l=o,u=c[p.indexOf(o)])}if(!l&&c&&c.length){l=c[0].url;var f=it()(c,1);u=f[0]}if(l.indexOf("{")>-1){(function(e){var t,n=[],r=/{([^}]+)}/g;for(;t=r.exec(e);)n.push(t[1]);return n})(l).forEach(function(e){if(u.variables&&u.variables[e]){var t=u.variables[e],n=s[e]||t.default,r=new RegExp("{".concat(e,"}"),"g");l=l.replace(r,n)}})}return function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=$e.a.parse(t),o=$e.a.parse(n),i=uo(r.protocol)||uo(o.protocol)||"",a=r.host||o.host,s=r.pathname||"";e=i&&a?"".concat(i,"://").concat(a+s):s;return"/"===e[e.length-1]?e.slice(0,-1):e}(l,i)}(e):function(e){var t,n=e.spec,r=e.scheme,o=e.contextUrl,i=void 0===o?"":o,a=$e.a.parse(i),s=tt()(n.schemes)?n.schemes[0]:null,c=r||s||uo(a.protocol)||"http",l=n.host||a.host||"",u=n.basePath||"";t=c&&l?"".concat(c,"://").concat(l+u):u;return"/"===t[t.length-1]?t.slice(0,-1):t}(e)}function fo(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?n.url=e:n=e,!(this instanceof fo))return new fo(n);Fe()(this,n);var r=this.resolve().then(function(){return t.disableInterfaces||Fe()(t,fo.makeApisTagOperation(t)),t});return r.client=this,r}fo.http=qt,fo.makeHttp=function(e,t,n){return n=n||function(e){return e},t=t||function(e){return e},function(r){return"string"==typeof r&&(r={url:r}),zt.mergeInQueryOrForm(r),r=t(r),n(e(r))}}.bind(null,fo.http),fo.resolve=Ir,fo.resolveSubtree=function(e,t){return Nr.apply(this,arguments)},fo.execute=function(e){var t=e.http,n=e.fetch,r=e.spec,o=e.operationId,i=e.pathName,a=e.method,s=e.parameters,c=e.securities,l=zr()(e,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),u=t||n||qt;i&&a&&!o&&(o=Ar(i,a));var p=co.buildRequest(Be()({spec:r,operationId:o,parameters:s,securities:c,http:u},l));return p.body&&(Ur()(p.body)||Hr()(p.body))&&(p.body=Ze()(p.body)),u(p)},fo.serializeRes=Ht,fo.serializeHeaders=Wt,fo.clearCache=function(){xr.refs.clearCache()},fo.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Dr.makeExecute(e);return{apis:Dr.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},fo.buildRequest=lo,fo.helpers={opId:Er},fo.getBaseUrl=po,fo.prototype={http:qt,execute:function(e){return this.applyDefaults(),fo.execute(Be()({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},e))},resolve:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return fo.resolve(Be()({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},t)).then(function(t){return e.originalSpec=e.spec,e.spec=t.spec,e.errors=t.errors,e})}},fo.prototype.applyDefaults=function(){var e=this.spec,t=this.url;if(t&&qe()(t,"http")){var n=$e.a.parse(t);e.host||(e.host=n.host),e.schemes||(e.schemes=[n.protocol.replace(":","")]),e.basePath||(e.basePath="/")}};fo.helpers;var ho=fo;function vo(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 mo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vo(Object(n),!0).forEach(function(t){go(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vo(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yo(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 bo(){var e;return e=function*(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"",c={patch:!0,warnOnly:!0,resolveInternal:!0};try{var l;t=(l="string"==typeof e?yield ho(e):yield ho({spec:e})).spec,l.spec.swagger&&(t=(yield Ne.a.convertObj(l.spec,c)).openapi)}catch(e){console.info("RapiDoc: %c There was an issue while parsing the spec %o ","color:orangered",e)}var u=ko(t,n,r),p=wo(t),f=xo(t),d=[];t.components&&t.components.securitySchemes&&Object.entries(t.components.securitySchemes).forEach(e=>{var t=mo({apiKeyId:e[0]},e[1]);t.value="",t.finalKeyValue="","apiKey"===e[1].type||"http"===e[1].type?(t.in=e[1].in||"header",t.name=e[1].name||"Authorization",t.user="",t.password=""):"oauth2"===e[1].type&&(t.in="header",t.name="Authorization",t.clientId="",t.clientSecret=""),d.push(t)}),o&&i&&a&&d.push({apiKeyId:"_rapidoc_api_key",description:"api-key provided in rapidoc element attributes",type:"apiKey",oAuthFlow:"",name:o,in:i,value:a,finalKeyValue:a}),d.forEach(e=>{"http"===e.type?e.typeDisplay="basic"===e.scheme?"HTTP Basic":"HTTP Bearer":"apiKey"===e.type?e.typeDisplay="API Key (".concat(e.name,")"):"oauth2"===e.type?e.typeDisplay="OAuth (".concat(e.apiKeyId,")"):e.typeDisplay=e.type});var h=[];t.servers&&Array.isArray(t.servers)?(t.servers.forEach(e=>{var t=e.url.trim();t.startsWith("http")||t.startsWith("//")||t.startsWith("{")||window.location.origin.startsWith("http")&&(e.url=window.location.origin+e.url,t=e.url),e.variables&&Object.entries(e.variables).forEach(e=>{var n=new RegExp("{".concat(e[0],"}"),"g");t=t.replace(n,e[1].default||""),e[1].value=e[1].default||""}),e.computedUrl=t}),s&&t.servers.push({url:s,computedUrl:s})):s?t.servers=[{url:s,computedUrl:s}]:window.location.origin.startsWith("http")?t.servers=[{url:window.location.origin,computedUrl:window.location.origin}]:t.servers=[{url:"http://localhost",computedUrl:"http://localhost"}],h=t.servers;var v={info:t.info,infoDescriptionHeaders:f,tags:u,components:p,externalDocs:t.externalDocs,securitySchemes:d,servers:h,basePath:t.basePath};return v},(bo=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){yo(i,r,o,a,s,"next",e)}function s(e){yo(i,r,o,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}function xo(e){return e&&e.info&&e.info.description&&pe.a.lexer(e.info.description).filter(e=>"heading"===e.type&&e.depth<=2)||[]}function wo(e){if(!e.components)return[];var t=[];for(var n in e.components){var r=[];for(var o in e.components[n]){var i={show:!0,id:"".concat(n.toLowerCase(),"-").concat(o.toLowerCase()).replace(je,"-"),name:o,component:e.components[n][o]};r.push(i)}var a=n,s=n;switch(n){case"schemas":s="Schemas",a="Schemas allows the definition of input and output data types. These types can be objects, but also primitives and arrays.";break;case"responses":s="Responses",a="Describes responses from an API Operation, including design-time, static links to operations based on the response.";break;case"parameters":s="Parameters",a="Describes operation parameters. A unique parameter is defined by a combination of a name and location.";break;case"examples":s="Examples",a="List of Examples for operations, can be requests, responses and objects examples.";break;case"requestBodies":s="Request Bodies",a="Describes common request bodies that are used across the API operations.";break;case"headers":s="Headers",a='Headers follows the structure of the Parameters but they are explicitly in "header"';break;case"securitySchemes":s="Security Schemes",a="Defines a security scheme that can be used by the operations. Supported schemes are HTTP authentication, an API key (either as a header, a cookie parameter or as a query parameter), OAuth2's common flows(implicit, password, client credentials and authorization code) as defined in RFC6749, and OpenID Connect Discovery.";break;case"links":s="Links",a="Links represent a possible design-time link for a response. The presence of a link does not guarantee the caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations.";break;case"callbacks":s="Callbacks",a="A map of possible out-of band callbacks related to the parent operation. Each value in the map is a Path Item Object that describes a set of requests that may be initiated by the API provider and the expected responses. The key value used to identify the path item object is an expression, evaluated at runtime, that identifies a URL to use for the callback operation.";break;default:s=n,a=n}var c={show:!0,name:s,description:a,subComponents:r};t.push(c)}return t||[]}function ko(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2?arguments[2]:void 0,r=["get","put","post","delete","patch","head"],o=e.tags&&Array.isArray(e.tags)?e.tags.map(e=>({show:!0,name:e.name,description:e.description,paths:[],expanded:!1!==e["x-tag-expanded"]})):[],i=function(t){var n=e.paths[t].parameters,i={summary:e.paths[t].summary,description:e.paths[t].description,servers:e.paths[t].servers?e.paths[t].servers:[],parameters:e.paths[t].parameters?e.paths[t].parameters:[]};r.forEach(r=>{if(e.paths[t][r]){var a=e.paths[t][r],s=a.tags?a.tags:[];if(0===s.length){var c=t.indexOf("/",1);-1===c?c=t.length-1:c-=1,s.push(t.substr(1,c))}s.forEach(s=>{var c,l;e.tags&&(l=e.tags.find(e=>e.name.toLowerCase()===s.toLowerCase())),(c=o.find(e=>e.name===s))||(c={show:!0,name:s,paths:[],description:l?l.description:"",expanded:!l||!1!==l["x-tag-expanded"]},o.push(c));var u=(a.summary||"").trim()?a.summary.trim():(a.description||"-").trim().split("/n")[0];u.length>100&&(u=u.split(".")[0]),(a.description||"").trim()||(a.description=(a.summary||"-").trim());var p=[];p=n?a.parameters?n.filter(e=>{if(!a.parameters.some(t=>e.name===t.name&&e.in===t.in))return e}).concat(a.parameters):n.slice(0):a.parameters?a.parameters.slice(0):[],c.paths.push({show:!0,expanded:!1,expandedAtLeastOnce:!1,summary:u,method:r,description:a.description,path:t,operationId:a.operationId,servers:a.servers?i.servers.concat(a.servers):i.servers,parameters:p,requestBody:a.requestBody,responses:a.responses,callbacks:a.callbacks,deprecated:a.deprecated,security:a.security,commonSummary:i.summary,commonDescription:i.description,xCodeSamples:a["x-code-samples"]})})}})};for(var a in e.paths)i(a);var s=o.filter(e=>e.paths&&e.paths.length>0);return"method"===n?s.forEach(e=>{e.paths&&e.paths.sort((e,t)=>r.indexOf(e.method).toString().localeCompare(r.indexOf(t.method)))}):s.forEach(e=>{e.paths&&e.paths.sort((e,t)=>e.path.localeCompare(t.path))}),t?s.sort((e,t)=>e.name.localeCompare(t.name)):s}
  205. /**
  206. * @license
  207. * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
  208. * This code may only be used under the BSD style license found at
  209. * http://polymer.github.io/LICENSE.txt
  210. * The complete set of authors may be found at
  211. * http://polymer.github.io/AUTHORS.txt
  212. * The complete set of contributors may be found at
  213. * http://polymer.github.io/CONTRIBUTORS.txt
  214. * Code distributed by Google as part of the polymer project is also
  215. * subject to an additional IP rights grant found at
  216. * http://polymer.github.io/PATENTS.txt
  217. */const So=new WeakMap,Oo=(e=>(...t)=>{const n=e(...t);return b.set(n,!0),n})(e=>t=>{if(!(t instanceof j))throw new Error("unsafeHTML can only be used in text bindings");const n=So.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),So.set(t,{value:e,fragment:o})});function _o(){var e=ci(["Requires"]);return _o=function(){return e},e}function Eo(){var e=ci(["<b>",".</b> &nbsp;"]);return Eo=function(){return e},e}function Ao(){var e=ci(["<div>"," Token in <b>"," ","</b></div>"]);return Ao=function(){return e},e}function To(){var e=ci(["Requires"]);return To=function(){return e},e}function Co(){var e=ci(["<b>",".</b> &nbsp;"]);return Co=function(){return e},e}function jo(){var e=ci(["<div>"," "," in <b>Authorization header</b></div>"]);return jo=function(){return e},e}function Po(){var e=ci(["Requires"]);return Po=function(){return e},e}function Io(){var e=ci(["<b>",".</b> &nbsp;"]);return Io=function(){return e},e}function Ro(){var e=ci(["<div>"," OAuth Token (",") in <b>Authorization header</b></div>"]);return Ro=function(){return e},e}function Lo(){var e=ci(["",""]);return Lo=function(){return e},e}function No(){var e=ci(["<div>Requires <b>any one</b> of the following</div>"]);return No=function(){return e},e}function Mo(){var e=ci(['<div class="tooltip"><div style="padding:2px 4px;">','</div><div class="tooltip-text" style="position:absolute; color: var(--fg); top:26px; right:0; border:1px solid var(--border-color);padding:2px 4px; display:block;">','<div style="padding-left: 8px">',"</div></div></div>"]);return Mo=function(){return e},e}function Bo(){var e=ci(['<div style="position:absolute; top:3px; right:2px; font-size:var(--font-size-small); line-height: 1.5;"><div style="position:relative; display:flex; min-width:350px; max-width:700px; justify-content: flex-end;"><div style="font-size: calc(var(--font-size-small) + 2px)">&#128274;</div>',"</div></div>"]);return Bo=function(){return e},e}function Do(){var e=ci(['<tr><td colspan="2" style="border:none; padding-left:48px">',"</td></tr>"]);return Do=function(){return e},e}function Fo(){var e=ci(['Send <code>Authorization</code> in <code>header</code> containing the word <code>Basic</code> followed by a space and a base64 encoded string of <code>username:password</code>.<div style="display:flex; max-height:28px;"><input type="text" value="','" placeholder="username" spellcheck="false" class="api-key-user" style="width:100px"> <input type="password" value="','" placeholder="password" spellcheck="false" class="api-key-password" style="width:100px; margin:0 5px;"> <button class="m-btn thin-border" @click="','">',"</button></div>"]);return Fo=function(){return e},e}function zo(){var e=ci(["Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String."]);return zo=function(){return e},e}function qo(){var e=ci(["Send <code>","</code> in <code>","</code> with the given value"]);return qo=function(){return e},e}function Uo(){var e=ci(["",'<div style="display:flex;max-height:28px;"><input type="text" value="','" class="api-key-input" placeholder="api-token" spellcheck="false"> <button class="m-btn thin-border" style="margin-left:5px;" @click="','">',"</button></div>"]);return Uo=function(){return e},e}function $o(){var e=ci(['<div class="m-markdown">',"</div>"]);return $o=function(){return e},e}function Ho(){var e=ci(['<span class="blue-text">',' </span><button class="m-btn thin-border small" @click="','">REMOVE</button>']);return Ho=function(){return e},e}function Wo(){var e=ci(['<tr><td style="max-width:500px; overflow-wrap: break-word;"><div style="min-height:24px"><span style="font-weight:bold">',"</span> ","</div>","</td><td>"," ","</td></tr>",""]);return Wo=function(){return e},e}function Vo(){var e=ci(['<table class="m-table" style="width:100%">',"</table>"]);return Vo=function(){return e},e}function Ko(){var e=ci(['<div class="red-text">No API key applied</div>']);return Ko=function(){return e},e}function Yo(){var e=ci(['<div class="blue-text">',' API key applied</div><div style="flex:1"></div><button class="m-btn thin-border" @click="','">CLEAR ALL API KEYS</button>']);return Yo=function(){return e},e}function Jo(){var e=ci(['<div id="authentication" style="margin-top:24px; margin-bottom:24px;" class="observe-me ','"><div class="sub-title regular-font">AUTHENTICATION</div><div class="small-font-size" style="display:flex; align-items: center; min-height:30px">',"</div>","</div>"]);return Jo=function(){return e},e}function Go(){var e=ci(['<div style="display:flex; max-height:28px; margin-top:2px"><input type="text" value="" placeholder="username" spellcheck="false" class="api-key-user"> <input type="password" value="" placeholder="password" spellcheck="false" class="api-key-password" style="margin:0 5px;"></div>']);return Go=function(){return e},e}function Qo(){var e=ci(['<button class="m-btn thin-border" @click="','">GET TOKEN</button>']);return Qo=function(){return e},e}function Xo(){var e=ci(['<div style="width:5px"></div>']);return Xo=function(){return e},e}function Zo(){var e=ci(['<select style="margin-right:5px;" class="oauth-send-client-secret-in"><option value="header" selected="selected">Authorization Header</option><option value="request-body">Request Body</option></select>']);return Zo=function(){return e},e}function ei(){var e=ci(['<input type="password" value="','" placeholder="client-secret" spellcheck="false" class="oauth-client-secret" style="margin:0 5px;"> ',""]);return ei=function(){return e},e}function ti(){var e=ci(['<div class="m-checkbox" style="display:inline-block"><input type="checkbox" id="',"",'" value="','"> <label for="',"",'"><span class="mono-font">',"</span> ","</label></div>"]);return ti=function(){return e},e}function ni(){var e=ci(['<span>Scopes</span><div class="oauth-scopes" style="width:100%; display:flex; flex-direction:column; flex-wrap:wrap; margin:0 0 10px 24px">',"</div>"]);return ni=function(){return e},e}function ri(){var e=ci(["",'<div style="display:flex; max-height:28px;"><input type="text" value="','" placeholder="client-id" spellcheck="false" class="oauth-client-id"> '," ","</div>",'<div class="oauth-resp-display red-text small-font-size"></div>']);return ri=function(){return e},e}function oi(){var e=ci(['<div><span style="width:75px; display: inline-block;">Refresh URL</span> <span class="mono-font">',"</span></div>"]);return oi=function(){return e},e}function ii(){var e=ci(['<div><span style="width:75px; display: inline-block;">Token URL</span> <span class="mono-font">',"</span></div>"]);return ii=function(){return e},e}function ai(){var e=ci(['<div><span style="width:75px; display: inline-block;">Auth URL</span> <span class="mono-font">',"</span></div>"]);return ai=function(){return e},e}function si(){var e=ci(['<div class="oauth-flow" style="padding: 10px 0; margin-bottom:10px;"><div class="tiny-title upper" style="margin-bottom:5px;">',"</div>"," "," "," ","</div>"]);return si=function(){return e},e}function ci(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function li(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 ui(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){li(i,r,o,a,s,"next",e)}function s(e){li(i,r,o,a,s,"throw",e)}a(void 0)})}}function pi(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 fi(){this.resolvedSpec.securitySchemes.forEach(e=>{e.user="",e.password="",e.value="",e.finalKeyValue=""}),this.requestUpdate()}function di(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Bearer",n=arguments.length>2?arguments[2]:void 0;this.resolvedSpec.securitySchemes.find(t=>t.apiKeyId===e).finalKeyValue="".concat("bearer"===t.toLowerCase()?"Bearer":"mac"===t.toLowerCase()?"MAC":t," ").concat(n),this.requestUpdate()}function hi(e,t,n,r,o,i){return vi.apply(this,arguments)}function vi(){return(vi=ui(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=c?c.querySelector(".oauth-resp-display"):void 0,u=new URLSearchParams,p=new Headers;u.append("redirect_uri",r),u.append("grant_type",o),i&&u.append("code",i),"header"===a?p.set("Authorization","Basic ".concat(btoa("".concat(t,":").concat(n)))):(u.append("client_id",t),u.append("client_secret",n));try{var f=yield fetch(e,{method:"POST",headers:p,body:u}),d=yield f.json();if(!f.ok)return l&&(l.innerHTML='<span style="color:var(--red)">'.concat(d.error_description||d.error_description||"Unable to get access token","</span>")),!1;if(d.token_type&&d.access_token)return di.call(this,s,d.token_type,d.access_token),l&&(l.innerHTML='<span style="color:var(--green)">Access Token Received</span>'),!0}catch(e){return l&&(l.innerHTML='<span style="color:var(--red)">Failed to get access token</span>'),!1}})).apply(this,arguments)}function mi(e,t,n,r,o,i,a,s,c,l){return gi.apply(this,arguments)}function gi(){return(gi=ui(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?hi.call(this,n,r,o,i,a,e.data.code,s,c,l):"token"===e.data.responseType&&di.call(this,c,e.data.token_type,e.data.access_token)))})).apply(this,arguments)}function yi(e,t,n,r,o){return bi.apply(this,arguments)}function bi(){return(bi=ui(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=>mi.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"clientCredentials"===t&&(d="client_credentials",hi.call(this,r,s,c,f.toString(),d,"",l,e,a))})).apply(this,arguments)}function xi(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,q(si(),i,o.authorizationUrl?q(ai(),o.authorizationUrl):"",o.tokenUrl?q(ii(),o.tokenUrl):"",o.refreshUrl?q(oi(),o.refreshUrl):"","authorizationCode"===e||"clientCredentials"===e||"implicit"===e||"password"===e?q(ri(),o.scopes?q(ni(),Object.entries(o.scopes).map((t,n)=>q(ti(),e,n,t[0],e,n,t[0],t[0]!==t[1]?" - ".concat(t[1]||""):""))):"",t,"authorizationCode"===e||"clientCredentials"===e||"password"===e?q(ei(),n,"authorizationCode"===e||"clientCredentials"===e?q(Zo()):""):q(Xo()),"authorizationCode"===e||"clientCredentials"===e||"implicit"===e?q(Qo(),t=>{yi.call(this,r,e,o.authorizationUrl,o.tokenUrl,t)}):"","password"===e?q(Go()):""):"")}function wi(){var e=this.resolvedSpec.securitySchemes.filter(e=>e.finalKeyValue);return q(Jo(),"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap ",e.length>0?q(Yo(),e.length,()=>{fi.call(this)}):q(Ko()),this.resolvedSpec.securitySchemes&&this.resolvedSpec.securitySchemes.length>0?q(Vo(),this.resolvedSpec.securitySchemes.map(e=>q(Wo(),e.typeDisplay,e.finalKeyValue?q(Ho(),e.finalKeyValue?"Key Applied":"",()=>{e.finalKeyValue="",this.requestUpdate()}):"",e.description?q($o(),Oo(pe()(e.description||""))):"","apiKey"===e.type||"http"===e.type&&"bearer"===e.scheme?q(Uo(),"apiKey"===e.type?q(qo(),e.name,e.in):q(zo()),e.value,t=>{pi.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):"","http"===e.type&&"basic"===e.scheme?q(Fo(),e.user,e.password,t=>{pi.call(this,e.apiKeyId,t)},e.finalKeyValue?"UPDATE":"SET"):"","oauth2"===e.type?q(Do(),Object.keys(e.flows).map(t=>xi.call(this,t,e.clientId,e.clientSecret,e.apiKeyId,e.flows[t]))):""))):"")}function ki(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.join(" or "),securityDefs:n})}),q(Bo(),t.map(e=>q(Mo(),e.securityTypes,e.securityDefs.length>1?q(No()):"",e.securityDefs.map((t,n)=>q(Lo(),"oauth2"===t.type?q(Ro(),e.securityDefs.length>1?q(Io(),n+1):q(Po()),t.apiKeyId):"http"===t.type?q(jo(),e.securityDefs.length>1?q(Co(),n+1):q(To()),"basic"===t.scheme?"Base 64 encoded username:password":"Bearer Token"):q(Ao(),e.securityDefs.length>1?q(Eo(),n+1):q(_o()),t.name,t.in))))))}return""}function Si(){var e=Ei(['<div class="tab-content m-markdown" style="display:','" data-tab="',"",'"><button class="toolbar-btn" style="position:absolute; top:12px; right:2px" @click="','">Copy</button><pre><code class="language">',"</code></pre></div>"]);return Si=function(){return e},e}function Oi(){var e=Ei(['<button class="tab-btn ','" data-tab="',"",'">',"</button>"]);return Oi=function(){return e},e}function _i(){var e=Ei(['<div class="table-title top-gap row">CODE SAMPLES</div><div class="tab-panel col" @click="','"><div class="tab-buttons row" style="width:100; overflow">',"</div>","</div>"]);return _i=function(){return e},e}function Ei(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ai(e){return q(_i(),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)=>q(Oi(),0===t?"active":"",e.lang,t,e.label||e.lang)),e.map((e,t)=>q(Si(),0===t?"block":"none",e.lang,t,t=>{Ie(e.source,t)},de.a.languages[e.lang.toLowerCase()]?Oo(de.a.highlight(e.source,de.a.languages[e.lang.toLowerCase()],e.lang.toLowerCase())):e.source)))}function Ti(){var e=Ii(['<div><div style="margin-top:12px;"><div class="method method-fg ','" style="width:70px; border:none; margin:0; padding:0; line-height:20px; vertical-align: baseline;text-align:left"><span style="font-size:20px;">&#x2944; </span>','</div><span style="line-height:20px; vertical-align: baseline;">','</span></div><div class="expanded-req-resp-container"><api-request class="request-panel" callback="true" method="','" , path="','" .parameters="','" .request_body="','" allow-try="false" render-style="','" schema-style="','" active-schema-tab="','" schema-expand-level="','" schema-description-expanded="','"></api-request><api-response callback="true" .responses="','" render-style="','" schema-style="','" active-schema-tab="','" schema-expand-level="','" schema-description-expanded="','"></api-response></div></div>']);return Ti=function(){return e},e}function Ci(){var e=Ii(['<div class="mono-font small-font-size" style="display:flex; margin-left:16px;"><div>',"</div></div>"]);return Ci=function(){return e},e}function ji(){var e=Ii(['<div class="tiny-title" style="padding: 12px; border:1px solid var(--light-border-color)">'," ","</div>"]);return ji=function(){return e},e}function Pi(){var e=Ii(['<div class="req-res-title" style="margin-top:12px">CALLBACKS</div>',""]);return Pi=function(){return e},e}function Ii(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ri(e){return q(Pi(),Object.entries(e).map(e=>q(ji(),e[0],Object.entries(e[1]).map(e=>q(Ci(),Object.entries(e[1]).map(t=>{var n,r,o;return q(Ti(),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.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 Li(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["a { color: var(--blue); }\n.border-top {\n border-top:1px solid var(--border-color);\n}\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 Li=function(){return e},e}var Ni=se(Li());function Mi(e){if(e){var t={type:e.$ref?"{recursive}":e.enum?"enum":e.format?e.format:e.type?e.type:"{missing-type-info}",format:e.format?e.format:"",pattern:e.pattern&&!e.enum?e.pattern:"",readOrWriteOnly:e.readOnly?"🆁":e.writeOnly?"🆆":"",deprecated:e.deprecated?"❌":"",default:0===e.default?"0":e.default?e.default:"",description:e.description?e.description:"",constrain:"",allowedValues:"",arrayType:"",html:""};if("{recursive}"===t.type?t.description=e.$ref.substring(e.$ref.lastIndexOf("/")+1):"{missing-type-info}"===t.type&&(t.description=t.description||""),e.enum){var n="";e.enum.map(e=>{n+="".concat(e,", ")}),t.allowedValues=n.slice(0,-2)}if("array"===e.type&&e.items){var r=e.items;if(t.arrayType="".concat(e.type," of ").concat(r.type),t.default=0===r.default?"0 ":r.default?r.default:"",r.enum){var o="";r.enum.map(e=>{o+="".concat(e,", ")}),t.allowedValues=o.slice(0,-2)}}else"integer"===e.type||"number"===e.type?(void 0!==e.minimum&&void 0!==e.maximum?t.constrain="".concat(e.exclusiveMinimum?">":">=").concat(e.minimum," 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 Bi(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 Di(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])?"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(Di(e[o],t+1),"\n").concat(n,"</").concat(o,">"):"object"==typeof e[o]?"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(Di(e[o],t+1),"\n").concat(n,"</").concat(o,">"):"".concat(r,"\n").concat(n,"<").concat(o,"> ").concat(e[o].toString()," </").concat(o,">");return r}function Fi(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)return e.allOf[0].$ref?"{ }":e.allOf[0].readOnly&&t.includeReadOnly?Bi(e.allOf[0]):void 0;e.allOf.map(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var n=Fi(e,t);Object.assign(r,n)}else if("array"===e.type||e.items){var o=[Fi(e,t)];Object.assign(r,o)}else{if(!e.type)return"";var i="prop".concat(Object.keys(r).length);r[i]=Bi(e)}}),n=r}else if(e.oneOf)e.oneOf.length>0&&(n=Fi(e.oneOf[0],t));else if(e.anyOf){if("object"===e.type||e.properties)for(var o in e.properties)e.properties[o].deprecated&&!t.includeDeprecated||e.properties[o].readOnly&&!t.includeReadOnly||e.properties[o].writeOnly&&!t.includeWriteOnly||(e.example?n[o]=e.example:n[o]=Fi(e.properties[o],t));var i=1;e.anyOf.length>0&&(n["prop".concat(i)]=Fi(e.anyOf[0],t),i++)}else if("object"===e.type||e.properties){for(var a in e.properties)if((!e.properties[a].deprecated||t.includeDeprecated)&&(!e.properties[a].readOnly||t.includeReadOnly)&&(!e.properties[a].writeOnly||t.includeWriteOnly)){if("array"===e.properties[a].type||e.properties[a].items){var s,c;(null===(s=e.properties[a])||void 0===s?void 0:null===(c=s.items)||void 0===c?void 0:c.example)?n[a]=[e.properties[a].items.example]:n[a]=[Fi(e.properties[a].items,t)];break}if(e.example){n[a]=e.example;break}n[a]=Fi(e.properties[a],t)}}else{if("array"!==e.type&&!e.items)return Bi(e);var l;n=e.example?e.example:(null===(l=e.items)||void 0===l?void 0:l.example)?[e.items.example]:[Fi(e.items,t)]}return n}}function zi(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(Mi(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=zi(e,{},n+1,r);Object.assign(o,i)}else if("array"===e.type||e.items){var a=zi(e,{},n+1);Object.assign(o,a)}else{if(!e.type)return"";var s="prop".concat(Object.keys(o).length),c=Mi(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,"*")]=zi(e.properties[a],{},n+1):t[a]=zi(e.properties[a],{},n+1);var s=1,c={};e[e.anyOf?"anyOf":"oneOf"].forEach(e=>{if("object"===e.type||e.properties||e.allOf||e.anyOf||e.oneOf){var t=zi(e,{});c["::OPTION~".concat(s)]=t,c["::type"]="xxx-of-option",s++}else if("array"===e.type||e.items){var n=[zi(e,{})];Object.assign(c,n)}else{var r="prop".concat(Object.keys(c).length);c[r]="".concat(Mi(e).html)}}),t[e.anyOf?"::ANY~OF ".concat(r):"::ONE~OF ".concat(r)]=c,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,"*")]=zi(e.properties[l],{},n+1):t[l]=zi(e.properties[l],{},n+1);e.additionalProperties&&(t["<any-key>"]=zi(e.additionalProperties,{}))}else{if(!e.items){var u=Mi(e);return u.html?"".concat(u.html):""}t["::description"]=e.description?e.description:"",t["::type"]="array",t["::props"]=zi(e.items,{},n+1)}return t}}function qi(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("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("*/*")){var d=Fi(n,{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleFormat:i,exampleValue:"text"===i?JSON.stringify(d,null,2):d})}else if(r.toLowerCase().includes("xml")){var h=n.xml&&n.xml.name?"<".concat(n.xml.name,">"):"<root>",v=n.xml&&n.xml.name?"</".concat(n.xml.name,">"):"</root>",m=Fi(n,{includeReadOnly:o,includeWriteOnly:!0,deprecated:!0});a.push({exampleId:"Example",exampleSummary:"",exampleDescription:"",exampleType:r,exampleValue:"".concat(h).concat(Di(m),"\n").concat(v),exampleFormat:"text"})}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 Ui(){var e=Qi(['<span class="','">',"</span>",""]);return Ui=function(){return e},e}function $i(){var e=Qi(['<span class="','">"','"</span>',""]);return $i=function(){return e},e}function Hi(){var e=Qi(["",":"]);return Hi=function(){return e},e}function Wi(){var e=Qi(['<div class="item">'," ","</div>"]);return Wi=function(){return e},e}function Vi(){var e=Qi(['<div class="open-bracket expanded ','" @click="','">','</div><div class="inside-bracket">','</div><div class="close-bracket">',"","</div>"]);return Vi=function(){return e},e}function Ki(){var e=Qi(["",""]);return Ki=function(){return e},e}function Yi(){var e=Qi(['<div class="null" style="display:inline;">null</div>']);return Yi=function(){return e},e}function Ji(){var e=Qi(['<div class="json-tree"><div class="toolbar"><button class="toolbar-btn" @click="','">Copy</button></div>',"</div>"]);return Ji=function(){return e},e}function Gi(){var e=Qi([":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 Gi=function(){return e},e}function Qi(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Xi(){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 color:var(--primary-color);\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.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 Xi=function(){return e},e}customElements.define("json-tree",class extends le{static get properties(){return{data:{type:Object},renderStyle:{type:String,attribute:"render-style"},isLast:{type:Boolean}}}static get styles(){return[ve,Ni,ge,se(Gi())]}render(){return q(Ji(),e=>{Ie(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 q(Yi());if("object"==typeof e&&e instanceof Date==!1){var n=Array.isArray(e)?"array":"pure_object";return 0===Object.keys(e).length?q(Ki(),Array.isArray(e)?"[ ],":"{ },"):q(Vi(),"array"===n?"array":"object",this.toggleExpand,"array"===n?"[":"{",Object.keys(e).map((t,r,o)=>q(Wi(),"pure_object"===n?q(Hi(),t):"",this.generateTree(e[t],r===o.length-1))),"array"===n?"]":"}",t?"":",")}return"string"==typeof e||e instanceof Date?q($i(),typeof e,e,t?"":","):q(Ui(),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 Zi=se(Xi());function ea(){var e=Sa(['<span class="m-markdown-small">',"</span>"]);return ea=function(){return e},e}function ta(){var e=Sa(['<div style="color: var(--fg2)"><span class="bold-text">Pattern:</span> ',"</div>"]);return ta=function(){return e},e}function na(){var e=Sa(['<div style="color: var(--fg2)"><span class="bold-text">Allowed:</span> &nbsp; ',"</div>"]);return na=function(){return e},e}function ra(){var e=Sa(['<div style="color: var(--fg2)"><span class="bold-text">Default:</span> ',"</div>"]);return ra=function(){return e},e}function oa(){var e=Sa(['<div style="color: var(--fg2)">',"</div>"]);return oa=function(){return e},e}function ia(){var e=Sa(["",'<span style="color:var(--red);">*</span>']);return ia=function(){return e},e}function aa(){var e=Sa(['<div class="tr primitive"><div class="td key" style="min-width:','px">',': <span class="','">'," <span>",'</span></span></div><div class="td key-descr">'," "," "," "," "," ","</div></div>"]);return aa=function(){return e},e}function sa(){var e=Sa(['<div class="close-bracket">',"</div>"]);return sa=function(){return e},e}function ca(){var e=Sa(["",""]);return ca=function(){return e},e}function la(){var e=Sa(["",""]);return la=function(){return e},e}function ua(){var e=Sa(["",'<span style="color:var(--red);">*</span>']);return ua=function(){return e},e}function pa(){var e=Sa(['<span class="xxx-of-key">',"</span>"]);return pa=function(){return e},e}function fa(){var e=Sa(['<div class="tr '," ",'"><div class="td key" style="min-width:','px">',"","",'</div><div class="td key-descr m-markdown-small">','</div></div><div class="inside-bracket ','" style="padding-left:','px;">',"</div>",""]);return fa=function(){return e},e}function da(){var e=Sa(['<span class="open-bracket object" @click="','">{...}</span>']);return da=function(){return e},e}function ha(){var e=Sa(['<span class="open-bracket object" @click="','">{</span>']);return ha=function(){return e},e}function va(){var e=Sa(['<span class="open-bracket array" @click="','">[{...}]</span>']);return va=function(){return e},e}function ma(){var e=Sa(['<span class="open-bracket array" @click="','">[{</span>']);return ma=function(){return e},e}function ga(){var e=Sa(['<span class="key object">',":{ }</span>"]);return ga=function(){return e},e}function ya(){var e=Sa(['<div class="null" style="display:inline;">null</div>']);return ya=function(){return e},e}function ba(){var e=Sa(['<span class="mono-font" style="color:var(--red)">Schema not found</span>']);return ba=function(){return e},e}function xa(){var e=Sa(["",""]);return xa=function(){return e},e}function wa(){var e=Sa(['<div class="tree ','"><div class="toolbar"><div class="toolbar-item bold-text upper" style="cursor:auto; color:var(--fg2)">','</div><div style="flex:1"></div><div class="toolbar-item" @click="','">','</div></div><span class="m-markdown">',"</span> ","</div>"]);return wa=function(){return e},e}function ka(){var e=Sa([".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 ka=function(){return e},e}function Sa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Oa(){var e=Ta([".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 Oa=function(){return e},e}function _a(){var e=Ta(['<span class="tag">',"</span>"]);return _a=function(){return e},e}function Ea(){var e=Ta(["",""]);return Ea=function(){return e},e}function Aa(){var e=Ta(['<div class="tags" tabindex="0">',' <input type="text" class="editor" @paste="','" @keydown="','" placeholder="','"></div>']);return Aa=function(){return e},e}function Ta(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-tree",class extends le{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[ve,Zi,Ni,se(ka())]}render(){return q(wa(),"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?Oo(pe()(this.data["::description"]||"")):"",this.data?q(xa(),this.generateTree("array"===this.data["::type"]?this.data["::props"]:this.data,this.data["::type"],"","")):q(ba()))}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(!e)return q(ya());if(0===Object.keys(e).length)return q(ga(),n);var i="";i=n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF")?n.replace("::","").replace("~"," "):n.startsWith("::OPTION")?n.replace("::OPTION~",""):n;var a=300-12*o,s="",c="";if("object"===e["::type"]&&("array"===t?(s=o<this.schemaExpandLevel?q(ma(),this.toggleObjectExpand):q(va(),this.toggleObjectExpand),c="}]"):(s=o<this.schemaExpandLevel?q(ha(),this.toggleObjectExpand):q(da(),this.toggleObjectExpand),c="}")),"object"==typeof e)return q(fa(),o<this.schemaExpandLevel?"expanded":"collapsed",e["::type"],a,"xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?q(pa(),i):i.endsWith("*")?q(ua(),i.substring(0,i.length-1)):i,o>0?":":"",s,Oo(pe()(r||"")),e["::type"],"xxx-of-option"!==e["::type"]?12:0,Object.keys(e).map(t=>q(la(),["::description","::type","::props"].includes(t)?"":q(ca(),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")?"":q(sa(),c));var l=e.split("~|~"),u=l[0].replace("{","").substring(0,4).toLowerCase();return q(aa(),a,i.endsWith("*")?q(ia(),i.substring(0,i.length-1)):i,u,"array"===t?"[".concat(l[0],"]"):l[0],l[1],"array"===t?r:"",l[2]?q(oa(),l[2]):"",l[3]?q(ra(),l[3]):"",l[4]?q(na(),l[4]):"",l[5]?q(ta(),l[5]):"",l[6]?q(ea(),Oo(pe()(l[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")?"[{...}]":"{...}"):(t.classList.replace("collapsed","expanded"),e.target.innerHTML=e.target.classList.contains("array")?"[{":"{")}});function Ca(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 ja(){var e=zs(['<div style="color:var(--red)">No API key applied</div>']);return ja=function(){return e},e}function Pa(){var e=zs(['<div style="color:var(--blue); overflow:hidden;">',"</div>"]);return Pa=function(){return e},e}function Ia(){var e=zs(['<div style="display:flex; align-items:flex-end; margin:16px 0; font-size:var(--font-size-small);"><div style="display:flex; flex-direction:column; margin:0; width:calc(100% - 60px);"><div style="display:flex; flex-direction:row; align-items:center; overflow:hidden;">','</div><div style="display:flex;"><div style="font-weight:bold; padding-right:5px;">Authentication</div>','</div></div><button class="m-btn primary" @click="','">TRY</button></div>',""]);return Ia=function(){return e},e}function Ra(){var e=zs(['<div style="display:flex; align-items:baseline;"><div style="font-weight:bold; padding-right:5px;">API Server</div><span class="gray-text">',"</span></div>"]);return Ra=function(){return e},e}function La(){var e=zs(['<div style="display:flex; flex-direction:column;">'," ","</div>"]);return La=function(){return e},e}function Na(){var e=zs(['<option value="','">'," - ","</option>"]);return Na=function(){return e},e}function Ma(){var e=zs(['<select style="min-width:100px;" @change="','">',"</select>"]);return Ma=function(){return e},e}function Ba(){var e=zs(["<code>","</code>"]);return Ba=function(){return e},e}function Da(){var e=zs(['<div class="tab-content col m-markdown" style="flex:1;display:',';"><button class="toolbar-btn" style="position:absolute; top:12px; right:2px" @click="','">Copy</button><pre style="white-space:pre; max-height:400px; overflow:auto">',"\n </pre></div>"]);return Da=function(){return e},e}function Fa(){var e=zs(['<button class="m-btn thin-border mar-top-8" style="width:135px" @click="','">VIEW (NEW TAB)</button>']);return Fa=function(){return e},e}function za(){var e=zs(['<div class="tab-content col" style="flex:1; display:',';"><button class="m-btn thin-border mar-top-8" style="width:135px" @click="','">DOWNLOAD</button> ',"</div>"]);return za=function(){return e},e}function qa(){var e=zs(['<div class="row" style="font-size:var(--font-size-small); margin:5px 0"><div class="response-message ','">Response Status: ','</div><div style="flex:1"></div><button class="m-btn" style="padding: 6px 0px;width:60px" @click="','">CLEAR</button></div><div class="tab-panel col" style="border-width:0 0 1px 0;"><div id="tab_buttons" class="tab-buttons row" @click="','"><button class="tab-btn ','" data-tab="response">RESPONSE</button> <button class="tab-btn ','" data-tab="headers">RESPONSE HEADERS</button> <button class="tab-btn ','" data-tab="curl">CURL</button></div>','<div class="tab-content col m-markdown" style="flex:1;display:',';"><button class="toolbar-btn" style="position:absolute; top:12px; right:2px" @click="','">Copy</button><pre style="white-space:pre"><code>','</code></pre></div><div class="tab-content col m-markdown" style="flex:1;display:',';"><button class="toolbar-btn" style="position:absolute; top:12px; right:2px" @click="','">Copy</button><pre style="white-space:pre"><code>',"</code></pre></div></div>"]);return qa=function(){return e},e}function Ua(){var e=zs(['<span class="m-markdown-small">',"</span>"]);return Ua=function(){return e},e}function $a(){var e=zs(['<textarea class="textarea dynamic-form-param ','" spellcheck="false" data-pname="dynamic-form" data-ptype="','" style="width:100%">',"</textarea> ",""]);return $a=function(){return e},e}function Ha(){var e=zs(['<td style="border:none"></td>']);return Ha=function(){return e},e}function Wa(){var e=zs(['<span style="font-weight:bold">Allowed: </span>',""]);return Wa=function(){return e},e}function Va(){var e=zs(["","<br>"]);return Va=function(){return e},e}function Ka(){var e=zs(['<span style="font-weight:bold">Default: </span>',"<br>"]);return Ka=function(){return e},e}function Ya(){var e=zs(['<div class="param-constraint">'," "," ","</div>"]);return Ya=function(){return e},e}function Ja(){var e=zs(['<input value="','" spellcheck="false" type="','" style="width:200px" data-ptype="','" data-pname="','" data-array="false">']);return Ja=function(){return e},e}function Ga(){var e=zs(["",""]);return Ga=function(){return e},e}function Qa(){var e=zs(['<div class="tab-content col" data-tab="example" style="display:block; padding:0 10px; width:100%"><textarea class="textarea" style="width:100%; border:none; resize:vertical;" data-array="false" data-ptype="','" data-pname="','" spellcheck="false">',"</textarea></div>"]);return Qa=function(){return e},e}function Xa(){var e=zs(['<div class="tab-content col" data-tab="model" style="display:none; padding:0 10px; width:100%;"><schema-tree .data="','" schema-expand-level="','" schema-description-expanded="','"></schema-tree></div>']);return Xa=function(){return e},e}function Za(){var e=zs(['<div class="tab-panel row" style="min-height:220px; border-left: 6px solid var(--light-border-color); align-items: stretch;"><div style="width:24px; background-color:var(--light-border-color)"><div class="row" style="flex-direction:row-reverse; width:160px; height:24px; transform:rotate(270deg) translateX(-160px); transform-origin:top left; display:block;" @click="','"><button class="v-tab-btn" data-tab="model">MODEL</button> <button class="v-tab-btn active" data-tab="example">EXAMPLE</button></div></div>'," ","</div>"]);return Za=function(){return e},e}function es(){var e=zs(["",""]);return es=function(){return e},e}function ts(){var e=zs(['<tag-input style="width:160px; background:var(--input-bg);" data-ptype="','" data-pname="','" data-array="true" placeholder="add-multiple &#x2b90;"></tag-input>']);return ts=function(){return e},e}function ns(){var e=zs(['<div class="file-input-container col" style="align-items:flex-end;" @click="','"><div class="input-set row"><input type="file" style="width:200px" data-pname="','" data-ptype="','" data-array="false" data-file-array="true"> <button class="file-input-remove-btn">&#x2715;</button></div><button class="m-btn primary file-input-add-btn" style="margin:2px 25px 0 0; padding:2px 6px;">ADD</button></div>']);return ns=function(){return e},e}function rs(){var e=zs(["",""]);return rs=function(){return e},e}function os(){var e=zs(['<span style="color:var(--red);">*</span>',""]);return os=function(){return e},e}function is(){var e=zs(['<tr><td rowspan="','" style="width:160px; min-width:100px;"><div class="param-name">','</div><div class="param-type">','</div></td><td style="',' min-width:100px;">','</td><td><div class="param-constraint">',"</div></td></tr><tr>",'<td colspan="2" style="border:none; margin-top:0; padding:0 5px 8px 5px;"><span class="m-markdown-small">',"</span></td></tr>"]);return is=function(){return e},e}function as(){var e=zs(['<table style="width:100%;" class="m-table">',"</table>"]);return as=function(){return e},e}function ss(){var e=zs([""," ",""]);return ss=function(){return e},e}function cs(){var e=zs(['<div class="tab-content col" style="display: ','">',"</div>"]);return cs=function(){return e},e}function ls(){var e=zs(['<div class="tab-content col" style="display: ','">',"</div>"]);return ls=function(){return e},e}function us(){var e=zs(['<div class="tab-panel col" style="border-width:0 0 1px 0;"><div class="tab-buttons row" @click="','"><button class="tab-btn ','" data-tab="model">MODEL</button> <button class="tab-btn ','" data-tab="example">EXAMPLE</button></div>'," ","</div>"]);return us=function(){return e},e}function ps(){var e=zs(['<div class="m-markdown" style="margin-bottom:12px">',"</div>"]);return ps=function(){return e},e}function fs(){var e=zs(['<span class="mono-font" style="color:var(--red)">*</span>']);return fs=function(){return e},e}function ds(){var e=zs(['<div class="request-body-container" data-selected-request-body-type="','"><div class="table-title top-gap row">REQUEST BODY ',' <span style="font-weight:normal; margin-left:5px">','</span> <span style="flex:1"></span> ',"</div>"," ","</div>"]);return ds=function(){return e},e}function hs(){var e=zs(["",'<schema-tree class="','" style="display: ',';" .data="','" schema-expand-level="','" schema-description-expanded="','"></schema-tree>']);return hs=function(){return e},e}function vs(){var e=zs(["",'<schema-table class="','" style="display: ',';" .data="','" schema-expand-level="','" schema-description-expanded="','"></schema-table>']);return vs=function(){return e},e}function ms(){var e=zs(['<div class="small-font-size bold-text row"><input type="file" style="max-width:100%" class="request-body-param-file" data-ptype="','" spellcheck="false"></div>']);return ms=function(){return e},e}function gs(){var e=zs(['<div class="m-markdown-small" style="padding: 4px 0">',"</div>"]);return gs=function(){return e},e}function ys(){var e=zs(['<div style="padding: 4px 0">',"</div>"]);return ys=function(){return e},e}function bs(){var e=zs(['<div class="example ','" data-example="','">'," ",'\x3c!-- this textarea is for user to edit the example --\x3e <textarea class="textarea request-body-param-user-input" spellcheck="false" data-ptype="','" style="width:100%; resize:vertical;">','</textarea>\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 <textarea class="textarea request-body-param ','" spellcheck="false" data-ptype="','" style="width:100%; resize:vertical; display:none">',"</textarea></div>"]);return bs=function(){return e},e}function xs(){var e=zs(['<option value="','" ?selected="','">',"</option>"]);return xs=function(){return e},e}function ws(){var e=zs(['<select style="min-width:100px; max-width:100%; margin-bottom:-1px;" @change="','">',"</select>"]);return ws=function(){return e},e}function ks(){var e=zs(["",'<div class="example-panel border-top pad-top-8">'," ","</div>"]);return ks=function(){return e},e}function Ss(){var e=zs(['<option value="','" ?selected="','">',"</option>"]);return Ss=function(){return e},e}function Os(){var e=zs(['<select style="min-width:100px; max-width:100%; margin-bottom:-1px;" @change="','">',"</select>"]);return Os=function(){return e},e}function _s(){var e=zs(['<div class="table-title top-gap">','</div><div style="display:block; overflow-x:auto; max-width:100%;"><table class="m-table" style="width:100%; word-break:break-word;">',"</table></div>"]);return _s=function(){return e},e}function Es(){var e=zs(['<td style="border:none"></td>']);return Es=function(){return e},e}function As(){var e=zs(['<span style="font-weight:bold">Allowed: </span>',""]);return As=function(){return e},e}function Ts(){var e=zs(["","<br>"]);return Ts=function(){return e},e}function Cs(){var e=zs(['<span style="font-weight:bold">Default: </span>',"<br>"]);return Cs=function(){return e},e}function js(){var e=zs(['<div class="param-constraint">'," "," ","</div>"]);return js=function(){return e},e}function Ps(){var e=zs(['<input type="text" spellcheck="false" style="width:100%" class="request-param" data-pname="','" data-ptype="','" data-array="false" value="','">']);return Ps=function(){return e},e}function Is(){var e=zs(['<textarea class="textarea request-param" data-ptype="','-object" data-pname="','" data-param-serialize-style="','" data-param-serialize-explode="','" spellcheck="false" style="resize:vertical; width:100%; height: ',';">',"</textarea>"]);return Is=function(){return e},e}function Rs(){var e=zs(['<tag-input class="request-param" style="width:160px; background:var(--input-bg);" data-ptype="','" data-pname="','" data-param-serialize-style="','" data-param-serialize-explode="','" data-array="true" placeholder="add-multiple &#x2b90;" .value="','"></tag-input>']);return Rs=function(){return e},e}function Ls(){var e=zs(['<td style="width:','; min-width:100px;">',"</td>"]);return Ls=function(){return e},e}function Ns(){var e=zs(['<span style="color:var(--red)">*</span>']);return Ns=function(){return e},e}function Ms(){var e=zs(['<tr><td rowspan="','" style="width:160px; min-width:100px;"><div class="param-name">',"",'</div><div class="param-type">',"</div></td>",'<td colspan="','">',"</td></tr><tr>",'<td colspan="2" style="border:none; margin-top:0; padding:0 5px 8px 5px;"><span class="m-markdown-small">',"</span></td></tr>"]);return Ms=function(){return e},e}function Bs(){var e=zs(["",""]);return Bs=function(){return e},e}function Ds(){var e=zs(['<div class="col regular-font request-panel ','"><div class="','">',"</div><div>"," "," "," "," "," ","</div></div>"]);return Ds=function(){return e},e}function Fs(){var e=zs([".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 Fs=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("tag-input",class extends le{render(){return q(Aa(),Array.isArray(this.value)&&this.value.length>0?q(Ea(),this.value.map(e=>q(_a(),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[se(Oa())]}});function qs(){var e=sc(['<span class="m-markdown-small">',"</span>"]);return qs=function(){return e},e}function Us(){var e=sc(['<div style="color: var(--fg2); padding-bottom:3px;"><span class="bold-text">Pattern:</span> &nbsp; ',"</div>"]);return Us=function(){return e},e}function $s(){var e=sc(['<div style="color: var(--fg2); padding-bottom:3px;"><span class="bold-text">Allowed: </span>&nbsp; ',"</div>"]);return $s=function(){return e},e}function Hs(){var e=sc(['<div style="color: var(--fg2); padding-bottom:3px;"><span class="bold-text">Default:</span> ',"</div>"]);return Hs=function(){return e},e}function Ws(){var e=sc(['<div style="color: var(--fg2); padding-bottom:3px;">',"</div>"]);return Ws=function(){return e},e}function Vs(){var e=sc(["",'<span style="color:var(--red);">*</span>']);return Vs=function(){return e},e}function Ks(){var e=sc(['<div class="tr primitive"><div class="td key" style="padding-left:','px">','</div><div class="td key-type ','">',' <span style="font-family: var(--font-mono);">','</span></div><div class="td key-descr">'," "," "," "," "," ","</div></div>"]);return Ks=function(){return e},e}function Ys(){var e=sc(["",""]);return Ys=function(){return e},e}function Js(){var e=sc(["",""]);return Js=function(){return e},e}function Gs(){var e=sc(['<span style="display:inline-block; margin-left:-6px;">',"</span>"]);return Gs=function(){return e},e}function Qs(){var e=sc(['<span style="display:inline-block; margin-left:-6px;">','</span><span style="color:var(--red);">*</span>']);return Qs=function(){return e},e}function Xs(){var e=sc(['<span class="xxx-of-key">',"</span>"]);return Xs=function(){return e},e}function Zs(){var e=sc(['<span class="obj-toggle ','" data-obj="','" @click="','">',"</span>"]);return Zs=function(){return e},e}function ec(){var e=sc(['<div class="tr '," ",'" data-obj="','"><div class="td key" style="padding-left:','px">'," ",'</div><div class="td key-type">','</div><div class="td key-descr m-markdown-small" style="line-height:1.7">',"</div></div>"]);return ec=function(){return e},e}function tc(){var e=sc(["",'<div class="object-body">',"<div></div></div>"]);return tc=function(){return e},e}function nc(){var e=sc(['<span class="td key object" style="padding-left:','px">',"</span>"]);return nc=function(){return e},e}function rc(){var e=sc(['<div class="null" style="display:inline;">null</div>']);return rc=function(){return e},e}function oc(){var e=sc(["",""]);return oc=function(){return e},e}function ic(){var e=sc(['<div class="table ','"><div class="toolbar"><div style="flex:1"></div><div class="toolbar-item" @click="','">','</div></div><div style="padding: 5px 0; color:var(--fg2)"><span class="bold-text upper">','</span> <span class="m-markdown">','</span></div><div style="border:1px solid var(--light-border-color)"><div style="display:flex; height:calc(var(--font-size-small) + 6px); background-color: var(--bg2); line-height:calc(var(--font-size-small) + 6px); padding:8px 2px; border-bottom:1px solid var(--light-border-color);"><div class="td key" style="font-family:var(--font-regular); font-weight:bold; color:var(--fg)">Field</div><div class="td key-type" style="font-family:var(--font-regular); font-weight:bold; color:var(--fg)">Type</div><div class="td key-descr" style="font-family:var(--font-regular); font-weight:bold; color:var(--fg)">Description</div></div>',"</div></div>"]);return ic=function(){return e},e}function ac(){var e=sc([".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 ac=function(){return e},e}function sc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("api-request",class extends le{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},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[we,ge,ve,be,Ni,Ae,_e,se(Fs())]}render(){return q(Ds(),"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?"":q(Bs(),this.apiCallTemplate()))}inputParametersTemplate(e){var t="",n=this.parameters?this.parameters.filter(t=>t.in===e):[];if(0===n.length)return"";"path"===e?t="PATH PARAMETERS":"query"===e?t="QUERY-STRING PARAMETERS":"header"===e?t="REQUEST HEADERS":"cookie"===e&&(t="COOKIES");var r=[];for(var o of n)if(o.schema){var i=Mi(o.schema),a="",s="form",c=!0;"query"===e&&(o.style&&"form spaceDelimited pipeDelimited".includes(o.style)&&(s=o.style),"boolean"==typeof o.explode&&(c=o.explode)),a=o.example?"0"===o.example||0===o.example?"0":"array"===i.type?[o.example]:o.example:o.examples&&o.examples.length>0?"array"===i.type?[o.examples[0]]:o.examples[0]:"array"===i.type?i.default?[i.default]:"":i.default?i.default:"",r.push(q(Ms(),"true"===this.allowTry||""!==a?"1":"2",o.required?q(Ns()):"",o.name,"array"===i.type?"".concat(i.arrayType):"".concat(i.format?i.format:i.type),"true"===this.allowTry||""!==a?q(Ls(),"array"===i.type||"object"===i.type?"read focused".includes(this.renderStyle)?"300px":"220px":"160px","array"===i.type?q(Rs(),e,o.name,s,c,a):"object"===i.type?q(Is(),e,o.name,s,c,"read focused".includes(this.renderStyle)?"180px":"120px",a):q(Ps(),o.name,e,a)):"","true"===this.allowTry||""!==a?"1":"2",i.default||i.constrain||i.allowedValues?q(js(),i.default?q(Cs(),i.default):"",i.constrain?q(Ts(),i.constrain):"",i.allowedValues?q(As(),i.allowedValues):""):"","true"===this.allowTry||""!==a?q(Es()):"",Oo(pe()(o.description||""))))}return q(_s(),t,r)}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?"":q(Os(),e=>this.onMimeTypeChange(e),i.map(e=>q(Ss(),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=qi(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=q(ks(),o,1===a.length?"":q(ws(),e=>this.onSelectExample(e),a.map(e=>q(xs(),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=>q(bs(),t.exampleId===this.selectedRequestBodyExample?"example-selected":"",t.exampleId,t.exampleSummary&&t.exampleSummary.length>80?q(ys(),t.exampleSummary):"",t.exampleDescription?q(gs(),Oo(pe()(t.exampleDescription||""))):"",e.mimeType,"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=qi(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 this.selectedRequestBodyType.includes("octet-stream")&&e.mimeType===this.selectedRequestBodyType&&(t=q(ms(),e.mimeType));(e.mimeType.includes("json")||e.mimeType.includes("xml")||e.mimeType.includes("text"))&&(i=zi(e.schema,{}),"table"===this.schemaStyle?r=q(vs(),r,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded):"tree"===this.schemaStyle&&(r=q(hs(),r,e.mimeType.substring(e.mimeType.indexOf("/")+1),this.selectedRequestBodyType===e.mimeType?"block":"none",i,this.schemaExpandLevel,this.schemaDescriptionExpanded)))}),q(ds(),this.selectedRequestBodyType,this.request_body.required?q(fs()):"",this.selectedRequestBodyType,e,this.request_body.description?q(ps(),Oo(pe()(this.request_body.description))):"",this.selectedRequestBodyType.includes("json")||this.selectedRequestBodyType.includes("xml")||this.selectedRequestBodyType.includes("text")?q(us(),e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)},"model"===this.activeSchemaTab?"active":"","example"===this.activeSchemaTab?"active":"",q(ls(),"model"===this.activeSchemaTab?"block":"none",r),q(cs(),"model"===this.activeSchemaTab?"none":"block",o)):q(ss(),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=e.properties[r],a=i.type,s=zi(i,{}),c=Mi(i),l=qi("",i.example?i.example:"",i,"json",!1,"text");o.push(q(is(),"true"===n.allowTry?"1":"2",i.required?q(os(),r):q(rs(),r),c.type,"object"===a?"width:100%; padding:0;":"width:160px;","array"===a?"binary"===i.items.format?q(ns(),e=>n.onAddRemoveFileInput(e,r,t),r,t.includes("form-urlencode")?"form-urlencode":"form-data"):q(ts(),t.includes("form-urlencode")?"form-urlencode":"form-data",r):q(es(),"object"===a?q(Za(),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)},q(Xa(),s,n.schemaExpandLevel,n.schemaDescriptionExpanded),q(Qa(),t.includes("form-urlencode")?"form-urlencode":"form-data",r,l[0].exampleValue)):q(Ga(),"true"===n.allowTry||i.example?q(Ja(),i.example||"","binary"===i.format?"file":"password"===i.format?"password":"text",t.includes("form-urlencode")?"form-urlencode":"form-data",r):"")),c.default||c.constrain||c.allowedValues?q(Ya(),c.default?q(Ka(),c.default):"",c.constrain?q(Va(),c.constrain):"",c.allowedValues?q(Wa(),c.allowedValues):""):"","true"===n.allowTry?q(Ha()):"",Oo(pe()(i.description||""))))};for(var a in e.properties)i(a);return q(as(),o)}return q($a(),t,t,r,e.description?q(Ua(),Oo(pe()(e.description))):"")}apiResponseTabTemplate(){var e=this.responseHeaders.includes("json")?"json":this.responseHeaders.includes("html")||this.responseHeaders.includes("xml")?"html":"";return q(qa(),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?q(za(),"response"===this.activeResponseTab?"flex":"none",this.downloadResponseBlob,"view"===this.responseBlobType?q(Fa(),this.viewResponseBlob):""):q(Da(),"response"===this.activeResponseTab?"flex":"none",e=>{Ie(this.responseText,e)},e?q(Ba(),Oo(de.a.highlight(this.responseText,de.a.languages[e],e))):"".concat(this.responseText)),"headers"===this.activeResponseTab?"flex":"none",e=>{Ie(this.responseHeaders,e)},Oo(de.a.highlight(this.responseHeaders,de.a.languages.css,"css")),"curl"===this.activeResponseTab?"flex":"none",e=>{Ie(this.curlSyntax.replace(/\\$/,""),e)},Oo(de.a.highlight(this.curlSyntax.trim().replace(/\\$/,""),de.a.languages.shell,"shell")))}apiCallTemplate(){var e="";this.servers&&this.servers.length>0&&(e=q(Ma(),e=>{this.serverUrl=e.target.value},this.servers.map(e=>q(Na(),e.url,e.url,e.description))));var t=q(La(),e,this.serverUrl?q(Ra(),this.serverUrl):"");return q(Ia(),t,this.api_keys.length>0?q(Pa(),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")):q(ja()),this.onTryClick,""===this.responseMessage?"":this.apiResponseTabTemplate())}onTryClick(e){var t,n=this;return(t=function*(){var t,r,o,i=n,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");t=i.path;var m={method:n.method.toUpperCase(),headers:{}};if(p.map(e=>{t=t.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(","))}}),t="".concat(t,"?").concat(g.toString())}if(d.length>0){var y=new URLSearchParams;d.map(e=>{try{var n={},r=e.dataset.paramSerializeStyle,o=e.dataset.paramSerializeExplode;n=Object.assign(n,JSON.parse(e.value.replace(/\s+/g," ")));var i=function(e){"object"==typeof n[e]?Array.isArray(n[e])&&("spaceDelimited"===r?y.append(e,n[e].join(" ")):"pipeDelimited"===r?y.append(e,n[e].join("|")):"true"===o?n[e].forEach(t=>{y.append(e,t)}):y.append(e,n[e])):y.append(e,n[e])};for(var a in n)i(a);t="".concat(t,"?").concat(y.toString())}catch(t){console.log("RapiDoc: unable to parse %s into object",e.value)}})}if(n.api_keys.filter(e=>"query"===e.in).forEach(e=>{t="".concat(t).concat(t.includes("?")?"&":"?").concat(e.name,"=").concat(encodeURIComponent(e.finalKeyValue))}),r=!1===(t="".concat(n.serverUrl.replace(/\/$/,"")).concat(t)).startsWith("http")?new URL(t,window.location.href).href:t,o="curl -X ".concat(n.method.toUpperCase(),' "').concat(r,'" \\\n'),n.accept&&(m.headers.Accept=n.accept,s+=' -H "Accept: '.concat(n.accept,'" \\\n')),n.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 _ in w)S.append(_,JSON.stringify(w[_]));m.body=S,c=" -d ".concat(S.toString()," \\\n")}}else{var E=[...u.querySelectorAll("[data-ptype='form-urlencode']")],A=new URLSearchParams;E.filter(e=>"file"!==e.type).forEach(e=>{if("false"===e.dataset.array)e.value&&A.append(e.dataset.pname,e.value);else{var t=e.value&&Array.isArray(e.value)?e.value.join(","):"";A.append(e.dataset.pname,t)}}),m.body=A,c=" -d ".concat(A.toString()," \\\n")}}else if(b.includes("form-data")){var T=new FormData;[...u.querySelectorAll("[data-ptype='form-data']")].forEach(e=>{"false"===e.dataset.array?"file"===e.type&&e.files[0]?(T.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&&(T.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')}),T.append(e.dataset.pname,e.value.join(",")))}),m.body=T}else if(b.includes("octet-stream")){var C=u.querySelector(".request-body-param-file");C&&C.files[0]&&(m.body=C.files[0],c=" --data-binary @".concat(C.files[0].name," \\\n"))}else if(b.includes("json")||b.includes("xml")||b.includes("text")){var j=u.querySelector(".request-body-param-user-input");if(j&&j.value){m.body=j.value;try{c=" -d '".concat(JSON.stringify(JSON.parse(j.value)),"' \\\n")}catch(e){c=" -d '".concat(j.value.replace(/(\r\n|\n|\r)/gm,""),"' \\\n")}}}b.includes("form-data")||(m.headers["Content-Type"]=b),s+=' -H "Content-Type: '.concat(b,'" \\\n')}i.responseUrl="",i.responseHeaders="",i.curlSyntax="",i.responseStatus="success",i.responseIsBlob=!1,i.respContentDisposition="",i.responseBlobUrl&&(URL.revokeObjectURL(i.responseBlobUrl),i.responseBlobUrl=""),i.curlSyntax="".concat(o).concat(s).concat(c).concat(l);try{a.disabled=!0;var P=yield fetch(t,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("7z|octet-stream|tar|zip").test(I)?(i.responseIsBlob=!0,i.responseBlobType="download"):RegExp("^audio|^image|pdf|^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)")}},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function a(e){Ca(i,r,o,a,s,"next",e)}function s(e){Ca(i,r,o,a,s,"throw",e)}a(void 0)})})()}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="&#x2715;",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 cc(){var e=Hc(['<schema-tree class="','" render-style="','" .data="','" schema-expand-level="','" schema-description-expanded="','"></schema-tree>']);return cc=function(){return e},e}function lc(){var e=Hc(['<schema-table class="','" render-style="','" .data="','" schema-expand-level="','" schema-description-expanded="','"></schema-table>']);return lc=function(){return e},e}function uc(){var e=Hc(["",""]);return uc=function(){return e},e}function pc(){var e=Hc(['<pre style="color:var(--red)" class="','"> Schema not found</pre>']);return pc=function(){return e},e}function fc(){var e=Hc(["<pre>","</pre>"]);return fc=function(){return e},e}function dc(){var e=Hc(['<json-tree render-style="','" .data="','"></json-tree>']);return dc=function(){return e},e}function hc(){var e=Hc(['<div class="m-markdown-small" style="padding: 4px 0">',"</div>"]);return hc=function(){return e},e}function vc(){var e=Hc(['<div style="padding: 4px 0">',"</div>"]);return vc=function(){return e},e}function mc(){var e=Hc(['<div class="example" data-example="','" style="display: ','">'," "," ","</div>"]);return mc=function(){return e},e}function gc(){var e=Hc(['<option value="','" ?selected="','">',"</option>"]);return gc=function(){return e},e}function yc(){var e=Hc(['<span class="example-panel ','"><select style="min-width:100px; max-width:100%" @change="','">',"</select> ","</span>"]);return yc=function(){return e},e}function bc(){var e=Hc(['<pre class="example-panel ','">',"</pre>"]);return bc=function(){return e},e}function xc(){var e=Hc(['<json-tree render-style="','" .data="','" class="example-panel ','"></json-tree>']);return xc=function(){return e},e}function wc(){var e=Hc(["",""]);return wc=function(){return e},e}function kc(){var e=Hc(["",""]);return kc=function(){return e},e}function Sc(){var e=Hc(['<pre style="color:var(--red)" class="','"> No example provided </pre>']);return Sc=function(){return e},e}function Oc(){var e=Hc(['<option value="','" ?selected="','">',"</option>"]);return Oc=function(){return e},e}function _c(){var e=Hc(['<select @change="','" style="margin-bottom: -1px; z-index:1">',"</select>"]);return _c=function(){return e},e}function Ec(){var e=Hc(['<tr><td style="vertical-align: top;">','</td><td style="vertical-align: top; padding:0 5px;">','</td><td style="vertical-align: top;"><div class="m-markdown regular-font" style="margin-top:-7px">','</div></td><td style="vertical-align: top;">',"</td></tr>"]);return Ec=function(){return e},e}function Ac(){var e=Hc(['<div style="padding:16px 0 8px 0" class="resp-headers small-font-size upper bold-text">Response Headers:</div><table style="padding-bottom:16px;" class="small-font-size mono-font">',"</table>"]);return Ac=function(){return e},e}function Tc(){var e=Hc(['<div class="tab-content col" style="flex:1;">',"</div>"]);return Tc=function(){return e},e}function Cc(){var e=Hc(['<div class="tab-content col" style="flex:1;">',"</div>"]);return Cc=function(){return e},e}function jc(){var e=Hc(["",""]);return jc=function(){return e},e}function Pc(){var e=Hc(['<span class="small-font-size gray-text" style="align-self:center; margin-top:8px;">',"</span>"]);return Pc=function(){return e},e}function Ic(){var e=Hc(['<div class="tab-panel col"><div class="tab-buttons row" @click="','"><button class="tab-btn ','" data-tab="model">MODEL</button> <button class="tab-btn ','" data-tab="example">EXAMPLE</button><div style="flex:1"></div>',"</div>","</div>"]);return Ic=function(){return e},e}function Rc(){var e=Hc(["",""]);return Rc=function(){return e},e}function Lc(){var e=Hc(['<div style="display: ','"><div class="top-gap"><span class="resp-descr m-markdown">',"</span> ","</div>","</div>"]);return Lc=function(){return e},e}function Nc(){var e=Hc(["<span>","</span>"]);return Nc=function(){return e},e}function Mc(){var e=Hc(['<button @click="','" class="m-btn small ','" style="margin: 8px 4px 0 0">',"</button>"]);return Mc=function(){return e},e}function Bc(){var e=Hc(['<div class="row">',"</div>"]);return Bc=function(){return e},e}function Dc(){var e=Hc(["","",""]);return Dc=function(){return e},e}function Fc(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 zc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(n),!0).forEach(function(t){qc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uc(){var e=Hc(['<div class="col regular-font response-panel ','-mode"><div class="','">',"</div><div>","<div></div></div></div>"]);return Uc=function(){return e},e}function $c(){var e=Hc([".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 $c=function(){return e},e}function Hc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}customElements.define("schema-table",class extends le{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[ve,Zi,se(ac())]}render(){return q(ic(),"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?Oo(pe()(this.data["::description"]||"")):"",this.data?q(oc(),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 q(rc());if(0===Object.keys(e).length)return q(nc(),i,n);var a="";if(a=n.startsWith("::ONE~OF")||n.startsWith("::ANY~OF")?n.replace("::","").replace("~"," "):n.startsWith("::OPTION")?n.replace("::OPTION~",""):n,"object"==typeof e)return q(tc(),o>0?q(ec(),o<this.schemaExpandLevel?"expanded":"collapsed",e["::type"],a,i,a?q(Zs(),o<this.schemaExpandLevel?"expanded":"collapsed",a,e=>this.toggleObjectExpand(e,a),o<this.schemaExpandLevel?"-":"+"):"","xxx-of-option"===e["::type"]||n.startsWith("::OPTION")?q(Xs(),a):a.endsWith("*")?q(Qs(),a.substring(0,a.length-1)):q(Gs(),a),t.startsWith("xxx-")?"":t,Oo(pe()(r||""))):"",Object.keys(e).map(t=>q(Js(),["::description","::type","::props"].includes(t)?"":q(Ys(),this.generateTree("array"===e[t]["::type"]?e[t]["::props"]:e[t],e[t]["::type"],t,e[t]["::description"],o+1)))));var s=e.split("~|~"),c=s[0].replace("{","").substring(0,4).toLowerCase();return q(Ks(),i,a.endsWith("*")?q(Vs(),a.substring(0,a.length-1)):a,c,"array"===t?"[".concat(s[0],"]"):s[0],s[1],"array"===t?r:"",s[2]?q(Ws(),s[2]):"",s[3]?q(Hs(),s[3]):"",s[4]?q($s(),s[4]):"",s[5]?q(Us(),s[5]):"",s[6]?q(qs(),Oo(pe()(s[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 Wc(){var e=el(['<div id="tag--','" class="regular-font section-gap--read-mode observe-me" style="border-top:1px solid var(--primary-color);"><div class="title tag">','</div><div class="regular-font-size">','</div></div><div class="regular-font section-gap--read-mode">',"</div>"]);return Wc=function(){return e},e}function Vc(){var e=el(["",""]);return Vc=function(){return e},e}function Kc(){var e=el(['<div class="m-markdown">',"</div>"]);return Kc=function(){return e},e}function Yc(){var e=el(['<div class="mono-font regular-font-size" style="padding: 8px 0; color:var(--fg3)"><span class="regular-font upper method-fg ','">','</span> <span class="','">',"</span></div>"]);return Yc=function(){return e},e}function Jc(){var e=el(['<span class="upper ','">',"</span> ",""]);return Jc=function(){return e},e}function Gc(){var e=el(['<h2 class="','">',"</h2>",""]);return Gc=function(){return e},e}function Qc(){var e=el(['<div class="bold-text red-text">DEPRECATED</div>']);return Qc=function(){return e},e}function Xc(){var e=el(['<div class="divider"></div>']);return Xc=function(){return e},e}function Zc(){var e=el(["",'<div class="expanded-endpoint-body observe-me '," ",'" id="',"-",'">'," "," "," "," ",'<div class="expanded-req-resp-container"><api-request class="request-panel" method="','" , path="','" .parameters="','" .request_body="','" .api_keys="','" .servers="','" server-url="','" allow-try="','" accept="','" render-style="','" schema-style="','" active-schema-tab="','" schema-expand-level="','" schema-description-expanded="','"></api-request>','<api-response class="response-panel" .responses="','" render-style="','" schema-style="','" active-schema-tab="','" schema-expand-level="','" schema-description-expanded="','" selected-status="','"></api-response></div></div>']);return Zc=function(){return e},e}function el(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function tl(e){var t,n,r="";for(var o in e.responses)for(var i in e.responses[o].content)r="".concat(r+i,", ");r=r.replace(/,\s*$/,"");var a=this.resolvedSpec.securitySchemes.filter(e=>e.finalKeyValue)||[],s=e.xCodeSamples?Ai.call(this,e.xCodeSamples):"";return q(Zc(),"read"===this.renderStyle?q(Xc()):"",e.method,e.deprecated?"deprecated":"",e.method,e.path.replace(je,"-"),e.deprecated?q(Qc()):"",q(Gc(),e.deprecated?"gray-text":"",e.summary||q(Jc(),e.deprecated?" method-fg gray-text":e.method,e.method,e.path),e.summary?q(Yc(),e.deprecated?" gray-text":" bold-text ".concat(e.method),e.method,e.deprecated?"gray-text":"",e.path):""),e.description?q(Kc(),Oo(pe()(e.description||""))):"",ki.call(this,e.security),s,e.method,e.path,e.parameters,e.requestBody,a,e.servers,(null===(t=e.servers)||void 0===t?void 0:null===(n=t[0])||void 0===n?void 0:n.url)||this.selectedServer.computedUrl,this.allowTry,r,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,e.callbacks?Ri.call(this,e.callbacks):"",e.responses,this.renderStyle,this.schemaStyle,this.defaultSchemaTab,this.schemaExpandLevel,this.schemaDescriptionExpanded,Object.keys(e.responses||{})[0]||"")}function nl(){return q(Vc(),this.resolvedSpec.tags.map(e=>q(Wc(),e.name.replace(je,"-"),e.name,Oo("<div class='m-markdown regular-font'>".concat(pe()(e.description?e.description:""),"</div>")),e.paths.map(e=>tl.call(this,e)))))}function rl(){var e=ll(['<div class="regular-font section-gap--focused-mode">',"</div>"]);return rl=function(){return e},e}function ol(){var e=ll(['<div class="regular-font section-gap--focused-mode">',"</div>"]);return ol=function(){return e},e}function il(){var e=ll([""]);return il=function(){return e},e}function al(){var e=ll(["",""]);return al=function(){return e},e}function sl(){var e=ll(['<div class="m-markdown">',"</div>"]);return sl=function(){return e},e}function cl(){var e=ll(['<h1 id="tag--','">',"</h1>",""]);return cl=function(){return e},e}function ll(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ul(e){return q(cl(),e.name,e.name,e.description?q(sl(),Oo(pe()(e.description||""))):"")}function pl(){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<this.resolvedSpec.tags.length&&(n=this.resolvedSpec.tags[r],!(t=this.resolvedSpec.tags[r].paths.find(t=>"".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 q(al(),"overview"===e||"authentication"===e||"api-servers"===e?q(il()):e.startsWith("tag--")?q(ol(),ul.call(this,n)):q(rl(),tl.call(this,t)))}function fl(){var e=xl(['<div id="',"-",'" class="m-endpoint regular-font '," ",'">'," ","</div>"]);return fl=function(){return e},e}function dl(){var e=xl(['<div class="regular-font section-gap section-tag ','"><div class="section-tag-header" @click="','"><div id="','" class="sub-title tag">','</div></div><div class="section-tag-body"><div class="regular-font regular-font-size m-markdown" style="padding-bottom:12px">',"</div>","</div></div>"]);return dl=function(){return e},e}function hl(){var e=xl(["",""]);return hl=function(){return e},e}function vl(){var e=xl(['<div class="m-markdown">',"</div>"]);return vl=function(){return e},e}function ml(){var e=xl(['<div class="title">',"</div>"]);return ml=function(){return e},e}function gl(){var e=xl(['<div class="endpoint-body '," ",'"><div class="summary">'," "," "," ",'</div><div class="req-resp-container"><api-request class="request" method="','" , path="','" .parameters="','" .request_body="','" .api_keys="','" .servers="','" server-url="','" active-schema-tab="','" allow-try="','" accept="','" render-style="','" schema-style="','" schema-expand-level="','" schema-description-expanded="','">','</api-request><api-response class="response" .responses="','" active-schema-tab="','" render-style="','" schema-style="','" schema-expand-level="','" schema-description-expanded="','" selected-status="','"></api-response></div></div>']);return gl=function(){return e},e}function yl(){var e=xl(['<span style="font-size:var(--font-size-small); text-transform:uppercase; font-weight:bold; color:var(--red); margin:2px 0 0 5px;">deprecated</span>']);return yl=function(){return e},e}function bl(){var e=xl(['<div @click="','" class="endpoint-head '," "," ",'"><div class="method '," ",'">','</div><div class="path ','">',"</div>",'<div class="only-large-screen" style="min-width:60px; flex:1"></div><div class="m-markdown-small descr">',"</div></div>"]);return bl=function(){return e},e}function xl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function wl(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(je,"-"));window.location.hash!==t&&window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0]).concat(t))}this.requestUpdate()}function kl(e){return q(bl(),t=>{wl.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?q(yl()):"",Oo(pe()(e.summary||"")))}function Sl(e){var t="";for(var n in e.responses)for(var r in e.responses[n].content)t="".concat(t+r,", ");t=t.replace(/,\s*$/,"");var o=this.resolvedSpec.securitySchemes.filter(e=>e.finalKeyValue)||[],i=e.xCodeSamples?Ai(e.xCodeSamples):"";return q(gl(),e.method,e.deprecated?"deprecated":"",e.summary&&e.summary!==e.description?q(ml(),e.summary):"",e.description?q(vl(),Oo(pe()(e.description))):"",ki.call(this,e.security),i,e.method,e.path,e.parameters,e.requestBody,o,e.servers,e.servers&&e.servers.length>0?e.servers[0].url:this.selectedServer.computedUrl,this.defaultSchemaTab,this.allowTry,t,this.renderStyle,this.schemaStyle,this.schemaExpandLevel,this.schemaDescriptionExpanded,e.callbacks?Ri.call(this,e.callbacks):"",e.responses,this.defaultSchemaTab,this.renderStyle,this.schemaStyle,this.schemaExpandLevel,this.schemaDescriptionExpanded,Object.keys(e.responses||{})[0]||"")}function Ol(){return q(hl(),this.resolvedSpec.tags.map(e=>q(dl(),e.expanded?"expanded":"collapsed",()=>{e.expanded=!e.expanded,this.requestUpdate()},e.name.replace(je,"-"),e.name,Oo(pe()(e.description||"")),e.paths.filter(e=>!this.matchPaths||Re(this.matchPaths,e)).map(e=>q(fl(),e.method,e.path.replace(je,"-"),e.method,e.expanded?"expanded":"collapsed",kl.call(this,e),e.expanded?Sl.call(this,e):"")))))}function _l(){var e=Ml(["- ",""]);return _l=function(){return e},e}function El(){var e=Ml(['<input type="radio" name="api_server" value="','" @change="','" .checked="','" style="margin:4px 0"> '," ","<br>"]);return El=function(){return e},e}function Al(){var e=Ml(["",""]);return Al=function(){return e},e}function Tl(){var e=Ml(['<div id="api-servers" style="margin-top:24px; margin-bottom:24px;" class="regular-font observe-me ','"><div class="sub-title">API SERVER:</div><div class="mono-font" style="margin: 12px 0; font-size:calc(var(--font-size-small) + 1px);">','<div class="table-title primary-text">SELECTED: ',"</div></div>","</div>"]);return Tl=function(){return e},e}function Cl(){var e=Ml(['<tr><td colspan="2" style="border:none"><span class="m-markdown-small">',"</span></td></tr>"]);return Cl=function(){return e},e}function jl(){var e=Ml(['<input type="text" spellcheck="false" data-var="','" value="','" @input="','">']);return jl=function(){return e},e}function Pl(){var e=Ml(['<option label="','" value="','">']);return Pl=function(){return e},e}function Il(){var e=Ml(['<option selected="selected" label="','" value="','">']);return Il=function(){return e},e}function Rl(){var e=Ml(['<select data-var="','" @input="','">',"</select>"]);return Rl=function(){return e},e}function Ll(){var e=Ml(['<tr><td style="vertical-align: middle;">',"</td><td>","</td></tr>",""]);return Ll=function(){return e},e}function Nl(){var e=Ml(['<div class="table-title">SERVER VARIABLES</div><table class="m-table">',"</table>"]);return Nl=function(){return e},e}function Ml(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Bl(e,t){e&&e.target.checked&&(this.selectedServer=t,this.requestUpdate())}function Dl(e,t){var n=[...e.currentTarget.closest("table").querySelectorAll("input, select")],r=t.url;n.forEach(e=>{var t=new RegExp("{".concat(e.dataset.var,"}"),"g");r=r.replace(t,e.value)}),t.computedUrl=r,this.requestUpdate()}function Fl(){return this.selectedServer&&this.selectedServer.variables?q(Nl(),Object.entries(this.selectedServer.variables).map(e=>q(Ll(),e[0],e[1].enum?q(Rl(),e[0],e=>{Dl.call(this,e,this.selectedServer)},Object.entries(e[1].enum).map(t=>e[1].default===t[1]?q(Il(),t[1],t[1]):q(Pl(),t[1],t[1]))):q(jl(),e[0],e[1].default,e=>{Dl.call(this,e,this.selectedServer)}),e[1].description?q(Cl(),Oo(pe()(e[1].description))):""))):""}function zl(){return q(Tl(),"read focused".includes(this.renderStyle)?"section-gap--read-mode":"section-gap",this.resolvedSpec.servers&&0!==this.resolvedSpec.servers.length?q(Al(),this.resolvedSpec.servers.map(e=>q(El(),e.url,t=>{Bl.call(this,t,e)},this.selectedServer.url===e.url,e.url,e.description?q(_l(),e.description):""))):"",this.selectedServer.computedUrl,Fl.call(this))}function ql(){var e=Vl(['<div id="cmp-','" class="regular-font section-gap--read-mode observe-me" style="border-top:1px solid var(--primary-color);"><div class="title tag">','</div><div class="regular-font-size">','</div></div><div class="regular-font section-gap--read-mode">',"</div>"]);return ql=function(){return e},e}function Ul(){var e=Vl(["",""]);return Ul=function(){return e},e}function $l(){var e=Vl(['<div class="mono-font regular-font-size" style="padding: 8px 0; color:var(--fg2)"><json-tree class="border tree" render-style="','" .data="','" islast="true"></json-tree></div>']);return $l=function(){return e},e}function Hl(){var e=Vl(["<h1>","</h1>",""]);return Hl=function(){return e},e}function Wl(){var e=Vl(['<div class="divider"></div><div class="expanded-endpoint-body observe-me ','" id="cmp-','">',"</div>"]);return Wl=function(){return e},e}function Vl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Kl(e){return q(Wl(),e.name,e.id,q(Hl(),e.name,e.component?q($l(),this.renderStyle,e.component):""))}function Yl(){return q(Ul(),this.resolvedSpec.components.map(e=>q(ql(),e.name.toLowerCase(),e.name,Oo("<div class='m-markdown regular-font'>".concat(pe()(e.description?e.description:""),"</div>")),e.subComponents.map(e=>Kl.call(this,e)))))}function Jl(){var e=Zl(['<div><span class="tiny-title" style="display:inline-block; width:50px">URL: </span><span class="regular-font">',"</span></div>"]);return Jl=function(){return e},e}function Gl(){var e=Zl(['<div><span class="tiny-title" style="display:inline-block; width:50px">Name: </span><span class="regular-font">',"</span></div>"]);return Gl=function(){return e},e}function Ql(){var e=Zl(['<div><span class="tiny-title" style="display:inline-block; width:50px">Email: </span><span class="regular-font">',"</span></div>"]);return Ql=function(){return e},e}function Xl(){var e=Zl(['<div style="font-size:calc(var(--font-size-regular) - 1px); margin-top:8px; line-height: 18px;">'," "," ","</div>"]);return Xl=function(){return e},e}function Zl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function eu(){return q(Xl(),this.resolvedSpec.info.contact.email?q(Ql(),this.resolvedSpec.info.contact.email):"",this.resolvedSpec.info.contact.name?q(Gl(),this.resolvedSpec.info.contact.name):"",this.resolvedSpec.info.contact.url?q(Jl(),this.resolvedSpec.info.contact.url):"")}function tu(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['<div style="','"><svg xmlns="http://www.w3.org/2000/svg" viewBox="1 0 511 512"><path d="M351 411a202 202 0 01-350 0 203 203 0 01333-24 203 203 0 0117 24zm0 0" fill="#adc165"/><path d="M334 387a202 202 0 01-216-69 202 202 0 01216 69zm78 32H85a8 8 0 01-8-8 8 8 0 018-8h327a8 8 0 017 8 8 8 0 01-7 8zm0 0" fill="#99aa52"/><path d="M374 338l-5 30a202 202 0 01-248-248 203 203 0 01253 218zm0 0" fill="#ffc73b"/><path d="M374 338a202 202 0 01-100-197 203 203 0 01100 197zm38 81l-6-2-231-231a8 8 0 0111-11l231 230a8 8 0 01-5 14zm0 0" fill="#efb025"/><path d="M311 175c0 75 40 140 101 175a202 202 0 000-350 202 202 0 00-101 175zm0 0" fill="#ff903e"/><path d="M412 419a8 8 0 01-8-8V85a8 8 0 0115 0v326a8 8 0 01-7 8zm0 0" fill="#e87425"/></svg></div>']);return tu=function(){return e},e}function nu(){var e=au(['<input id="search" class="header-input" type="text" placeholder="search" @change="','" style="max-width:130px;margin-left:10px;" spellcheck="false"><div style="margin: 6px 5px 0 -24px; font-size:var(--title-font-size); cursor:pointer;">&#x2b90;</div>']);return nu=function(){return e},e}function ru(){var e=au(['<input id="spec-file" type="file" style="display:none" value="','" @change="','" spellcheck="false"> <button class="m-btn primary only-large-screen" style="margin-left:10px;" @click="','">LOCAL JSON FILE</button>']);return ru=function(){return e},e}function ou(){var e=au(['<input id="spec-url" type="text" style="font-size:var(--font-size-small)" class="header-input mono-font" placeholder="Spec URL" value="','" @change="','" spellcheck="false"><div style="margin: 6px 5px 0 -24px; font-size:var(--title-font-size); cursor:pointer;">&#x2b90;</div>']);return ou=function(){return e},e}function iu(){var e=au(['<header class="row header regular-font" style="padding:8px 4px 8px 4px;min-height:48px;"><div class="only-large-screen-flex" style="align-items: center;"><slot name="logo" class="logo">','\x3c!-- m-logo style="height:36px;width:36px;margin-left:5px"></m-logo --\x3e</slot><div class="header-title">','</div></div><div style="margin: 0px 8px;display:flex;flex:1">'," ",'<slot name="header"></slot>',"</div></header>"]);return iu=function(){return e},e}function au(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function su(){return q(iu(),(e="height:36px;width:36px;margin-left:5px",q(tu(),e)),this.headingText,"false"===this.allowSpecUrlLoad?"":q(ou(),this.specUrl||"",this.onSepcUrlChange),"false"===this.allowSpecFileLoad?"":q(ru(),this.specFile||"",this.onSepcFileChange,this.onFileLoadClick),"false"===this.allowSearch||"read focused".includes(this.renderStyle)?"":q(nu(),this.onSearchChange));var e}function cu(){var e=_u(['<div class="nav-bar-path" id="link-cmp-','" @click="','"><span>',"</span></div>"]);return cu=function(){return e},e}function lu(){var e=_u(['<div class="nav-bar-tag" id="link-cmp-','" @click="','">',"</div>",""]);return lu=function(){return e},e}function uu(){var e=_u(['<div id="link-components" class="nav-bar-section">Components</div>',""]);return uu=function(){return e},e}function pu(){var e=_u(['<div class="nav-bar-path" data-content-id="',"-",'" id="link-',"-",'" @click="','"><span style="','">',"</span></div>"]);return pu=function(){return e},e}function fu(){var e=_u(['\x3c!-- Tag --\x3e<div class="nav-bar-tag" id="link-tag--','" data-content-id="tag--','" @click="','">',"</div>\x3c!-- Path (endpoints) --\x3e ",""]);return fu=function(){return e},e}function du(){var e=_u(['<div class="nav-bar-info" id="link-authentication" data-content-id="authentication" @click="','">Authentication</div>']);return du=function(){return e},e}function hu(){var e=_u(['<div class="nav-bar-info" id="link-api-servers" data-content-id="api-servers" @click="','">API Servers</div>']);return hu=function(){return e},e}function vu(){var e=_u(['<div class="nav-bar-info" id="link-overview" data-content-id="overview" @click="','">Overview</div>']);return vu=function(){return e},e}function mu(){var e=_u(['<hr style="border-top: 1px solid var(--nav-hover-bg-color); border-width:1px 0 0 0; margin: 15px 0 0 0">']);return mu=function(){return e},e}function gu(){var e=_u(['<div class="nav-bar-h','" id="link-overview--','" data-content-id="overview--','" @click="','">',"</div>"]);return gu=function(){return e},e}function yu(){var e=_u(['<div class="nav-bar-info" id="link-overview" data-content-id="overview" @click="','">Overview</div>']);return yu=function(){return e},e}function bu(){var e=_u([""," "," ",""]);return bu=function(){return e},e}function xu(){var e=_u(["",""]);return xu=function(){return e},e}function wu(){var e=_u(['<nav class="nav-scroll">'," "," ",' <span id="link-paths" class="nav-bar-section">Operations</span> ',"\x3c!-- Components --\x3e ","</nav>"]);return wu=function(){return e},e}function ku(){var e=_u(['<div @click="','" style="margin-left:5px; cursor:pointer; align-self:center; color:var(--nav-text-color)" class="small-font-size primary-text bold-text">CLEAR</div>']);return ku=function(){return e},e}function Su(){var e=_u(['<div style="position:sticky; top:0; display:flex; flex-direction:row; align-items: stretch; padding:24px; border-bottom: 1px solid var(--nav-hover-bg-color)"><div style="display:flex; flex:1"><input id="nav-bar-search" style="width:100%; padding-right:20px; color:var(--nav-hover-text-color); border-color:var(--nav-accent-color); background-color:var(--nav-hover-bg-color)" type="text" placeholder="search" @change="','" spellcheck="false"><div style="margin: 6px 5px 0 -24px; font-size:var(--title-font-size); cursor:pointer;">&#x2b90;</div></div>',"</div>"]);return Su=function(){return e},e}function Ou(){var e=_u(['<aside class="nav-bar"><div style="padding:16px 30px 0 16px;"><slot name="nav-logo" class="logo"></slot></div>'," ","</aside>"]);return Ou=function(){return e},e}function _u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Eu(){return q(Ou(),"false"===this.allowSearch?"":q(Su(),this.onSearchChange,this.matchPaths?q(ku(),this.onClearSearch):""),q(wu(),"false"!==this.showInfo&&this.resolvedSpec.info?q(xu(),"true"===this.infoDescriptionHeadingsInNavBar?q(bu(),this.resolvedSpec.infoDescriptionHeaders.length>0?q(yu(),e=>this.scrollToEl(e)):"",this.resolvedSpec.infoDescriptionHeaders.map(e=>q(gu(),e.depth,(new pe.a.Slugger).slug(e.text),(new pe.a.Slugger).slug(e.text),e=>this.scrollToEl(e),e.text)),this.resolvedSpec.infoDescriptionHeaders.length>0?q(mu()):""):q(vu(),e=>this.scrollToEl(e))):"","false"===this.allowTry||"false"===this.allowServerSelection?"":q(hu(),e=>this.scrollToEl(e)),"false"!==this.allowAuthentication&&this.resolvedSpec.securitySchemes?q(du(),e=>this.scrollToEl(e)):"",this.resolvedSpec.tags.map(e=>q(fu(),e.name.replace(je,"-"),e.name.replace(je,"-"),e=>this.scrollToEl(e),e.name,e.paths.filter(e=>!this.matchPaths||Re(this.matchPaths,e)).map(e=>q(pu(),e.method,e.path,e.method,e.path.replace(je,"-"),e=>this.scrollToEl(e),e.deprecated?"filter:opacity(0.5)":"",e.summary||e.path)))),"false"!==this.showComponents&&this.resolvedSpec.components?q(uu(),this.resolvedSpec.components.map(e=>q(lu(),e.name.toLowerCase(),e=>this.scrollToEl(e),e.name,e.subComponents.map(e=>q(cu(),e.id,e=>this.scrollToEl(e),e.name))))):""))}customElements.define("api-response",class extends le{constructor(){super(),this.selectedStatus="",this.headersForEachRespStatus={},this.mimeResponsesForEachStatus={},this.activeSchemaTab="model"}static get properties(){return{callback:{type:String},responses:{type:Object},parser:{type:Object},schemaStyle:{type:String,attribute:"schema-style"},renderStyle:{type:String,attribute:"render-style"},selectedStatus:{type:String,attribute:"selected-status"},selectedMimeType:{type:String},activeSchemaTab:{type:String,attribute:"active-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"}}}static get styles(){return[ve,be,Ae,we,ge,Ni,se($c())]}render(){return q(Uc(),this.renderStyle,"true"===this.callback?"tiny-title":"req-res-title","true"===this.callback?"CALLBACK RESPONSE":"RESPONSE",this.responseTemplate())}responseTemplate(){if(!this.responses)return"";for(var e in this.responses){this.selectedStatus||(this.selectedStatus=e);var t={};for(var n in this.responses[e].content){var r=this.responses[e].content[n];this.selectedMimeType||(this.selectedMimeType=n);var o=zi(r.schema,{}),i=qi(r.examples||"",r.example||"",r.schema,n,!0,n.includes("json")?"json":"text");t[n]={description:this.responses[e].description,examples:i,selectedExample:i[0]?i[0].exampleId:"",schemaTree:o}}var a=[];for(var s in this.responses[e].headers)a.push(zc({name:s},this.responses[e].headers[s]));this.headersForEachRespStatus[e]=a,this.mimeResponsesForEachStatus[e]=t}return q(Dc(),Object.keys(this.responses).length>1?q(Bc(),Object.keys(this.responses).map(e=>q(Mc(),()=>{this.selectedStatus=e,this.responses[e].content&&Object.keys(this.responses[e].content)[0]?this.selectedMimeType=Object.keys(this.responses[e].content)[0]:this.selectedMimeType=void 0},this.selectedStatus===e?"primary":"",e))):q(Nc(),Object.keys(this.responses)[0]),Object.keys(this.responses).map(e=>q(Lc(),e===this.selectedStatus?"block":"none",Oo(pe()(this.responses[e].description||"")),this.headersForEachRespStatus[e]&&this.headersForEachRespStatus[e].length>0?q(Rc(),this.responseHeaderListTemplate(this.headersForEachRespStatus[e])):"",0===Object.keys(this.mimeResponsesForEachStatus[e]).length?"":q(Ic(),e=>{"button"===e.target.tagName.toLowerCase()&&(this.activeSchemaTab=e.target.dataset.tab)},"model"===this.activeSchemaTab?"active":"","example"===this.activeSchemaTab?"active":"",1===Object.keys(this.mimeResponsesForEachStatus[e]).length?q(Pc(),Object.keys(this.mimeResponsesForEachStatus[e])[0]):q(jc(),this.mimeTypeDropdownTemplate(Object.keys(this.mimeResponsesForEachStatus[e]))),"example"===this.activeSchemaTab?q(Cc(),this.mimeExampleTemplate(this.mimeResponsesForEachStatus[e][this.selectedMimeType])):q(Tc(),this.mimeSchemaTemplate(this.mimeResponsesForEachStatus[e][this.selectedMimeType]))))))}responseHeaderListTemplate(e){return q(Ac(),e.map(e=>q(Ec(),e.name,e.schema.type?e.schema.type:"",Oo(pe()(e.description||"")),e.schema.example?e.schema.example:"")))}mimeTypeDropdownTemplate(e){return q(_c(),e=>{this.selectedMimeType=e.target.value},e.map(e=>q(Oc(),e,e===this.selectedMimeType,e)))}onSelectExample(e){[...e.target.closest(".example-panel").querySelectorAll(".example")].forEach(t=>{t.style.display=t.dataset.example===e.target.value?"block":"none"})}mimeExampleTemplate(e){return e?q(kc(),1===e.examples.length?q(wc(),"json"===e.examples[0].exampleFormat?q(xc(),this.renderStyle,e.examples[0].exampleValue,"read"===this.renderStyle?"border pad-8-16":"border-top pad-top-8"):q(bc(),"read"===this.renderStyle?"border pad-8-16":"border-top pad-top-8",e.examples[0].exampleValue)):q(yc(),"read"===this.renderStyle?"border pad-8-16":"border-top pad-top-8",e=>this.onSelectExample(e),e.examples.map(t=>q(gc(),t.exampleId,t.exampleId===e.selectedExample,t.exampleSummary.length>80?t.exampleId:t.exampleSummary)),e.examples.map(t=>q(mc(),t.exampleId,t.exampleId===e.selectedExample?"block":"none",t.exampleSummary&&t.exampleSummary.length>80?q(vc(),t.exampleSummary):"",t.exampleDescription?q(hc(),Oo(pe()(t.exampleDescription||""))):"","json"===t.exampleFormat?q(dc(),this.renderStyle,t.exampleValue):q(fc(),t.exampleValue))))):q(Sc(),"read"===this.renderStyle?"read example-panel border pad-8-16":"example-panel border-top")}mimeSchemaTemplate(e){return e?q(uc(),"table"===this.schemaStyle?q(lc(),"read"===this.renderStyle?"border pad-8-16":"border-top",this.renderStyle,e.schemaTree,this.schemaExpandLevel,this.schemaDescriptionExpanded):q(cc(),"read"===this.renderStyle?"border pad-8-16":"border-top",this.renderStyle,e.schemaTree,this.schemaExpandLevel,this.schemaDescriptionExpanded)):q(pc(),"read"===this.renderStyle?"border pad-8-16":"border-top")}});var Au={color:{inputReverseFg:"#fff",inputReverseBg:"#333",headerBg:"#444",getRgb(e){if(0===e.indexOf("#")&&(e=e.slice(1,7)),3!==e.length&&4!==e.length||(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return{r:parseInt(e.slice(0,2),16),g:parseInt(e.slice(2,4),16),b:parseInt(e.slice(4,6),16)}},invert(e){var t=this.getRgb(e);return.299*t.r+.587*t.g+.114*t.b>=135?"#000":"#fff"},opacity(e,t){var n=this.getRgb(e);return"rgba(".concat(n.r,", ").concat(n.g,", ").concat(n.b,", ").concat(t,")")},brightness(e,t){var n=this.getRgb(e);return n.r+=t,n.g+=t,n.b+=t,n.r>255?n.r=255:n.r<0&&(n.r=0),n.g>255?n.g=255:n.g<0&&(n.g=0),n.b>255?n.b=255:n.b<0&&(n.b=0),"#".concat(n.r.toString(16).padStart(2,"0")).concat(n.g.toString(16).padStart(2,"0")).concat(n.b.toString(16).padStart(2,"0"))}}};function Tu(e){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3}|[A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/i.test(e)}function Cu(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["<style>:host {\n\n /* Common Styles - irrespective of themes */ \n --layout: ",";\n --font-mono: ",";\n --font-regular: ",";\n --nav-item-padding: ",";\n --resp-area-height: ",";\n --font-size-small: ",";\n --font-size-mono: ",";\n --font-size-regular: ",";\n\n /* Theme specific styles */ \n --bg:",";\n --bg2:",";\n --bg3:",";\n --fg:",";\n --fg2:",";\n --fg3:",";\n --light-fg:",";\n --selection-bg:",";\n --selection-fg:",";\n \n /* Border Colors */\n --border-color:",";\n --light-border-color:",";\n --code-border-color:",";\n\n --code-bg:",";\n --code-fg:",";\n --inline-code-fg:",";\n --input-bg:",";\n --placeholder-color:",";\n --hover-color:",";\n --red:",";\n --light-red:",";\n --green:",";\n --light-green:",";\n --blue:",";\n --light-blue:",";\n --orange:",";\n --light-orange:",";\n --yellow:",";\n --light-yellow:",";\n --purple:",";\n --brown:",";\n\n /* Header Color */\n --header-bg:",";\n --header-fg:",";\n --header-color-darker:",";\n --header-color-border:",";\n\n /* Nav Colors */ \n --nav-bg-color:",";\n --nav-bg-image: url(",");\n --nav-bg-image-size: ",";\n --nav-bg-image-repeat: ",";\n --nav-text-color:",";\n --nav-hover-bg-color:",";\n --nav-hover-text-color:",";\n --nav-accent-color:",";\n\n /* Primary Colors */ \n --primary-color:",";\n --primary-color-invert:",";\n --primary-color-trans:",";\n }</style>"]);return Cu=function(){return e},e}function ju(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=t.primaryColor?t.primaryColor:"#ff591e",o=Au.color.invert(r),i=Au.color.opacity(r,"0.8");if("dark"===e){var a=t.bg1?t.bg1:"#333",s=t.fg1?t.fg1:"#bbb",c=t.bg2?t.bg2:Au.color.brightness(a,5),l=t.bg3?t.bg3:Au.color.brightness(a,17),u=t.fg2?t.fg2:Au.color.brightness(s,-15),p=t.fg3?t.fg3:Au.color.brightness(s,-20),f=t.fg3?t.fg3:Au.color.brightness(s,-65),d=t.inlineCodeFg?t.inlineCodeFg:"#cdcdcd",h=t.headerColor?t.headerColor:Au.color.brightness(a,10),v=t.navBgColor?t.navBgColor:Au.color.brightness(a,10);n={bg1:a,bg2:c,bg3:l,fg1:s,fg2:u,fg3:p,lightFg:f,inlineCodeFg:d,primaryColor:r,primaryColorTrans:i,primaryColorInvert:o,selectionBg:"#bbb",selectionFg:"#eee",navBgColor:v,navBgImage:t.navBgImage||"",navBgImageSize:t.navBgImageSize,navBgImageRepeat:t.navBgImageRepeat,navTextColor:t.navTextColor?t.navTextColor:Au.color.opacity(Au.color.invert(v),"0.65"),navHoverBgColor:t.navHoverBgColor?t.navHoverBgColor:Au.color.brightness(v,-15),navHoverTextColor:t.navHoverTextColor?t.navHoverTextColor:Au.color.invert(v),navAccentColor:t.navAccentColor?t.navAccentColor:r,headerColor:h,headerColorInvert:Au.color.invert(h),headerColorDarker:Au.color.brightness(h,-20),headerColorBorder:Au.color.brightness(h,10),borderColor:t.borderColor?t.borderColor:Au.color.brightness(a,20),lightBorderColor:t.lightBorderColor?t.lightBorderColor:Au.color.brightness(a,15),codeBorderColor:t.codeBorderColor?t.codeBorderColor:Au.color.brightness(a,30),codeBg:t.codeBg?t.codeBg:Au.color.brightness(a,-10),codeFg:t.codeFg?t.codeFg:"#999",inputBg:t.inputBg?t.inputBg:Au.color.brightness(a,-5),placeHolder:t.placeHolder?t.placeHolder:Au.color.opacity(s,"0.3"),hoverColor:t.hoverColor?t.hoverColor:Au.color.brightness(a,-10),red:t.red?t.red:"#F06560",lightRed:t.lightRed?t.lightRed:Au.color.brightness(a,-10),green:t.green?t.green:"#99CC00",lightGreen:t.lightGreen?t.lightGreen:Au.color.brightness(a,-10),blue:t.blue?t.blue:"#47AFE8",lightBlue:t.lightBlue?t.lightBlue:Au.color.brightness(a,-10),orange:t.orange?t.orange:"#FF9900",lightOrange:t.lightOrange?t.lightOrange:Au.color.brightness(a,-10),yellow:t.yellow?t.yellow:"#fc0",lightYellow:t.lightYellow?t.lightYellow:Au.color.brightness(a,-10),purple:t.purple?t.purple:"#786FF1",brown:t.brown?t.brown:"#D4AC0D"}}else{var m=t.bg1?t.bg1:"#ffffff",g=t.fg1?t.fg1:"#444444",y=t.bg2?t.bg2:Au.color.brightness(m,-5),b=t.bg3?t.bg3:Au.color.brightness(m,-15),x=t.fg2?t.fg2:Au.color.brightness(g,17),w=t.fg3?t.fg3:Au.color.brightness(g,30),k=t.fg3?t.fg3:Au.color.brightness(g,70),S=t.inlineCodeFg?t.inlineCodeFg:"brown",O=t.headerColor?t.headerColor:Au.color.brightness(m,-180),_=t.navBgColor?t.navBgColor:Au.color.brightness(m,-180);n={bg1:m,bg2:y,bg3:b,fg1:g,fg2:x,fg3:w,lightFg:k,inlineCodeFg:S,primaryColor:r,primaryColorTrans:i,primaryColorInvert:o,selectionBg:"#444",selectionFg:"#eee",navBgColor:_,navBgImage:t.navBgImage||"",navBgImageSize:t.navBgImageSize||"",navBgImageRepeat:t.navBgImageRepeat,navTextColor:t.navTextColor?t.navTextColor:Au.color.opacity(Au.color.invert(_),"0.65"),navHoverBgColor:t.navHoverBgColor?t.navHoverBgColor:Au.color.brightness(_,-15),navHoverTextColor:t.navHoverTextColor?t.navHoverTextColor:Au.color.invert(_),navAccentColor:t.navAccentColor?t.navAccentColor:r,headerColor:O,headerColorInvert:Au.color.invert(O),headerColorDarker:Au.color.brightness(O,-20),headerColorBorder:Au.color.brightness(O,10),borderColor:t.borderColor?t.borderColor:Au.color.brightness(m,-38),lightBorderColor:t.lightBorderColor?t.lightBorderColor:Au.color.brightness(m,-23),codeBorderColor:t.codeBorderColor?t.codeBorderColor:"#transparent",codeBg:t.codeBg?t.codeBg:"#555",codeFg:t.codeFg?t.codeFg:"#ccc",inputBg:t.inputBg?t.inputBg:Au.color.brightness(m,10),placeHolder:t.placeHolder?t.placeHolder:Au.color.brightness(k,20),hoverColor:t.hoverColor?t.hoverColor:Au.color.brightness(m,-5),red:t.red?t.red:"#F06560",lightRed:t.lightRed?t.lightRed:"#fff0f0",green:t.green?t.green:"#48AD1A",lightGreen:t.lightGreen?t.lightGreen:"#fbfff0",blue:t.blue?t.blue:"#47AFE8",lightBlue:t.lightBlue?t.lightBlue:"#eff8fd",orange:t.orange?t.orange:"#FF9900",lightOrange:t.lightOrange?t.lightOrange:"#fff5e6",yellow:t.yellow?t.yellow:"#fc0",lightYellow:t.lightYellow?t.lightYellow:"#fff5cc",purple:t.purple?t.purple:"#786FF1",brown:t.brown?t.brown:"#D4AC0D"}}return q(Cu(),this.layout||"row",this.monoFont||'Monaco, "Andale Mono", "Roboto Mono", Consolas, monospace',this.regularFont||'rapidoc, "Open Sans", BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif',"relaxed"===this.navItemSpacing?"10px":"compact"===this.navItemSpacing?"5px 10px":"7px 10px",this.responseAreaHeight,"default"===this.fontSize?"12px":"large"===this.fontSize?"13px":"14px","default"===this.fontSize?"13px":"large"===this.fontSize?"14px":"15px","default"===this.fontSize?"14px":"large"===this.fontSize?"15px":"16px",n.bg1,n.bg2,n.bg3,n.fg1,n.fg2,n.fg3,n.lightFg,n.selectionBg,n.selectionFg,n.borderColor,n.lightBorderColor,n.codeBorderColor,n.codeBg,n.codeFg,n.inlineCodeFg,n.inputBg,n.placeHolder,n.hoverColor,n.red,n.lightRed,n.green,n.lightGreen,n.blue,n.lightBlue,n.orange,n.lightOrange,n.yellow,n.lightYellow,n.purple,n.brown,n.headerColor,n.headerColorInvert,n.headerColorDarker,n.headerColorBorder,n.navBgColor,n.navBgImage,n.navBgImageSize||"contain",n.navBgImageRepeat||"no-repeat",n.navTextColor,n.navHoverBgColor,n.navHoverTextColor,n.navAccentColor,n.primaryColor,n.primaryColorInvert,n.primaryColorTrans)}function Pu(){var e=Fu([""," "," ",'<div @click="','">',"</div>",""]);return Pu=function(){return e},e}function Iu(){var e=Fu(['<div style="text-align: center;margin: 16px;">Unable to load the Spec</div>']);return Iu=function(){return e},e}function Ru(){var e=Fu(['<div class="loader"></div>']);return Ru=function(){return e},e}function Lu(){var e=Fu(["","\x3c!-- Header --\x3e ",'<div class="body">\x3c!-- Side Nav --\x3e ','\x3c!-- Main Content --\x3e<main class="main-content regular-font"><slot></slot><div class="main-content-inner--','-mode">'," "," ",'</div><slot name="footer"></slot></main></div>']);return Lu=function(){return e},e}function Nu(){var e=Fu(["",""]);return Nu=function(){return e},e}function Mu(){var e=Fu(["",""]);return Mu=function(){return e},e}function Bu(){var e=Fu(['<span style="font-size:var(--font-size-small);font-weight:bold">',"</span>"]);return Bu=function(){return e},e}function Du(){var e=Fu(['<div id="overview" class="observe-me ','"><div style="font-size:32px">'," ","</div>"," "," ","</div>"]);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 zu(){return q(Du(),"read"===this.renderStyle?"section-gap--read-mode":"focused"===this.renderStyle?"section-gap--read-mode":"section-gap",this.resolvedSpec.info.title,this.resolvedSpec.info.version?q(Bu(),this.resolvedSpec.info.version):"",this.resolvedSpec.info.description?q(Mu(),Oo("<div class='m-markdown regular-font'>".concat(pe()(this.resolvedSpec.info.description,{renderer:(e=new pe.a.Renderer,e.heading=(e,t,n,r)=>"<h".concat(t,' class="observe-me" id="overview--').concat(r.slug(n),'">').concat(e,"</h").concat(t,">"),e)}),"</div>"))):"",this.resolvedSpec.info.termsOfService?q(Nu(),Oo("<div class='tiny-title' style=\"margin-top:8px\"> Terms: </div> <span class='m-markdown regular-font'>".concat(pe()(this.resolvedSpec.info.termsOfService),"</span>"))):"",this.resolvedSpec.info.contact?eu.call(this):"");var e}function qu(){var e={bg1:Tu(this.bgColor)?this.bgColor:"",fg1:Tu(this.textColor)?this.textColor:"",headerColor:Tu(this.headerColor)?this.headerColor:"",primaryColor:Tu(this.primaryColor)?this.primaryColor:"",navBgColor:Tu(this.navBgColor)?this.navBgColor:"",navBgImage:this.navBgImage||"",navBgImageSize:this.navBgImageSize,navBgImageRepeat:this.navBgImageRepeat,navTextColor:Tu(this.navTextColor)?this.navTextColor:"",navHoverBgColor:Tu(this.navHoverBgColor)?this.navHoverBgColor:"",navHoverTextColor:Tu(this.navHoverTextColor)?this.navHoverTextColor:"",navAccentColor:Tu(this.navAccentColor)?this.navAccentColor:""};return q(Lu(),"dark"===this.theme?ju.call(this,"dark",e):ju.call(this,"light",e),"false"===this.showHeader?"":su.call(this),"read"!==this.renderStyle&&"focused"!==this.renderStyle||!this.resolvedSpec?"":Eu.call(this),this.renderStyle,!0===this.loading?q(Ru()):"",!0===this.loadFailed?q(Iu()):"",this.resolvedSpec?q(Pu(),"false"!==this.showInfo&&this.resolvedSpec.info?"focused"===this.renderStyle?"overview"===this.selectedContentId?zu.call(this):"":zu.call(this):"","false"===this.allowTry||"false"===this.allowServerSelection?"":"focused"===this.renderStyle?"api-servers"===this.selectedContentId?zl.call(this):"":zl.call(this),"false"!==this.allowAuthentication&&this.resolvedSpec.securitySchemes?"focused"===this.renderStyle?"authentication"===this.selectedContentId?wi.call(this):"":wi.call(this):"",e=>{this.handleHref(e)},this.resolvedSpec.tags?"read"===this.renderStyle?nl.call(this):"focused"===this.renderStyle?pl.call(this):Ol.call(this):"","true"===this.showComponents?Yl.call(this):""):"")}function Uu(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 $u(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){Uu(i,r,o,a,s,"next",e)}function s(e){Uu(i,r,o,a,s,"throw",e)}a(void 0)})}}function Hu(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}([":host {\n --border-radius: 2px;\n\n display:flex;\n flex-direction: column;\n min-width:360px;\n width:100%;\n height:100%;\n margin:0;\n padding:0;\n overflow: hidden;\n letter-spacing:normal;\n color:var(--fg);\n background-color:var(--bg);\n font-family:var(--font-regular);\n }\n .body {\n display:flex;\n height:100%;\n width:100%;\n box-sizing: border-box;\n overflow:hidden;\n }\n\n .main-content { \n margin:0;\n padding: 0; \n display:block;\n flex:1;\n height:100%;\n overflow-y: auto;\n overflow-x: hidden;\n scrollbar-width: thin;\n scrollbar-color: var(--border-color) transparent;\n }\n\n .main-content-inner--view-mode {\n padding: 0 16px;\n }\n .main-content::-webkit-scrollbar {\n width: 8px;\n height: 8px;\n }\n .main-content::-webkit-scrollbar-track {\n background:transparent;\n }\n .main-content::-webkit-scrollbar-thumb {\n background-color: var(--border-color);\n }\n\n .section-gap.section-tag {\n border-bottom:1px solid var(--border-color);\n }\n .section-gap,\n .section-gap--focused-mode,\n .section-gap--read-mode { \n padding: 0px 4px; \n }\n .section-tag-header {\n position:relative;\n cursor: n-resize;\n padding: 12px 0;\n }\n .collapsed .section-tag-header:hover{\n cursor: s-resize;\n }\n\n .section-tag-header:hover{\n background-image: linear-gradient(to right, rgba(0,0,0,0), var(--border-color), rgba(0,0,0,0));\n }\n\n .section-tag-header:hover::after {\n position:absolute;\n margin-left:-24px;\n font-size:20px;\n top: calc(50% - 14px);\n color:var(--primary-color);\n content: '⬆'; \n }\n\n .collapsed .section-tag-header::after {\n position:absolute;\n margin-left:-24px;\n font-size:20px;\n top: calc(50% - 14px);\n color: var(--border-color);\n content: '⬇'; \n }\n .collapsed .section-tag-header:hover::after {\n color:var(--primary-color);\n }\n\n .collapsed .section-tag-body {\n display:none;\n }\n\n .logo {\n height:36px;\n width:36px;\n margin-left:5px; \n }\n .only-large-screen-flex,\n .only-large-screen{\n display:none;\n }\n .header-title{\n font-size:calc(var(--title-font-size) + 8px); \n padding:0 8px;\n }\n .tag.title {\n text-transform: uppercase;\n }\n .header{\n background-color:var(--header-bg);\n color:var(--header-fg);\n box-sizing:border-box;\n width:100%;\n }\n\n input.header-input{\n background:var(--header-color-darker);\n color:var(--header-fg);\n border:1px solid var(--header-color-border);\n flex:1; \n padding-right:24px;\n border-radius:3px;\n }\n input.header-input::placeholder {\n opacity:0.4;\n }\n .loader {\n margin: 16px auto 16px auto; \n border: 4px solid var(--bg3);\n border-radius: 50%;\n border-top: 4px solid var(--primary-color);\n width: 36px;\n height: 36px;\n animation: spin 2s linear infinite;\n }\n .expanded-endpoint-body{ \n position: relative;\n padding: 6px 0px; \n }\n .expanded-endpoint-body.deprecated{ filter:opacity(0.6); }\n .divider { border-top:2px solid var(--primary-color); width:100%; }\n\n .tooltip {\n cursor:pointer;\n border: 1px solid var(--border-color);\n border-left-width: 4px;\n margin-left:2px;\n }\n .tooltip-text {\n color: var(--fg2);\n background-color: var(--bg2);\n visibility: hidden;\n overflow-wrap: break-word;\n }\n .tooltip:hover{\n color: var(--primary-color);\n border-color: var(--primary-color);\n\n }\n .tooltip:hover .tooltip-text {\n visibility: visible;\n opacity: 1;\n }\n\n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n\n @media only screen and (min-width: 768px) {\n .nav-bar {\n width: 260px;\n display:flex;\n }\n .only-large-screen{\n display:block;\n }\n .only-large-screen-flex{\n display:flex;\n }\n .section-gap { \n padding: 0 24px; \n }\n .section-gap--focused-mode {\n padding: 24px; \n }\n .section-gap--read-mode { \n padding: 48px 24px 24px 24px; \n }\n .endpoint-body {\n position: relative;\n padding:36px 0 48px 0;\n }\n }\n\n @media only screen and (min-width: 1000px) {\n .nav-bar {\n width: ",";\n display:flex;\n }\n .section-gap--focused-mode { \n padding: 12px 100px 12px 100px; \n }\n .section-gap--read-mode { \n padding: 24px 100px 12px 100px; \n }\n }"]);return Hu=function(){return e},e}class Wu extends le{constructor(){super();var e={root:this.getRootNode().host,rootMargin:"-50px 0px -50px 0px",threshold:0};this.isIntersectionObserverActive=!0,this.intersectionObserver=new IntersectionObserver(e=>{this.onIntersect(e)},e)}static get properties(){return{headingText:{type:String,attribute:"heading-text"},gotoPath:{type:String,attribute:"goto-path"},specUrl:{type:String,attribute:"spec-url"},sortTags:{type:String,attribute:"sort-tags"},sortEndpointsBy:{type:String,attribute:"sort-endpoints-by"},specFile:{type:String,attribute:!1},layout:{type:String},renderStyle:{type:String,attribute:"render-style"},schemaStyle:{type:String,attribute:"schema-style"},defaultSchemaTab:{type:String,attribute:"default-schema-tab"},schemaExpandLevel:{type:Number,attribute:"schema-expand-level"},schemaDescriptionExpanded:{type:String,attribute:"schema-description-expanded"},responseAreaHeight:{type:String,attribute:"response-area-height"},apiKeyName:{type:String,attribute:"api-key-name"},apiKeyLocation:{type:String,attribute:"api-key-location"},apiKeyValue:{type:String,attribute:"api-key-value"},defaultApiServerUrl:{type:String,attribute:"default-api-server"},serverUrl:{type:String,attribute:"server-url"},oauthReceiver:{type:String,attribute:"oauth-receiver"},showHeader:{type:String,attribute:"show-header"},showInfo:{type:String,attribute:"show-info"},allowAuthentication:{type:String,attribute:"allow-authentication"},allowTry:{type:String,attribute:"allow-try"},allowSpecUrlLoad:{type:String,attribute:"allow-spec-url-load"},allowSpecFileLoad:{type:String,attribute:"allow-spec-file-load"},allowSearch:{type:String,attribute:"allow-search"},allowServerSelection:{type:String,attribute:"allow-server-selection"},showComponents:{type:String,attribute:"show-components"},theme:{type:String},bgColor:{type:String,attribute:"bg-color"},textColor:{type:String,attribute:"text-color"},headerColor:{type:String,attribute:"header-color"},primaryColor:{type:String,attribute:"primary-color"},fontSize:{type:String,attribute:"font-size"},regularFont:{type:String,attribute:"regular-font"},monoFont:{type:String,attribute:"mono-font"},navBgColor:{type:String,attribute:"nav-bg-color"},navBgImage:{type:String,attribute:"nav-bg-image"},navBgImageSize:{type:String,attribute:"nav-bg-image-size"},navBgImageRepeat:{type:String,attribute:"nav-bg-image-repeat"},navTextColor:{type:String,attribute:"nav-text-color"},navHoverBgColor:{type:String,attribute:"nav-hover-bg-color"},navHoverTextColor:{type:String,attribute:"nav-hover-text-color"},navAccentColor:{type:String,attribute:"nav-accent-color"},navItemSpacing:{type:String,attribute:"nav-item-spacing"},infoDescriptionHeadingsInNavBar:{type:String,attribute:"info-description-headings-in-navbar"},matchPaths:{type:String,attribute:"match-paths"},selectedContentId:{type:String}}}static get styles(){return[ve,ge,be,we,Se,_e,Ae,Ce,se(Hu(),ae("default"===this.fontSize?"300px":"large"===this.fontSize?"315px":"330px"))]}connectedCallback(){super.connectedCallback(),this.renderStyle&&"read, view, focused,".includes("".concat(this.renderStyle,","))||(this.renderStyle="view"),this.schemaStyle&&"tree, table,".includes("".concat(this.schemaStyle,","))||(this.schemaStyle="tree"),this.theme&&"light, dark,".includes("".concat(this.theme,","))||(this.theme="light"),this.defaultSchemaTab&&"example, model,".includes("".concat(this.defaultSchemaTab,","))||(this.defaultSchemaTab="model"),(!this.schemaExpandLevel||this.schemaExpandLevel<1)&&(this.schemaExpandLevel=99999),this.schemaDescriptionExpanded&&"true, false,".includes("".concat(this.schemaDescriptionExpanded,","))||(this.schemaDescriptionExpanded="false"),this.responseAreaHeight||(this.responseAreaHeight="300px"),this.allowTry&&"true, false,".includes("".concat(this.allowTry,","))||(this.allowTry="true"),this.apiKeyName||(this.apiKeyName=""),this.apiKeyValue||(this.apiKeyValue=""),this.oauthReceiver||(this.oauthReceiver="oauth-receiver.html"),this.sortTags&&"true, false,".includes("".concat(this.sortTags,","))||(this.sortTags="false"),this.sortEndpointsBy&&"method, path,".includes("".concat(this.sortEndpointsBy,","))||(this.sortEndpointsBy="path"),this.navItemSpacing&&"compact, relaxed, default,".includes("".concat(this.navItemSpacing,","))||(this.navItemSpacing="default"),this.fontSize&&"default, large, largest,".includes("".concat(this.fontSize,","))||(this.fontSize="default"),this.showInfo&&"true, false,".includes("".concat(this.showInfo,","))||(this.showInfo="true"),this.showComponents&&"true false".includes(this.showComponents)||(this.showComponents="false"),this.infoDescriptionHeadingsInNavBar&&"true, false,".includes("".concat(this.infoDescriptionHeadingsInNavBar,","))||(this.infoDescriptionHeadingsInNavBar="false"),pe.a.setOptions({highlight:(e,t)=>de.a.languages[t]?de.a.highlight(e,de.a.languages[t],t):e}),window.addEventListener("hashchange",()=>{this.renderStyle,this.scrollTo(window.location.hash.substring(1))},!0)}disconnectedCallback(){this.intersectionObserver&&this.intersectionObserver.disconnect(),super.disconnectedCallback()}infoDescriptionHeadingRenderer(){var e=new pe.a.Renderer;return e.heading=(e,t,n,r)=>"<h".concat(t,' class="observe-me" id="').concat(r.slug(n),'">').concat(e,"</h").concat(t,">"),e}render(){return qu.call(this)}observeExpandedContent(){this.shadowRoot.querySelectorAll(".observe-me").forEach(e=>{this.intersectionObserver.observe(e)})}attributeChangedCallback(e,t,n){var r=this;if("spec-url"===e&&t!==n&&window.setTimeout($u(function*(){yield r.loadSpec(n),r.gotoPath&&r.scrollTo(r.gotoPath.replace(je,"-").toLowerCase())}),0),"render-style"===e&&("read"===n?window.setTimeout(()=>{this.observeExpandedContent()},100):this.intersectionObserver.disconnect()),"api-key-name"===e||"api-key-location"===e||"api-key-value"===e){var o=!1,i="",a="",s="";if("api-key-name"===e?this.getAttribute("api-key-location")&&this.getAttribute("api-key-value")&&(i=n,a=this.getAttribute("api-key-location"),s=this.getAttribute("api-key-value"),o=!0):"api-key-location"===e?this.getAttribute("api-key-name")&&this.getAttribute("api-key-value")&&(a=n,i=this.getAttribute("api-key-name"),s=this.getAttribute("api-key-value"),o=!0):"api-key-value"===e&&this.getAttribute("api-key-name")&&this.getAttribute("api-key-location")&&(s=n,a=this.getAttribute("api-key-location"),i=this.getAttribute("api-key-name"),o=!0),o&&this.resolvedSpec){var c=this.resolvedSpec.securitySchemes.find(e=>"_rapidoc_api_key"===e.apiKeyId);c?(c.name=i,c.in=a,c.value=s,c.finalKeyValue=s):this.resolvedSpec.securitySchemes.push({apiKeyId:"_rapidoc_api_key",description:"api-key provided in rapidoc element attributes",type:"apiKey",name:i,in:a,value:s,finalKeyValue:s}),this.requestUpdate()}}super.attributeChangedCallback(e,t,n)}onSepcUrlChange(){this.setAttribute("spec-url",this.shadowRoot.getElementById("spec-url").value)}onSepcFileChange(e){this.setAttribute("spec-file",this.shadowRoot.getElementById("spec-file").value);var t=e.target.files[0],n=new FileReader;n.onload=()=>{try{var e=JSON.parse(n.result);this.loadSpec(e),this.shadowRoot.getElementById("spec-url").value=""}catch(e){console.error("RapiDoc: Unable to read or parse json")}},n.readAsText(t)}onFileLoadClick(){this.shadowRoot.getElementById("spec-file").click()}onSearchChange(e){this.matchPaths=e.target.value.toLowerCase();var t=!1;this.resolvedSpec.tags.forEach(e=>e.paths.filter(n=>{this.matchPaths&&(n.expanded=!1,Re(this.matchPaths,n)&&(t=!0,e.expanded=!0))})),t&&this.requestUpdate()}onClearSearch(){this.shadowRoot.getElementById("nav-bar-search").value="",this.matchPaths=""}loadSpec(e){var t=this;return $u(function*(){if(e){t.matchPaths="";try{t.loading=!0,t.loadFailed=!1;var n=yield function(e){return bo.apply(this,arguments)}(e,"true"===t.sortTags,t.getAttribute("sort-endpoints-by"),t.getAttribute("api-key-name"),t.getAttribute("api-key-location"),t.getAttribute("api-key-value"),t.getAttribute("server-url"));t.loading=!1,null==n&&console.error("Unable to resolve the API spec. "),t.afterSpecParsedAndValidated(n)}catch(e){t.loading=!1,t.loadFailed=!0,t.resolvedSpec=null,t.requestUpdate(),console.error("RapiDoc: Unable to resolve the API spec.. ".concat(e.message))}}})()}afterSpecParsedAndValidated(e){var t=this;return $u(function*(){var n,r;if(t.resolvedSpec=e,t.defaultApiServerUrl&&(t.defaultApiServerUrl===t.serverUrl?t.selectedServer={url:t.serverUrl,computedUrl:t.serverUrl}:t.resolvedSpec.servers&&(t.selectedServer=t.resolvedSpec.servers.find(e=>e.url===t.defaultApiServerUrl))),t.selectedServer||t.resolvedSpec.servers&&(t.selectedServer=t.resolvedSpec.servers[0]),"true"===t.showInfo&&!window.location.hash&&((null===(n=t.resolvedSpec.info)||void 0===n?void 0:n.description)||(null===(r=t.resolvedSpec.info)||void 0===r?void 0:r.title)))t.selectedContentId="overview";else if(window.location.hash)t.selectedContentId=window.location.hash.substring(1).startsWith("overview--")?"overview":window.location.hash.substring(1);else{var o,i,a,s;t.selectedContentId="".concat(null===(o=t.resolvedSpec.tags[0])||void 0===o?void 0:null===(i=o.paths[0])||void 0===i?void 0:i.method,"-").concat(null===(a=t.resolvedSpec.tags[0])||void 0===a?void 0:null===(s=a.paths[0])||void 0===s?void 0:s.path)}t.requestUpdate();var c=new CustomEvent("spec-loaded",{detail:e});if(t.dispatchEvent(c),t.intersectionObserver.disconnect(),"read"===t.renderStyle)yield Pe(100),t.observeExpandedContent();else if("focused"===t.renderStyle){yield Pe(0);var l=t.shadowRoot.getElementById("link-".concat(t.selectedContentId));l&&(l.classList.add("active"),l.scrollIntoView({behavior:"auto",block:"center"}))}window.location.hash&&(t.gotoPath||t.expandTreeToPath(window.location.hash,!0,!0))})()}expandTreeToPath(e){var t,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];0===e.indexOf("#")&&(e=e.substring(1)),this.resolvedSpec.tags.map(r=>r.paths.filter(o=>{var i=e.match(new RegExp("(.*?)-")),a=i&&2===i.length?i[1]:null,s=(t=e.match(new RegExp("/.*$")))&&1===t.length?t[0]:null;a&&s&&a===o.method&&s===o.path&&(this.selectedContentId="".concat(a,"-").concat(s),o.expanded=n,r.expanded=!0)})),this.requestUpdate(),r&&window.setTimeout(()=>{var t=this.shadowRoot.getElementById(e);t&&t.scrollIntoView({behavior:"auto",block:"start"})},150)}onIntersect(e){!1!==this.isIntersectionObserverActive&&e.forEach(e=>{if(e.isIntersecting&&e.intersectionRatio>0){var t=this.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active"),n=this.shadowRoot.getElementById("link-".concat(e.target.id));n&&(window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0],"#").concat(e.target.id)),n.scrollIntoView({behavior:"auto",block:"center"}),n.classList.add("active")),t&&t.classList.remove("active")}})}scrollToEl(e){var t=this;return $u(function*(){var n=e.currentTarget;if(n.id&&n.dataset.contentId&&n.id.startsWith("link-")){t.selectedContentId=n.dataset.contentId.startsWith("overview--")?"overview":n.dataset.contentId;var r=n.dataset.contentId;yield Pe(0);var o=t.shadowRoot.getElementById(r);if(o){t.isIntersectionObserverActive=!1,o.scrollIntoView({behavior:"auto",block:"start"});var i=t.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active");i&&i.classList.remove("active"),n.classList.add("active"),window.history.replaceState(null,null,"".concat(window.location.href.split("#")[0],"#").concat(r)),setTimeout(()=>{t.isIntersectionObserverActive=!0},300)}}})()}handleHref(e){if("a"===e.target.tagName.toLowerCase()&&e.target.getAttribute("href").startsWith("#")){var t=this.shadowRoot.getElementById(e.target.getAttribute("href").replace("#",""));t&&t.scrollIntoView({behavior:"auto",block:"start"})}}scrollTo(e){var t=arguments,n=this;return $u(function*(){var r=!(t.length>1&&void 0!==t[1])||t[1];if(n.selectedContentId=e.startsWith("overview--")?"overview":e,yield Pe(0),n.shadowRoot.getElementById(e)){n.expandTreeToPath(e,r,!0);var o=n.shadowRoot.querySelector(".nav-bar-tag.active, .nav-bar-path.active, .nav-bar-info.active, .nav-bar-h1.active, .nav-bar-h2.active"),i=n.shadowRoot.getElementById("link-".concat(e));o&&o.classList.remove("active"),i&&(i.classList.add("active"),i.scrollIntoView({behavior:"auto",block:"center"}))}})()}}customElements.define("rapi-doc",Wu);class Vu extends HTMLElement{connectedCallback(){this.receiveAuthParms(),window.addEventListener("storage",e=>this.receiveStorage(e),!0)}receiveAuthParms(){var e={};if(document.location.search){var t=new URLSearchParams(document.location.search);e={code:t.get("code"),error:t.get("error"),state:t.get("state"),responseType:"code"}}else if(window.location.hash){e={token_type:this.parseQueryString(window.location.hash.substring(1),"token_type"),access_token:this.parseQueryString(window.location.hash.substring(1),"access_token"),responseType:"token"}}window.opener?window.opener.postMessage(e,this.target):sessionStorage.setItem("rapidoc-oauth-data",JSON.stringify(e))}relayAuthParams(e){if(window.parent&&"rapidoc-oauth-data"===e.key){var t=JSON.parse(e.newValue);window.parent.postMessage(t,this.target)}}parseQueryString(e,t){for(var n=e.split("&"),r=0;r<n.length;r++){var o=n[r].split("=");if(decodeURIComponent(o[0])===t)return decodeURIComponent(o[1])}}}customElements.define("oauth-receiver",Vu);t.default={RapiDoc:Wu}},function(e,t,n){"use strict";n.r(t);var r=n(3),o=n.n(r),i=n(6),a=n.n(i),s=n(4),c=n.n(s),l=n(7),u=n.n(l),p=n(18),f=n.n(p),d=n(5),h=n.n(d),v=n(0),m=n(2),g=n(1),y=n(11),b=function(e){function t(){return o()(this,t),a()(this,c()(t).call(this,v.b.BLANK_LINE))}return u()(t,e),h()(t,[{key:"parse",value:function(e,t){this.context=e;for(var n=e.src,r=t+1;g.a.atBlank(n,r);){var o=g.a.endOfWhiteSpace(n,r);if("\n"!==o)break;r=o+1}return this.range=new y.a(t,r),r}},{key:"includesTrailingLines",get:function(){return!0}}]),t}(g.a),x=function(e){function t(e,n){var r;return o()(this,t),(r=a()(this,c()(t).call(this,e,n))).node=null,r}return u()(t,e),h()(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.atLineStart,i=e.lineStart;o||this.type!==v.b.SEQ_ITEM||(this.error=new m.c(this,"Sequence items must not have preceding content on the same line"));for(var a=o?t-i:e.indent,s=g.a.endOfWhiteSpace(r,t+1),c=r[s],l="#"===c,u=[],p=null;"\n"===c||"#"===c;){if("#"===c){var f=g.a.endOfLine(r,s+1);u.push(new y.a(s,f)),s=f}else{o=!0,i=s+1,"\n"===r[g.a.endOfWhiteSpace(r,i)]&&0===u.length&&(i=(p=new b).parse({src:r},i)),s=g.a.endOfIndent(r,i)}c=r[s]}if(g.a.nextNodeIsIndented(c,s-(i+a),this.type!==v.b.SEQ_ITEM)?this.node=n({atLineStart:o,inCollection:!1,indent:a,lineStart:i,parent:this},s):c&&i>t+1&&(s=i-1),this.node){if(p){var d=e.parent.items||e.parent.contents;d&&d.push(p)}u.length&&Array.prototype.push.apply(this.props,u),s=this.node.range.end}else if(l){var h=u[0];this.props.push(h),s=h.end}else s=g.a.endOfLine(r,t+1);var x=this.node?this.node.valueRange.end:s;return this.valueRange=new y.a(t,x),s}},{key:"setOrigRanges",value:function(e,n){return n=f()(c()(t.prototype),"setOrigRanges",this).call(this,e,n),this.node?this.node.setOrigRanges(e,n):n}},{key:"toString",value:function(){var e=this.context.src,t=this.node,n=this.range,r=this.value;if(null!=r)return r;var o=t?e.slice(n.start,t.range.start)+String(t):e.slice(n.start,n.end);return g.a.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}}]),t}(g.a),w=function(e){function t(){return o()(this,t),a()(this,c()(t).call(this,v.b.COMMENT))}return u()(t,e),h()(t,[{key:"parse",value:function(e,t){this.context=e;var n=this.parseComment(t);return this.range=new y.a(t,n),n}}]),t}(g.a);function k(e){for(var t=e;t instanceof x;)t=t.node;if(!(t instanceof S))return null;for(var n=t.items.length,r=-1,o=n-1;o>=0;--o){var i=t.items[o];if(i.type===v.b.COMMENT){var a=i.context,s=a.indent,c=a.lineStart;if(s>0&&i.range.start>=c+s)break;r=o}else{if(i.type!==v.b.BLANK_LINE)break;r=o}}if(-1===r)return null;for(var l=t.items.splice(r,n-r),u=l[0].range.start;t.range.end=u,t.valueRange&&t.valueRange.end>u&&(t.valueRange.end=u),t!==e;)t=t.context.parent;return l}var S=function(e){function t(e){var n;o()(this,t),n=a()(this,c()(t).call(this,e.type===v.b.SEQ_ITEM?v.b.SEQ:v.b.MAP));for(var r=e.props.length-1;r>=0;--r)if(e.props[r].start<e.context.lineStart){n.props=e.props.slice(0,r+1),e.props=e.props.slice(r+1);var i=e.props[0]||e.valueRange;e.range.start=i.start;break}n.items=[e];var s=k(e);return s&&Array.prototype.push.apply(n.items,s),n}return u()(t,e),h()(t,null,[{key:"nextContentHasIndent",value:function(e,n,r){var o=g.a.endOfLine(e,n)+1,i=e[n=g.a.endOfWhiteSpace(e,o)];return!!i&&(n>=o+r||("#"===i||"\n"===i)&&t.nextContentHasIndent(e,n,r))}}]),h()(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.parseNode,o=e.src,i=g.a.startOfLine(o,n),a=this.items[0];a.context.parent=this,this.valueRange=y.a.copy(a.valueRange);for(var s=a.range.start-a.context.lineStart,c=n,l=o[c=g.a.normalizeOffset(o,c)],u=g.a.endOfWhiteSpace(o,i)===c,p=!1;l;){for(;"\n"===l||"#"===l;){if(u&&"\n"===l&&!p){var f=new b;if(c=f.parse({src:o},c),this.valueRange.end=c,c>=o.length){l=null;break}this.items.push(f),c-=1}else if("#"===l){if(c<i+s&&!t.nextContentHasIndent(o,c,s))return c;var d=new w;if(c=d.parse({indent:s,lineStart:i,src:o},c),this.items.push(d),this.valueRange.end=c,c>=o.length){l=null;break}}if(i=c+1,c=g.a.endOfIndent(o,i),g.a.atBlank(o,c)){var h=g.a.endOfWhiteSpace(o,c),m=o[h];m&&"\n"!==m&&"#"!==m||(c=h)}l=o[c],u=!0}if(!l)break;if(c!==i+s&&(u||":"!==l)){i>n&&(c=i);break}if(a.type===v.b.SEQ_ITEM!=("-"===l)){var x=!0;if("-"===l){var S=o[c+1];x=!S||"\n"===S||"\t"===S||" "===S}if(x){i>n&&(c=i);break}}var O=r({atLineStart:u,inCollection:!0,indent:s,lineStart:i,parent:this},c);if(!O)return c;if(this.items.push(O),this.valueRange.end=O.valueRange.end,l=o[c=g.a.normalizeOffset(o,O.range.end)],u=!1,p=O.includesTrailingLines,l){for(var _=c-1,E=o[_];" "===E||"\t"===E;)E=o[--_];"\n"===E&&(i=_+1,u=!0)}var A=k(O);A&&Array.prototype.push.apply(this.items,A)}return c}},{key:"setOrigRanges",value:function(e,n){return n=f()(c()(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){n=t.setOrigRanges(e,n)}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;for(var o=e.slice(n.start,t[0].range.start)+String(t[0]),i=1;i<t.length;++i){var a=t[i],s=a.context,c=s.atLineStart,l=s.indent;if(c)for(var u=0;u<l;++u)o+=" ";o+=String(a)}return g.a.addStringTerminator(e,n.end,o)}},{key:"includesTrailingLines",get:function(){return this.items.length>0}}]),t}(g.a),O=function(e){function t(){var e;return o()(this,t),(e=a()(this,c()(t).call(this,v.b.DIRECTIVE))).name=null,e}return u()(t,e),h()(t,[{key:"parseName",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"\t"!==r&&" "!==r;)r=t[n+=1];return this.name=t.slice(e,n),n}},{key:"parseParameters",value:function(e){for(var t=this.context.src,n=e,r=t[n];r&&"\n"!==r&&"#"!==r;)r=t[n+=1];return this.valueRange=new y.a(e,n),n}},{key:"parse",value:function(e,t){this.context=e;var n=this.parseName(t+1);return n=this.parseParameters(n),n=this.parseComment(n),this.range=new y.a(t,n),n}},{key:"parameters",get:function(){var e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}}]),t}(g.a),_=function(e){function t(){var e;return o()(this,t),(e=a()(this,c()(t).call(this,v.b.DOCUMENT))).directives=null,e.contents=null,e.directivesEndMarker=null,e.documentEndMarker=null,e}return u()(t,e),h()(t,null,[{key:"startCommentOrEndBlankLine",value:function(e,t){var n=g.a.endOfWhiteSpace(e,t),r=e[n];return"#"===r||"\n"===r?n:t}}]),h()(t,[{key:"parseDirectives",value:function(e){var n=this.context.src;this.directives=[];for(var r=!0,o=!1,i=e;!g.a.atDocumentBoundary(n,i,v.a.DIRECTIVES_END);)switch(n[i=t.startCommentOrEndBlankLine(n,i)]){case"\n":if(r){var a=new b;(i=a.parse({src:n},i))<n.length&&this.directives.push(a)}else i+=1,r=!0;break;case"#":var s=new w;i=s.parse({src:n},i),this.directives.push(s),r=!1;break;case"%":var c=new O;i=c.parse({parent:this,src:n},i),this.directives.push(c),o=!0,r=!1;break;default:return o?this.error=new m.c(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new y.a(i,i+3),i+3):(o?this.error=new m.c(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}},{key:"parseContents",value:function(e){var n=this.context,r=n.parseNode,o=n.src;this.contents||(this.contents=[]);for(var i=e;"-"===o[i-1];)i-=1;var a=g.a.endOfWhiteSpace(o,e),s=i===e;for(this.valueRange=new y.a(a);!g.a.atDocumentBoundary(o,a,v.a.DOCUMENT_END);){switch(o[a]){case"\n":if(s){var c=new b;(a=c.parse({src:o},a))<o.length&&this.contents.push(c)}else a+=1,s=!0;i=a;break;case"#":var l=new w;a=l.parse({src:o},a),this.contents.push(l),s=!1;break;default:var u=g.a.endOfIndent(o,a),p=r({atLineStart:s,indent:-1,inFlow:!1,inCollection:!1,lineStart:i,parent:this},u);if(!p)return this.valueRange.end=u;this.contents.push(p),a=p.range.end,s=!1;var f=k(p);f&&Array.prototype.push.apply(this.contents,f)}a=t.startCommentOrEndBlankLine(o,a)}if(this.valueRange.end=a,o[a]&&(this.documentEndMarker=new y.a(a,a+3),o[a+=3])){if("#"===o[a=g.a.endOfWhiteSpace(o,a)]){var d=new w;a=d.parse({src:o},a),this.contents.push(d)}switch(o[a]){case"\n":a+=1;break;case void 0:break;default:this.error=new m.d(this,"Document end marker line cannot have a non-comment suffix")}}return a}},{key:"parse",value:function(e,t){e.root=this,this.context=e;var n=65279===e.src.charCodeAt(t)?t+1:t;return n=this.parseDirectives(n),n=this.parseContents(n)}},{key:"setOrigRanges",value:function(e,n){return n=f()(c()(t.prototype),"setOrigRanges",this).call(this,e,n),this.directives.forEach(function(t){n=t.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(function(t){n=t.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}},{key:"toString",value:function(){var e=this.contents,t=this.directives,n=this.value;if(null!=n)return n;var r=t.join("");return e.length>0&&((t.length>0||e[0].type===v.b.COMMENT)&&(r+="---\n"),r+=e.join("")),"\n"!==r[r.length-1]&&(r+="\n"),r}}]),t}(g.a),E=n(16),A=n.n(E),T=function(e){function t(){return o()(this,t),a()(this,c()(t).apply(this,arguments))}return u()(t,e),h()(t,[{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=g.a.endOfIdentifier(n,t+1);return this.valueRange=new y.a(t+1,r),r=g.a.endOfWhiteSpace(n,r),r=this.parseComment(r)}}]),t}(g.a),C={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},j=function(e){function t(e,n){var r;return o()(this,t),(r=a()(this,c()(t).call(this,e,n))).blockIndent=null,r.chomping=C.CLIP,r.header=null,r}return u()(t,e),h()(t,[{key:"parseBlockHeader",value:function(e){for(var t=this.context.src,n=e+1,r="";;){var o=t[n];switch(o){case"-":this.chomping=C.STRIP;break;case"+":this.chomping=C.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":r+=o;break;default:return this.blockIndent=Number(r)||null,this.header=new y.a(e,n),n}n+=1}}},{key:"parseBlockValue",value:function(e){for(var t=this.context,n=t.indent,r=t.src,o=e,i=e,a=this.blockIndent?n+this.blockIndent-1:n,s=1,c=r[o];"\n"===c&&(o+=1,!g.a.atDocumentBoundary(r,o));c=r[o]){var l=g.a.endOfBlockIndent(r,a,o);if(null===l)break;if(!this.blockIndent){var u=l-(o+n);if("\n"!==r[l]){if(u<s){o-=1;break}this.blockIndent=u,a=n+this.blockIndent-1}else u>s&&(s=u)}o="\n"===r[l]?l:i=g.a.endOfLine(r,l)}return this.chomping!==C.KEEP&&(o=r[i]?i+1:i),this.valueRange=new y.a(e+1,o),o}},{key:"parse",value:function(e,t){this.context=e;var n=e.src,r=this.parseBlockHeader(t);return r=g.a.endOfWhiteSpace(n,r),r=this.parseComment(r),r=this.parseBlockValue(r)}},{key:"setOrigRanges",value:function(e,n){return n=f()(c()(t.prototype),"setOrigRanges",this).call(this,e,n),this.header?this.header.setOrigRange(e,n):n}},{key:"includesTrailingLines",get:function(){return this.chomping===C.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=this.valueRange,t=e.start,n=e.end,r=this.context,o=r.indent,i=r.src;if(this.valueRange.isEmpty())return"";for(var a=null,s=i[n-1];"\n"===s||"\t"===s||" "===s;){if((n-=1)<=t){if(this.chomping===C.KEEP)break;return""}"\n"===s&&(a=n),s=i[n-1]}var c=n+1;a&&(this.chomping===C.KEEP?(c=a,n=this.valueRange.end):n=a);for(var l=o+this.blockIndent,u=this.type===v.b.BLOCK_FOLDED,p=!0,f="",d="",h=!1,m=t;m<n;++m){for(var y=0;y<l&&" "===i[m];++y)m+=1;var b=i[m];if("\n"===b)"\n"===d?f+="\n":d="\n";else{var x=g.a.endOfLine(i,m),w=i.slice(m,x);m=x,u&&(" "===b||"\t"===b)&&m<c?(" "===d?d="\n":h||p||"\n"!==d||(d="\n\n"),f+=d+w,d=x<n&&i[x]||"",h=!0):(f+=d+w,d=u&&m<c?" ":"\n",h=!1),p&&""!==w&&(p=!1)}}return this.chomping===C.STRIP?f:f+"\n"}}]),t}(g.a),P=function(e){function t(e,n){var r;return o()(this,t),(r=a()(this,c()(t).call(this,e,n))).items=null,r}return u()(t,e),h()(t,[{key:"prevNodeIsJsonLike",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.items.length,t=this.items[e-1];return!!t&&(t.jsonLike||t.type===v.b.COMMENT&&this.nodeIsJsonLike(e-1))}},{key:"parse",value:function(e,t){this.context=e;var n=e.parseNode,r=e.src,o=e.indent,i=e.lineStart,a=r[t];this.items=[{char:a,offset:t}];var s=g.a.endOfWhiteSpace(r,t+1);for(a=r[s];a&&"]"!==a&&"}"!==a;){switch(a){case"\n":if(i=s+1,"\n"===r[g.a.endOfWhiteSpace(r,i)]){var c=new b;i=c.parse({src:r},i),this.items.push(c)}if((s=g.a.endOfIndent(r,i))<=i+o&&(a=r[s],s<i+o||"]"!==a&&"}"!==a)){this.error=new m.c(this,"Insufficient indentation in flow collection")}break;case",":this.items.push({char:a,offset:s}),s+=1;break;case"#":var l=new w;s=l.parse({src:r},s),this.items.push(l);break;case"?":case":":var u=r[s+1];if("\n"===u||"\t"===u||" "===u||","===u||":"===a&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:s}),s+=1;break}default:var p=n({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:i,parent:this},s);if(!p)return this.valueRange=new y.a(t,s),s;this.items.push(p),s=g.a.normalizeOffset(r,p.range.end)}a=r[s=g.a.endOfWhiteSpace(r,s)]}return this.valueRange=new y.a(t,s+1),a&&(this.items.push({char:a,offset:s}),s=g.a.endOfWhiteSpace(r,s+1),s=this.parseComment(s)),s}},{key:"setOrigRanges",value:function(e,n){return n=f()(c()(t.prototype),"setOrigRanges",this).call(this,e,n),this.items.forEach(function(t){if(t instanceof g.a)n=t.setOrigRanges(e,n);else if(0===e.length)t.origOffset=t.offset;else{for(var r=n;r<e.length&&!(e[r]>t.offset);)++r;t.origOffset=t.offset+r,n=r}}),n}},{key:"toString",value:function(){var e=this.context.src,t=this.items,n=this.range,r=this.value;if(null!=r)return r;var o=t.filter(function(e){return e instanceof g.a}),i="",a=n.start;return o.forEach(function(t){var n=e.slice(a,t.range.start);a=t.range.end,"\n"===(i+=n+String(t))[i.length-1]&&"\n"!==e[a-1]&&"\n"===e[a]&&(a+=1)}),i+=e.slice(a,n.end),g.a.addStringTerminator(e,n.end,i)}}]),t}(g.a),I=function(e){function t(){return o()(this,t),a()(this,c()(t).apply(this,arguments))}return u()(t,e),h()(t,[{key:"parseBlockValue",value:function(e){for(var n=this.context,r=n.indent,o=n.inFlow,i=n.src,a=e,s=e,c=i[a];"\n"===c&&!g.a.atDocumentBoundary(i,a+1);c=i[a]){var l=g.a.endOfBlockIndent(i,r,a+1);if(null===l||"#"===i[l])break;a="\n"===i[l]?l:s=t.endOfLine(i,l,o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=s,s}},{key:"parse",value:function(e,n){this.context=e;var r=e.inFlow,o=e.src,i=n,a=o[i];return a&&"#"!==a&&"\n"!==a&&(i=t.endOfLine(o,n,r)),this.valueRange=new y.a(n,i),i=g.a.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];t<n&&("\n"===o||"\t"===o||" "===o);)o=r[--n-1];for(o=r[t];t<n&&("\n"===o||"\t"===o||" "===o);)o=r[++t];for(var i="",a=t;a<n;++a){var s=r[a];if("\n"===s){var c=g.a.foldNewline(r,a,-1);i+=c.fold,a=c.offset}else if(" "===s||"\t"===s){for(var l=a,u=r[a+1];a<n&&(" "===u||"\t"===u);)u=r[(a+=1)+1];"\n"!==u&&(i+=a>l?r.slice(l,a+1):s)}else i+=s}return i}}],[{key:"endOfLine",value:function(e,t,n){for(var r=e[t],o=t;r&&"\n"!==r&&(!n||"["!==r&&"]"!==r&&"{"!==r&&"}"!==r&&","!==r);){var i=e[o+1];if(":"===r&&(!i||"\n"===i||"\t"===i||" "===i||n&&","===i))break;if((" "===r||"\t"===r)&&"#"===i)break;o+=1,r=i}return o}}]),t}(g.a),R=function(e){function t(){return o()(this,t),a()(this,c()(t).apply(this,arguments))}return u()(t,e),h()(t,[{key:"parseCharCode",value:function(e,t,n){var r=this.context.src,o=r.substr(e,t),i=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;return isNaN(i)?(n.push(new m.d(this,"Invalid escape sequence ".concat(r.substr(e-2,t+2)))),r.substr(e-2,t+2)):String.fromCodePoint(i)}},{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new y.a(n,o),o=g.a.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;'"'!==a[r-1]&&e.push(new m.d(this,'Missing closing "quote'));for(var s="",c=n+1;c<r-1;++c){var l=a[c];if("\n"===l){g.a.atDocumentBoundary(a,c+1)&&e.push(new m.c(this,"Document boundary indicators are not allowed within string values"));var u=g.a.foldNewline(a,c,i);s+=u.fold,c=u.offset,u.error&&e.push(new m.c(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if("\\"===l)switch(a[c+=1]){case"0":s+="\0";break;case"a":s+="";break;case"b":s+="\b";break;case"e":s+="";break;case"f":s+="\f";break;case"n":s+="\n";break;case"r":s+="\r";break;case"t":s+="\t";break;case"v":s+="\v";break;case"N":s+="…";break;case"_":s+=" ";break;case"L":s+="\u2028";break;case"P":s+="\u2029";break;case" ":s+=" ";break;case'"':s+='"';break;case"/":s+="/";break;case"\\":s+="\\";break;case"\t":s+="\t";break;case"x":s+=this.parseCharCode(c+1,2,e),c+=2;break;case"u":s+=this.parseCharCode(c+1,4,e),c+=4;break;case"U":s+=this.parseCharCode(c+1,8,e),c+=8;break;case"\n":for(;" "===a[c+1]||"\t"===a[c+1];)c+=1;break;default:e.push(new m.d(this,"Invalid escape sequence ".concat(a.substr(c-1,2)))),s+="\\"+a[c]}else if(" "===l||"\t"===l){for(var p=c,f=a[c+1];" "===f||"\t"===f;)f=a[(c+=1)+1];"\n"!==f&&(s+=c>p?a.slice(p,c+1):l)}else s+=l}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n&&'"'!==n;)n=e[t+="\\"===n?2:1];return t+1}}]),t}(g.a),L=function(e){function t(){return o()(this,t),a()(this,c()(t).apply(this,arguments))}return u()(t,e),h()(t,[{key:"parse",value:function(e,n){this.context=e;var r=e.src,o=t.endOfQuote(r,n+1);return this.valueRange=new y.a(n,o),o=g.a.endOfWhiteSpace(r,o),o=this.parseComment(o)}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var e=[],t=this.valueRange,n=t.start,r=t.end,o=this.context,i=o.indent,a=o.src;"'"!==a[r-1]&&e.push(new m.d(this,"Missing closing 'quote"));for(var s="",c=n+1;c<r-1;++c){var l=a[c];if("\n"===l){g.a.atDocumentBoundary(a,c+1)&&e.push(new m.c(this,"Document boundary indicators are not allowed within string values"));var u=g.a.foldNewline(a,c,i);s+=u.fold,c=u.offset,u.error&&e.push(new m.c(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if("'"===l)s+=l,"'"!==a[c+=1]&&e.push(new m.d(this,"Unescaped single quote? This should not happen."));else if(" "===l||"\t"===l){for(var p=c,f=a[c+1];" "===f||"\t"===f;)f=a[(c+=1)+1];"\n"!==f&&(s+=c>p?a.slice(p,c+1):l)}else s+=l}return e.length>0?{errors:e,str:s}:s}}],[{key:"endOfQuote",value:function(e,t){for(var n=e[t];n;)if("'"===n){if("'"!==e[t+1])break;n=e[t+=2]}else n=e[t+=1];return t+1}}]),t}(g.a);var N=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.atLineStart,a=r.inCollection,s=r.inFlow,c=r.indent,l=r.lineStart,u=r.parent;o()(this,e),A()(this,"parseNode",function(n,r){if(g.a.atDocumentBoundary(t.src,r))return null;var o=new e(t,n),i=o.parseProps(r),a=i.props,s=i.type,c=i.valueStart,l=function(e,t){switch(e){case v.b.ALIAS:return new T(e,t);case v.b.BLOCK_FOLDED:case v.b.BLOCK_LITERAL:return new j(e,t);case v.b.FLOW_MAP:case v.b.FLOW_SEQ:return new P(e,t);case v.b.MAP_KEY:case v.b.MAP_VALUE:case v.b.SEQ_ITEM:return new x(e,t);case v.b.COMMENT:case v.b.PLAIN:return new I(e,t);case v.b.QUOTE_DOUBLE:return new R(e,t);case v.b.QUOTE_SINGLE:return new L(e,t);default:return null}}(s,a),u=l.parse(o,c);if(l.range=new y.a(r,u),u<=r&&(l.error=new Error("Node#parse consumed no characters"),l.error.parseEnd=u,l.error.source=l,l.range.end=r+1),o.nodeStartsCollection(l)){l.error||o.atLineStart||o.parent.type!==v.b.DOCUMENT||(l.error=new m.d(l,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var p=new S(l);return u=p.parse(new e(o),u),p.range=new y.a(r,u),p}return l}),this.atLineStart=null!=i?i:n.atLineStart||!1,this.inCollection=null!=a?a:n.inCollection||!1,this.inFlow=null!=s?s:n.inFlow||!1,this.indent=null!=c?c:n.indent,this.lineStart=null!=l?l:n.lineStart,this.parent=null!=u?u:n.parent||{},this.root=n.root,this.src=n.src}return h()(e,null,[{key:"parseType",value:function(e,t,n){switch(e[t]){case"*":return v.b.ALIAS;case">":return v.b.BLOCK_FOLDED;case"|":return v.b.BLOCK_LITERAL;case"{":return v.b.FLOW_MAP;case"[":return v.b.FLOW_SEQ;case"?":return!n&&g.a.atBlank(e,t+1,!0)?v.b.MAP_KEY:v.b.PLAIN;case":":return!n&&g.a.atBlank(e,t+1,!0)?v.b.MAP_VALUE:v.b.PLAIN;case"-":return!n&&g.a.atBlank(e,t+1,!0)?v.b.SEQ_ITEM:v.b.PLAIN;case'"':return v.b.QUOTE_DOUBLE;case"'":return v.b.QUOTE_SINGLE;default:return v.b.PLAIN}}}]),h()(e,[{key:"nodeStartsCollection",value:function(e){var t=this.inCollection,n=this.inFlow,r=this.src;if(t||n)return!1;if(e instanceof x)return!0;var o=e.range.end;return"\n"!==r[o]&&"\n"!==r[o-1]&&":"===r[o=g.a.endOfWhiteSpace(r,o)]}},{key:"parseProps",value:function(t){for(var n=this.inFlow,r=this.parent,o=this.src,i=[],a=!1,s=o[t=g.a.endOfWhiteSpace(o,t)];s===v.a.ANCHOR||s===v.a.COMMENT||s===v.a.TAG||"\n"===s;){if("\n"===s){var c=t+1,l=g.a.endOfIndent(o,c),u=l-(c+this.indent),p=r.type===v.b.SEQ_ITEM&&r.context.atLineStart;if(!g.a.nextNodeIsIndented(o[l],u,!p))break;this.atLineStart=!0,this.lineStart=c,a=!1,t=l}else if(s===v.a.COMMENT){var f=g.a.endOfLine(o,t+1);i.push(new y.a(t,f)),t=f}else{var d=g.a.endOfIdentifier(o,t+1);s===v.a.TAG&&","===o[d]&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(t+1,d+13))&&(d=g.a.endOfIdentifier(o,d+5)),i.push(new y.a(t,d)),a=!0,t=g.a.endOfWhiteSpace(o,d)}s=o[t]}return a&&":"===s&&g.a.atBlank(o,t+1,!0)&&(t-=1),{props:i,type:e.parseType(o,t,n),valueStart:t}}}]),e}();function M(e){var t=[];-1!==e.indexOf("\r")&&(e=e.replace(/\r\n?/g,function(e,n){return e.length>1&&t.push(n),"\n"}));var n=[],r=0;do{var o=new _,i=new N({src:e});r=o.parse(i,r),n.push(o)}while(r<e.length);return n.setOrigRanges=function(){if(0===t.length)return!1;for(var e=1;e<t.length;++e)t[e]-=e;for(var r=0,o=0;o<n.length;++o)r=n[o].setOrigRanges(t,r);return t.splice(0,t.length),!0},n.toString=function(){return n.join("...\n")},n}var B=n(46),D=n.n(B),F=n(37);function z(e,t,n){if(Array.isArray(e))return e.map(function(e,t){return z(e,String(t),n)});if(e&&"function"==typeof e.toJSON){var r=n&&n.anchors&&n.anchors.find(function(t){return t.node===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 e}var q=n(74),U=n.n(q),$=n(31),H=n.n($),W=n(22),V=n.n(W),K=function e(){o()(this,e)},Y=function(e){function t(e){var n;return o()(this,t),(n=a()(this,c()(t).call(this))).value=e,n}return u()(t,e),h()(t,[{key:"toJSON",value:function(e,t){return t&&t.keep?this.value:z(this.value,e,t)}},{key:"toString",value:function(){return String(this.value)}}]),t}(K),J=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return o()(this,t),(n=a()(this,c()(t).call(this))).key=e,n.value=r,n.type="PAIR",n}return u()(t,e),h()(t,[{key:"addToJSMap",value:function(e,t){var n=z(this.key,"",e);if(t instanceof Map){var r=z(this.value,n,e);t.set(n,r)}else if(t instanceof Set)t.add(n);else{var o=function(e,t,n){return null===t?"":"object"!==V()(t)?String(t):e instanceof K&&n&&n.doc?e.toString({anchors:{},doc:n.doc,indent:"",inFlow:!0,inStringifyKey:!0}):JSON.stringify(t)}(this.key,n,e);t[o]=z(this.value,o,e)}return t}},{key:"toJSON",value:function(e,t){var n=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,n)}},{key:"toString",value:function(e,t,n){if(!e||!e.doc)return JSON.stringify(this);var r=e.doc.options.simpleKeys,o=this.key,i=this.value,a=o instanceof K&&o.comment;if(r){if(a)throw new Error("With simple keys, key nodes cannot have comments");if(o instanceof X){throw new Error("With simple keys, collection cannot be used as a key value")}}var s=!r&&(!o||a||o instanceof X||o.type===v.b.BLOCK_FOLDED||o.type===v.b.BLOCK_LITERAL),c=e,l=c.doc,u=c.indent;e=Object.assign({},e,{implicitKey:!s,indent:u+" "});var p=!1,f=l.schema.stringify(o,e,function(){return a=null},function(){return p=!0});if(f=Object(F.b)(f,e.indent,a),e.allNullValues&&!r)return this.comment?(f=Object(F.b)(f,e.indent,this.comment),t&&t()):p&&!a&&n&&n(),e.inFlow?f:"? ".concat(f);f=s?"? ".concat(f,"\n").concat(u,":"):"".concat(f,":"),this.comment&&(f=Object(F.b)(f,e.indent,this.comment),t&&t());var d="",h=null;if(i instanceof K){if(i.spaceBefore&&(d="\n"),i.commentBefore){var m=i.commentBefore.replace(/^/gm,"".concat(e.indent,"#"));d+="\n".concat(m)}h=i.comment}else i&&"object"===V()(i)&&(i=l.schema.createNode(i,!0));e.implicitKey=!1,!s&&!this.comment&&i instanceof Y&&(e.indentAtStart=f.length+1),p=!1;var g=l.schema.stringify(i,e,function(){return h=null},function(){return p=!0}),y=" ";if(d||this.comment)y="".concat(d,"\n").concat(e.indent);else if(!s&&i instanceof X){("["===g[0]||"{"===g[0])&&!g.includes("\n")||(y="\n".concat(e.indent))}return p&&!h&&n&&n(),Object(F.b)(f+y+g,e.indent,h)}},{key:"commentBefore",get:function(){return this.key&&this.key.commentBefore},set:function(e){null==this.key&&(this.key=new Y(null)),this.key.commentBefore=e}}]),t}(K);function G(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 Q=function(e){return null==e||"object"===V()(e)&&e[Symbol.iterator]().next().done},X=function(e){function t(e){var n;return o()(this,t),n=a()(this,c()(t).call(this)),A()(H()(n),"items",[]),n.schema=e,n}return u()(t,e),h()(t,[{key:"addIn",value:function(e,n){if(Q(e))this.add(n);else{var r=U()(e),o=r[0],i=r.slice(1),a=this.get(o,!0);if(a instanceof t)a.addIn(i,n);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(i));this.set(o,G(this.schema,i,n))}}}},{key:"deleteIn",value:function(e){var n=U()(e),r=n[0],o=n.slice(1);if(0===o.length)return this.delete(r);var i=this.get(r,!0);if(i instanceof t)return i.deleteIn(o);throw new Error("Expected YAML collection at ".concat(r,". Remaining path: ").concat(o))}},{key:"getIn",value:function(e,n){var r=U()(e),o=r[0],i=r.slice(1),a=this.get(o,!0);return 0===i.length?!n&&a instanceof Y?a.value:a:a instanceof t?a.getIn(i,n):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(e){if(!(e instanceof J))return!1;var t=e.value;return null==t||t instanceof Y&&null==t.value&&!t.commentBefore&&!t.comment&&!t.tag})}},{key:"hasIn",value:function(e){var n=U()(e),r=n[0],o=n.slice(1);if(0===o.length)return this.has(r);var i=this.get(r,!0);return i instanceof t&&i.hasIn(o)}},{key:"setIn",value:function(e,n){var r=U()(e),o=r[0],i=r.slice(1);if(0===i.length)this.set(o,n);else{var a=this.get(o,!0);if(a instanceof t)a.setIn(i,n);else{if(void 0!==a||!this.schema)throw new Error("Expected YAML collection at ".concat(o,". Remaining path: ").concat(i));this.set(o,G(this.schema,i,n))}}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(e,n,r,o){var i=this,a=n.blockItem,s=n.flowChars,c=n.isMap,l=n.itemIndent,u=e,p=u.doc,f=u.indent,d=this.type&&"FLOW"===this.type.substr(0,4)||e.inFlow;d&&(l+=" ");var h=c&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:l,inFlow:d,type:null});var v,m=!1,g=!1,y=this.items.reduce(function(t,n,r){var o;n&&(!m&&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&&(o=n.comment),d&&(!m&&n.spaceBefore||n.commentBefore||n.comment||n.key&&(n.key.commentBefore||n.key.comment)||n.value&&(n.value.commentBefore||n.value.comment))&&(g=!0)),m=!1;var a=p.schema.stringify(n,e,function(){return o=null},function(){return m=!0});return d&&!g&&a.includes("\n")&&(g=!0),d&&r<i.items.length-1&&(a+=","),a=Object(F.b)(a,l,o),m&&(o||d)&&(m=!1),t.push({type:"item",str:a}),t},[]);if(0===y.length)v=s.start+s.end;else if(d){var b=s.start,x=s.end,w=y.map(function(e){return e.str});if(g||w.reduce(function(e,t){return e+t.length+2},2)>t.maxFlowStringSingleLineLength){v=b;var k=!0,S=!1,O=void 0;try{for(var _,E=w[Symbol.iterator]();!(k=(_=E.next()).done);k=!0){var A=_.value;v+=A?"\n ".concat(f).concat(A):"\n"}}catch(e){S=!0,O=e}finally{try{k||null==E.return||E.return()}finally{if(S)throw O}}v+="\n".concat(f).concat(x)}else v="".concat(b," ").concat(w.join(" ")," ").concat(x)}else{var T=y.map(a);v=T.shift();var C=!0,j=!1,P=void 0;try{for(var I,R=T[Symbol.iterator]();!(C=(I=R.next()).done);C=!0){var L=I.value;v+=L?"\n".concat(f).concat(L):"\n"}}catch(e){j=!0,P=e}finally{try{C||null==R.return||R.return()}finally{if(j)throw P}}}return this.comment?(v+="\n"+this.comment.replace(/^/gm,"".concat(f,"#")),r&&r()):m&&o&&o(),v}}]),t}(K);A()(X,"maxFlowStringSingleLineLength",60);var Z=function(e){function t(e){var n;return o()(this,t),(n=a()(this,c()(t).call(this))).source=e,n.type=v.b.ALIAS,n}return u()(t,e),h()(t,null,[{key:"stringify",value:function(e,t){var n=e.range,r=e.source,o=t.anchors,i=t.doc,a=t.implicitKey,s=t.inStringifyKey,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,"]"))}}]),h()(t,[{key:"toJSON",value:function(e,t){var n=this;if(!t)return z(this.source,e,t);var r=t.anchors,o=t.maxAliasCount,i=r.find(function(e){return e.node===n.source});if(!i||void 0===i.res){var a="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new m.b(this.cstNode,a):new ReferenceError(a)}if(o>=0&&(i.count+=1,0===i.aliasCount&&(i.aliasCount=function e(t,n){if(t instanceof Z){var r=n.find(function(e){return e.node===t.source});return r.count*r.aliasCount}if(t instanceof X){var o=0,i=!0,a=!1,s=void 0;try{for(var c,l=t.items[Symbol.iterator]();!(i=(c=l.next()).done);i=!0){var u=e(c.value,n);u>o&&(o=u)}}catch(e){a=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(a)throw s}}return o}if(t instanceof J){var p=e(t.key,n),f=e(t.value,n);return Math.max(p,f)}return 1}(this.source,r)),i.count*i.aliasCount>o)){var s="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new m.b(this.cstNode,s):new ReferenceError(s)}return i.res}},{key:"toString",value:function(e){return t.stringify(this,e)}},{key:"tag",set:function(e){throw new Error("Alias nodes cannot have tags")}}]),t}(K);function ee(e,t){var n=t instanceof Y?t.value:t,r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value;if(c instanceof J){if(c.key===t||c.key===n)return c;if(c.key&&c.key.value===n)return c}}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}}A()(Z,"default",!0);var te=function(e){function t(){return o()(this,t),a()(this,c()(t).apply(this,arguments))}return u()(t,e),h()(t,[{key:"add",value:function(e,t){e?e instanceof J||(e=new J(e.key||e,e.value)):e=new J(e);var n=ee(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=ee(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}},{key:"get",value:function(e,t){var n=ee(this.items,e),r=n&&n.value;return!t&&r instanceof Y?r.value:r}},{key:"has",value:function(e){return!!ee(this.items,e)}},{key:"set",value:function(e,t){this.add(new J(e,t),!0)}},{key:"toJSON",value:function(e,t,n){var r=n?new n:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(r);var o=!0,i=!1,a=void 0;try{for(var s,c=this.items[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){s.value.addToJSMap(t,r)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);var o=!0,i=!1,a=void 0;try{for(var s,l=this.items[Symbol.iterator]();!(o=(s=l.next()).done);o=!0){var u=s.value;if(!(u instanceof J))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(e){i=!0,a=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw a}}return f()(c()(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return e.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}}]),t}(X);function ne(e){var t=e instanceof Y?e.value:e;return t&&"string"==typeof t&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var re=function(e){function t(){return o()(this,t),a()(this,c()(t).apply(this,arguments))}return u()(t,e),h()(t,[{key:"add",value:function(e){this.items.push(e)}},{key:"delete",value:function(e){var t=ne(e);return"number"==typeof t&&this.items.splice(t,1).length>0}},{key:"get",value:function(e,t){var n=ne(e);if("number"==typeof n){var r=this.items[n];return!t&&r instanceof Y?r.value:r}}},{key:"has",value:function(e){var t=ne(e);return"number"==typeof t&&t<this.items.length}},{key:"set",value:function(e,t){var n=ne(e);if("number"!=typeof n)throw new Error("Expected a valid index, not ".concat(e,"."));this.items[n]=t}},{key:"toJSON",value:function(e,t){var n=[];t&&t.onCreate&&t.onCreate(n);var r=0,o=!0,i=!1,a=void 0;try{for(var s,c=this.items[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value;n.push(z(l,String(r++),t))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return n}},{key:"toString",value:function(e,n,r){return e?f()(c()(t.prototype),"toString",this).call(this,e,{blockItem:function(e){return"comment"===e.type?e.str:"- ".concat(e.str)},flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}}]),t}(X),oe="<<",ie=function(e){function t(e){var n;if(o()(this,t),e instanceof J){var r=e.value;r instanceof re||((r=new re).items.push(e.value),r.range=e.value.range),(n=a()(this,c()(t).call(this,e.key,r))).range=e.range}else n=a()(this,c()(t).call(this,new Y(oe),new re));return n.type="MERGE_PAIR",a()(n)}return u()(t,e),h()(t,[{key:"addToJSMap",value:function(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=this.value.items[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value.source;if(!(s instanceof te))throw new Error("Merge sources must be maps");var c=s.toJSON(null,e,Map),l=!0,u=!1,p=void 0;try{for(var f,d=c[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var h=D()(f.value,2),v=h[0],m=h[1];t instanceof Map?t.has(v)||t.set(v,m):t instanceof Set?t.add(v):Object.prototype.hasOwnProperty.call(t,v)||(t[v]=m)}}catch(e){u=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw p}}}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}return t}},{key:"toString",value:function(e,n){var r=this.value;if(r.items.length>1)return f()(c()(t.prototype),"toString",this).call(this,e,n);this.value=r.items[0];var o=f()(c()(t.prototype),"toString",this).call(this,e,n);return this.value=r,o}}]),t}(J),ae=function(){function e(t){o()(this,e),A()(this,"map",{}),this.prefix=t}return h()(e,null,[{key:"validAnchorNode",value:function(e){return e instanceof Y||e instanceof re||e instanceof te}}]),h()(e,[{key:"createAlias",value:function(e,t){return this.setAnchor(e,t),new Z(e)}},{key:"createMergePair",value:function(){for(var e=this,t=new ie,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.value.items=r.map(function(t){if(t instanceof Z){if(t.source instanceof te)return t}else if(t instanceof te)return e.createAlias(t);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}},{key:"getName",value:function(e){var t=this.map;return Object.keys(t).find(function(n){return t[n]===e})}},{key:"getNode",value:function(e){return this.map[e]}},{key:"newName",value:function(e){e||(e=this.prefix);for(var t=Object.keys(this.map),n=1;;++n){var r="".concat(e).concat(n);if(!t.includes(r))return r}}},{key:"resolveNodes",value:function(){var e=this.map,t=this._cstAliases;Object.keys(e).forEach(function(t){e[t]=e[t].resolved}),t.forEach(function(e){e.source=e.source.resolved}),delete this._cstAliases}},{key:"setAnchor",value:function(t,n){if(null!=t&&!e.validAnchorNode(t))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");var r=this.map,o=t&&Object.keys(r).find(function(e){return r[e]===t});if(o){if(!n)return o;o!==n&&(delete r[o],r[n]=t)}else{if(!n){if(!t)return null;n=this.newName()}r[n]=t}return n}}]),e}(),se=function(e){return Object.keys(function e(t,n){if(t&&"object"===V()(t)){var r=t.tag;t instanceof X?(r&&(n[r]=!0),t.items.forEach(function(t){return e(t,n)})):t instanceof J?(e(t.key,n),e(t.value,n)):t instanceof Y&&r&&(n[r]=!0)}return n}(e,{}))},ce=n(118),le=n(23);function ue(e,t){var n,r,o;switch(t.type){case v.b.FLOW_MAP:n="}",r="flow map";break;case v.b.FLOW_SEQ:n="]",r="flow sequence";break;default:return void e.push(new m.c(t,"Not a flow collection!?"))}for(var i=t.items.length-1;i>=0;--i){var a=t.items[i];if(!a||a.type!==v.b.COMMENT){o=a;break}}if(o&&o.char!==n){var s,c="Expected ".concat(r," to end with ").concat(n);"number"==typeof o.offset?(s=new m.c(t,c)).offset=o.offset+1:(s=new m.c(o,c),o.range&&o.range.end&&(s.offset=o.range.end-o.range.start)),e.push(s)}}function pe(e,t,n,r,o){if(r&&"number"==typeof o){var i=t.items[n],a=i&&i.range&&i.range.start;if(!a)for(var s=n-1;s>=0;--s){var c=t.items[s];if(c&&c.range){a=c.range.end+2*(n-s);break}}if(a>o+1024){var l=String(r).substr(0,8)+"..."+String(r).substr(-8);e.push(new m.c(t,'The "'.concat(l,'" key is too long')))}}}function fe(e,t){var n=!0,r=!1,o=void 0;try{for(var i,a=t[Symbol.iterator]();!(n=(i=a.next()).done);n=!0){var s=i.value,c=s.afterKey,l=s.before,u=s.comment,p=e.items[l];p?(c&&p.value&&(p=p.value),void 0===u?!c&&p.commentBefore||(p.spaceBefore=!0):p.commentBefore?p.commentBefore+="\n"+u:p.commentBefore=u):void 0!==u&&(e.comment?e.comment+="\n"+u:e.comment=u)}}catch(e){r=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw o}}}function de(e,t){if(t.type!==v.b.MAP&&t.type!==v.b.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new m.d(t,n)),null}var r=t.type===v.b.FLOW_MAP?function(e,t){for(var n=[],r=[],o=void 0,i=null,a=!1,s="{",c=0;c<t.items.length;++c){pe(e.errors,t,c,o,i);var l=t.items[c];if("string"==typeof l.char){var u=l.char,p=l.offset;if("?"===u&&void 0===o&&!a){a=!0,s=":";continue}if(":"===u){if(void 0===o&&(o=null),":"===s){s=",";continue}}else if(a&&(void 0===o&&","!==u&&(o=null),a=!1),void 0!==o&&(r.push(new J(o)),o=void 0,i=null,","===u)){s=":";continue}if("}"===u){if(c===t.items.length-1)continue}else if(u===s){s=":";continue}var f="Flow map contains an unexpected ".concat(u),d=new m.d(t,f);d.offset=p,e.errors.push(d)}else l.type===v.b.BLANK_LINE?n.push({afterKey:!!o,before:r.length}):l.type===v.b.COMMENT?n.push({afterKey:!!o,before:r.length,comment:l.comment}):void 0===o?(","===s&&e.errors.push(new m.c(l,"Separator , missing in flow map")),o=e.resolveNode(l),i=a?null:l.range.start):(","!==s&&e.errors.push(new m.c(l,"Indicator : missing in flow map entry")),r.push(new J(o,e.resolveNode(l))),o=void 0,a=!1)}ue(e.errors,t),void 0!==o&&r.push(new J(o));return{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],o=void 0,i=null,a=0;a<t.items.length;++a){var s=t.items[a];switch(s.type){case v.b.BLANK_LINE:n.push({afterKey:!!o,before:r.length});break;case v.b.COMMENT:n.push({afterKey:!!o,before:r.length,comment:s.comment});break;case v.b.MAP_KEY:void 0!==o&&r.push(new J(o)),s.error&&e.errors.push(s.error),o=e.resolveNode(s.node),i=null;break;case v.b.MAP_VALUE:if(void 0===o&&(o=null),s.error&&e.errors.push(s.error),!s.context.atLineStart&&s.node&&s.node.type===v.b.MAP&&!s.node.context.atLineStart){e.errors.push(new m.c(s.node,"Nested mappings are not allowed in compact mappings"))}var c=s.node;if(!c&&s.props.length>0){(c=new I(v.b.PLAIN,[])).context={parent:s,src:s.context.src};var l=s.range.start+1;if(c.range={start:l,end:l},c.valueRange={start:l,end:l},"number"==typeof s.range.origStart){var u=s.range.origStart+1;c.range.origStart=c.range.origEnd=u,c.valueRange.origStart=c.valueRange.origEnd=u}}var p=new J(o,e.resolveNode(c));ve(s,p),r.push(p),pe(e.errors,t,a,o,i),o=void 0,i=null;break;default:void 0!==o&&r.push(new J(o)),o=e.resolveNode(s),i=s.range.start,s.error&&e.errors.push(s.error);e:for(var f=a+1;;++f){var d=t.items[f];switch(d&&d.type){case v.b.BLANK_LINE:case v.b.COMMENT:continue e;case v.b.MAP_VALUE:break e;default:e.errors.push(new m.c(s,"Implicit map keys need to be followed by map values"));break e}}if(s.valueRangeContainsNewline){e.errors.push(new m.c(s,"Implicit map keys need to be on a single line"))}}}void 0!==o&&r.push(new J(o));return{comments:n,items:r}}(e,t),o=r.comments,i=r.items,a=new te;a.items=i,fe(a,o);for(var s=!1,c=0;c<i.length;++c){var l=i[c].key;if(l instanceof X&&(s=!0),e.schema.merge&&l&&l.value===oe){i[c]=new ie(i[c]);var u=i[c].value.items,p=null;u.some(function(e){if(e instanceof Z){var t=e.source.type;return t!==v.b.MAP&&t!==v.b.FLOW_MAP&&(p="Merge nodes aliases can only point to maps")}return p="Merge nodes can only have Alias nodes as values"}),p&&e.errors.push(new m.c(t,p))}else for(var f=c+1;f<i.length;++f){var d=i[f].key;if(l===d||l&&d&&Object.prototype.hasOwnProperty.call(l,"value")&&l.value===d.value){var h='Map keys must be unique; "'.concat(l,'" is repeated');e.errors.push(new m.c(t,h));break}}}if(s&&!e.options.mapAsMap){e.warnings.push(new m.e(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=a,a}var he=function(e){var t=e.context,n=t.lineStart,r=t.node,o=t.src,i=e.props;if(0===i.length)return!1;var a=i[0].start;if(r&&a>r.valueRange.start)return!1;if(o[a]!==v.a.COMMENT)return!1;for(var s=n;s<a;++s)if("\n"===o[s])return!1;return!0};function ve(e,t){if(he(e)){var n=e.getPropValue(0,v.a.COMMENT,!0),r=!1,o=t.value.commentBefore;if(o&&o.startsWith(n))t.value.commentBefore=o.substr(n.length+1),r=!0;else{var i=t.value.comment;!e.node&&i&&i.startsWith(n)&&(t.value.comment=i.substr(n.length+1),r=!0)}r&&(t.comment=n)}}var me={createNode:function(e,t,n){var r=new te(e);if(t instanceof Map){var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=D()(s.value,2),u=l[0],p=l[1];r.items.push(e.createPair(u,p,n))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}else if(t&&"object"===V()(t))for(var f=0,d=Object.keys(t);f<d.length;f++){var h=d[f];r.items.push(e.createPair(h,t[h],n))}return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:te,tag:"tag:yaml.org,2002:map",resolve:de};function ge(e,t){if(t.type!==v.b.SEQ&&t.type!==v.b.FLOW_SEQ){var n="A ".concat(t.type," node cannot be resolved as a sequence");return e.errors.push(new m.d(t,n)),null}var r=t.type===v.b.FLOW_SEQ?function(e,t){for(var n=[],r=[],o=!1,i=void 0,a=null,s="[",c=0;c<t.items.length;++c){var l=t.items[c];if("string"==typeof l.char){var u=l.char,p=l.offset;if(":"===u||!o&&void 0===i||(o&&void 0===i&&(i=s?r.pop():null),r.push(new J(i)),o=!1,i=void 0,a=null),u===s)s=null;else if(s||"?"!==u){if("["!==s&&":"===u&&void 0===i){if(","===s){if((i=r.pop())instanceof J){var f=new m.c(t,"Chaining flow sequence pairs is invalid");f.offset=p,e.errors.push(f)}o||pe(e.errors,t,c,i,a)}else i=null;a=null,o=!1,s=null}else if("["===s||"]"!==u||c<t.items.length-1){var d="Flow sequence contains an unexpected ".concat(u),h=new m.d(t,d);h.offset=p,e.errors.push(h)}}else o=!0}else if(l.type===v.b.BLANK_LINE)n.push({before:r.length});else if(l.type===v.b.COMMENT)n.push({comment:l.comment,before:r.length});else{if(s){var g="Expected a ".concat(s," in flow sequence");e.errors.push(new m.c(l,g))}var y=e.resolveNode(l);void 0===i?r.push(y):(r.push(new J(i,y)),i=void 0),a=l.range.start,s=","}}ue(e.errors,t),void 0!==i&&r.push(new J(i));return{comments:n,items:r}}(e,t):function(e,t){for(var n=[],r=[],o=0;o<t.items.length;++o){var i=t.items[o];switch(i.type){case v.b.BLANK_LINE:n.push({before:r.length});break;case v.b.COMMENT:n.push({comment:i.comment,before:r.length});break;case v.b.SEQ_ITEM:if(i.error&&e.errors.push(i.error),r.push(e.resolveNode(i.node)),i.hasProps){e.errors.push(new m.c(i,"Sequence items cannot have tags or anchors before the - indicator"))}break;default:i.error&&e.errors.push(i.error),e.errors.push(new m.d(i,"Unexpected ".concat(i.type," node in sequence")))}}return{comments:n,items:r}}(e,t),o=r.comments,i=r.items,a=new re;if(a.items=i,fe(a,o),!e.options.mapAsMap&&i.some(function(e){return e instanceof J&&e.key instanceof X})){e.warnings.push(new m.e(t,"Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this."))}return t.resolved=a,a}var ye={createNode:function(e,t,n){var r=new re(e);if(t&&t[Symbol.iterator]){var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,u=e.createNode(l,n.wrapScalars,null,n);r.items.push(u)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}}return r},default:!0,nodeClass:re,tag:"tag:yaml.org,2002:seq",resolve:ge},be=n(54),xe=[me,ye,be.a],we=n(15),ke={identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new Y(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:we.c,stringify:function(){return we.c.nullStr}},Se={identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(e){return"t"===e[0]||"T"===e[0]},options:we.b,stringify:function(e){return e.value?we.b.trueStr:we.b.falseStr}},Oe={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(e,t){return parseInt(t,8)},stringify:function(e){return"0o"+e.value.toString(8)}},_e={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(e){return parseInt(e,10)},stringify:le.a},Ee={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(e,t){return parseInt(t,16)},stringify:function(e){return"0x"+e.value.toString(16)}},Ae={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:le.a},Te={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e)},stringify:function(e){var t=e.value;return Number(t).toExponential()}},Ce={identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(e,t,n){var r=t||n,o=new Y(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:le.a},je=xe.concat([ke,Se,Oe,_e,Ee,Ae,Te,Ce]),Pe=[me,ye,{identify:function(e){return"string"==typeof e},default:!0,tag:"tag:yaml.org,2002:str",resolve:be.b,stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new Y(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(e){return"true"===e},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(e){return parseInt(e,10)},stringify:function(e){return JSON.stringify(e)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(e){return parseFloat(e)},stringify:function(e){return JSON.stringify(e)}}];Pe.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var Ie=Pe,Re=n(119);function Le(e,t){for(var n=ge(e,t),r=0;r<n.items.length;++r){var o=n.items[r];if(!(o instanceof J)){if(o instanceof te){if(o.items.length>1){throw new m.c(t,"Each pair must have its own sequence indicator")}var i=o.items[0]||new J;o.commentBefore&&(i.commentBefore=i.commentBefore?"".concat(o.commentBefore,"\n").concat(i.commentBefore):o.commentBefore),o.comment&&(i.comment=i.comment?"".concat(o.comment,"\n").concat(i.comment):o.comment),o=i}n.items[r]=o instanceof J?o:new J(o)}}return n}function Ne(e,t,n){var r=new re(e);r.tag="tag:yaml.org,2002:pairs";var o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,u=void 0,p=void 0;if(Array.isArray(l)){if(2!==l.length)throw new TypeError("Expected [key, value] tuple: ".concat(l));u=l[0],p=l[1]}else if(l&&l instanceof Object){var f=Object.keys(l);if(1!==f.length)throw new TypeError("Expected { key: value } tuple: ".concat(l));p=l[u=f[0]]}else u=l;var d=e.createPair(u,p,n);r.items.push(d)}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}var Me={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Le,createNode:Ne},Be=function(e){function t(){var e;return o()(this,t),e=a()(this,c()(t).call(this)),A()(H()(e),"add",te.prototype.add.bind(H()(e))),A()(H()(e),"delete",te.prototype.delete.bind(H()(e))),A()(H()(e),"get",te.prototype.get.bind(H()(e))),A()(H()(e),"has",te.prototype.has.bind(H()(e))),A()(H()(e),"set",te.prototype.set.bind(H()(e))),e.tag=t.tag,e}return u()(t,e),h()(t,[{key:"toJSON",value:function(e,t){var n=new Map;t&&t.onCreate&&t.onCreate(n);var r=!0,o=!1,i=void 0;try{for(var a,s=this.items[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var c=a.value,l=void 0,u=void 0;if(c instanceof J?(l=z(c.key,"",t),u=z(c.value,l,t)):l=z(c,"",t),n.has(l))throw new Error("Ordered maps must not include duplicate keys");n.set(l,u)}}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}]),t}(re);A()(Be,"tag","tag:yaml.org,2002:omap");var De={identify:function(e){return e instanceof Map},nodeClass:Be,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){var n=Le(e,t),r=[],o=!0,i=!1,a=void 0;try{for(var s,c=n.items[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value.key;if(l instanceof Y){if(r.includes(l.value)){throw new m.c(t,"Ordered maps must not include duplicate keys")}r.push(l.value)}}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return Object.assign(new Be,n)},createNode:function(e,t,n){var r=Ne(e,t,n),o=new Be;return o.items=r.items,o}},Fe=function(e){function t(){var e;return o()(this,t),(e=a()(this,c()(t).call(this))).tag=t.tag,e}return u()(t,e),h()(t,[{key:"add",value:function(e){var t=e instanceof J?e:new J(e);ee(this.items,t.key)||this.items.push(t)}},{key:"get",value:function(e,t){var n=ee(this.items,e);return!t&&n instanceof J?n.key instanceof Y?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(V()(t)));var n=ee(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new J(e))}},{key:"toJSON",value:function(e,n){return f()(c()(t.prototype),"toJSON",this).call(this,e,n,Set)}},{key:"toString",value:function(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return f()(c()(t.prototype),"toString",this).call(this,e,n,r);throw new Error("Set items must all have null values")}}]),t}(te);A()(Fe,"tag","tag:yaml.org,2002:set");var ze={identify:function(e){return e instanceof Set},nodeClass:Fe,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){var n=de(e,t);if(!n.hasAllNullValues())throw new m.c(t,"Set items must all have null values");return Object.assign(new Fe,n)},createNode:function(e,t,n){var r=new Fe,o=!0,i=!1,a=void 0;try{for(var s,c=t[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value;r.items.push(e.createPair(l,null,n))}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r}},qe=function(e,t){var n=t.split(":").reduce(function(e,t){return 60*e+Number(t)},0);return"-"===e?-n:n},Ue=function(e){var t=e.value;if(isNaN(t)||!isFinite(t))return Object(le.a)(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*$/,"")},$e={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 qe(t,n.replace(/_/g,""))},stringify:Ue},He={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 qe(t,n.replace(/_/g,""))},stringify:Ue},We={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=qe(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$/,"")}},Ve=function(e){return e.value?we.b.trueStr:we.b.falseStr},Ke=xe.concat([{identify:function(e){return null==e},createNode:function(e,t,n){return n.wrapScalars?new Y(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:we.c,stringify:function(){return we.c.nullStr}},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:we.b,stringify:Ve},{identify:function(e){return"boolean"==typeof e},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:we.b,stringify:Ve},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^0b([0-1_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),2)},stringify:function(e){return"0b"+e.value.toString(2)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0([0-7_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),8)},stringify:function(e){var t=e.value;return(t<0?"-0":"0")+t.toString(8)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:function(e){return parseInt(e.replace(/_/g,""),10)},stringify:le.a},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F_]+)$/,resolve:function(e,t){return parseInt(t.replace(/_/g,""),16)},stringify:function(e){var t=e.value;return(t<0?"-0x":"0x")+t.toString(16)}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(e,t){return t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:le.a},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(e){return parseFloat(e.replace(/_/g,""))},stringify:function(e){var t=e.value;return Number(t).toExponential()}},{identify:function(e){return"number"==typeof e},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(e,t){var n=new Y(parseFloat(e.replace(/_/g,"")));if(t){var r=t.replace(/_/g,"");"0"===r[r.length-1]&&(n.minFractionDigits=r.length)}return n},stringify:le.a}],Re.a,De,Me,ze,$e,He,We),Ye={core:je,failsafe:xe,json:Ie,yaml11:Ke},Je={binary:Re.a,bool:Se,float:Ce,floatExp:Te,floatNaN:Ae,floatTime:He,int:_e,intHex:Ee,intOct:Oe,intTime:$e,map:me,null:ke,omap:De,pairs:Me,seq:ye,set:ze,timestamp:We},Ge=function(){function e(t){var n=t.customTags,r=t.merge,i=t.schema,a=t.sortMapEntries,s=t.tags;if(o()(this,e),this.merge=!!r,this.name=i,this.sortMapEntries=!0===a?function(e,t){return e.key<t.key?-1:e.key>t.key?1:0}:a||null,this.tags=Ye[i.replace(/\W/g,"")],!this.tags){var c=Object.keys(Ye).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown schema "'.concat(i,'"; use one of ').concat(c))}if(!n&&s&&(n=s,Object(ce.b)("tags","customTags")),Array.isArray(n)){var l=!0,u=!1,p=void 0;try{for(var f,d=n[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var h=f.value;this.tags=this.tags.concat(h)}}catch(e){u=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw p}}}else"function"==typeof n&&(this.tags=n(this.tags.slice()));for(var v=0;v<this.tags.length;++v){var m=this.tags[v];if("string"==typeof m){var g=Je[m];if(!g){var y=Object.keys(Je).map(function(e){return JSON.stringify(e)}).join(", ");throw new Error('Unknown custom tag "'.concat(m,'"; use one of ').concat(y))}this.tags[v]=g}}}return h()(e,[{key:"createNode",value:function(t,n,r,o){if(t instanceof K)return t;var i;if(r){r.startsWith("!!")&&(r=e.defaultPrefix+r.slice(2));var a=this.tags.filter(function(e){return e.tag===r});if(!(i=a.find(function(e){return!e.format})||a[0]))throw new Error("Tag ".concat(r," not found"))}else if(!(i=this.tags.find(function(e){return(e.identify&&e.identify(t)||e.class&&t instanceof e.class)&&!e.format}))){if("function"==typeof t.toJSON&&(t=t.toJSON()),"object"!==V()(t))return n?new Y(t):t;i=t instanceof Map?Je.map:t[Symbol.iterator]?Je.seq:Je.map}o?o.wrapScalars=n:o={wrapScalars:n},o.onTagObj&&(o.onTagObj(i),delete o.onTagObj);var s={};if(t&&"object"===V()(t)&&o.prevObjects){var c=o.prevObjects.get(t);if(c){var l=new Z(c);return o.aliasNodes.push(l),l}s.value=t,o.prevObjects.set(t,s)}return s.node=i.createNode?i.createNode(this,t,o):n?new Y(t):t,r&&s.node instanceof K&&(s.node.tag=r),s.node}},{key:"createPair",value:function(e,t,n){var r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new J(r,o)}},{key:"resolveScalar",value:function(e,t){t||(t=this.tags);for(var n=0;n<t.length;++n){var r=t[n],o=r.format,i=r.test,a=r.resolve;if(i){var s=e.match(i);if(s){var c=a.apply(null,s);return c instanceof Y||(c=new Y(c)),o&&(c.format=o),c}}}return this.tags.scalarFallback&&(e=this.tags.scalarFallback(e)),new Y(e)}},{key:"resolveNode",value:function(e,t,n){var r=this.tags.filter(function(e){return e.tag===n}),o=r.find(function(e){return!e.test});t.error&&e.errors.push(t.error);try{if(o){var i=o.resolve(e,t);i instanceof X||(i=new Y(i)),t.resolved=i}else{var a=Object(be.b)(e,t);"string"==typeof a&&r.length>0&&(t.resolved=this.resolveScalar(a,r))}}catch(n){n.source||(n.source=t),e.errors.push(n),t.resolved=null}return t.resolved?(n&&t.tag&&(t.resolved.tag=n),t.resolved):null}},{key:"resolveNodeWithFallback",value:function(t,n,r){var o=this.resolveNode(t,n,r);if(Object.prototype.hasOwnProperty.call(n,"resolved"))return o;var i,a=(i=n.type)===v.b.FLOW_MAP||i===v.b.MAP?e.defaultTags.MAP:function(e){var t=e.type;return t===v.b.FLOW_SEQ||t===v.b.SEQ}(n)?e.defaultTags.SEQ:e.defaultTags.STR;if(a){t.warnings.push(new m.e(n,"The tag ".concat(r," is unavailable, falling back to ").concat(a)));var s=this.resolveNode(t,n,a);return s.tag=r,s}return t.errors.push(new m.b(n,"The tag ".concat(r," is unavailable"))),null}},{key:"getTagObject",value:function(e){if(e instanceof Z)return Z;if(e.tag){var t=this.tags.filter(function(t){return t.tag===e.tag});if(t.length>0)return t.find(function(t){return t.format===e.format})||t[0]}var n,r;if(e instanceof Y){r=e.value;var o=this.tags.filter(function(e){return e.identify&&e.identify(r)||e.class&&r instanceof e.class});n=o.find(function(t){return t.format===e.format})||o.find(function(e){return!e.format})}else r=e,n=this.tags.find(function(e){return e.nodeClass&&r instanceof e.nodeClass});if(!n){var i=r&&r.constructor?r.constructor.name:V()(r);throw new Error("Tag not resolved for ".concat(i," value"))}return n}},{key:"stringifyProps",value:function(e,t,n){var r=n.anchors,o=n.doc,i=[],a=o.anchors.getName(e);return a&&(r[a]=e,i.push("&".concat(a))),e.tag?i.push(o.stringifyTag(e.tag)):t.default||i.push(o.stringifyTag(t.tag)),i.join(" ")}},{key:"stringify",value:function(e,t,n,r){var o;if(!(e instanceof K)){var i={aliasNodes:[],onTagObj:function(e){return o=e},prevObjects:new Map};e=this.createNode(e,!0,null,i);var a=t.doc.anchors,s=!0,c=!1,l=void 0;try{for(var u,p=i.aliasNodes[Symbol.iterator]();!(s=(u=p.next()).done);s=!0){var f=u.value;f.source=f.source.node;var d=a.getName(f.source);d||(d=a.newName(),a.map[d]=f.source)}}catch(e){c=!0,l=e}finally{try{s||null==p.return||p.return()}finally{if(c)throw l}}}if(t.tags=this,e instanceof J)return e.toString(t,n,r);o||(o=this.getTagObject(e));var h=this.stringifyProps(e,o,t);h.length>0&&(t.indentAtStart=(t.indentAtStart||0)+h.length+1);var v="function"==typeof o.stringify?o.stringify(e,t,n,r):e instanceof X?e.toString(t,n,r):Object(le.b)(e,t,n,r);return h?e instanceof X&&"{"!==v[0]&&"["!==v[0]?"".concat(h,"\n").concat(t.indent).concat(v):"".concat(h," ").concat(v):v}}]),e}();A()(Ge,"defaultPrefix","tag:yaml.org,2002:"),A()(Ge,"defaultTags",{MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"});var Qe=function(){function e(t){o()(this,e),this.anchors=new ae(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return h()(e,[{key:"assertCollectionContents",value:function(){if(this.contents instanceof X)return!0;throw new Error("Expected a YAML collection as document contents")}},{key:"add",value:function(e){return this.assertCollectionContents(),this.contents.add(e)}},{key:"addIn",value:function(e,t){this.assertCollectionContents(),this.contents.addIn(e,t)}},{key:"delete",value:function(e){return this.assertCollectionContents(),this.contents.delete(e)}},{key:"deleteIn",value:function(e){return Q(e)?null!=this.contents&&(this.contents=null,!0):(this.assertCollectionContents(),this.contents.deleteIn(e))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(e,t){return this.contents instanceof X?this.contents.get(e,t):void 0}},{key:"getIn",value:function(e,t){return Q(e)?!t&&this.contents instanceof Y?this.contents.value:this.contents:this.contents instanceof X?this.contents.getIn(e,t):void 0}},{key:"has",value:function(e){return this.contents instanceof X&&this.contents.has(e)}},{key:"hasIn",value:function(e){return Q(e)?void 0!==this.contents:this.contents instanceof X&&this.contents.hasIn(e)}},{key:"set",value:function(e,t){this.assertCollectionContents(),this.contents.set(e,t)}},{key:"setIn",value:function(e,t){Q(e)?this.contents=t:(this.assertCollectionContents(),this.contents.setIn(e,t))}},{key:"setSchema",value:function(e,t){if(e||t||!this.schema){"number"==typeof e&&(e=e.toFixed(1)),"1.0"===e||"1.1"===e||"1.2"===e?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&"string"==typeof e&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);var n=Object.assign({},this.getDefaults(),this.options);this.schema=new Ge(n)}}},{key:"parse",value:function(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");var n=e.directives,r=void 0===n?[]:n,o=e.contents,i=void 0===o?[]:o,a=e.directivesEndMarker,s=e.error,c=e.valueRange;if(s&&(s.source||(s.source=this),this.errors.push(s)),this.parseDirectives(r,t),a&&(this.directivesEndMarker=!0),this.range=c?[c.start,c.end]:null,this.setSchema(),this.anchors._cstAliases=[],this.parseContents(i),this.anchors.resolveNodes(),this.options.prettyErrors){var l=!0,u=!1,p=void 0;try{for(var f,d=this.errors[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var h=f.value;h instanceof m.a&&h.makePretty()}}catch(e){u=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw p}}var v=!0,g=!1,y=void 0;try{for(var b,x=this.warnings[Symbol.iterator]();!(v=(b=x.next()).done);v=!0){var w=b.value;w instanceof m.a&&w.makePretty()}}catch(e){g=!0,y=e}finally{try{v||null==x.return||x.return()}finally{if(g)throw y}}}return this}},{key:"parseDirectives",value:function(e,t){var n=this,r=[],o=!1;if(e.forEach(function(e){var t=e.comment,i=e.name;switch(i){case"TAG":n.resolveTagDirective(e),o=!0;break;case"YAML":case"YAML:1.0":n.resolveYamlDirective(e),o=!0;break;default:if(i){var a="YAML only supports %TAG and %YAML directives, and not %".concat(i);n.warnings.push(new m.e(e,a))}}t&&r.push(t)}),t&&!o&&"1.1"===(this.version||t.version||this.options.version)){this.tagPrefixes=t.tagPrefixes.map(function(e){return{handle:e.handle,prefix:e.prefix}}),this.version=t.version}this.commentBefore=r.join("\n")||null}},{key:"parseContents",value:function(e){var t=this,n={before:[],after:[]},r=[],o=!1;switch(e.forEach(function(e){if(e.valueRange){if(1===r.length){t.errors.push(new m.d(e,"Document is not valid YAML (bad indentation?)"))}var i=t.resolveNode(e);o&&(i.spaceBefore=!0,o=!1),r.push(i)}else if(null!==e.comment){(0===r.length?n.before:n.after).push(e.comment)}else e.type===v.b.BLANK_LINE&&(o=!0,0===r.length&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join("\n"),n.before=[]))}),r.length){case 0:this.contents=null,n.after=n.before;break;case 1:if(this.contents=r[0],this.contents){var i=n.before.join("\n")||null;if(i){var a=this.contents instanceof X&&this.contents.items[0]?this.contents.items[0]:this.contents;a.commentBefore=a.commentBefore?"".concat(i,"\n").concat(a.commentBefore):i}}else n.after=n.before.concat(n.after);break;default:this.contents=r,this.contents[0]?this.contents[0].commentBefore=n.before.join("\n")||null:n.after=n.before.concat(n.after)}this.comment=n.after.join("\n")||null}},{key:"resolveTagDirective",value:function(e){var t=D()(e.parameters,2),n=t[0],r=t[1];if(n&&r)if(this.tagPrefixes.every(function(e){return e.handle!==n}))this.tagPrefixes.push({handle:n,prefix:r});else{this.errors.push(new m.c(e,"The %TAG directive must only be given at most once per handle in the same document."))}else{this.errors.push(new m.c(e,"Insufficient parameters given for %TAG directive"))}}},{key:"resolveYamlDirective",value:function(t){var n=D()(t.parameters,1)[0];if("YAML:1.0"===t.name&&(n="1.0"),this.version){this.errors.push(new m.c(t,"The %YAML directive must only be given at most once per document."))}if(n){if(!e.defaults[n]){var r=this.version||this.options.version,o="Document will be parsed as YAML ".concat(r," rather than YAML ").concat(n);this.warnings.push(new m.e(t,o))}this.version=n}else{this.errors.push(new m.c(t,"Insufficient parameters given for %YAML directive"))}}},{key:"resolveTagName",value:function(e){var t=e.tag,n=e.type,r=!1;if(t){var o=t.handle,i=t.suffix,a=t.verbatim;if(a){if("!"!==a&&"!!"!==a)return a;var s="Verbatim tags aren't resolved, so ".concat(a," is invalid.");this.errors.push(new m.c(e,s))}else if("!"!==o||i){var c=this.tagPrefixes.find(function(e){return e.handle===o});if(!c){var l=this.getDefaults().tagPrefixes;l&&(c=l.find(function(e){return e.handle===o}))}if(c){if(i){if("!"===o&&"1.0"===(this.version||this.options.version)){if("^"===i[0])return i;if(/[:\/]/.test(i)){var u=i.match(/^([a-z0-9-]+)\/(.*)/i);return u?"tag:".concat(u[1],".yaml.org,2002:").concat(u[2]):"tag:".concat(i)}}return c.prefix+decodeURIComponent(i)}this.errors.push(new m.c(e,"The ".concat(o," tag has no suffix.")))}else{var p="The ".concat(o," tag handle is non-default and was not declared.");this.errors.push(new m.c(e,p))}}else r=!0}switch(n){case v.b.BLOCK_FOLDED:case v.b.BLOCK_LITERAL:case v.b.QUOTE_DOUBLE:case v.b.QUOTE_SINGLE:return Ge.defaultTags.STR;case v.b.FLOW_MAP:case v.b.MAP:return Ge.defaultTags.MAP;case v.b.FLOW_SEQ:case v.b.SEQ:return Ge.defaultTags.SEQ;case v.b.PLAIN:return r?Ge.defaultTags.STR:null;default:return null}}},{key:"resolveNode",value:function(e){if(!e)return null;var t,n=this.anchors,r=this.errors,o=this.schema,i=!1,a=!1,s={before:[],after:[]},c=function(e){return e&&[v.b.MAP_KEY,v.b.MAP_VALUE,v.b.SEQ_ITEM].includes(e.type)}(e.context.parent)?e.context.parent.props.concat(e.props):e.props,l=!0,u=!1,p=void 0;try{for(var f,d=c[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var h=f.value,g=h.start,y=h.end;switch(e.context.src[g]){case v.a.COMMENT:if(!e.commentHasRequiredWhitespace(g)){r.push(new m.c(e,"Comments must be separated from other tokens by white space characters"))}var b=e.context.src.slice(g+1,y),x=e.header,w=e.valueRange;w&&(g>w.start||x&&g>x.start)?s.after.push(b):s.before.push(b);break;case v.a.ANCHOR:if(i){r.push(new m.c(e,"A node can have at most one anchor"))}i=!0;break;case v.a.TAG:if(a){r.push(new m.c(e,"A node can have at most one tag"))}a=!0}}}catch(e){u=!0,p=e}finally{try{l||null==d.return||d.return()}finally{if(u)throw p}}if(i){var k=e.anchor,S=n.getNode(k);S&&(n.map[n.newName(k)]=S),n.map[k]=e}if(e.type===v.b.ALIAS){if(i||a){r.push(new m.c(e,"An alias node must not specify any properties"))}var O=e.rawValue,_=n.getNode(O);if(!_){var E="Aliased anchor not found: ".concat(O);return r.push(new m.b(e,E)),null}t=new Z(_),n._cstAliases.push(t)}else{var A=this.resolveTagName(e);if(A)t=o.resolveNodeWithFallback(this,e,A);else{if(e.type!==v.b.PLAIN){var T="Failed to resolve ".concat(e.type," node here");return r.push(new m.d(e,T)),null}try{t=o.resolveScalar(e.strValue||"")}catch(t){return t.source||(t.source=e),r.push(t),null}}}if(t){t.range=[e.range.start,e.range.end],this.options.keepCstNodes&&(t.cstNode=e),this.options.keepNodeTypes&&(t.type=e.type);var C=s.before.join("\n");C&&(t.commentBefore=t.commentBefore?"".concat(t.commentBefore,"\n").concat(C):C);var j=s.after.join("\n");j&&(t.comment=t.comment?"".concat(t.comment,"\n").concat(j):j)}return e.resolved=t}},{key:"listNonDefaultTags",value:function(){return se(this.contents).filter(function(e){return 0!==e.indexOf(Ge.defaultPrefix)})}},{key:"setTagPrefix",value:function(e,t){if("!"!==e[0]||"!"!==e[e.length-1])throw new Error("Handle must start and end with !");if(t){var n=this.tagPrefixes.find(function(t){return t.handle===e});n?n.prefix=t:this.tagPrefixes.push({handle:e,prefix:t})}else this.tagPrefixes=this.tagPrefixes.filter(function(t){return t.handle!==e})}},{key:"stringifyTag",value:function(e){if("1.0"===(this.version||this.options.version)){var t=e.match(/^tag:private\.yaml\.org,2002:([^:\/]+)$/);if(t)return"!"+t[1];var n=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return n?"!".concat(n[1],"/").concat(n[2]):"!".concat(e.replace(/^tag:/,""))}var r=this.tagPrefixes.find(function(t){return 0===e.indexOf(t.prefix)});if(!r){var o=this.getDefaults().tagPrefixes;r=o&&o.find(function(t){return 0===e.indexOf(t.prefix)})}if(!r)return"!"===e[0]?e:"!<".concat(e,">");var i=e.substr(r.prefix.length).replace(/[!,[\]{}]/g,function(e){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[e]});return r.handle+i}},{key:"toJSON",value:function(e){var t=this,n=this.options,r=n.keepBlobsInJSON,o=n.mapAsMap,i=n.maxAliasCount,a=r&&("string"!=typeof e||!(this.contents instanceof Y)),s={doc:this,keep:a,mapAsMap:a&&!!o,maxAliasCount:i},c=Object.keys(this.anchors.map);return c.length>0&&(s.anchors=c.map(function(e){return{alias:[],aliasCount:0,count:1,node:t.anchors.map[e]}})),z(this.contents,e,s)}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");this.setSchema();var e=[],t=!1;if(this.version){var n="%YAML 1.2";"yaml-1.1"===this.schema.name&&("1.0"===this.version?n="%YAML:1.0":"1.1"===this.version&&(n="%YAML 1.1")),e.push(n),t=!0}var r=this.listNonDefaultTags();this.tagPrefixes.forEach(function(n){var o=n.handle,i=n.prefix;r.some(function(e){return 0===e.indexOf(i)})&&(e.push("%TAG ".concat(o," ").concat(i)),t=!0)}),(t||this.directivesEndMarker)&&e.push("---"),this.commentBefore&&(!t&&this.directivesEndMarker||e.unshift(""),e.unshift(this.commentBefore.replace(/^/gm,"#")));var o={anchors:{},doc:this,indent:""},i=!1,a=null;if(this.contents){this.contents instanceof K&&(this.contents.spaceBefore&&(t||this.directivesEndMarker)&&e.push(""),this.contents.commentBefore&&e.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);var s=a?null:function(){return i=!0},c=this.schema.stringify(this.contents,o,function(){return a=null},s);e.push(Object(F.b)(c,"",a))}else void 0!==this.contents&&e.push(this.schema.stringify(this.contents,o));return this.comment&&(i&&!a||""===e[e.length-1]||e.push(""),e.push(this.comment.replace(/^/gm,"#"))),e.join("\n")+"\n"}}]),e}();A()(Qe,"defaults",{"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:Ge.defaultPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Ge.defaultPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:Ge.defaultPrefix}]}});var Xe={anchorPrefix:"a",customTags:null,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"};var Ze=function(e){function t(e){return o()(this,t),a()(this,c()(t).call(this,Object.assign({},Xe,e)))}return u()(t,e),t}(Qe);function et(e,t){var n=M(e),r=new Ze(t).parse(n[0]);if(n.length>1){r.errors.unshift(new m.c(n[1],"Source contains multiple documents; please use YAML.parseAllDocuments()"))}return r}t.default={createNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0;void 0===n&&"string"==typeof t&&(n=t,t=!0);var r=Object.assign({},Qe.defaults[Xe.version],Xe);return new Ge(r).createNode(e,t,n)},defaultOptions:Xe,Document:Ze,parse:function(e,t){var n=et(e,t);if(n.warnings.forEach(function(e){return Object(ce.a)(e)}),n.errors.length>0)throw n.errors[0];return n.toJSON()},parseAllDocuments:function(e,t){var n,r=[],o=!0,i=!1,a=void 0;try{for(var s,c=M(e)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var l=s.value,u=new Ze(t);u.parse(l,n),r.push(u),n=u}}catch(e){i=!0,a=e}finally{try{o||null==c.return||c.return()}finally{if(i)throw a}}return r},parseCST:M,parseDocument:et,stringify:function(e,t){var n=new Ze(t);return n.contents=e,String(n)}}}]);
  218. //# sourceMappingURL=rapidoc-min.js.map