diff --git a/BANNER.md b/BANNER.md new file mode 100644 index 0000000..3ea82e0 --- /dev/null +++ b/BANNER.md @@ -0,0 +1,49 @@ +# Dual-running notice banner + +Branch: `banner`. Adds the Figma "Banner / Dual-running" notice to the top of every +documentation page. + +## Heads-up: this repo is build output + +`index.html` and `static/js/*.chunk.js` are generated artifacts (see the +`New release ` commits). **Both changes below are overwritten by the next +release build.** The banner should be ported into the source project that produces +this bundle; until then, reapply these two edits after every release. + +## What changed + +1. `index.html` — three additions, all marked with `op-banner`: + - ` +
+
+
+ +
+

Please use the new documentation

+

This page is still here for now, but it will no longer be available from 31-Dec-2026. All content has moved to the new API documentation, which covers current features and new updates.

+
+
+Go to the new documentation +
+
\ No newline at end of file diff --git a/static/js/main.ffea48a5.chunk.js b/static/js/main.ffea48a5.chunk.js index a5a9e9f..fa534fe 100644 --- a/static/js/main.ffea48a5.chunk.js +++ b/static/js/main.ffea48a5.chunk.js @@ -1,2 +1,2 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{155:function(e,n,t){e.exports=t(301)},160:function(e,n,t){},181:function(e,n){},183:function(e,n){},220:function(e,n){},301:function(e,n,t){"use strict";t.r(n);var r=t(0),o=t.n(r),i=t(6),a=t.n(i),s=(t(160),t(145)),l=t(16),c=t(66),u=t(32),p=t(77),d=t(67),f=t(76),h=t(133),m=t(134),g=t(93),y=t(330),b=t(329),v=t(331),_=t(79),x=t(326),w=t(305),k=t(327),O=t(332),E=t(328),T=t(333),S=t(8),j=t(142),I=t.n(j),A=t(148),C=Object(T.a)({root:{width:"100%",maxWidth:360},selectText:{flex:"0 1 auto"},icon:{fontSize:32}}),P=function(e){function n(){return Object(c.a)(this,n),Object(p.a)(this,Object(d.a)(n).apply(this,arguments))}return Object(f.a)(n,e),Object(u.a)(n,[{key:"componentWillMount",value:function(){this.setState({anchorEl:null})}},{key:"handleClickListItem",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuItemClick",value:function(e,n){this.props.history.push("/doc/".concat(n.id)),this.setState({anchorEl:null})}},{key:"handleClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this,n=this.state.anchorEl,t=this.props,r=t.docs,i=t.doc,a=t.classes;return o.a.createElement("div",{className:a.root},o.a.createElement(x.a,{component:"nav","aria-label":"Selected documentation"},o.a.createElement(w.a,{button:!0,"aria-haspopup":"true","aria-controls":"lock-menu","aria-label":"Selected documentation",onClick:this.handleClickListItem.bind(this)},o.a.createElement(k.a,{primary:i?i.title:"Select documentation",className:a.selectText}),o.a.createElement(I.a,{className:a.icon}))),o.a.createElement(O.a,{id:"lock-menu",anchorEl:n,keepMounted:!0,open:Boolean(n),onClose:this.handleClose.bind(this)},r.map(function(n,t){return o.a.createElement(E.a,{key:t,selected:n===i,onClick:function(t){return e.handleMenuItemClick(t,n)}},n.title)})))}}]),n}(r.Component),R=Object(A.a)(Object(S.a)(C),l.f)(P),q=Object(b.a)(function(e){return{root:{flexGrow:1},title:{marginRight:e.spacing(2)},toolbar:{boxShadow:"none"}}}),L=function(e){var n=e.docs,t=e.doc,r=q();return o.a.createElement("div",{className:r.root},o.a.createElement(y.a,{className:r.toolbar,position:"fixed"},o.a.createElement(v.a,null,o.a.createElement(_.a,{variant:"h6",className:r.title},"Openprovider documentation"),o.a.createElement(R,{docs:n,doc:t}))))};function M(){var e=Object(m.a)(["\n padding-top: 64px;\n"]);return M=function(){return e},e}var N={untrustedSpec:!0,noAutoAuth:!0,scrollYOffset:64,theme:{headerSize:64,spacing:{unit:5,sectionHorizontal:40,sectionVertical:10},extensionsHook:function(e,n){switch(e){case"H1":return"\n margin: 10px 0 0 0;\n ";case"H2":return"\n margin: 8px 0;\n ";default:return}}}},D=g.styled.div(M()),F=function(e){var n=e.doc,t=e.docs;Object(h.a)(e,["doc","docs"]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(L,{doc:n,docs:t}),o.a.createElement(D,null,n&&o.a.createElement(g.RedocStandalone,{specUrl:n.path,options:N})))},z=function(e){function n(){return Object(c.a)(this,n),Object(p.a)(this,Object(d.a)(n).apply(this,arguments))}return Object(f.a)(n,e),Object(u.a)(n,[{key:"componentWillMount",value:function(){this.setState({docs:[]})}},{key:"componentDidMount",value:function(){var e=this;fetch("/map.json").then(function(e){return e.json()}).then(function(n){return e.setState({docs:n})}).catch(function(){throw new Error("REACT_APP_API_JSON is invalid.")})}},{key:"render",value:function(){var e=this.props.match,n=this.state.docs;return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.b,{path:e.path,exact:!0,render:function(){var t=n&&n.length?n[0]:null;return t?o.a.createElement(l.a,{to:"".concat(e.url,"/").concat(t.id)}):o.a.createElement(o.a.Fragment,null)}}),o.a.createElement(l.b,{path:"".concat(e.path,"/:id"),render:function(e){var t=e.match.params,r=n.find(function(e){return e.id===t.id})||null;return o.a.createElement(F,{doc:r,docs:n})}}))}}]),n}(r.Component);a.a.render(o.a.createElement(function(){return o.a.createElement(s.a,null,o.a.createElement(l.b,{path:"/",exact:!0,render:function(){return o.a.createElement(l.a,{to:"/doc"})}}),o.a.createElement(l.b,{path:"/doc",component:z}))},null),document.getElementById("root"))},93:function(e,n,t){var r;r=function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=80)}([function(e,n){e.exports=t(0)},function(e,n){e.exports=t(161)},function(e,n){e.exports=t(162)},function(e,n){e.exports=t(300)},function(e,n){e.exports=t(14)},function(e,n){e.exports=t(44)},function(e,n){e.exports=t(169)},function(e,n){e.exports=t(171)},function(e,n){e.exports=t(299)},function(e,n){e.exports=t(174)},function(e,n){e.exports=void 0},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"===typeof window&&(t=window)}e.exports=t},function(e,n){e.exports=t(4)},function(e,n){e.exports=t(175)},function(e,n){e.exports=t(176)},function(e,n){var t,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(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,p=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var n=c.length;n;){for(l=c,c=[];++p1)for(var t=1;t=0){var o=n.split("#");if(o[0])return!1;n=o[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));for(var i=n.split("/"),a=0;a0?i[a-1]:"",-1!=l||e.hasOwnProperty(i[a]))if(l>=0)s&&(e[l]=t),e=e[l];else{if(-2===l)return s?(Array.isArray(e)&&e.push(t),t):void 0;s&&(e[i[a]]=t),e=e[i[a]]}else{if("undefined"===typeof t||"object"!==typeof e||Array.isArray(e))return!1;e[i[a]]=s?t:"0"===i[a+1]||"-"===i[a+1]?[]:{},e=e[i[a]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,n,t){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},deepClone:function e(n){var t=Array.isArray(n)?[]:{};for(var r in n)(n.hasOwnProperty(r)||Array.isArray(n))&&(t[r]="object"===typeof n[r]?e(n[r]):n[r]);return t},fastClone:function(e){return Object.assign({},e)},circularClone:function e(n,t){if(t||(t=new WeakMap),Object(n)!==n||n instanceof Function)return n;if(t.has(n))return t.get(n);try{var r=new n.constructor}catch(o){r=Object.create(Object.getPrototypeOf(n))}return t.set(n,r),Object.assign.apply(Object,[r].concat(Object.keys(n).map(function(r){var o;return(o={})[r]=e(n[r],t),o})))}}},function(e,n,t){(function(e){function t(e,n){for(var t=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),t++):t&&(e.splice(r,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function r(e,n){if(e.filter)return e.filter(n);for(var t=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return(o?"/":"")+(n=t(r(n.split("/"),function(e){return!!e}),!o).join("/"))||"."},n.normalize=function(e){var i=n.isAbsolute(e),a="/"===o(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,n){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var n=0;n=0&&""===e[t];t--);return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l=1;--i)if(47===(n=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?t?"/":".":t&&1===r?"/":e.slice(0,r)},n.basename=function(e,n){var t=function(e){"string"!==typeof e&&(e+="");var n,t=0,r=-1,o=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){t=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(t,r)}(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!==typeof e&&(e+="");for(var n=-1,t=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===n?n=a:1!==i&&(i=1):-1!==n&&(i=-1);else if(!o){t=a+1;break}}return-1===n||-1===r||0===i||1===i&&n===r-1&&n===t+1?"":e.slice(n,r)};var o="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}}).call(this,t(15))},function(e,n){e.exports=t(177)},function(e,n,t){"use strict";e.exports={isRef:function(e,n){return"$ref"===n&&!!e&&"string"===typeof e[n]}}},function(e,n,t){"use strict";var r=t(16).jpescape;e.exports={recurse:function e(n,t,o){if(t||(t={depth:0}),t.depth||(t=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},t)),"object"===typeof n){var i=t.path;for(var a in n){if(t.key=a,t.path=t.path+"/"+encodeURIComponent(r(a)),t.identityPath=t.seen.get(n[a]),t.identity="undefined"!==typeof t.identityPath,o(n,a,t),"object"===typeof n[a]&&!t.identity){t.identityDetection&&!Array.isArray(n[a])&&null!==n[a]&&t.seen.set(n[a],t.path);var s={};s.parent=n,s.path=t.path,s.depth=t.depth?t.depth+1:1,s.pkey=a,s.payload=t.payload,s.seen=t.seen,s.identity=!1,s.identityDetection=t.identityDetection,e(n[a],s,o)}t.path=i}}}}},function(e,n){e.exports=t(178)},function(e,n){e.exports=t(179)},function(e,n){e.exports=t(180)},function(e,n,t){(e.exports=t(78)(!1)).push([e.i,"/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n",""])},function(e,n){},function(e,n,t){"use strict";(function(n){var r=t(10),o=n.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1b[31m",yellow:"\x1b[33;1m",green:"\x1b[32m",normal:"\x1b[0m"};function i(e){for(var n=[],t=function(e){n.find(function(n,t,o){return function(e,n){function t(e,n){return r.stringify(e)===r.stringify(Object.assign({},e,n))}return t(e,n)&&t(n,e)}(n,e)})||n.push(e)},o=0,i=e;o=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,n){if(l.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 t=e.length;if(0===t)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return B(e).length;default:if(r)return z(e).length;n=(""+n).toLowerCase(),r=!0}}function m(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function g(e,n,t,r,o){if(0===e.length)return-1;if("string"===typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)return-1;t=0}if("string"===typeof n&&(n=l.from(n,r)),l.isBuffer(n))return 0===n.length?-1:y(e,n,t,r,o);if("number"===typeof n)return n&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):y(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,n,t,r,o){var i,a=1,s=e.length,l=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||n.length<2)return-1;a=2,s/=2,l/=2,t/=2}function c(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(o){var u=-1;for(i=t;is&&(t=s-l),i=t;i>=0;i--){for(var p=!0,d=0;do&&(r=o):r=o;var i=n.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function O(e,n,t){return 0===n&&t===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(n,t))}function E(e,n,t){t=Math.min(e.length,t);for(var r=[],o=n;o239?4:c>223?3:c>191?2:1;if(o+p<=t)switch(p){case 1:c<128&&(u=c);break;case 2:128===(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}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 n=e.length;if(n<=T)return String.fromCharCode.apply(String,e);var t="",r=0;for(;rthis.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,n,t);case"utf8":case"utf-8":return E(this,n,t);case"ascii":return S(this,n,t);case"latin1":case"binary":return j(this,n,t);case"base64":return O(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,n,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},l.prototype.compare=function(e,n,t,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===t&&(t=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(t>>>=0)-(n>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(n,t),p=0;po)&&(t=o),e.length>0&&(t<0||n<0)||n>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,n,t);case"utf8":case"utf-8":return v(this,e,n,t);case"ascii":return _(this,e,n,t);case"latin1":case"binary":return x(this,e,n,t);case"base64":return w(this,e,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function S(e,n,t){var r="";t=Math.min(e.length,t);for(var o=n;or)&&(t=r);for(var o="",i=n;it)throw new RangeError("Trying to access beyond buffer length")}function P(e,n,t,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||ne.length)throw new RangeError("Index out of range")}function R(e,n,t,r){n<0&&(n=65535+n+1);for(var o=0,i=Math.min(e.length-t,2);o>>8*(r?o:1-o)}function q(e,n,t,r){n<0&&(n=4294967295+n+1);for(var o=0,i=Math.min(e.length-t,4);o>>8*(r?o:3-o)&255}function L(e,n,t,r,o,i){if(t+r>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function M(e,n,t,r,i){return i||L(e,0,t,4),o.write(e,n,t,r,23,4),t+4}function N(e,n,t,r,i){return i||L(e,0,t,8),o.write(e,n,t,r,52,8),t+8}l.prototype.slice=function(e,n){var t,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n0&&(o*=256);)r+=this[e+--n]*o;return r},l.prototype.readUInt8=function(e,n){return n||C(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,n){return n||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,n){return n||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,n){return n||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,n){return n||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,n,t){e|=0,n|=0,t||C(e,n,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*n)),r},l.prototype.readIntBE=function(e,n,t){e|=0,n|=0,t||C(e,n,this.length);for(var r=n,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},l.prototype.readInt8=function(e,n){return n||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,n){n||C(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(e,n){n||C(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(e,n){return n||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,n){return n||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,n){return n||C(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,n){return n||C(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,n){return n||C(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,n){return n||C(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,n,t,r){(e=+e,n|=0,t|=0,r)||P(this,e,n,t,Math.pow(2,8*t)-1,0);var o=1,i=0;for(this[n]=255&e;++i=0&&(i*=256);)this[n+o]=e/i&255;return n+t},l.prototype.writeUInt8=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},l.prototype.writeUInt16LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):R(this,e,n,!0),n+2},l.prototype.writeUInt16BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):R(this,e,n,!1),n+2},l.prototype.writeUInt32LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):q(this,e,n,!0),n+4},l.prototype.writeUInt32BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):q(this,e,n,!1),n+4},l.prototype.writeIntLE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);P(this,e,n,t,o-1,-o)}var i=0,a=1,s=0;for(this[n]=255&e;++i>0)-s&255;return n+t},l.prototype.writeIntBE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);P(this,e,n,t,o-1,-o)}var i=t-1,a=1,s=0;for(this[n+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[n+i+1]&&(s=1),this[n+i]=(e/a>>0)-s&255;return n+t},l.prototype.writeInt8=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},l.prototype.writeInt16LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):R(this,e,n,!0),n+2},l.prototype.writeInt16BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):R(this,e,n,!1),n+2},l.prototype.writeInt32LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):q(this,e,n,!0),n+4},l.prototype.writeInt32BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):q(this,e,n,!1),n+4},l.prototype.writeFloatLE=function(e,n,t){return M(this,e,n,!0,t)},l.prototype.writeFloatBE=function(e,n,t){return M(this,e,n,!1,t)},l.prototype.writeDoubleLE=function(e,n,t){return N(this,e,n,!0,t)},l.prototype.writeDoubleBE=function(e,n,t){return N(this,e,n,!1,t)},l.prototype.copy=function(e,n,t,r){if(t||(t=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n=0;--o)e[o+n]=this[o+t];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"===typeof e)for(i=n;i55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,n,t,r){for(var o=0;o=n.length||o>=e.length);++o)n[o+t]=e[o];return o}}).call(this,t(11))},function(e,n,t){(function(e){n.fetch=s(e.fetch)&&s(e.ReadableStream),n.writableStream=s(e.WritableStream),n.abortController=s(e.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(l){}var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(l){t=null}}else t=null;return t}function o(e){var n=r();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(l){}return!1}var i="undefined"!==typeof e.ArrayBuffer,a=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}n.arraybuffer=n.fetch||i&&o("arraybuffer"),n.msstream=!n.fetch&&a&&o("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&i&&o("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!r()&&s(r().overrideMimeType),n.vbArray=s(e.VBArray),t=null}).call(this,t(11))},function(e,n){e.exports=t(28)},function(e,n,t){(function(e,r,o){var i=t(29),a=t(30),s=t(32),l=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=n.IncomingMessage=function(n,t,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){e.nextTick(function(){c.emit("close")})}),"fetch"===a){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEach(function(e,n){c.headers[n.toLowerCase()]=e,c.rawHeaders.push(n,e)}),i.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(n,t){c._destroyed?t():c.push(new r(e))?n():c._resumeFetch=n})},close:function(){o.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void t.body.pipeTo(u).catch(function(e){o.clearTimeout(l),c._destroyed||c.emit("error",e)})}catch(h){}}var p=t.body.getReader();!function e(){p.read().then(function(n){if(!c._destroyed){if(n.done)return o.clearTimeout(l),void c.push(null);c.push(new r(n.value)),e()}}).catch(function(e){o.clearTimeout(l),c._destroyed||c.emit("error",e)})}()}else{if(c._xhr=n,c._pos=0,c.url=n.responseURL,c.statusCode=n.status,c.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var n=e.match(/^([^:]+):\s*(.*)/);if(n){var t=n[1].toLowerCase();"set-cookie"===t?(void 0===c.headers[t]&&(c.headers[t]=[]),c.headers[t].push(n[2])):void 0!==c.headers[t]?c.headers[t]+=", "+n[2]:c.headers[t]=n[2],c.rawHeaders.push(n[1],n[2])}}),c._charset="x-user-defined",!i.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var f=d.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,n=e._xhr,t=null;switch(e._mode){case"text:vbarray":if(n.readyState!==l.DONE)break;try{t=new o.VBArray(n.responseBody).toArray()}catch(u){}if(null!==t){e.push(new r(t));break}case"text":try{t=n.responseText}catch(u){e._mode="text:vbarray";break}if(t.length>e._pos){var i=t.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(t)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,t(15),t(28).Buffer,t(11))},function(e,n){e.exports=t(80)},function(e,n,t){"use strict";t.r(n),t.d(n,"add",function(){return p}),t.d(n,"done",function(){return d}),t.d(n,"toJS",function(){return f}),t.d(n,"load",function(){return h}),t.d(n,"search",function(){return m});var r=t(1),o=t(7);try{t(77)}catch(g){}var i=function(){return function(){this.add=p,this.done=d,this.search=m,this.toJS=f,this.load=h}}();n.default=i;var a=[],s=function(){throw new Error("Should not be called")},l=new Promise(function(e){s=e});o.tokenizer.separator=/\s+/;var c=new o.Builder;c.field("title"),c.field("description"),c.ref("ref"),c.pipeline.add(o.trimmer,o.stopWordFilter,o.stemmer);var u=function(e){return"*"+o.stemmer(new o.Token(e,{}))+"*"};function p(e,n,t){var r=a.push(t)-1,o={title:e.toLowerCase(),description:n.toLowerCase(),ref:r};c.add(o)}function d(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return s(c.build()),[2]})})}function f(){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return e={store:a},[4,l];case 1:return[2,(e.index=n.sent().toJSON(),e)]}})})}function h(e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){return a=e.store,s(o.Index.load(e.index)),[2]})})}function m(e,n){return void 0===n&&(n=0),r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(r){switch(r.label){case 0:return 0===e.trim().length?[2,[]]:[4,l];case 1:return t=r.sent().query(function(n){e.trim().toLowerCase().split(/\s+/).forEach(function(e){var t=u(e);n.term(t,{})})}),n>0&&(t=t.slice(0,n)),[2,t.map(function(e){return{meta:a[e.ref],score:e.score}})]}})})}},function(e,n){e.exports=t(188)},function(e,n){e.exports=t(189)},function(e,n){e.exports=t(191)},function(e,n,t){"use strict";var r,o=t(1),i=t(26),a=t(5),s=(t(18),t(42)),l=t(10),c=t(10),u=t(16),p=u.jptr,d=t(20).isRef,f=t(17).clone,h=t(17).circularClone,m=t(21).recurse,g=t(43),y=t(45),b=t(27),v=t(46).statusCodes,_=t(55).version,x="3.0.0",w=function(e){function n(n){var t=e.call(this,n)||this;return t.name="S2OError",t}return o.__extends(n,e),n}(Error);function k(e,n){var t=new w(e);if(t.options=n,!n.promise)throw t;n.promise.reject(t)}function O(e,n,t){t.warnOnly?n[t.warnProperty||"x-s2o-warning"]=e:k(e,t)}function E(e,n){y.walkSchema(e,{},{},function(e,t,r){!function(e,n){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)for(var t in e.discriminator=e["x-discriminator"],delete e["x-discriminator"],e.discriminator.mapping){var r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}(e),function(e,n,t){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(t.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(var r=0,o=e.type;r1&&O("Lost properties from oneOf",e,t),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",t);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&&("undefined"===typeof n.required&&(n.required=[]),Array.isArray(n.required)&&n.required.push(e.name)),delete e.required),e.xml&&"string"===typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace)}(e,t,n)})}function T(e,n,t){var o,i=t.payload.options;if(d(e,n)){if(e[n].startsWith("#/components/"));else if("#/consumes"===e[n])delete e[n],t.parent[t.pkey]=f(i.openapi.consumes);else if("#/produces"===e[n])delete e[n],t.parent[t.pkey]=f(i.openapi.produces);else if(e[n].startsWith("#/definitions/")){var a=e[n].replace("#/definitions/","").split("/");(x=r.schemas[decodeURIComponent(a[0])])?a[0]=x:O("Could not resolve reference "+e[n],e,i),e[n]="#/components/schemas/"+a.join("/")}else if(e[n].startsWith("#/parameters/"))e[n]="#/components/parameters/"+b.sanitise(e[n].replace("#/parameters/",""));else if(e[n].startsWith("#/responses/"))e[n]="#/components/responses/"+b.sanitise(e[n].replace("#/responses/",""));else if(e[n].startsWith("#")){var s=f(u.jptr(i.openapi,e[n]));if(!1===s)O("direct $ref not found "+e[n],e,i);else if(i.refmap[e[n]])e[n]=i.refmap[e[n]];else{var l=e[n],c="schemas",p=(l=(l=(l=(l=l.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(c=l.indexOf("/headers/")>p?"headers":l.indexOf("/responses/")>p?"responses":l.indexOf("/example")>p?"examples":l.indexOf("/parameters/")>p?"parameters":"schemas")&&E(s,i),"responses"!==c){var h=c.substr(0,c.length-1);"parameter"===h&&s.name&&s.name===b.sanitise(s.name)&&(h=encodeURIComponent(s.name));var m=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],h=encodeURIComponent(b.sanitise(o)),m="");u.jptr(i.openapi,"#/components/"+c+"/"+h+m);)m=""===m?2:++m;var g="#/components/"+c+"/"+h+m,y="";"examples"===c&&(s={value:s},y="/value"),u.jptr(i.openapi,g,s),i.refmap[e[n]]=g+y,e[n]=g+y}}}if(delete e["x-miro"],Object.keys(e).length>1){var v=e[n],_=t.path.indexOf("/schema")>=0;"preserve"===i.refSiblings||(_&&"allOf"===i.refSiblings?(delete e.$ref,t.parent[t.pkey]={allOf:[{$ref:v},e]}):t.parent[t.pkey]={$ref:v})}}if("x-ms-odata"===n&&"string"===typeof e[n]&&e[n].startsWith("#/")){var x;a=e[n].replace("#/definitions/","").replace("#/components/schemas/","").split("/");(x=r.schemas[decodeURIComponent(a[0])])?a[0]=x:O("Could not resolve reference "+e[n],e,i),e[n]="#/components/schemas/"+a.join("/")}}function S(e){for(var n in e)for(var t in e[n]){var r=b.sanitise(t);t!=r&&(e[n][r]=e[n][t],delete e[n][t])}}function j(e,n){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){var t={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),"undefined"!==typeof e.authorizationUrl&&(t.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"===typeof e.tokenUrl&&(t.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),t.scopes=e.scopes||{},e.flows={},e.flows[r]=t,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,"undefined"!==typeof e.name&&(n.patch?delete e.name:k("(Patchable) oauth2 securitySchemes should not have name property",n))}}function I(e){return e&&!e["x-s2o-delete"]}function A(e,n){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&O("Nested collectionFormats are not supported",e,n),delete e.items.collectionFormat),"undefined"!==typeof e.collectionFormat&&("array"!=e.type&&(n.patch?delete e.collectionFormat:k("(Patchable) collectionFormat is only applicable to header.type array",n)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&O("collectionFormat:ssv is no longer supported for headers",e,n),"pipes"===e.collectionFormat&&O("collectionFormat:pipes is no longer supported for headers",e,n),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(O("collectionFormat:tsv is no longer supported",e,n),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),delete e.type;for(var t=0,r=b.parameterTypeProperties;t=0){var t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+b.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&O("Definition used as parameter",e,n)}function P(e,n,t,r,o,i,a){var s,l={},c=!0;if(n&&n.consumes&&"string"===typeof n.consumes){if(!a.patch)return k("(Patchable) operation.consumes must be an array",a);n.consumes=[n.consumes]}Array.isArray(i.consumes)||delete i.consumes;var u=((n?n.consumes:null)||i.consumes||[]).filter(b.uniqueOnly);if(e&&e.$ref&&"string"===typeof e.$ref){C(e,a);var d=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),h=!1;if((j=i.components.parameters[d])&&!j["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,h=!0),h){var g=e.$ref,y=p(i,e.$ref);!y&&g.startsWith("#/")?O("Could not resolve reference "+g,e,a):y&&(e=y)}}if(e&&(e.name||e.in)){"boolean"===typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),"undefined"!==typeof 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=p(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=p(i,e.description.$ref)),null===e.description&&delete e.description;var v=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(a.patch?delete e.collectionFormat:k("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":O("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":O("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(O("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)O("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,m(e.schema.items,null,function(n,t,r){"collectionFormat"===t&&"string"===typeof n[t]&&(v&&n[t]!==v&&O("Nested collectionFormats are not supported",e,a),delete n[t])}));for(var _=0,x=b.parameterTypeProperties;_=0&&(T="multipart/form-data"),l.content[T]={},e.schema)l.content[T].schema=e.schema,e.schema.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{l.content[T].schema={},l.content[T].schema.type="object",l.content[T].schema.properties={},l.content[T].schema.properties[e.name]={};var S=l.content[T].schema,j=l.content[T].schema.properties[e.name];e.description&&(j.description=e.description),e.example&&(j.example=e.example),e.type&&(j.type=e.type);for(var I=0,A=b.parameterTypeProperties;I0&&(e["x-s2o-delete"]=!0,n&&(n.requestBody&&c?(n.requestBody["x-s2o-overloaded"]=!0,O("Operation "+(n.operationId||o)+" has multiple requestBodies",n,a)):(n.requestBody||(n=t[r]=function(e,n){for(var t={},r=0,o=Object.keys(e);r=0?O("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+b.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if(("undefined"===typeof e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!==typeof e||Array.isArray(e)||(e.description=v[e]||""):k("(Patchable) response.description is mandatory",o)),"undefined"!==typeof e.schema){if(E(e.schema,o),e.schema.$ref&&"string"===typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+b.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),t&&t.produces&&"string"===typeof t.produces){if(!o.patch)return k("(Patchable) operation.produces must be an array",o);t.produces=[t.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;var i=((t?t.produces:null)||r.produces||[]).filter(b.uniqueOnly);i.length||i.push("*/*"),e.content={};for(var a=0,s=i;a=0||"x-amazon-apigateway-any-method"===l){var c=s[l];if(c&&c.parameters&&Array.isArray(c.parameters)){if(s.parameters)for(var d=function(e){"string"===typeof e.$ref&&(C(e,t),e=p(o,e.$ref)),c.parameters.find(function(n,t,r){return n.name===e.name&&n.in===e.in})||"formData"!==e.in&&"body"!==e.in&&"file"!==e.type||(c=P(e,c,s,l,i,o,t),t.rbname&&""===c[t.rbname]&&delete c[t.rbname])},h=0,m=s.parameters;h1){i="";for(x.name||(x.name="requestBody",i=v++);y.indexOf(x.name+i)>=0;)i=i?++i:2;for(var s in x.name=x.name+i,y.push(x.name),e.components.requestBodies[x.name]=f(x.body),x.refs){var w={};w.$ref="#/components/requestBodies/"+x.name,u.jptr(e,x.refs[s],w)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function N(e){return e&&e.url&&"string"===typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(n,t){e.variables||(e.variables={}),e.variables[t]={default:"unknown"}}),e):e}function D(e,n,t){if("undefined"===typeof e.info||null===e.info){if(!n.patch)return t(new w("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!==typeof e.info||Array.isArray(e.info))return t(new w("info must be an object"));if("undefined"===typeof e.info.title||null===e.info.title){if(!n.patch)return t(new w("(Patchable) info.title cannot be null"));e.info.title=""}if("undefined"===typeof e.info.version||null===e.info.version){if(!n.patch)return t(new w("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!==typeof e.info.version){if(!n.patch)return t(new w("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if("undefined"!==typeof e.info.logo){if(!n.patch)return t(new w("(Patchable) info should not have logo property"));e.info["x-logo"]=e.info.logo,delete e.info.logo}if("undefined"!==typeof e.info.termsOfService){if(null===e.info.termsOfService){if(!n.patch)return t(new w("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(a.URL&&n.whatwg)try{a.URL.parse(e.info.termsOfService)}catch(r){if(!n.patch)return t(new w("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function F(e,n,t){if("undefined"===typeof e.paths){if(!n.patch)return t(new w("(Patchable) paths object is mandatory"));e.paths={}}}function z(e,n,t){return s(t,new Promise(function(t,r){if(e||(e={}),n.original=e,n.text||(n.text=c.stringify(e)),n.externals=[],n.externalRefs={},n.rewriteRefs=!0,n.preserveMiro=!0,n.promise={},n.promise.resolve=t,n.promise.reject=r,n.cache||(n.cache={}),n.source&&(n.cache[n.source]=n.original),e.openapi&&"string"===typeof e.openapi&&e.openapi.startsWith("3."))return n.openapi=h(e),D(n.openapi,n,r),F(n.openapi,n,r),void g.optionalResolve(n).then(function(){return n.direct?t(n.openapi):t(n)}).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)));var o=n.openapi={};if(o.openapi="string"===typeof n.targetVersion&&n.targetVersion.startsWith("3.")?n.targetVersion:x,n.origin){o["x-origin"]||(o["x-origin"]=[]);var i={};i.url=n.source||n.origin,i.format="swagger",i.version=e.swagger,i.converter={},i.converter.url="https://github.com/mermade/oas-kit",i.converter.version=_,o["x-origin"].push(i)}if(delete(o=Object.assign(o,h(e))).swagger,m(o,{},function(e,n,t){null===e[n]&&!n.startsWith("x-")&&"default"!==n&&t.path.indexOf("/example")<0&&delete e[n]}),e.host)for(var a=0,s=Array.isArray(e.schemes)?e.schemes:[""];a1&&console.warn("Replacing with",c),m++}}else{var g=u(l(n,e[t]));if(a.verbose>1&&console.warn((!1===g?f.colour.red:f.colour.green)+"Fragment resolution",e[t],f.colour.normal),!1===g){if(r.parent[r.pkey]={},a.fatal){var y=new Error("Fragment $ref resolution failed "+e[t]);if(!a.promise)throw y;a.promise.reject(y)}}else m++,r.parent[r.pkey]=g,h[e[t]]=r.path.replace("/%24ref","")}else if(p.protocol){c=i.resolve(o,e[t]).toString();a.verbose>1&&console.warn(f.colour.yellow+"Rewriting external url ref",e[t],"as",c,f.colour.normal),e["x-miro"]=e[t],e[t]=c}else if(!e["x-miro"]){c=i.resolve(o,e[t]).toString();a.verbose>1&&console.warn(f.colour.yellow+"Rewriting external ref",e[t],"as",c,f.colour.normal),e["x-miro"]=e[t],e[t]=c}});return c(e,{},function(e,n,t){d(e,n)&&"undefined"!==typeof e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function m(e,n){if(!n.filters||!n.filters.length)return e;for(var t=0,r=n.filters;t1&&(f="#"+g[1],n=g[0]),d=d.join("/");var y,b,v,_,x,w=i.parse(n),k=(y=w.protocol,b=p.protocol,y&&y.length>2?y:b&&b.length>2?b:"file:");if(v="file:"===k?o.resolve(d?d+"/":"",n):i.resolve(d?d+"/":"",n),t.cache[v]){t.verbose&&console.warn("CACHED",v,f);var O=u(t.cache[v]),E=t.externalRef=O;if(f&&!1===(E=l(E,f))&&(E={},t.fatal)){var T=new Error("Cached $ref resolution failed "+v+f);if(!t.promise)throw T;t.promise.reject(T)}return E=m(E=h(E,O,n,f,v,t),t),c(u(E),v,t),Promise.resolve(E)}return t.verbose&&console.warn("GET",v,f),t.handlers&&t.handlers[k]?t.handlers[k](d,n,f,t).then(function(e){return t.externalRef=e,e=m(e,t),t.cache[v]=e,c(e,v,t),e}).catch(function(e){throw t.verbose&&console.warn(e),e}):k&&k.startsWith("http")?a(v,{agent:t.agent}).then(function(e){if(200!==e.status)throw new Error("Received status code "+e.status);return e.text()}).then(function(e){try{var r=s.parse(e,{schema:"core"});if(e=t.externalRef=r,t.cache[v]=u(e),f&&!1===(e=l(e,f))&&(e={},t.fatal)){var o=new Error("Remote $ref resolution failed "+v+f);if(!t.promise)throw o;t.promise.reject(o)}e=m(e=h(e,r,n,f,v,t),t)}catch(o){if(t.verbose&&console.warn(o),!t.promise||!t.fatal)throw o;t.promise.reject(o)}return c(e,v,t),e}).catch(function(e){if(t.verbose&&console.warn(e),t.cache[v]={},!t.promise||!t.fatal)throw e;t.promise.reject(e)}):(_=v,x=t.encoding||"utf8",new Promise(function(e,n){r.readFile(_,x,function(t,r){t?n(t):e(r)})})).then(function(e){try{var r=s.parse(e,{schema:"core"});if(e=t.externalRef=r,t.cache[v]=u(e),f&&!1===(e=l(e,f))&&(e={},t.fatal)){var o=new Error("File $ref resolution failed "+v+f);if(!t.promise)throw o;t.promise.reject(o)}e=m(e=h(e,r,n,f,v,t),t)}catch(o){if(t.verbose&&console.warn(o),!t.promise||!t.fatal)throw o;t.promise.reject(o)}return c(e,v,t),e}).catch(function(e){if(t.verbose&&console.warn(e),!t.promise||!t.fatal)throw e;t.promise.reject(e)})}function y(e){return new Promise(function(n,t){(function(e){return new Promise(function(n,t){function r(n,t,r){if(n[t]&&d(n[t],"$ref")){var i=n[t].$ref;if(!i.startsWith("#")){var a="";if(!o[i]){var s=Object.keys(o).find(function(e,n,t){return i.startsWith(e+"/")});s&&(e.verbose&&console.warn("Found potential subschema at",s),a=(a="/"+(i.split("#")[1]||"").replace(s.split("#")[1]||"")).split("/undefined").join(""),i=s)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:n[t].description}),o[i].resolved)if(e.rewriteRefs){var l=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,l),n[t]["x-miro"]=i,n[t].$ref=l+a}else n[t]=u(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}var o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return n(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),n(o)})})(e).then(function(n){var t=function(t){if(!n[t].resolved){var r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return g(e.openapi,t,e,function(e,r,o){if(!n[t].resolved){var i={};i.context=n[t],i.$ref=t,i.original=u(e),i.updated=e,i.source=r,o.externals.push(i),n[t].resolved=!0}var a=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&n[t].description&&!e.description&&"object"===typeof e&&(e.description=n[t].description),n[t].data=e;for(var s,c=(s=n[t].paths,new Set(s).slice()),p=0,d=c=c.sort(function(e,n){var t=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=n.startsWith("#/components/")||n.startsWith("#/definitions/");return t&&!r?-1:r&&!t?1:0});p1&&console.warn("Creating pointer to data at",f),l(o.openapi,f,{$ref:n[t].resolvedAt+n[t].extras[f],"x-miro":t+n[t].extras[f]});else{n[t].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(n[t].resolvedAt=f,o.verbose>1&&console.warn("Creating initial clone of data at",f));var h=u(e);l(o.openapi,f,h)}}0===o.resolver.actions[a.resolver.depth].length&&o.resolver.actions[a.resolver.depth].push(function(){return y(a)})})})}};for(var r in n)t(r)}).catch(function(n){e.verbose&&console.warn(n),t(n)});var r={options:e};r.actions=e.resolver.actions[e.resolver.depth],n(r)})}var b=function(e){return e.reduce(function(e,n){return e.then(function(e){return n().then(Array.prototype.concat.bind(e))})},Promise.resolve([]))};function v(e,n,t){e.resolver.actions.push([]),y(e).then(function(r){b(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),n(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){v(r.options,n,t)},0):(e.verbose>1&&console.warn(f.colour.yellow+"Finished external resolution!",f.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(f.colour.yellow+"Starting internal resolution!",f.colour.normal),e.openapi=p(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(f.colour.yellow+"Finished internal resolution!",f.colour.normal)),c(e.openapi,{},function(n,t,r){d(n,t)&&(e.preserveMiro||delete n["x-miro"])}),n(e))}).catch(function(n){e.verbose&&console.warn(n),t(n)})}).catch(function(n){e.verbose&&console.warn(n),t(n)})}function _(e){if(e.cache||(e.cache={}),e.source){var n=i.parse(e.source);(!n.protocol||n.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 _(e),new Promise(function(n,t){e.resolve?v(e,n,t):n(e)})},resolve:function(e,n,t){return t||(t={}),t.openapi=e,t.source=n,t.resolve=!0,_(t),new Promise(function(e,n){v(t,e,n)})}}},function(e,n,t){"use strict";var r=t(21).recurse,o=t(17).shallowClone,i=t(16).jptr,a=t(20).isRef,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(n,t,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;var c=l.depth>1?n:o(n),u={data:c},p=l.depth>1?t:o(t);l.master||(l.master=c);for(var d=s(l),f=1;f>0;)f=0,r(u,l.state,function(n,t,r){if(a(n,t)){var o,s=n[t];if(f++,l.cache[s])if((o=l.cache[s]).resolved)d.warn("Patching %s for %s",s,o.path),r.parent[r.pkey]=o.data,l.$ref&&"object"===typeof r.parent[r.pkey]&&(r.parent[r.pkey][l.$ref]=s);else{if(s===o.path)throw new Error("Tight circle at "+o.path);d.warn("Unresolved ref"),r.parent[r.pkey]=i(o.source,o.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(o.source,o.key)),l.$ref&&"object"===typeof r.parent[r.pkey]&&(r.parent[l.$ref]=s)}else(o={}).path=r.path.split("/$ref")[0],o.key=s,d.warn("Dereffing %s at %s",s,o.path),o.source=p,o.data=i(o.source,o.key),!1===o.data&&(o.data=i(l.master,o.key),o.source=l.master),!1===o.data&&d.warn("Missing $ref target",o.key),l.cache[s]=o,o.data=r.parent[r.pkey]=e(i(o.source,o.key),o.source,l),l.$ref&&"object"===typeof r.parent[r.pkey]&&(r.parent[r.pkey][l.$ref]=s),o.resolved=!0}});return u.data}}},function(e,n,t){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(n,t,o,i){if("undefined"===typeof o.depth&&(o=r()),null===n||"undefined"===typeof n)return n;if("undefined"!==typeof n.$ref){var a={$ref:n.$ref};return o.allowRefSiblings&&n.description&&(a.description=n.description),i(a,t,o),a}if(o.combine&&(n.allOf&&Array.isArray(n.allOf)&&1===n.allOf.length&&delete(n=Object.assign({},n.allOf[0],n)).allOf,n.anyOf&&Array.isArray(n.anyOf)&&1===n.anyOf.length&&delete(n=Object.assign({},n.anyOf[0],n)).anyOf,n.oneOf&&Array.isArray(n.oneOf)&&1===n.oneOf.length&&delete(n=Object.assign({},n.oneOf[0],n)).oneOf),i(n,t,o),o.seen.has(n))return n;if("object"===typeof n&&null!==n&&o.seen.set(n,!0),o.top=!1,o.depth++,"undefined"!==typeof n.items&&(o.property="items",e(n.items,n,o,i)),n.additionalItems&&"object"===typeof n.additionalItems&&(o.property="additionalItems",e(n.additionalItems,n,o,i)),n.additionalProperties&&"object"===typeof n.additionalProperties&&(o.property="additionalProperties",e(n.additionalProperties,n,o,i)),n.properties)for(var s in n.properties){var l=n.properties[s];o.property="properties/"+s,e(l,n,o,i)}if(n.patternProperties)for(var s in n.patternProperties)l=n.patternProperties[s],o.property="patternProperties/"+s,e(l,n,o,i);if(n.allOf)for(var c in n.allOf)l=n.allOf[c],o.property="allOf/"+c,e(l,n,o,i);if(n.anyOf)for(var c in n.anyOf)l=n.anyOf[c],o.property="anyOf/"+c,e(l,n,o,i);if(n.oneOf)for(var c in n.oneOf)l=n.oneOf[c],o.property="oneOf/"+c,e(l,n,o,i);return n.not&&(o.property="not",e(n.not,n,o,i)),o.depth--,n}}},function(e,n,t){"use strict";var r=t(47);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,n,t){(function(e){var r=t(48),o=t(31),i=t(53),a=t(54),s=t(5),l=n;l.request=function(n,t){n="string"===typeof n?s.parse(n):i(n);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=n.protocol||o,l=n.hostname||n.host,c=n.port,u=n.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),n.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,n.method=(n.method||"GET").toUpperCase(),n.headers=n.headers||{};var p=new r(n);return t&&p.on("response",t),p},l.get=function(e,n){var t=l.request(e,n);return t.end(),t},l.ClientRequest=r,l.IncomingMessage=o.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.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,t(11))},function(e,n,t){(function(n,r,o){var i=t(29),a=t(30),s=t(31),l=t(32),c=t(52),u=s.IncomingMessage,p=s.readyStates;var d=e.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new n(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(n){r.setHeader(n,e.headers[n])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,n){return i.fetch&&n?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(t,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(d,l.Writable),d.prototype.setHeader=function(e,n){var t=e.toLowerCase();-1===f.indexOf(t)&&(this._headers[t]={name:e,value:n})},d.prototype.getHeader=function(e){var n=this._headers[e.toLowerCase()];return n?n.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,a=e._headers,s=null;"GET"!==t.method&&"HEAD"!==t.method&&(s=i.arraybuffer?c(n.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):n.concat(e._body).toString());var l=[];if(Object.keys(a).forEach(function(e){var n=a[e].name,t=a[e].value;Array.isArray(t)?t.forEach(function(e){l.push([n,e])}):l.push([n,t])}),"fetch"===e._mode){var u=null;if(i.abortController){var d=new AbortController;u=d.signal,e._fetchAbortController=d,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(n){e._fetchResponse=n,e._connect()},function(n){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",n)})}else{var f=e._xhr=new r.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(h){return void o.nextTick(function(){e.emit("error",h)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),l.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(s)}catch(h){return void o.nextTick(function(){e.emit("error",h)})}}}},d.prototype._onXHRProgress=function(){(function(e){try{var n=e.status;return null!==n&&0!==n}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.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(n){e.emit("error",n)}),e.emit("response",e._response))},d.prototype._write=function(e,n,t){this._body.push(e),t()},d.prototype.abort=d.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()},d.prototype.end=function(e,n,t){"function"===typeof e&&(t=e,e=void 0),l.Writable.prototype.end.call(this,e,n,t)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var f=["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,t(28).Buffer,t(11),t(15))},function(e,n){e.exports=t(103)},function(e,n){e.exports=t(104)},function(e,n){e.exports=t(81)},function(e,n){e.exports=t(116)},function(e,n){e.exports=t(117)},function(e,n){e.exports=t(118)},function(e){e.exports={_from:"swagger2openapi@^5.2.3",_id:"swagger2openapi@5.3.0",_inBundle:!1,_integrity:"sha512-3rmO7uXotaV+r+IHfnzNMfAX1FA1WTu+RRXIHnuolk5R6CZOY91NYAhbEH3fDD0e/ywJROzB57cOV1yRCUxxmg==",_location:"/swagger2openapi",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"swagger2openapi@^5.2.3",name:"swagger2openapi",escapedName:"swagger2openapi",rawSpec:"^5.2.3",saveSpec:null,fetchSpec:"^5.2.3"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-5.3.0.tgz",_shasum:"ac5bcdf6fb3adb0eccedd65cc7a3a739f80b5532",_spec:"swagger2openapi@^5.2.3",_where:"/Users/artem/work/redoc",author:{name:"Mike Ralphson",email:"mike.ralphson@gmail.com"},bin:{swagger2openapi:"./swagger2openapi.js","oas-validate":"./oas-validate.js",boast:"./boast.js"},browserify:{transform:[["babelify",{presets:["es2015"]}]]},bugs:{url:"https://github.com/mermade/oas-kit/issues"},bundleDependencies:!1,dependencies:{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.2.4","oas-schema-walker":"^1.1.2","oas-validator":"^3.3.0",reftools:"^1.0.7",yaml:"^1.3.1",yargs:"^12.0.5"},deprecated:!1,description:"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",gitHead:"4eecb5c1689726e413734c536a0bd1f93a334c02",homepage:"https://github.com/Mermade/oas-kit#readme",keywords:["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],license:"BSD-3-Clause",main:"index.js",name:"swagger2openapi",repository:{url:"git+https://github.com/Mermade/oas-kit.git",type:"git"},scripts:{test:"mocha"},version:"5.3.0"}},function(e,n){e.exports=t(232)},function(e,n){e.exports=t(233)},function(e,n){e.exports=t(234)},function(e,n){e.exports=t(235)},function(e,n){e.exports=t(236)},function(e,n){e.exports=t(237)},function(e,n){e.exports=t(238)},function(e,n){e.exports=t(239)},function(e,n){e.exports=t(240)},function(e,n){e.exports=t(241)},function(e,n){e.exports=t(242)},function(e,n){e.exports=t(243)},function(e,n){e.exports=t(244)},function(e,n){e.exports=t(245)},function(e,n){e.exports=t(246)},function(e,n){e.exports=t(247)},function(e,n){e.exports=t(248)},function(e,n){e.exports=t(249)},function(e,n){e.exports=t(250)},function(e,n,t){var r=t(76),o=["add","done","toJS","load","search"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(["/*!\n * ReDoc - OpenAPI/Swagger-generated API Reference Documentation\n * -------------------------------------------------------------\n * Version: \"2.0.0-rc.8-5\"\n * Repo: https://github.com/Rebilly/ReDoc\n */\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 70);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(16)('wks');\nvar uid = __webpack_require__(18);\nvar Symbol = __webpack_require__(1).Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.6\n * Copyright (C) 2019 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * A convenience function for configuring and constructing\n * a new lunr Index.\n *\n * A lunr.Builder instance is created and the pipeline setup\n * with a trimmer, stop word filter and stemmer.\n *\n * This builder object is yielded to the configuration function\n * that is passed as a parameter, allowing the list of fields\n * and other builder parameters to be customised.\n *\n * All documents _must_ be added within the passed config function.\n *\n * @example\n * var idx = lunr(function () {\n * this.field('title')\n * this.field('body')\n * this.ref('id')\n *\n * documents.forEach(function (doc) {\n * this.add(doc)\n * }, this)\n * })\n *\n * @see {@link lunr.Builder}\n * @see {@link lunr.Pipeline}\n * @see {@link lunr.trimmer}\n * @see {@link lunr.stopWordFilter}\n * @see {@link lunr.stemmer}\n * @namespace {function} lunr\n */\nvar lunr = function (config) {\n var builder = new lunr.Builder\n\n builder.pipeline.add(\n lunr.trimmer,\n lunr.stopWordFilter,\n lunr.stemmer\n )\n\n builder.searchPipeline.add(\n lunr.stemmer\n )\n\n config.call(builder, builder)\n return builder.build()\n}\n\nlunr.version = \"2.3.6\"\n/*!\n * lunr.utils\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n * @namespace lunr.utils\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf lunr.utils\n * @function\n */\nlunr.utils.warn = (function (global) {\n /* eslint-disable no-console */\n return function (message) {\n if (global.console && console.warn) {\n console.warn(message)\n }\n }\n /* eslint-enable no-console */\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf lunr.utils\n */\nlunr.utils.asString = function (obj) {\n if (obj === void 0 || obj === null) {\n return \"\"\n } else {\n return obj.toString()\n }\n}\n\n/**\n * Clones an object.\n *\n * Will create a copy of an existing object such that any mutations\n * on the copy cannot affect the original.\n *\n * Only shallow objects are supported, passing a nested object to this\n * function will cause a TypeError.\n *\n * Objects with primitives, and arrays of primitives are supported.\n *\n * @param {Object} obj The object to clone.\n * @return {Object} a clone of the passed object.\n * @throws {TypeError} when a nested object is passed.\n * @memberOf Utils\n */\nlunr.utils.clone = function (obj) {\n if (obj === null || obj === undefined) {\n return obj\n }\n\n var clone = Object.create(null),\n keys = Object.keys(obj)\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i],\n val = obj[key]\n\n if (Array.isArray(val)) {\n clone[key] = val.slice()\n continue\n }\n\n if (typeof val === 'string' ||\n typeof val === 'number' ||\n typeof val === 'boolean') {\n clone[key] = val\n continue\n }\n\n throw new TypeError(\"clone is not deep and does not support nested objects\")\n }\n\n return clone\n}\nlunr.FieldRef = function (docRef, fieldName, stringValue) {\n this.docRef = docRef\n this.fieldName = fieldName\n this._stringValue = stringValue\n}\n\nlunr.FieldRef.joiner = \"/\"\n\nlunr.FieldRef.fromString = function (s) {\n var n = s.indexOf(lunr.FieldRef.joiner)\n\n if (n === -1) {\n throw \"malformed field ref string\"\n }\n\n var fieldRef = s.slice(0, n),\n docRef = s.slice(n + 1)\n\n return new lunr.FieldRef (docRef, fieldRef, s)\n}\n\nlunr.FieldRef.prototype.toString = function () {\n if (this._stringValue == undefined) {\n this._stringValue = this.fieldName + lunr.FieldRef.joiner + this.docRef\n }\n\n return this._stringValue\n}\n/*!\n * lunr.Set\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A lunr set.\n *\n * @constructor\n */\nlunr.Set = function (elements) {\n this.elements = Object.create(null)\n\n if (elements) {\n this.length = elements.length\n\n for (var i = 0; i < this.length; i++) {\n this.elements[elements[i]] = true\n }\n } else {\n this.length = 0\n }\n}\n\n/**\n * A complete set that contains all elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.complete = {\n intersect: function (other) {\n return other\n },\n\n union: function (other) {\n return other\n },\n\n contains: function () {\n return true\n }\n}\n\n/**\n * An empty set that contains no elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.empty = {\n intersect: function () {\n return this\n },\n\n union: function (other) {\n return other\n },\n\n contains: function () {\n return false\n }\n}\n\n/**\n * Returns true if this set contains the specified object.\n *\n * @param {object} object - Object whose presence in this set is to be tested.\n * @returns {boolean} - True if this set contains the specified object.\n */\nlunr.Set.prototype.contains = function (object) {\n return !!this.elements[object]\n}\n\n/**\n * Returns a new set containing only the elements that are present in both\n * this set and the specified set.\n *\n * @param {lunr.Set} other - set to intersect with this set.\n * @returns {lunr.Set} a new set that is the intersection of this and the specified set.\n */\n\nlunr.Set.prototype.intersect = function (other) {\n var a, b, elements, intersection = []\n\n if (other === lunr.Set.complete) {\n return this\n }\n\n if (other === lunr.Set.empty) {\n return other\n }\n\n if (this.length < other.length) {\n a = this\n b = other\n } else {\n a = other\n b = this\n }\n\n elements = Object.keys(a.elements)\n\n for (var i = 0; i < elements.length; i++) {\n var element = elements[i]\n if (element in b.elements) {\n intersection.push(element)\n }\n }\n\n return new lunr.Set (intersection)\n}\n\n/**\n * Returns a new set combining the elements of this and the specified set.\n *\n * @param {lunr.Set} other - set to union with this set.\n * @return {lunr.Set} a new set that is the union of this and the specified set.\n */\n\nlunr.Set.prototype.union = function (other) {\n if (other === lunr.Set.complete) {\n return lunr.Set.complete\n }\n\n if (other === lunr.Set.empty) {\n return this\n }\n\n return new lunr.Set(Object.keys(this.elements).concat(Object.keys(other.elements)))\n}\n/**\n * A function to calculate the inverse document frequency for\n * a posting. This is shared between the builder and the index\n *\n * @private\n * @param {object} posting - The posting for a given term\n * @param {number} documentCount - The total number of documents.\n */\nlunr.idf = function (posting, documentCount) {\n var documentsWithTerm = 0\n\n for (var fieldName in posting) {\n if (fieldName == '_index') continue // Ignore the term index, its not a field\n documentsWithTerm += Object.keys(posting[fieldName]).length\n }\n\n var x = (documentCount - documentsWithTerm + 0.5) / (documentsWithTerm + 0.5)\n\n return Math.log(1 + Math.abs(x))\n}\n\n/**\n * A token wraps a string representation of a token\n * as it is passed through the text processing pipeline.\n *\n * @constructor\n * @param {string} [str=''] - The string token being wrapped.\n * @param {object} [metadata={}] - Metadata associated with this token.\n */\nlunr.Token = function (str, metadata) {\n this.str = str || \"\"\n this.metadata = metadata || {}\n}\n\n/**\n * Returns the token string that is being wrapped by this object.\n *\n * @returns {string}\n */\nlunr.Token.prototype.toString = function () {\n return this.str\n}\n\n/**\n * A token update function is used when updating or optionally\n * when cloning a token.\n *\n * @callback lunr.Token~updateFunction\n * @param {string} str - The string representation of the token.\n * @param {Object} metadata - All metadata associated with this token.\n */\n\n/**\n * Applies the given function to the wrapped string token.\n *\n * @example\n * token.update(function (str, metadata) {\n * return str.toUpperCase()\n * })\n *\n * @param {lunr.Token~updateFunction} fn - A function to apply to the token string.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.update = function (fn) {\n this.str = fn(this.str, this.metadata)\n return this\n}\n\n/**\n * Creates a clone of this token. Optionally a function can be\n * applied to the cloned token.\n *\n * @param {lunr.Token~updateFunction} [fn] - An optional function to apply to the cloned token.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.clone = function (fn) {\n fn = fn || function (s) { return s }\n return new lunr.Token (fn(this.str, this.metadata), this.metadata)\n}\n/*!\n * lunr.tokenizer\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.separator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * This tokenizer will convert its parameter to a string by calling `toString` and\n * then will split this string on the character in `lunr.tokenizer.separator`.\n * Arrays will have their elements converted to strings and wrapped in a lunr.Token.\n *\n * Optional metadata can be passed to the tokenizer, this metadata will be cloned and\n * added as metadata to every token that is created from the object to be tokenized.\n *\n * @static\n * @param {?(string|object|object[])} obj - The object to convert into tokens\n * @param {?object} metadata - Optional metadata to associate with every token\n * @returns {lunr.Token[]}\n * @see {@link lunr.Pipeline}\n */\nlunr.tokenizer = function (obj, metadata) {\n if (obj == null || obj == undefined) {\n return []\n }\n\n if (Array.isArray(obj)) {\n return obj.map(function (t) {\n return new lunr.Token(\n lunr.utils.asString(t).toLowerCase(),\n lunr.utils.clone(metadata)\n )\n })\n }\n\n var str = obj.toString().trim().toLowerCase(),\n len = str.length,\n tokens = []\n\n for (var sliceEnd = 0, sliceStart = 0; sliceEnd <= len; sliceEnd++) {\n var char = str.charAt(sliceEnd),\n sliceLength = sliceEnd - sliceStart\n\n if ((char.match(lunr.tokenizer.separator) || sliceEnd == len)) {\n\n if (sliceLength > 0) {\n var tokenMetadata = lunr.utils.clone(metadata) || {}\n tokenMetadata[\"position\"] = [sliceStart, sliceLength]\n tokenMetadata[\"index\"] = tokens.length\n\n tokens.push(\n new lunr.Token (\n str.slice(sliceStart, sliceEnd),\n tokenMetadata\n )\n )\n }\n\n sliceStart = sliceEnd + 1\n }\n\n }\n\n return tokens\n}\n\n/**\n * The separator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.separator = /[\\s\\-]+/\n/*!\n * lunr.Pipeline\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = Object.create(null)\n\n/**\n * A pipeline function maps lunr.Token to lunr.Token. A lunr.Token contains the token\n * string as well as all known metadata. A pipeline function can mutate the token string\n * or mutate (or add) metadata for a given token.\n *\n * A pipeline function can indicate that the passed token should be discarded by returning\n * null. This token will not be passed to any downstream pipeline functions and will not be\n * added to the index.\n *\n * Multiple tokens can be returned by returning an array of tokens. Each token will be passed\n * to any downstream pipeline functions and all will returned tokens will be added to the index.\n *\n * Any number of pipeline functions may be chained together using a lunr.Pipeline.\n *\n * @interface lunr.PipelineFunction\n * @param {lunr.Token} token - A token from the document being processed.\n * @param {number} i - The index of this token in the complete list of tokens for this document/field.\n * @param {lunr.Token[]} tokens - All tokens for this document/field.\n * @returns {(?lunr.Token|lunr.Token[])}\n */\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @param {String} label - The label to register this function with\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing registered function: ' + label)\n }\n\n fn.label = label\n lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @private\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised - The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n */\nlunr.Pipeline.load = function (serialised) {\n var pipeline = new lunr.Pipeline\n\n serialised.forEach(function (fnName) {\n var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n if (fn) {\n pipeline.add(fn)\n } else {\n throw new Error('Cannot load unregistered function: ' + fnName)\n }\n })\n\n return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction[]} functions - Any number of functions to add to the pipeline.\n */\nlunr.Pipeline.prototype.add = function () {\n var fns = Array.prototype.slice.call(arguments)\n\n fns.forEach(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n this._stack.push(fn)\n }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n pos = pos + 1\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {lunr.PipelineFunction} fn The function to remove from the pipeline.\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n var pos = this._stack.indexOf(fn)\n if (pos == -1) {\n return\n }\n\n this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n var stackLength = this._stack.length\n\n for (var i = 0; i < stackLength; i++) {\n var fn = this._stack[i]\n var memo = []\n\n for (var j = 0; j < tokens.length; j++) {\n var result = fn(tokens[j], j, tokens)\n\n if (result === void 0 || result === '') continue\n\n if (Array.isArray(result)) {\n for (var k = 0; k < result.length; k++) {\n memo.push(result[k])\n }\n } else {\n memo.push(result)\n }\n }\n\n tokens = memo\n }\n\n return tokens\n}\n\n/**\n * Convenience method for passing a string through a pipeline and getting\n * strings out. This method takes care of wrapping the passed string in a\n * token and mapping the resulting tokens back to strings.\n *\n * @param {string} str - The string to pass through the pipeline.\n * @param {?object} metadata - Optional metadata to associate with the token\n * passed to the pipeline.\n * @returns {string[]}\n */\nlunr.Pipeline.prototype.runString = function (str, metadata) {\n var token = new lunr.Token (str, metadata)\n\n return this.run([token]).map(function (t) {\n return t.toString()\n })\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n */\nlunr.Pipeline.prototype.reset = function () {\n this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n */\nlunr.Pipeline.prototype.toJSON = function () {\n return this._stack.map(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n return fn.label\n })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A vector is used to construct the vector space of documents and queries. These\n * vectors support operations to determine the similarity between two documents or\n * a document and a query.\n *\n * Normally no parameters are required for initializing a vector, but in the case of\n * loading a previously dumped vector the raw elements can be provided to the constructor.\n *\n * For performance reasons vectors are implemented with a flat array, where an elements\n * index is immediately followed by its value. E.g. [index, value, index, value]. This\n * allows the underlying array to be as sparse as possible and still offer decent\n * performance when being used for vector calculations.\n *\n * @constructor\n * @param {Number[]} [elements] - The flat list of element index and element value pairs.\n */\nlunr.Vector = function (elements) {\n this._magnitude = 0\n this.elements = elements || []\n}\n\n\n/**\n * Calculates the position within the vector to insert a given index.\n *\n * This is used internally by insert and upsert. If there are duplicate indexes then\n * the position is returned as if the value for that index were to be updated, but it\n * is the callers responsibility to check whether there is a duplicate at that index\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @returns {Number}\n */\nlunr.Vector.prototype.positionForIndex = function (index) {\n // For an empty vector the tuple can be inserted at the beginning\n if (this.elements.length == 0) {\n return 0\n }\n\n var start = 0,\n end = this.elements.length / 2,\n sliceLength = end - start,\n pivotPoint = Math.floor(sliceLength / 2),\n pivotIndex = this.elements[pivotPoint * 2]\n\n while (sliceLength > 1) {\n if (pivotIndex < index) {\n start = pivotPoint\n }\n\n if (pivotIndex > index) {\n end = pivotPoint\n }\n\n if (pivotIndex == index) {\n break\n }\n\n sliceLength = end - start\n pivotPoint = start + Math.floor(sliceLength / 2)\n pivotIndex = this.elements[pivotPoint * 2]\n }\n\n if (pivotIndex == index) {\n return pivotPoint * 2\n }\n\n if (pivotIndex > index) {\n return pivotPoint * 2\n }\n\n if (pivotIndex < index) {\n return (pivotPoint + 1) * 2\n }\n}\n\n/**\n * Inserts an element at an index within the vector.\n *\n * Does not allow duplicates, will throw an error if there is already an entry\n * for this index.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n */\nlunr.Vector.prototype.insert = function (insertIdx, val) {\n this.upsert(insertIdx, val, function () {\n throw \"duplicate index\"\n })\n}\n\n/**\n * Inserts or updates an existing index within the vector.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n * @param {function} fn - A function that is called for updates, the existing value and the\n * requested value are passed as arguments\n */\nlunr.Vector.prototype.upsert = function (insertIdx, val, fn) {\n this._magnitude = 0\n var position = this.positionForIndex(insertIdx)\n\n if (this.elements[position] == insertIdx) {\n this.elements[position + 1] = fn(this.elements[position + 1], val)\n } else {\n this.elements.splice(position, 0, insertIdx, val)\n }\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n */\nlunr.Vector.prototype.magnitude = function () {\n if (this._magnitude) return this._magnitude\n\n var sumOfSquares = 0,\n elementsLength = this.elements.length\n\n for (var i = 1; i < elementsLength; i += 2) {\n var val = this.elements[i]\n sumOfSquares += val * val\n }\n\n return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The vector to compute the dot product with.\n * @returns {Number}\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n var dotProduct = 0,\n a = this.elements, b = otherVector.elements,\n aLen = a.length, bLen = b.length,\n aVal = 0, bVal = 0,\n i = 0, j = 0\n\n while (i < aLen && j < bLen) {\n aVal = a[i], bVal = b[j]\n if (aVal < bVal) {\n i += 2\n } else if (aVal > bVal) {\n j += 2\n } else if (aVal == bVal) {\n dotProduct += a[i + 1] * b[j + 1]\n i += 2\n j += 2\n }\n }\n\n return dotProduct\n}\n\n/**\n * Calculates the similarity between this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The other vector to calculate the\n * similarity with.\n * @returns {Number}\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n return this.dot(otherVector) / this.magnitude() || 0\n}\n\n/**\n * Converts the vector to an array of the elements within the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toArray = function () {\n var output = new Array (this.elements.length / 2)\n\n for (var i = 1, j = 0; i < this.elements.length; i += 2, j++) {\n output[j] = this.elements[i]\n }\n\n return output\n}\n\n/**\n * A JSON serializable representation of the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toJSON = function () {\n return this.elements\n}\n/* eslint-disable */\n/*!\n * lunr.stemmer\n * Copyright (C) 2019 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token - The string to stem\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n * @function\n */\nlunr.stemmer = (function(){\n var step2list = {\n \"ational\" : \"ate\",\n \"tional\" : \"tion\",\n \"enci\" : \"ence\",\n \"anci\" : \"ance\",\n \"izer\" : \"ize\",\n \"bli\" : \"ble\",\n \"alli\" : \"al\",\n \"entli\" : \"ent\",\n \"eli\" : \"e\",\n \"ousli\" : \"ous\",\n \"ization\" : \"ize\",\n \"ation\" : \"ate\",\n \"ator\" : \"ate\",\n \"alism\" : \"al\",\n \"iveness\" : \"ive\",\n \"fulness\" : \"ful\",\n \"ousness\" : \"ous\",\n \"aliti\" : \"al\",\n \"iviti\" : \"ive\",\n \"biliti\" : \"ble\",\n \"logi\" : \"log\"\n },\n\n step3list = {\n \"icate\" : \"ic\",\n \"ative\" : \"\",\n \"alize\" : \"al\",\n \"iciti\" : \"ic\",\n \"ical\" : \"ic\",\n \"ful\" : \"\",\n \"ness\" : \"\"\n },\n\n c = \"[^aeiou]\", // consonant\n v = \"[aeiouy]\", // vowel\n C = c + \"[^aeiouy]*\", // consonant sequence\n V = v + \"[aeiou]*\", // vowel sequence\n\n mgr0 = \"^(\" + C + \")?\" + V + C, // [C]VC... is m>0\n meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\", // [C]VC[V] is m=1\n mgr1 = \"^(\" + C + \")?\" + V + C + V + C, // [C]VCVC... is m>1\n s_v = \"^(\" + C + \")?\" + v; // vowel in stem\n\n var re_mgr0 = new RegExp(mgr0);\n var re_mgr1 = new RegExp(mgr1);\n var re_meq1 = new RegExp(meq1);\n var re_s_v = new RegExp(s_v);\n\n var re_1a = /^(.+?)(ss|i)es$/;\n var re2_1a = /^(.+?)([^s])s$/;\n var re_1b = /^(.+?)eed$/;\n var re2_1b = /^(.+?)(ed|ing)$/;\n var re_1b_2 = /.$/;\n var re2_1b_2 = /(at|bl|iz)$/;\n var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var re_1c = /^(.+?[^aeiou])y$/;\n var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n var re_5 = /^(.+?)e$/;\n var re_5_1 = /ll$/;\n var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var porterStemmer = function porterStemmer(w) {\n var stem,\n suffix,\n firstch,\n re,\n re2,\n re3,\n re4;\n\n if (w.length < 3) { return w; }\n\n firstch = w.substr(0,1);\n if (firstch == \"y\") {\n w = firstch.toUpperCase() + w.substr(1);\n }\n\n // Step 1a\n re = re_1a\n re2 = re2_1a;\n\n if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n // Step 1b\n re = re_1b;\n re2 = re2_1b;\n if (re.test(w)) {\n var fp = re.exec(w);\n re = re_mgr0;\n if (re.test(fp[1])) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1];\n re2 = re_s_v;\n if (re2.test(stem)) {\n w = stem;\n re2 = re2_1b_2;\n re3 = re3_1b_2;\n re4 = re4_1b_2;\n if (re2.test(w)) { w = w + \"e\"; }\n else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n else if (re4.test(w)) { w = w + \"e\"; }\n }\n }\n\n // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n re = re_1c;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n w = stem + \"i\";\n }\n\n // Step 2\n re = re_2;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step2list[suffix];\n }\n }\n\n // Step 3\n re = re_3;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step3list[suffix];\n }\n }\n\n // Step 4\n re = re_4;\n re2 = re2_4;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n if (re.test(stem)) {\n w = stem;\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1] + fp[2];\n re2 = re_mgr1;\n if (re2.test(stem)) {\n w = stem;\n }\n }\n\n // Step 5\n re = re_5;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n re2 = re_meq1;\n re3 = re3_5;\n if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n w = stem;\n }\n }\n\n re = re_5_1;\n re2 = re_mgr1;\n if (re.test(w) && re2.test(w)) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n\n // and turn initial Y back to y\n\n if (firstch == \"y\") {\n w = firstch.toLowerCase() + w.substr(1);\n }\n\n return w;\n };\n\n return function (token) {\n return token.update(porterStemmer);\n }\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @function\n * @param {Array} token The token to pass through the filter\n * @returns {lunr.PipelineFunction}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n var words = stopWords.reduce(function (memo, stopWord) {\n memo[stopWord] = stopWord\n return memo\n }, {})\n\n return function (token) {\n if (token && words[token.toString()] !== token.toString()) return token\n }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @function\n * @implements {lunr.PipelineFunction}\n * @params {lunr.Token} token - A token to check for being a stop word.\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n 'a',\n 'able',\n 'about',\n 'across',\n 'after',\n 'all',\n 'almost',\n 'also',\n 'am',\n 'among',\n 'an',\n 'and',\n 'any',\n 'are',\n 'as',\n 'at',\n 'be',\n 'because',\n 'been',\n 'but',\n 'by',\n 'can',\n 'cannot',\n 'could',\n 'dear',\n 'did',\n 'do',\n 'does',\n 'either',\n 'else',\n 'ever',\n 'every',\n 'for',\n 'from',\n 'get',\n 'got',\n 'had',\n 'has',\n 'have',\n 'he',\n 'her',\n 'hers',\n 'him',\n 'his',\n 'how',\n 'however',\n 'i',\n 'if',\n 'in',\n 'into',\n 'is',\n 'it',\n 'its',\n 'just',\n 'least',\n 'let',\n 'like',\n 'likely',\n 'may',\n 'me',\n 'might',\n 'most',\n 'must',\n 'my',\n 'neither',\n 'no',\n 'nor',\n 'not',\n 'of',\n 'off',\n 'often',\n 'on',\n 'only',\n 'or',\n 'other',\n 'our',\n 'own',\n 'rather',\n 'said',\n 'say',\n 'says',\n 'she',\n 'should',\n 'since',\n 'so',\n 'some',\n 'than',\n 'that',\n 'the',\n 'their',\n 'them',\n 'then',\n 'there',\n 'these',\n 'they',\n 'this',\n 'tis',\n 'to',\n 'too',\n 'twas',\n 'us',\n 'wants',\n 'was',\n 'we',\n 'were',\n 'what',\n 'when',\n 'where',\n 'which',\n 'while',\n 'who',\n 'whom',\n 'why',\n 'will',\n 'with',\n 'would',\n 'yet',\n 'you',\n 'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the beginning and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token The token to pass through the filter\n * @returns {lunr.Token}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n return token.update(function (s) {\n return s.replace(/^\\W+/, '').replace(/\\W+$/, '')\n })\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.TokenSet\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A token set is used to store the unique list of all tokens\n * within an index. Token sets are also used to represent an\n * incoming query to the index, this query token set and index\n * token set are then intersected to find which tokens to look\n * up in the inverted index.\n *\n * A token set can hold multiple tokens, as in the case of the\n * index token set, or it can hold a single token as in the\n * case of a simple query token set.\n *\n * Additionally token sets are used to perform wildcard matching.\n * Leading, contained and trailing wildcards are supported, and\n * from this edit distance matching can also be provided.\n *\n * Token sets are implemented as a minimal finite state automata,\n * where both common prefixes and suffixes are shared between tokens.\n * This helps to reduce the space used for storing the token set.\n *\n * @constructor\n */\nlunr.TokenSet = function () {\n this.final = false\n this.edges = {}\n this.id = lunr.TokenSet._nextId\n lunr.TokenSet._nextId += 1\n}\n\n/**\n * Keeps track of the next, auto increment, identifier to assign\n * to a new tokenSet.\n *\n * TokenSets require a unique identifier to be correctly minimised.\n *\n * @private\n */\nlunr.TokenSet._nextId = 1\n\n/**\n * Creates a TokenSet instance from the given sorted array of words.\n *\n * @param {String[]} arr - A sorted array of strings to create the set from.\n * @returns {lunr.TokenSet}\n * @throws Will throw an error if the input array is not sorted.\n */\nlunr.TokenSet.fromArray = function (arr) {\n var builder = new lunr.TokenSet.Builder\n\n for (var i = 0, len = arr.length; i < len; i++) {\n builder.insert(arr[i])\n }\n\n builder.finish()\n return builder.root\n}\n\n/**\n * Creates a token set from a query clause.\n *\n * @private\n * @param {Object} clause - A single clause from lunr.Query.\n * @param {string} clause.term - The query clause term.\n * @param {number} [clause.editDistance] - The optional edit distance for the term.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromClause = function (clause) {\n if ('editDistance' in clause) {\n return lunr.TokenSet.fromFuzzyString(clause.term, clause.editDistance)\n } else {\n return lunr.TokenSet.fromString(clause.term)\n }\n}\n\n/**\n * Creates a token set representing a single string with a specified\n * edit distance.\n *\n * Insertions, deletions, substitutions and transpositions are each\n * treated as an edit distance of 1.\n *\n * Increasing the allowed edit distance will have a dramatic impact\n * on the performance of both creating and intersecting these TokenSets.\n * It is advised to keep the edit distance less than 3.\n *\n * @param {string} str - The string to create the token set from.\n * @param {number} editDistance - The allowed edit distance to match.\n * @returns {lunr.Vector}\n */\nlunr.TokenSet.fromFuzzyString = function (str, editDistance) {\n var root = new lunr.TokenSet\n\n var stack = [{\n node: root,\n editsRemaining: editDistance,\n str: str\n }]\n\n while (stack.length) {\n var frame = stack.pop()\n\n // no edit\n if (frame.str.length > 0) {\n var char = frame.str.charAt(0),\n noEditNode\n\n if (char in frame.node.edges) {\n noEditNode = frame.node.edges[char]\n } else {\n noEditNode = new lunr.TokenSet\n frame.node.edges[char] = noEditNode\n }\n\n if (frame.str.length == 1) {\n noEditNode.final = true\n }\n\n stack.push({\n node: noEditNode,\n editsRemaining: frame.editsRemaining,\n str: frame.str.slice(1)\n })\n }\n\n if (frame.editsRemaining == 0) {\n continue\n }\n\n // insertion\n if (\"*\" in frame.node.edges) {\n var insertionNode = frame.node.edges[\"*\"]\n } else {\n var insertionNode = new lunr.TokenSet\n frame.node.edges[\"*\"] = insertionNode\n }\n\n if (frame.str.length == 0) {\n insertionNode.final = true\n }\n\n stack.push({\n node: insertionNode,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str\n })\n\n // deletion\n // can only do a deletion if we have enough edits remaining\n // and if there are characters left to delete in the string\n if (frame.str.length > 1) {\n stack.push({\n node: frame.node,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str.slice(1)\n })\n }\n\n // deletion\n // just removing the last character from the str\n if (frame.str.length == 1) {\n frame.node.final = true\n }\n\n // substitution\n // can only do a substitution if we have enough edits remaining\n // and if there are characters left to substitute\n if (frame.str.length >= 1) {\n if (\"*\" in frame.node.edges) {\n var substitutionNode = frame.node.edges[\"*\"]\n } else {\n var substitutionNode = new lunr.TokenSet\n frame.node.edges[\"*\"] = substitutionNode\n }\n\n if (frame.str.length == 1) {\n substitutionNode.final = true\n }\n\n stack.push({\n node: substitutionNode,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str.slice(1)\n })\n }\n\n // transposition\n // can only do a transposition if there are edits remaining\n // and there are enough characters to transpose\n if (frame.str.length > 1) {\n var charA = frame.str.charAt(0),\n charB = frame.str.charAt(1),\n transposeNode\n\n if (charB in frame.node.edges) {\n transposeNode = frame.node.edges[charB]\n } else {\n transposeNode = new lunr.TokenSet\n frame.node.edges[charB] = transposeNode\n }\n\n if (frame.str.length == 1) {\n transposeNode.final = true\n }\n\n stack.push({\n node: transposeNode,\n editsRemaining: frame.editsRemaining - 1,\n str: charA + frame.str.slice(2)\n })\n }\n }\n\n return root\n}\n\n/**\n * Creates a TokenSet from a string.\n *\n * The string may contain one or more wildcard characters (*)\n * that will allow wildcard matching when intersecting with\n * another TokenSet.\n *\n * @param {string} str - The string to create a TokenSet from.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromString = function (str) {\n var node = new lunr.TokenSet,\n root = node\n\n /*\n * Iterates through all characters within the passed string\n * appending a node for each character.\n *\n * When a wildcard character is found then a self\n * referencing edge is introduced to continually match\n * any number of any characters.\n */\n for (var i = 0, len = str.length; i < len; i++) {\n var char = str[i],\n final = (i == len - 1)\n\n if (char == \"*\") {\n node.edges[char] = node\n node.final = final\n\n } else {\n var next = new lunr.TokenSet\n next.final = final\n\n node.edges[char] = next\n node = next\n }\n }\n\n return root\n}\n\n/**\n * Converts this TokenSet into an array of strings\n * contained within the TokenSet.\n *\n * @returns {string[]}\n */\nlunr.TokenSet.prototype.toArray = function () {\n var words = []\n\n var stack = [{\n prefix: \"\",\n node: this\n }]\n\n while (stack.length) {\n var frame = stack.pop(),\n edges = Object.keys(frame.node.edges),\n len = edges.length\n\n if (frame.node.final) {\n /* In Safari, at this point the prefix is sometimes corrupted, see:\n * https://github.com/olivernn/lunr.js/issues/279 Calling any\n * String.prototype method forces Safari to \"cast\" this string to what\n * it's supposed to be, fixing the bug. */\n frame.prefix.charAt(0)\n words.push(frame.prefix)\n }\n\n for (var i = 0; i < len; i++) {\n var edge = edges[i]\n\n stack.push({\n prefix: frame.prefix.concat(edge),\n node: frame.node.edges[edge]\n })\n }\n }\n\n return words\n}\n\n/**\n * Generates a string representation of a TokenSet.\n *\n * This is intended to allow TokenSets to be used as keys\n * in objects, largely to aid the construction and minimisation\n * of a TokenSet. As such it is not designed to be a human\n * friendly representation of the TokenSet.\n *\n * @returns {string}\n */\nlunr.TokenSet.prototype.toString = function () {\n // NOTE: Using Object.keys here as this.edges is very likely\n // to enter 'hash-mode' with many keys being added\n //\n // avoiding a for-in loop here as it leads to the function\n // being de-optimised (at least in V8). From some simple\n // benchmarks the performance is comparable, but allowing\n // V8 to optimize may mean easy performance wins in the future.\n\n if (this._str) {\n return this._str\n }\n\n var str = this.final ? '1' : '0',\n labels = Object.keys(this.edges).sort(),\n len = labels.length\n\n for (var i = 0; i < len; i++) {\n var label = labels[i],\n node = this.edges[label]\n\n str = str + label + node.id\n }\n\n return str\n}\n\n/**\n * Returns a new TokenSet that is the intersection of\n * this TokenSet and the passed TokenSet.\n *\n * This intersection will take into account any wildcards\n * contained within the TokenSet.\n *\n * @param {lunr.TokenSet} b - An other TokenSet to intersect with.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.prototype.intersect = function (b) {\n var output = new lunr.TokenSet,\n frame = undefined\n\n var stack = [{\n qNode: b,\n output: output,\n node: this\n }]\n\n while (stack.length) {\n frame = stack.pop()\n\n // NOTE: As with the #toString method, we are using\n // Object.keys and a for loop instead of a for-in loop\n // as both of these objects enter 'hash' mode, causing\n // the function to be de-optimised in V8\n var qEdges = Object.keys(frame.qNode.edges),\n qLen = qEdges.length,\n nEdges = Object.keys(frame.node.edges),\n nLen = nEdges.length\n\n for (var q = 0; q < qLen; q++) {\n var qEdge = qEdges[q]\n\n for (var n = 0; n < nLen; n++) {\n var nEdge = nEdges[n]\n\n if (nEdge == qEdge || qEdge == '*') {\n var node = frame.node.edges[nEdge],\n qNode = frame.qNode.edges[qEdge],\n final = node.final && qNode.final,\n next = undefined\n\n if (nEdge in frame.output.edges) {\n // an edge already exists for this character\n // no need to create a new node, just set the finality\n // bit unless this node is already final\n next = frame.output.edges[nEdge]\n next.final = next.final || final\n\n } else {\n // no edge exists yet, must create one\n // set the finality bit and insert it\n // into the output\n next = new lunr.TokenSet\n next.final = final\n frame.output.edges[nEdge] = next\n }\n\n stack.push({\n qNode: qNode,\n output: next,\n node: node\n })\n }\n }\n }\n }\n\n return output\n}\nlunr.TokenSet.Builder = function () {\n this.previousWord = \"\"\n this.root = new lunr.TokenSet\n this.uncheckedNodes = []\n this.minimizedNodes = {}\n}\n\nlunr.TokenSet.Builder.prototype.insert = function (word) {\n var node,\n commonPrefix = 0\n\n if (word < this.previousWord) {\n throw new Error (\"Out of order word insertion\")\n }\n\n for (var i = 0; i < word.length && i < this.previousWord.length; i++) {\n if (word[i] != this.previousWord[i]) break\n commonPrefix++\n }\n\n this.minimize(commonPrefix)\n\n if (this.uncheckedNodes.length == 0) {\n node = this.root\n } else {\n node = this.uncheckedNodes[this.uncheckedNodes.length - 1].child\n }\n\n for (var i = commonPrefix; i < word.length; i++) {\n var nextNode = new lunr.TokenSet,\n char = word[i]\n\n node.edges[char] = nextNode\n\n this.uncheckedNodes.push({\n parent: node,\n char: char,\n child: nextNode\n })\n\n node = nextNode\n }\n\n node.final = true\n this.previousWord = word\n}\n\nlunr.TokenSet.Builder.prototype.finish = function () {\n this.minimize(0)\n}\n\nlunr.TokenSet.Builder.prototype.minimize = function (downTo) {\n for (var i = this.uncheckedNodes.length - 1; i >= downTo; i--) {\n var node = this.uncheckedNodes[i],\n childKey = node.child.toString()\n\n if (childKey in this.minimizedNodes) {\n node.parent.edges[node.char] = this.minimizedNodes[childKey]\n } else {\n // Cache the key for this node since\n // we know it can't change anymore\n node.child._str = childKey\n\n this.minimizedNodes[childKey] = node.child\n }\n\n this.uncheckedNodes.pop()\n }\n}\n/*!\n * lunr.Index\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * An index contains the built index of all documents and provides a query interface\n * to the index.\n *\n * Usually instances of lunr.Index will not be created using this constructor, instead\n * lunr.Builder should be used to construct new indexes, or lunr.Index.load should be\n * used to load previously built and serialized indexes.\n *\n * @constructor\n * @param {Object} attrs - The attributes of the built search index.\n * @param {Object} attrs.invertedIndex - An index of term/field to document reference.\n * @param {Object} attrs.fieldVectors - Field vectors\n * @param {lunr.TokenSet} attrs.tokenSet - An set of all corpus tokens.\n * @param {string[]} attrs.fields - The names of indexed document fields.\n * @param {lunr.Pipeline} attrs.pipeline - The pipeline to use for search terms.\n */\nlunr.Index = function (attrs) {\n this.invertedIndex = attrs.invertedIndex\n this.fieldVectors = attrs.fieldVectors\n this.tokenSet = attrs.tokenSet\n this.fields = attrs.fields\n this.pipeline = attrs.pipeline\n}\n\n/**\n * A result contains details of a document matching a search query.\n * @typedef {Object} lunr.Index~Result\n * @property {string} ref - The reference of the document this result represents.\n * @property {number} score - A number between 0 and 1 representing how similar this document is to the query.\n * @property {lunr.MatchData} matchData - Contains metadata about this match including which term(s) caused the match.\n */\n\n/**\n * Although lunr provides the ability to create queries using lunr.Query, it also provides a simple\n * query language which itself is parsed into an instance of lunr.Query.\n *\n * For programmatically building queries it is advised to directly use lunr.Query, the query language\n * is best used for human entered text rather than program generated text.\n *\n * At its simplest queries can just be a single term, e.g. `hello`, multiple terms are also supported\n * and will be combined with OR, e.g `hello world` will match documents that contain either 'hello'\n * or 'world', though those that contain both will rank higher in the results.\n *\n * Wildcards can be included in terms to match one or more unspecified characters, these wildcards can\n * be inserted anywhere within the term, and more than one wildcard can exist in a single term. Adding\n * wildcards will increase the number of documents that will be found but can also have a negative\n * impact on query performance, especially with wildcards at the beginning of a term.\n *\n * Terms can be restricted to specific fields, e.g. `title:hello`, only documents with the term\n * hello in the title field will match this query. Using a field not present in the index will lead\n * to an error being thrown.\n *\n * Modifiers can also be added to terms, lunr supports edit distance and boost modifiers on terms. A term\n * boost will make documents matching that term score higher, e.g. `foo^5`. Edit distance is also supported\n * to provide fuzzy matching, e.g. 'hello~2' will match documents with hello with an edit distance of 2.\n * Avoid large values for edit distance to improve query performance.\n *\n * Each term also supports a presence modifier. By default a term's presence in document is optional, however\n * this can be changed to either required or prohibited. For a term's presence to be required in a document the\n * term should be prefixed with a '+', e.g. `+foo bar` is a search for documents that must contain 'foo' and\n * optionally contain 'bar'. Conversely a leading '-' sets the terms presence to prohibited, i.e. it must not\n * appear in a document, e.g. `-foo bar` is a search for documents that do not contain 'foo' but may contain 'bar'.\n *\n * To escape special characters the backslash character '\\' can be used, this allows searches to include\n * characters that would normally be considered modifiers, e.g. `foo\\~2` will search for a term \"foo~2\" instead\n * of attempting to apply a boost of 2 to the search term \"foo\".\n *\n * @typedef {string} lunr.Index~QueryString\n * @example Simple single term query\n * hello\n * @example Multiple term query\n * hello world\n * @example term scoped to a field\n * title:hello\n * @example term with a boost of 10\n * hello^10\n * @example term with an edit distance of 2\n * hello~2\n * @example terms with presence modifiers\n * -foo +bar baz\n */\n\n/**\n * Performs a search against the index using lunr query syntax.\n *\n * Results will be returned sorted by their score, the most relevant results\n * will be returned first. For details on how the score is calculated, please see\n * the {@link https://lunrjs.com/guides/searching.html#scoring|guide}.\n *\n * For more programmatic querying use lunr.Index#query.\n *\n * @param {lunr.Index~QueryString} queryString - A string containing a lunr query.\n * @throws {lunr.QueryParseError} If the passed query string cannot be parsed.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.search = function (queryString) {\n return this.query(function (query) {\n var parser = new lunr.QueryParser(queryString, query)\n parser.parse()\n })\n}\n\n/**\n * A query builder callback provides a query object to be used to express\n * the query to perform on the index.\n *\n * @callback lunr.Index~queryBuilder\n * @param {lunr.Query} query - The query object to build up.\n * @this lunr.Query\n */\n\n/**\n * Performs a query against the index using the yielded lunr.Query object.\n *\n * If performing programmatic queries against the index, this method is preferred\n * over lunr.Index#search so as to avoid the additional query parsing overhead.\n *\n * A query object is yielded to the supplied function which should be used to\n * express the query to be run against the index.\n *\n * Note that although this function takes a callback parameter it is _not_ an\n * asynchronous operation, the callback is just yielded a query object to be\n * customized.\n *\n * @param {lunr.Index~queryBuilder} fn - A function that is used to build the query.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.query = function (fn) {\n // for each query clause\n // * process terms\n // * expand terms from token set\n // * find matching documents and metadata\n // * get document vectors\n // * score documents\n\n var query = new lunr.Query(this.fields),\n matchingFields = Object.create(null),\n queryVectors = Object.create(null),\n termFieldCache = Object.create(null),\n requiredMatches = Object.create(null),\n prohibitedMatches = Object.create(null)\n\n /*\n * To support field level boosts a query vector is created per\n * field. An empty vector is eagerly created to support negated\n * queries.\n */\n for (var i = 0; i < this.fields.length; i++) {\n queryVectors[this.fields[i]] = new lunr.Vector\n }\n\n fn.call(query, query)\n\n for (var i = 0; i < query.clauses.length; i++) {\n /*\n * Unless the pipeline has been disabled for this term, which is\n * the case for terms with wildcards, we need to pass the clause\n * term through the search pipeline. A pipeline returns an array\n * of processed terms. Pipeline functions may expand the passed\n * term, which means we may end up performing multiple index lookups\n * for a single query term.\n */\n var clause = query.clauses[i],\n terms = null,\n clauseMatches = lunr.Set.complete\n\n if (clause.usePipeline) {\n terms = this.pipeline.runString(clause.term, {\n fields: clause.fields\n })\n } else {\n terms = [clause.term]\n }\n\n for (var m = 0; m < terms.length; m++) {\n var term = terms[m]\n\n /*\n * Each term returned from the pipeline needs to use the same query\n * clause object, e.g. the same boost and or edit distance. The\n * simplest way to do this is to re-use the clause object but mutate\n * its term property.\n */\n clause.term = term\n\n /*\n * From the term in the clause we create a token set which will then\n * be used to intersect the indexes token set to get a list of terms\n * to lookup in the inverted index\n */\n var termTokenSet = lunr.TokenSet.fromClause(clause),\n expandedTerms = this.tokenSet.intersect(termTokenSet).toArray()\n\n /*\n * If a term marked as required does not exist in the tokenSet it is\n * impossible for the search to return any matches. We set all the field\n * scoped required matches set to empty and stop examining any further\n * clauses.\n */\n if (expandedTerms.length === 0 && clause.presence === lunr.Query.presence.REQUIRED) {\n for (var k = 0; k < clause.fields.length; k++) {\n var field = clause.fields[k]\n requiredMatches[field] = lunr.Set.empty\n }\n\n break\n }\n\n for (var j = 0; j < expandedTerms.length; j++) {\n /*\n * For each term get the posting and termIndex, this is required for\n * building the query vector.\n */\n var expandedTerm = expandedTerms[j],\n posting = this.invertedIndex[expandedTerm],\n termIndex = posting._index\n\n for (var k = 0; k < clause.fields.length; k++) {\n /*\n * For each field that this query term is scoped by (by default\n * all fields are in scope) we need to get all the document refs\n * that have this term in that field.\n *\n * The posting is the entry in the invertedIndex for the matching\n * term from above.\n */\n var field = clause.fields[k],\n fieldPosting = posting[field],\n matchingDocumentRefs = Object.keys(fieldPosting),\n termField = expandedTerm + \"/\" + field,\n matchingDocumentsSet = new lunr.Set(matchingDocumentRefs)\n\n /*\n * if the presence of this term is required ensure that the matching\n * documents are added to the set of required matches for this clause.\n *\n */\n if (clause.presence == lunr.Query.presence.REQUIRED) {\n clauseMatches = clauseMatches.union(matchingDocumentsSet)\n\n if (requiredMatches[field] === undefined) {\n requiredMatches[field] = lunr.Set.complete\n }\n }\n\n /*\n * if the presence of this term is prohibited ensure that the matching\n * documents are added to the set of prohibited matches for this field,\n * creating that set if it does not yet exist.\n */\n if (clause.presence == lunr.Query.presence.PROHIBITED) {\n if (prohibitedMatches[field] === undefined) {\n prohibitedMatches[field] = lunr.Set.empty\n }\n\n prohibitedMatches[field] = prohibitedMatches[field].union(matchingDocumentsSet)\n\n /*\n * Prohibited matches should not be part of the query vector used for\n * similarity scoring and no metadata should be extracted so we continue\n * to the next field\n */\n continue\n }\n\n /*\n * The query field vector is populated using the termIndex found for\n * the term and a unit value with the appropriate boost applied.\n * Using upsert because there could already be an entry in the vector\n * for the term we are working with. In that case we just add the scores\n * together.\n */\n queryVectors[field].upsert(termIndex, clause.boost, function (a, b) { return a + b })\n\n /**\n * If we've already seen this term, field combo then we've already collected\n * the matching documents and metadata, no need to go through all that again\n */\n if (termFieldCache[termField]) {\n continue\n }\n\n for (var l = 0; l < matchingDocumentRefs.length; l++) {\n /*\n * All metadata for this term/field/document triple\n * are then extracted and collected into an instance\n * of lunr.MatchData ready to be returned in the query\n * results\n */\n var matchingDocumentRef = matchingDocumentRefs[l],\n matchingFieldRef = new lunr.FieldRef (matchingDocumentRef, field),\n metadata = fieldPosting[matchingDocumentRef],\n fieldMatch\n\n if ((fieldMatch = matchingFields[matchingFieldRef]) === undefined) {\n matchingFields[matchingFieldRef] = new lunr.MatchData (expandedTerm, field, metadata)\n } else {\n fieldMatch.add(expandedTerm, field, metadata)\n }\n\n }\n\n termFieldCache[termField] = true\n }\n }\n }\n\n /**\n * If the presence was required we need to update the requiredMatches field sets.\n * We do this after all fields for the term have collected their matches because\n * the clause terms presence is required in _any_ of the fields not _all_ of the\n * fields.\n */\n if (clause.presence === lunr.Query.presence.REQUIRED) {\n for (var k = 0; k < clause.fields.length; k++) {\n var field = clause.fields[k]\n requiredMatches[field] = requiredMatches[field].intersect(clauseMatches)\n }\n }\n }\n\n /**\n * Need to combine the field scoped required and prohibited\n * matching documents into a global set of required and prohibited\n * matches\n */\n var allRequiredMatches = lunr.Set.complete,\n allProhibitedMatches = lunr.Set.empty\n\n for (var i = 0; i < this.fields.length; i++) {\n var field = this.fields[i]\n\n if (requiredMatches[field]) {\n allRequiredMatches = allRequiredMatches.intersect(requiredMatches[field])\n }\n\n if (prohibitedMatches[field]) {\n allProhibitedMatches = allProhibitedMatches.union(prohibitedMatches[field])\n }\n }\n\n var matchingFieldRefs = Object.keys(matchingFields),\n results = [],\n matches = Object.create(null)\n\n /*\n * If the query is negated (contains only prohibited terms)\n * we need to get _all_ fieldRefs currently existing in the\n * index. This is only done when we know that the query is\n * entirely prohibited terms to avoid any cost of getting all\n * fieldRefs unnecessarily.\n *\n * Additionally, blank MatchData must be created to correctly\n * populate the results.\n */\n if (query.isNegated()) {\n matchingFieldRefs = Object.keys(this.fieldVectors)\n\n for (var i = 0; i < matchingFieldRefs.length; i++) {\n var matchingFieldRef = matchingFieldRefs[i]\n var fieldRef = lunr.FieldRef.fromString(matchingFieldRef)\n matchingFields[matchingFieldRef] = new lunr.MatchData\n }\n }\n\n for (var i = 0; i < matchingFieldRefs.length; i++) {\n /*\n * Currently we have document fields that match the query, but we\n * need to return documents. The matchData and scores are combined\n * from multiple fields belonging to the same document.\n *\n * Scores are calculated by field, using the query vectors created\n * above, and combined into a final document score using addition.\n */\n var fieldRef = lunr.FieldRef.fromString(matchingFieldRefs[i]),\n docRef = fieldRef.docRef\n\n if (!allRequiredMatches.contains(docRef)) {\n continue\n }\n\n if (allProhibitedMatches.contains(docRef)) {\n continue\n }\n\n var fieldVector = this.fieldVectors[fieldRef],\n score = queryVectors[fieldRef.fieldName].similarity(fieldVector),\n docMatch\n\n if ((docMatch = matches[docRef]) !== undefined) {\n docMatch.score += score\n docMatch.matchData.combine(matchingFields[fieldRef])\n } else {\n var match = {\n ref: docRef,\n score: score,\n matchData: matchingFields[fieldRef]\n }\n matches[docRef] = match\n results.push(match)\n }\n }\n\n /*\n * Sort the results objects by score, highest first.\n */\n return results.sort(function (a, b) {\n return b.score - a.score\n })\n}\n\n/**\n * Prepares the index for JSON serialization.\n *\n * The schema for this JSON blob will be described in a\n * separate JSON schema file.\n *\n * @returns {Object}\n */\nlunr.Index.prototype.toJSON = function () {\n var invertedIndex = Object.keys(this.invertedIndex)\n .sort()\n .map(function (term) {\n return [term, this.invertedIndex[term]]\n }, this)\n\n var fieldVectors = Object.keys(this.fieldVectors)\n .map(function (ref) {\n return [ref, this.fieldVectors[ref].toJSON()]\n }, this)\n\n return {\n version: lunr.version,\n fields: this.fields,\n fieldVectors: fieldVectors,\n invertedIndex: invertedIndex,\n pipeline: this.pipeline.toJSON()\n }\n}\n\n/**\n * Loads a previously serialized lunr.Index\n *\n * @param {Object} serializedIndex - A previously serialized lunr.Index\n * @returns {lunr.Index}\n */\nlunr.Index.load = function (serializedIndex) {\n var attrs = {},\n fieldVectors = {},\n serializedVectors = serializedIndex.fieldVectors,\n invertedIndex = Object.create(null),\n serializedInvertedIndex = serializedIndex.invertedIndex,\n tokenSetBuilder = new lunr.TokenSet.Builder,\n pipeline = lunr.Pipeline.load(serializedIndex.pipeline)\n\n if (serializedIndex.version != lunr.version) {\n lunr.utils.warn(\"Version mismatch when loading serialised index. Current version of lunr '\" + lunr.version + \"' does not match serialized index '\" + serializedIndex.version + \"'\")\n }\n\n for (var i = 0; i < serializedVectors.length; i++) {\n var tuple = serializedVectors[i],\n ref = tuple[0],\n elements = tuple[1]\n\n fieldVectors[ref] = new lunr.Vector(elements)\n }\n\n for (var i = 0; i < serializedInvertedIndex.length; i++) {\n var tuple = serializedInvertedIndex[i],\n term = tuple[0],\n posting = tuple[1]\n\n tokenSetBuilder.insert(term)\n invertedIndex[term] = posting\n }\n\n tokenSetBuilder.finish()\n\n attrs.fields = serializedIndex.fields\n\n attrs.fieldVectors = fieldVectors\n attrs.invertedIndex = invertedIndex\n attrs.tokenSet = tokenSetBuilder.root\n attrs.pipeline = pipeline\n\n return new lunr.Index(attrs)\n}\n/*!\n * lunr.Builder\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.Builder performs indexing on a set of documents and\n * returns instances of lunr.Index ready for querying.\n *\n * All configuration of the index is done via the builder, the\n * fields to index, the document reference, the text processing\n * pipeline and document scoring parameters are all set on the\n * builder before indexing.\n *\n * @constructor\n * @property {string} _ref - Internal reference to the document reference field.\n * @property {string[]} _fields - Internal reference to the document fields to index.\n * @property {object} invertedIndex - The inverted index maps terms to document fields.\n * @property {object} documentTermFrequencies - Keeps track of document term frequencies.\n * @property {object} documentLengths - Keeps track of the length of documents added to the index.\n * @property {lunr.tokenizer} tokenizer - Function for splitting strings into tokens for indexing.\n * @property {lunr.Pipeline} pipeline - The pipeline performs text processing on tokens before indexing.\n * @property {lunr.Pipeline} searchPipeline - A pipeline for processing search terms before querying the index.\n * @property {number} documentCount - Keeps track of the total number of documents indexed.\n * @property {number} _b - A parameter to control field length normalization, setting this to 0 disabled normalization, 1 fully normalizes field lengths, the default value is 0.75.\n * @property {number} _k1 - A parameter to control how quickly an increase in term frequency results in term frequency saturation, the default value is 1.2.\n * @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.\n * @property {array} metadataWhitelist - A list of metadata keys that have been whitelisted for entry in the index.\n */\nlunr.Builder = function () {\n this._ref = \"id\"\n this._fields = Object.create(null)\n this._documents = Object.create(null)\n this.invertedIndex = Object.create(null)\n this.fieldTermFrequencies = {}\n this.fieldLengths = {}\n this.tokenizer = lunr.tokenizer\n this.pipeline = new lunr.Pipeline\n this.searchPipeline = new lunr.Pipeline\n this.documentCount = 0\n this._b = 0.75\n this._k1 = 1.2\n this.termIndex = 0\n this.metadataWhitelist = []\n}\n\n/**\n * Sets the document field used as the document reference. Every document must have this field.\n * The type of this field in the document should be a string, if it is not a string it will be\n * coerced into a string by calling toString.\n *\n * The default ref is 'id'.\n *\n * The ref should _not_ be changed during indexing, it should be set before any documents are\n * added to the index. Changing it during indexing can lead to inconsistent results.\n *\n * @param {string} ref - The name of the reference field in the document.\n */\nlunr.Builder.prototype.ref = function (ref) {\n this._ref = ref\n}\n\n/**\n * A function that is used to extract a field from a document.\n *\n * Lunr expects a field to be at the top level of a document, if however the field\n * is deeply nested within a document an extractor function can be used to extract\n * the right field for indexing.\n *\n * @callback fieldExtractor\n * @param {object} doc - The document being added to the index.\n * @returns {?(string|object|object[])} obj - The object that will be indexed for this field.\n * @example Extracting a nested field\n * function (doc) { return doc.nested.field }\n */\n\n/**\n * Adds a field to the list of document fields that will be indexed. Every document being\n * indexed should have this field. Null values for this field in indexed documents will\n * not cause errors but will limit the chance of that document being retrieved by searches.\n *\n * All fields should be added before adding documents to the index. Adding fields after\n * a document has been indexed will have no effect on already indexed documents.\n *\n * Fields can be boosted at build time. This allows terms within that field to have more\n * importance when ranking search results. Use a field boost to specify that matches within\n * one field are more important than other fields.\n *\n * @param {string} fieldName - The name of a field to index in all documents.\n * @param {object} attributes - Optional attributes associated with this field.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this field.\n * @param {fieldExtractor} [attributes.extractor] - Function to extract a field from a document.\n * @throws {RangeError} fieldName cannot contain unsupported characters '/'\n */\nlunr.Builder.prototype.field = function (fieldName, attributes) {\n if (/\\//.test(fieldName)) {\n throw new RangeError (\"Field '\" + fieldName + \"' contains illegal character '/'\")\n }\n\n this._fields[fieldName] = attributes || {}\n}\n\n/**\n * A parameter to tune the amount of field length normalisation that is applied when\n * calculating relevance scores. A value of 0 will completely disable any normalisation\n * and a value of 1 will fully normalise field lengths. The default is 0.75. Values of b\n * will be clamped to the range 0 - 1.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.b = function (number) {\n if (number < 0) {\n this._b = 0\n } else if (number > 1) {\n this._b = 1\n } else {\n this._b = number\n }\n}\n\n/**\n * A parameter that controls the speed at which a rise in term frequency results in term\n * frequency saturation. The default value is 1.2. Setting this to a higher value will give\n * slower saturation levels, a lower value will result in quicker saturation.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.k1 = function (number) {\n this._k1 = number\n}\n\n/**\n * Adds a document to the index.\n *\n * Before adding fields to the index the index should have been fully setup, with the document\n * ref and all fields to index already having been specified.\n *\n * The document must have a field name as specified by the ref (by default this is 'id') and\n * it should have all fields defined for indexing, though null or undefined values will not\n * cause errors.\n *\n * Entire documents can be boosted at build time. Applying a boost to a document indicates that\n * this document should rank higher in search results than other documents.\n *\n * @param {object} doc - The document to add to the index.\n * @param {object} attributes - Optional attributes associated with this document.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this document.\n */\nlunr.Builder.prototype.add = function (doc, attributes) {\n var docRef = doc[this._ref],\n fields = Object.keys(this._fields)\n\n this._documents[docRef] = attributes || {}\n this.documentCount += 1\n\n for (var i = 0; i < fields.length; i++) {\n var fieldName = fields[i],\n extractor = this._fields[fieldName].extractor,\n field = extractor ? extractor(doc) : doc[fieldName],\n tokens = this.tokenizer(field, {\n fields: [fieldName]\n }),\n terms = this.pipeline.run(tokens),\n fieldRef = new lunr.FieldRef (docRef, fieldName),\n fieldTerms = Object.create(null)\n\n this.fieldTermFrequencies[fieldRef] = fieldTerms\n this.fieldLengths[fieldRef] = 0\n\n // store the length of this field for this document\n this.fieldLengths[fieldRef] += terms.length\n\n // calculate term frequencies for this field\n for (var j = 0; j < terms.length; j++) {\n var term = terms[j]\n\n if (fieldTerms[term] == undefined) {\n fieldTerms[term] = 0\n }\n\n fieldTerms[term] += 1\n\n // add to inverted index\n // create an initial posting if one doesn't exist\n if (this.invertedIndex[term] == undefined) {\n var posting = Object.create(null)\n posting[\"_index\"] = this.termIndex\n this.termIndex += 1\n\n for (var k = 0; k < fields.length; k++) {\n posting[fields[k]] = Object.create(null)\n }\n\n this.invertedIndex[term] = posting\n }\n\n // add an entry for this term/fieldName/docRef to the invertedIndex\n if (this.invertedIndex[term][fieldName][docRef] == undefined) {\n this.invertedIndex[term][fieldName][docRef] = Object.create(null)\n }\n\n // store all whitelisted metadata about this token in the\n // inverted index\n for (var l = 0; l < this.metadataWhitelist.length; l++) {\n var metadataKey = this.metadataWhitelist[l],\n metadata = term.metadata[metadataKey]\n\n if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {\n this.invertedIndex[term][fieldName][docRef][metadataKey] = []\n }\n\n this.invertedIndex[term][fieldName][docRef][metadataKey].push(metadata)\n }\n }\n\n }\n}\n\n/**\n * Calculates the average document length for this index\n *\n * @private\n */\nlunr.Builder.prototype.calculateAverageFieldLengths = function () {\n\n var fieldRefs = Object.keys(this.fieldLengths),\n numberOfFields = fieldRefs.length,\n accumulator = {},\n documentsWithField = {}\n\n for (var i = 0; i < numberOfFields; i++) {\n var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n field = fieldRef.fieldName\n\n documentsWithField[field] || (documentsWithField[field] = 0)\n documentsWithField[field] += 1\n\n accumulator[field] || (accumulator[field] = 0)\n accumulator[field] += this.fieldLengths[fieldRef]\n }\n\n var fields = Object.keys(this._fields)\n\n for (var i = 0; i < fields.length; i++) {\n var fieldName = fields[i]\n accumulator[fieldName] = accumulator[fieldName] / documentsWithField[fieldName]\n }\n\n this.averageFieldLength = accumulator\n}\n\n/**\n * Builds a vector space model of every document using lunr.Vector\n *\n * @private\n */\nlunr.Builder.prototype.createFieldVectors = function () {\n var fieldVectors = {},\n fieldRefs = Object.keys(this.fieldTermFrequencies),\n fieldRefsLength = fieldRefs.length,\n termIdfCache = Object.create(null)\n\n for (var i = 0; i < fieldRefsLength; i++) {\n var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n fieldName = fieldRef.fieldName,\n fieldLength = this.fieldLengths[fieldRef],\n fieldVector = new lunr.Vector,\n termFrequencies = this.fieldTermFrequencies[fieldRef],\n terms = Object.keys(termFrequencies),\n termsLength = terms.length\n\n\n var fieldBoost = this._fields[fieldName].boost || 1,\n docBoost = this._documents[fieldRef.docRef].boost || 1\n\n for (var j = 0; j < termsLength; j++) {\n var term = terms[j],\n tf = termFrequencies[term],\n termIndex = this.invertedIndex[term]._index,\n idf, score, scoreWithPrecision\n\n if (termIdfCache[term] === undefined) {\n idf = lunr.idf(this.invertedIndex[term], this.documentCount)\n termIdfCache[term] = idf\n } else {\n idf = termIdfCache[term]\n }\n\n score = idf * ((this._k1 + 1) * tf) / (this._k1 * (1 - this._b + this._b * (fieldLength / this.averageFieldLength[fieldName])) + tf)\n score *= fieldBoost\n score *= docBoost\n scoreWithPrecision = Math.round(score * 1000) / 1000\n // Converts 1.23456789 to 1.234.\n // Reducing the precision so that the vectors take up less\n // space when serialised. Doing it now so that they behave\n // the same before and after serialisation. Also, this is\n // the fastest approach to reducing a number's precision in\n // JavaScript.\n\n fieldVector.insert(termIndex, scoreWithPrecision)\n }\n\n fieldVectors[fieldRef] = fieldVector\n }\n\n this.fieldVectors = fieldVectors\n}\n\n/**\n * Creates a token set of all tokens in the index using lunr.TokenSet\n *\n * @private\n */\nlunr.Builder.prototype.createTokenSet = function () {\n this.tokenSet = lunr.TokenSet.fromArray(\n Object.keys(this.invertedIndex).sort()\n )\n}\n\n/**\n * Builds the index, creating an instance of lunr.Index.\n *\n * This completes the indexing process and should only be called\n * once all documents have been added to the index.\n *\n * @returns {lunr.Index}\n */\nlunr.Builder.prototype.build = function () {\n this.calculateAverageFieldLengths()\n this.createFieldVectors()\n this.createTokenSet()\n\n return new lunr.Index({\n invertedIndex: this.invertedIndex,\n fieldVectors: this.fieldVectors,\n tokenSet: this.tokenSet,\n fields: Object.keys(this._fields),\n pipeline: this.searchPipeline\n })\n}\n\n/**\n * Applies a plugin to the index builder.\n *\n * A plugin is a function that is called with the index builder as its context.\n * Plugins can be used to customise or extend the behaviour of the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied when building the index.\n *\n * The plugin function will be called with the index builder as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index builder as its context.\n *\n * @param {Function} plugin The plugin to apply.\n */\nlunr.Builder.prototype.use = function (fn) {\n var args = Array.prototype.slice.call(arguments, 1)\n args.unshift(this)\n fn.apply(this, args)\n}\n/**\n * Contains and collects metadata about a matching document.\n * A single instance of lunr.MatchData is returned as part of every\n * lunr.Index~Result.\n *\n * @constructor\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n * @property {object} metadata - A cloned collection of metadata associated with this document.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData = function (term, field, metadata) {\n var clonedMetadata = Object.create(null),\n metadataKeys = Object.keys(metadata || {})\n\n // Cloning the metadata to prevent the original\n // being mutated during match data combination.\n // Metadata is kept in an array within the inverted\n // index so cloning the data can be done with\n // Array#slice\n for (var i = 0; i < metadataKeys.length; i++) {\n var key = metadataKeys[i]\n clonedMetadata[key] = metadata[key].slice()\n }\n\n this.metadata = Object.create(null)\n\n if (term !== undefined) {\n this.metadata[term] = Object.create(null)\n this.metadata[term][field] = clonedMetadata\n }\n}\n\n/**\n * An instance of lunr.MatchData will be created for every term that matches a\n * document. However only one instance is required in a lunr.Index~Result. This\n * method combines metadata from another instance of lunr.MatchData with this\n * objects metadata.\n *\n * @param {lunr.MatchData} otherMatchData - Another instance of match data to merge with this one.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData.prototype.combine = function (otherMatchData) {\n var terms = Object.keys(otherMatchData.metadata)\n\n for (var i = 0; i < terms.length; i++) {\n var term = terms[i],\n fields = Object.keys(otherMatchData.metadata[term])\n\n if (this.metadata[term] == undefined) {\n this.metadata[term] = Object.create(null)\n }\n\n for (var j = 0; j < fields.length; j++) {\n var field = fields[j],\n keys = Object.keys(otherMatchData.metadata[term][field])\n\n if (this.metadata[term][field] == undefined) {\n this.metadata[term][field] = Object.create(null)\n }\n\n for (var k = 0; k < keys.length; k++) {\n var key = keys[k]\n\n if (this.metadata[term][field][key] == undefined) {\n this.metadata[term][field][key] = otherMatchData.metadata[term][field][key]\n } else {\n this.metadata[term][field][key] = this.metadata[term][field][key].concat(otherMatchData.metadata[term][field][key])\n }\n\n }\n }\n }\n}\n\n/**\n * Add metadata for a term/field pair to this instance of match data.\n *\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n */\nlunr.MatchData.prototype.add = function (term, field, metadata) {\n if (!(term in this.metadata)) {\n this.metadata[term] = Object.create(null)\n this.metadata[term][field] = metadata\n return\n }\n\n if (!(field in this.metadata[term])) {\n this.metadata[term][field] = metadata\n return\n }\n\n var metadataKeys = Object.keys(metadata)\n\n for (var i = 0; i < metadataKeys.length; i++) {\n var key = metadataKeys[i]\n\n if (key in this.metadata[term][field]) {\n this.metadata[term][field][key] = this.metadata[term][field][key].concat(metadata[key])\n } else {\n this.metadata[term][field][key] = metadata[key]\n }\n }\n}\n/**\n * A lunr.Query provides a programmatic way of defining queries to be performed\n * against a {@link lunr.Index}.\n *\n * Prefer constructing a lunr.Query using the {@link lunr.Index#query} method\n * so the query object is pre-initialized with the right index fields.\n *\n * @constructor\n * @property {lunr.Query~Clause[]} clauses - An array of query clauses.\n * @property {string[]} allFields - An array of all available fields in a lunr.Index.\n */\nlunr.Query = function (allFields) {\n this.clauses = []\n this.allFields = allFields\n}\n\n/**\n * Constants for indicating what kind of automatic wildcard insertion will be used when constructing a query clause.\n *\n * This allows wildcards to be added to the beginning and end of a term without having to manually do any string\n * concatenation.\n *\n * The wildcard constants can be bitwise combined to select both leading and trailing wildcards.\n *\n * @constant\n * @default\n * @property {number} wildcard.NONE - The term will have no wildcards inserted, this is the default behaviour\n * @property {number} wildcard.LEADING - Prepend the term with a wildcard, unless a leading wildcard already exists\n * @property {number} wildcard.TRAILING - Append a wildcard to the term, unless a trailing wildcard already exists\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example query term with trailing wildcard\n * query.term('foo', { wildcard: lunr.Query.wildcard.TRAILING })\n * @example query term with leading and trailing wildcard\n * query.term('foo', {\n * wildcard: lunr.Query.wildcard.LEADING | lunr.Query.wildcard.TRAILING\n * })\n */\n\nlunr.Query.wildcard = new String (\"*\")\nlunr.Query.wildcard.NONE = 0\nlunr.Query.wildcard.LEADING = 1\nlunr.Query.wildcard.TRAILING = 2\n\n/**\n * Constants for indicating what kind of presence a term must have in matching documents.\n *\n * @constant\n * @enum {number}\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example query term with required presence\n * query.term('foo', { presence: lunr.Query.presence.REQUIRED })\n */\nlunr.Query.presence = {\n /**\n * Term's presence in a document is optional, this is the default value.\n */\n OPTIONAL: 1,\n\n /**\n * Term's presence in a document is required, documents that do not contain\n * this term will not be returned.\n */\n REQUIRED: 2,\n\n /**\n * Term's presence in a document is prohibited, documents that do contain\n * this term will not be returned.\n */\n PROHIBITED: 3\n}\n\n/**\n * A single clause in a {@link lunr.Query} contains a term and details on how to\n * match that term against a {@link lunr.Index}.\n *\n * @typedef {Object} lunr.Query~Clause\n * @property {string[]} fields - The fields in an index this clause should be matched against.\n * @property {number} [boost=1] - Any boost that should be applied when matching this clause.\n * @property {number} [editDistance] - Whether the term should have fuzzy matching applied, and how fuzzy the match should be.\n * @property {boolean} [usePipeline] - Whether the term should be passed through the search pipeline.\n * @property {number} [wildcard=lunr.Query.wildcard.NONE] - Whether the term should have wildcards appended or prepended.\n * @property {number} [presence=lunr.Query.presence.OPTIONAL] - The terms presence in any matching documents.\n */\n\n/**\n * Adds a {@link lunr.Query~Clause} to this query.\n *\n * Unless the clause contains the fields to be matched all fields will be matched. In addition\n * a default boost of 1 is applied to the clause.\n *\n * @param {lunr.Query~Clause} clause - The clause to add to this query.\n * @see lunr.Query~Clause\n * @returns {lunr.Query}\n */\nlunr.Query.prototype.clause = function (clause) {\n if (!('fields' in clause)) {\n clause.fields = this.allFields\n }\n\n if (!('boost' in clause)) {\n clause.boost = 1\n }\n\n if (!('usePipeline' in clause)) {\n clause.usePipeline = true\n }\n\n if (!('wildcard' in clause)) {\n clause.wildcard = lunr.Query.wildcard.NONE\n }\n\n if ((clause.wildcard & lunr.Query.wildcard.LEADING) && (clause.term.charAt(0) != lunr.Query.wildcard)) {\n clause.term = \"*\" + clause.term\n }\n\n if ((clause.wildcard & lunr.Query.wildcard.TRAILING) && (clause.term.slice(-1) != lunr.Query.wildcard)) {\n clause.term = \"\" + clause.term + \"*\"\n }\n\n if (!('presence' in clause)) {\n clause.presence = lunr.Query.presence.OPTIONAL\n }\n\n this.clauses.push(clause)\n\n return this\n}\n\n/**\n * A negated query is one in which every clause has a presence of\n * prohibited. These queries require some special processing to return\n * the expected results.\n *\n * @returns boolean\n */\nlunr.Query.prototype.isNegated = function () {\n for (var i = 0; i < this.clauses.length; i++) {\n if (this.clauses[i].presence != lunr.Query.presence.PROHIBITED) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * Adds a term to the current query, under the covers this will create a {@link lunr.Query~Clause}\n * to the list of clauses that make up this query.\n *\n * The term is used as is, i.e. no tokenization will be performed by this method. Instead conversion\n * to a token or token-like string should be done before calling this method.\n *\n * The term will be converted to a string by calling `toString`. Multiple terms can be passed as an\n * array, each term in the array will share the same options.\n *\n * @param {object|object[]} term - The term(s) to add to the query.\n * @param {object} [options] - Any additional properties to add to the query clause.\n * @returns {lunr.Query}\n * @see lunr.Query#clause\n * @see lunr.Query~Clause\n * @example adding a single term to a query\n * query.term(\"foo\")\n * @example adding a single term to a query and specifying search fields, term boost and automatic trailing wildcard\n * query.term(\"foo\", {\n * fields: [\"title\"],\n * boost: 10,\n * wildcard: lunr.Query.wildcard.TRAILING\n * })\n * @example using lunr.tokenizer to convert a string to tokens before using them as terms\n * query.term(lunr.tokenizer(\"foo bar\"))\n */\nlunr.Query.prototype.term = function (term, options) {\n if (Array.isArray(term)) {\n term.forEach(function (t) { this.term(t, lunr.utils.clone(options)) }, this)\n return this\n }\n\n var clause = options || {}\n clause.term = term.toString()\n\n this.clause(clause)\n\n return this\n}\nlunr.QueryParseError = function (message, start, end) {\n this.name = \"QueryParseError\"\n this.message = message\n this.start = start\n this.end = end\n}\n\nlunr.QueryParseError.prototype = new Error\nlunr.QueryLexer = function (str) {\n this.lexemes = []\n this.str = str\n this.length = str.length\n this.pos = 0\n this.start = 0\n this.escapeCharPositions = []\n}\n\nlunr.QueryLexer.prototype.run = function () {\n var state = lunr.QueryLexer.lexText\n\n while (state) {\n state = state(this)\n }\n}\n\nlunr.QueryLexer.prototype.sliceString = function () {\n var subSlices = [],\n sliceStart = this.start,\n sliceEnd = this.pos\n\n for (var i = 0; i < this.escapeCharPositions.length; i++) {\n sliceEnd = this.escapeCharPositions[i]\n subSlices.push(this.str.slice(sliceStart, sliceEnd))\n sliceStart = sliceEnd + 1\n }\n\n subSlices.push(this.str.slice(sliceStart, this.pos))\n this.escapeCharPositions.length = 0\n\n return subSlices.join('')\n}\n\nlunr.QueryLexer.prototype.emit = function (type) {\n this.lexemes.push({\n type: type,\n str: this.sliceString(),\n start: this.start,\n end: this.pos\n })\n\n this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.escapeCharacter = function () {\n this.escapeCharPositions.push(this.pos - 1)\n this.pos += 1\n}\n\nlunr.QueryLexer.prototype.next = function () {\n if (this.pos >= this.length) {\n return lunr.QueryLexer.EOS\n }\n\n var char = this.str.charAt(this.pos)\n this.pos += 1\n return char\n}\n\nlunr.QueryLexer.prototype.width = function () {\n return this.pos - this.start\n}\n\nlunr.QueryLexer.prototype.ignore = function () {\n if (this.start == this.pos) {\n this.pos += 1\n }\n\n this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.backup = function () {\n this.pos -= 1\n}\n\nlunr.QueryLexer.prototype.acceptDigitRun = function () {\n var char, charCode\n\n do {\n char = this.next()\n charCode = char.charCodeAt(0)\n } while (charCode > 47 && charCode < 58)\n\n if (char != lunr.QueryLexer.EOS) {\n this.backup()\n }\n}\n\nlunr.QueryLexer.prototype.more = function () {\n return this.pos < this.length\n}\n\nlunr.QueryLexer.EOS = 'EOS'\nlunr.QueryLexer.FIELD = 'FIELD'\nlunr.QueryLexer.TERM = 'TERM'\nlunr.QueryLexer.EDIT_DISTANCE = 'EDIT_DISTANCE'\nlunr.QueryLexer.BOOST = 'BOOST'\nlunr.QueryLexer.PRESENCE = 'PRESENCE'\n\nlunr.QueryLexer.lexField = function (lexer) {\n lexer.backup()\n lexer.emit(lunr.QueryLexer.FIELD)\n lexer.ignore()\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexTerm = function (lexer) {\n if (lexer.width() > 1) {\n lexer.backup()\n lexer.emit(lunr.QueryLexer.TERM)\n }\n\n lexer.ignore()\n\n if (lexer.more()) {\n return lunr.QueryLexer.lexText\n }\n}\n\nlunr.QueryLexer.lexEditDistance = function (lexer) {\n lexer.ignore()\n lexer.acceptDigitRun()\n lexer.emit(lunr.QueryLexer.EDIT_DISTANCE)\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexBoost = function (lexer) {\n lexer.ignore()\n lexer.acceptDigitRun()\n lexer.emit(lunr.QueryLexer.BOOST)\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexEOS = function (lexer) {\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n}\n\n// This matches the separator used when tokenising fields\n// within a document. These should match otherwise it is\n// not possible to search for some tokens within a document.\n//\n// It is possible for the user to change the separator on the\n// tokenizer so it _might_ clash with any other of the special\n// characters already used within the search string, e.g. :.\n//\n// This means that it is possible to change the separator in\n// such a way that makes some words unsearchable using a search\n// string.\nlunr.QueryLexer.termSeparator = lunr.tokenizer.separator\n\nlunr.QueryLexer.lexText = function (lexer) {\n while (true) {\n var char = lexer.next()\n\n if (char == lunr.QueryLexer.EOS) {\n return lunr.QueryLexer.lexEOS\n }\n\n // Escape character is '\\'\n if (char.charCodeAt(0) == 92) {\n lexer.escapeCharacter()\n continue\n }\n\n if (char == \":\") {\n return lunr.QueryLexer.lexField\n }\n\n if (char == \"~\") {\n lexer.backup()\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n return lunr.QueryLexer.lexEditDistance\n }\n\n if (char == \"^\") {\n lexer.backup()\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n return lunr.QueryLexer.lexBoost\n }\n\n // \"+\" indicates term presence is required\n // checking for length to ensure that only\n // leading \"+\" are considered\n if (char == \"+\" && lexer.width() === 1) {\n lexer.emit(lunr.QueryLexer.PRESENCE)\n return lunr.QueryLexer.lexText\n }\n\n // \"-\" indicates term presence is prohibited\n // checking for length to ensure that only\n // leading \"-\" are considered\n if (char == \"-\" && lexer.width() === 1) {\n lexer.emit(lunr.QueryLexer.PRESENCE)\n return lunr.QueryLexer.lexText\n }\n\n if (char.match(lunr.QueryLexer.termSeparator)) {\n return lunr.QueryLexer.lexTerm\n }\n }\n}\n\nlunr.QueryParser = function (str, query) {\n this.lexer = new lunr.QueryLexer (str)\n this.query = query\n this.currentClause = {}\n this.lexemeIdx = 0\n}\n\nlunr.QueryParser.prototype.parse = function () {\n this.lexer.run()\n this.lexemes = this.lexer.lexemes\n\n var state = lunr.QueryParser.parseClause\n\n while (state) {\n state = state(this)\n }\n\n return this.query\n}\n\nlunr.QueryParser.prototype.peekLexeme = function () {\n return this.lexemes[this.lexemeIdx]\n}\n\nlunr.QueryParser.prototype.consumeLexeme = function () {\n var lexeme = this.peekLexeme()\n this.lexemeIdx += 1\n return lexeme\n}\n\nlunr.QueryParser.prototype.nextClause = function () {\n var completedClause = this.currentClause\n this.query.clause(completedClause)\n this.currentClause = {}\n}\n\nlunr.QueryParser.parseClause = function (parser) {\n var lexeme = parser.peekLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n switch (lexeme.type) {\n case lunr.QueryLexer.PRESENCE:\n return lunr.QueryParser.parsePresence\n case lunr.QueryLexer.FIELD:\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expected either a field or a term, found \" + lexeme.type\n\n if (lexeme.str.length >= 1) {\n errorMessage += \" with value '\" + lexeme.str + \"'\"\n }\n\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n}\n\nlunr.QueryParser.parsePresence = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n switch (lexeme.str) {\n case \"-\":\n parser.currentClause.presence = lunr.Query.presence.PROHIBITED\n break\n case \"+\":\n parser.currentClause.presence = lunr.Query.presence.REQUIRED\n break\n default:\n var errorMessage = \"unrecognised presence operator'\" + lexeme.str + \"'\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n var errorMessage = \"expecting term or field, found nothing\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.FIELD:\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expecting term or field, found '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseField = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n if (parser.query.allFields.indexOf(lexeme.str) == -1) {\n var possibleFields = parser.query.allFields.map(function (f) { return \"'\" + f + \"'\" }).join(', '),\n errorMessage = \"unrecognised field '\" + lexeme.str + \"', possible fields: \" + possibleFields\n\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.fields = [lexeme.str]\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n var errorMessage = \"expecting term, found nothing\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expecting term, found '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseTerm = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n parser.currentClause.term = lexeme.str.toLowerCase()\n\n if (lexeme.str.indexOf(\"*\") != -1) {\n parser.currentClause.usePipeline = false\n }\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseEditDistance = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n var editDistance = parseInt(lexeme.str, 10)\n\n if (isNaN(editDistance)) {\n var errorMessage = \"edit distance must be numeric\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.editDistance = editDistance\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseBoost = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n var boost = parseInt(lexeme.str, 10)\n\n if (isNaN(boost)) {\n var errorMessage = \"boost must be numeric\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.boost = boost\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\n /**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n ;(function (root, factory) {\n if (true) {\n // AMD. Register as an anonymous module.\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))\n } else {}\n }(this, function () {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return lunr\n }))\n})();\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(7);\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\nvar core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(11);\nvar createDesc = __webpack_require__(26);\nmodule.exports = __webpack_require__(8) ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar hide = __webpack_require__(5);\nvar has = __webpack_require__(12);\nvar SRC = __webpack_require__(18)('src');\nvar $toString = __webpack_require__(39);\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\n__webpack_require__(4).inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(25)(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(3);\nvar IE8_DOM_DEFINE = __webpack_require__(37);\nvar toPrimitive = __webpack_require__(38);\nvar dP = Object.defineProperty;\n\nexports.f = __webpack_require__(8) ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// optional / simple context binding\nvar aFunction = __webpack_require__(14);\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = __webpack_require__(10);\nvar TAG = __webpack_require__(0)('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar core = __webpack_require__(4);\nvar global = __webpack_require__(1);\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: __webpack_require__(17) ? 'pure' : 'global',\n copyright: '\xa9 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports) {\n\nmodule.exports = false;\n\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(7);\nvar document = __webpack_require__(1).document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports) {\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports) {\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(46);\nvar defined = __webpack_require__(21);\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(16)('keys');\nvar uid = __webpack_require__(18);\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar def = __webpack_require__(11).f;\nvar has = __webpack_require__(12);\nvar TAG = __webpack_require__(0)('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(17);\nvar $export = __webpack_require__(28);\nvar redefine = __webpack_require__(6);\nvar hide = __webpack_require__(5);\nvar Iterators = __webpack_require__(9);\nvar $iterCreate = __webpack_require__(42);\nvar setToStringTag = __webpack_require__(24);\nvar getPrototypeOf = __webpack_require__(49);\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar core = __webpack_require__(4);\nvar hide = __webpack_require__(5);\nvar redefine = __webpack_require__(6);\nvar ctx = __webpack_require__(13);\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = __webpack_require__(45);\nvar enumBugKeys = __webpack_require__(31);\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.15 ToLength\nvar toInteger = __webpack_require__(20);\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports) {\n\n// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar document = __webpack_require__(1).document;\nmodule.exports = document && document.documentElement;\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ctx = __webpack_require__(13);\nvar invoke = __webpack_require__(62);\nvar html = __webpack_require__(32);\nvar cel = __webpack_require__(19);\nvar global = __webpack_require__(1);\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (__webpack_require__(10)(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = __webpack_require__(14);\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(36);\n__webpack_require__(40);\n__webpack_require__(51);\n__webpack_require__(55);\nmodule.exports = __webpack_require__(4).Promise;\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 19.1.3.6 Object.prototype.toString()\nvar classof = __webpack_require__(15);\nvar test = {};\ntest[__webpack_require__(0)('toStringTag')] = 'z';\nif (test + '' != '[object z]') {\n __webpack_require__(6)(Object.prototype, 'toString', function toString() {\n return '[object ' + classof(this) + ']';\n }, true);\n}\n\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = !__webpack_require__(8) && !__webpack_require__(25)(function () {\n return Object.defineProperty(__webpack_require__(19)('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = __webpack_require__(7);\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(16)('native-function-to-string', Function.toString);\n\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $at = __webpack_require__(41)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n__webpack_require__(27)(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(20);\nvar defined = __webpack_require__(21);\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar create = __webpack_require__(43);\nvar descriptor = __webpack_require__(26);\nvar setToStringTag = __webpack_require__(24);\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n__webpack_require__(5)(IteratorPrototype, __webpack_require__(0)('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = __webpack_require__(3);\nvar dPs = __webpack_require__(44);\nvar enumBugKeys = __webpack_require__(31);\nvar IE_PROTO = __webpack_require__(23)('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = __webpack_require__(19)('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n __webpack_require__(32).appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(11);\nvar anObject = __webpack_require__(3);\nvar getKeys = __webpack_require__(29);\n\nmodule.exports = __webpack_require__(8) ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(12);\nvar toIObject = __webpack_require__(22);\nvar arrayIndexOf = __webpack_require__(47)(false);\nvar IE_PROTO = __webpack_require__(23)('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(10);\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = __webpack_require__(22);\nvar toLength = __webpack_require__(30);\nvar toAbsoluteIndex = __webpack_require__(48);\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(20);\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = __webpack_require__(12);\nvar toObject = __webpack_require__(50);\nvar IE_PROTO = __webpack_require__(23)('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(21);\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $iterators = __webpack_require__(52);\nvar getKeys = __webpack_require__(29);\nvar redefine = __webpack_require__(6);\nvar global = __webpack_require__(1);\nvar hide = __webpack_require__(5);\nvar Iterators = __webpack_require__(9);\nvar wks = __webpack_require__(0);\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar addToUnscopables = __webpack_require__(53);\nvar step = __webpack_require__(54);\nvar Iterators = __webpack_require__(9);\nvar toIObject = __webpack_require__(22);\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = __webpack_require__(27)(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = __webpack_require__(0)('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(5)(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(17);\nvar global = __webpack_require__(1);\nvar ctx = __webpack_require__(13);\nvar classof = __webpack_require__(15);\nvar $export = __webpack_require__(28);\nvar isObject = __webpack_require__(7);\nvar aFunction = __webpack_require__(14);\nvar anInstance = __webpack_require__(56);\nvar forOf = __webpack_require__(57);\nvar speciesConstructor = __webpack_require__(61);\nvar task = __webpack_require__(33).set;\nvar microtask = __webpack_require__(63)();\nvar newPromiseCapabilityModule = __webpack_require__(34);\nvar perform = __webpack_require__(64);\nvar userAgent = __webpack_require__(65);\nvar promiseResolve = __webpack_require__(66);\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8 || '';\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[__webpack_require__(0)('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function')\n && promise.then(empty) instanceof FakePromise\n // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // we can't detect it synchronously, so just check versions\n && v8.indexOf('6.6') !== 0\n && userAgent.indexOf('Chrome/66') === -1;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // may throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n if (domain && !exited) domain.exit();\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = __webpack_require__(67)($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\n__webpack_require__(24)($Promise, PROMISE);\n__webpack_require__(68)(PROMISE);\nWrapper = __webpack_require__(4)[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(69)(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ctx = __webpack_require__(13);\nvar call = __webpack_require__(58);\nvar isArrayIter = __webpack_require__(59);\nvar anObject = __webpack_require__(3);\nvar toLength = __webpack_require__(30);\nvar getIterFn = __webpack_require__(60);\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// call something on iterator step with safe closing on error\nvar anObject = __webpack_require__(3);\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// check on default Array iterator\nvar Iterators = __webpack_require__(9);\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(15);\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar Iterators = __webpack_require__(9);\nmodule.exports = __webpack_require__(4).getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = __webpack_require__(3);\nvar aFunction = __webpack_require__(14);\nvar SPECIES = __webpack_require__(0)('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports) {\n\n// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar macrotask = __webpack_require__(33).set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = __webpack_require__(10)(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n var promise = Promise.resolve(undefined);\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n/***/ }),\n/* 64 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar navigator = global.navigator;\n\nmodule.exports = navigator && navigator.userAgent || '';\n\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(3);\nvar isObject = __webpack_require__(7);\nvar newPromiseCapability = __webpack_require__(34);\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar redefine = __webpack_require__(6);\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar global = __webpack_require__(1);\nvar dP = __webpack_require__(11);\nvar DESCRIPTORS = __webpack_require__(8);\nvar SPECIES = __webpack_require__(0)('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n/***/ }),\n/* 70 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n\n// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.js\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nfunction __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nfunction __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nfunction __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nfunction __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\n// EXTERNAL MODULE: ./node_modules/lunr/lunr.js\nvar lunr = __webpack_require__(2);\n\n// CONCATENATED MODULE: ./node_modules/workerize-loader/dist/rpc-worker-loader.js!./node_modules/ts-loader??ref--4-0!./node_modules/babel-loader/lib??ref--4-1!./src/services/SearchWorker.worker.ts\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"add\", function() { return add; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"done\", function() { return done; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toJS\", function() { return toJS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"load\", function() { return load; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"search\", function() { return search; });\n\n\ntry {\n // tslint:disable-next-line\n __webpack_require__(35); // bundle into worker\n}\ncatch (_) { } // nope\n/* just for better typings */\nvar Worker = /** @class */ (function () {\n function Worker() {\n this.add = add;\n this.done = done;\n this.search = search;\n this.toJS = toJS;\n this.load = load;\n }\n return Worker;\n}());\n/* harmony default export */ var SearchWorker_worker = __webpack_exports__[\"default\"] = (Worker);\nvar store = [];\nvar resolveIndex = function () {\n throw new Error('Should not be called');\n};\nvar index = new Promise(function (resolve) {\n resolveIndex = resolve;\n});\nlunr[\"tokenizer\"].separator = /\\s+/;\nvar builder = new lunr[\"Builder\"]();\nbuilder.field('title');\nbuilder.field('description');\nbuilder.ref('ref');\nbuilder.pipeline.add(lunr[\"trimmer\"], lunr[\"stopWordFilter\"], lunr[\"stemmer\"]);\nvar expandTerm = function (term) { return '*' + lunr[\"stemmer\"](new lunr[\"Token\"](term, {})) + '*'; };\nfunction add(title, description, meta) {\n var ref = store.push(meta) - 1;\n var item = {\n title: title.toLowerCase(),\n description: description.toLowerCase(),\n ref: ref\n };\n builder.add(item);\n}\nfunction done() {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n resolveIndex(builder.build());\n return [2 /*return*/];\n });\n });\n}\nfunction toJS() {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = {\n store: store\n };\n return [4 /*yield*/, index];\n case 1: return [2 /*return*/, (_a.index = (_b.sent()).toJSON(),\n _a)];\n }\n });\n });\n}\nfunction load(state) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n store = state.store;\n resolveIndex(lunr[\"Index\"].load(state.index));\n return [2 /*return*/];\n });\n });\n}\nfunction search(q, limit) {\n if (limit === void 0) { limit = 0; }\n return __awaiter(this, void 0, void 0, function () {\n var searchResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (q.trim().length === 0) {\n return [2 /*return*/, []];\n }\n return [4 /*yield*/, index];\n case 1:\n searchResults = (_a.sent()).query(function (t) {\n q.trim().toLowerCase().split(/\\s+/).forEach(function (term) {\n var exp = expandTerm(term);\n t.term(exp, {});\n });\n });\n if (limit > 0) {\n searchResults = searchResults.slice(0, limit);\n }\n return [2 /*return*/, searchResults.map(function (res) { return ({\n meta: store[res.ref],\n score: res.score\n }); })];\n }\n });\n });\n}\n\naddEventListener('message', function (e) {var ref = e.data;var type = ref.type;var method = ref.method;var id = ref.id;var params = ref.params;var f, p;if (type === 'RPC' && method) {if (f = __webpack_exports__[method]) {p = Promise.resolve().then(function () { return f.apply(__webpack_exports__, params); });} else {p = Promise.reject('No such method');}p.then(function (result) {postMessage({type: 'RPC',id: id,result: result});}).catch(function (e) {var error = {message: e};if (e.stack) {error.message = e.message;error.stack = e.stack;error.name = e.name;}postMessage({type: 'RPC',id: id,error: error});});}});postMessage({type: 'RPC',method: 'ready'});\n\n/***/ })\n/******/ ]);\n//# sourceMappingURL=04645253dcff0422e675.worker.js.map"])),{name:"[hash].worker.js"});return r(e,o),e}},function(e,n){e.exports=function(e,n){var t=0,r={};e.addEventListener("message",function(n){var t=n.data;if("RPC"===t.type)if(t.id){var o=r[t.id];o&&(delete r[t.id],t.error?o[1](Object.assign(Error(t.error.message),t.error)):o[0](t.result))}else{var i=document.createEvent("Event");i.initEvent(t.method,!1,!1),i.data=t.params,e.dispatchEvent(i)}}),n.forEach(function(n){e[n]=function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return new Promise(function(i,a){var s=++t;r[s]=[i,a],e.postMessage({type:"RPC",id:s,method:n,params:o})})}})}},function(e,n){e.exports=t(251)},function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"===typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[t].concat(i).concat([o]).join("\n")}var a;return[t].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t}).join("")},n.i=function(e,t){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o]+>/).map(function(e){return e.trim()}).filter(function(e){return e.length>0}).join(" ")}"undefined"===typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){e=0===arguments.length||!!e;var n=this.parentNode,t=window.getComputedStyle(n,void 0),r=parseInt(t.getPropertyValue("border-top-width"),10),o=parseInt(t.getPropertyValue("border-left-width"),10),i=this.offsetTop-n.offsetTopn.scrollTop+n.clientHeight,s=this.offsetLeft-n.offsetLeftn.scrollLeft+n.clientWidth,c=i&&!a;(i||a)&&e&&(n.scrollTop=this.offsetTop-n.offsetTop-n.clientHeight/2-r+this.clientHeight/2),(s||l)&&e&&(n.scrollLeft=this.offsetLeft-n.offsetLeft-n.clientWidth/2-o+this.clientWidth/2),(i||a||s||l)&&!e&&this.scrollIntoView(c)});var p=t(34),d=t.n(p),f=t(5);function h(e,n){for(var t=[],r=0;r1e3)throw new Error("Theme probably contains circular dependency at "+s+": "+l.toString());n[s]=l(e)}return n[s]},enumerable:!0}):"object"===typeof l&&r(l,s)})}(e,""),JSON.parse(JSON.stringify(e))}(_({},s,r.__assign({},n.theme,{extensionsHook:void 0}))),this.theme.extensionsHook=i,o=n.labels,Object.assign(I,o),this.scrollYOffset=e.normalizeScrollYOffset(n.scrollYOffset),this.hideHostname=e.normalizeHideHostname(n.hideHostname),this.expandResponses=e.normalizeExpandResponses(n.expandResponses),this.requiredPropsFirst=C(n.requiredPropsFirst),this.sortPropsAlphabetically=C(n.sortPropsAlphabetically),this.noAutoAuth=C(n.noAutoAuth),this.nativeScrollbars=C(n.nativeScrollbars),this.pathInMiddlePanel=C(n.pathInMiddlePanel),this.untrustedSpec=C(n.untrustedSpec),this.hideDownloadButton=C(n.hideDownloadButton),this.disableSearch=C(n.disableSearch),this.onlyRequiredInSamples=C(n.onlyRequiredInSamples),this.showExtensions=e.normalizeShowExtensions(n.showExtensions),this.hideSingleRequestSampleTab=C(n.hideSingleRequestSampleTab),this.unstable_ignoreMimeParameters=C(n.unstable_ignoreMimeParameters),this.allowedMdComponents=n.allowedMdComponents||{}}return e.normalizeExpandResponses=function(e){if("all"===e)return"all";if("string"===typeof e){var n={};return e.split(",").forEach(function(e){n[e.trim()]=!0}),n}return void 0!==e&&console.warn('expandResponses must be a string but received value "'+e+'" of type '+typeof e),{}},e.normalizeHideHostname=function(e){return!!e},e.normalizeScrollYOffset=function(e){if("string"===typeof e&&!b(e)){var n=c(e);n||console.warn("scrollYOffset value is a selector to non-existing element. Using offset 0 by default");var t=n&&n.getBoundingClientRect().bottom||0;return function(){return t}}return"number"===typeof e||b(e)?function(){return"number"===typeof e?e:parseFloat(e)}:"function"===typeof e?function(){var n=e();return"number"!==typeof n&&console.warn('scrollYOffset should return number but returned value "'+n+'" of type '+typeof n),n}:(void 0!==e&&console.warn("Wrong value for scrollYOffset ReDoc option: should be string, number or function"),function(){return 0})},e.normalizeShowExtensions=function(e){return"undefined"!==typeof e&&(""===e||("string"===typeof e?e.split(",").map(function(e){return e.trim()}):e))},e}(),M=t(35),N=M.default,D=M.css,F=M.createGlobalStyle,z=M.keyframes,B=M.ThemeProvider,U={lessThan:function(e,n){return function(){for(var t=[],o=0;o599)throw new Error("invalid HTTP code");var r="success";return t>=300&&t<400?r="redirect":t>=400?r="error":t<200&&(r="info"),r}var be={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0};function ve(e){return e in be}function _e(e){return e.summary||e.operationId||e.description&&e.description.substring(0,50)||""}var xe={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object"};function we(e){if(void 0!==e.type)return e.type;for(var n=0,t=Object.keys(xe);n= "+n+" "+e),r}function Ce(e){var n=[],t=Ae("characters",e.minLength,e.maxLength);void 0!==t&&n.push(t);var r,o=Ae("items",e.minItems,e.maxItems);return void 0!==o&&n.push(o),void 0!==e.minimum&&void 0!==e.maximum?(r=e.exclusiveMinimum?"( ":"[ ",r+=e.minimum,r+=" .. ",r+=e.maximum,r+=e.exclusiveMaximum?" )":" ]"):void 0!==e.maximum?(r=e.exclusiveMaximum?"< ":"<= ",r+=e.maximum):void 0!==e.minimum&&(r=e.exclusiveMinimum?"> ":">= ",r+=e.minimum),void 0!==r&&n.push(r),n}function Pe(e,n){void 0===n&&(n=[]),e.sort(function(e,t){return!e.required&&t.required?1:e.required&&!t.required?-1:e.required&&t.required?n.indexOf(e.name)-n.indexOf(t.name):0})}function Re(e,n){e.sort(function(e,t){return e[n].localeCompare(t[n])})}function qe(e,n,t){void 0===n&&(n=[]),void 0===t&&(t=[]);var r={};return t.forEach(function(n){n=e.shalowDeref(n),r[n.name+"_"+n.in]=!0}),(n=n.filter(function(n){return n=e.shalowDeref(n),!r[n.name+"_"+n.in]})).concat(t)}function Le(e){var n={};return Object.keys(e).forEach(function(t){var o=e[t],i=t.split(";")[0].trim();n[i]?n[i]=r.__assign({},n[i],o):n[i]=o}),n}function Me(e,n){var t=void 0===e?l?window.location.href:"":Object(he.dirname)(e);if(0===n.length)return[{url:t}];return n.map(function(e){return r.__assign({},e,{url:(n=e.url,o=e.variables,n=function(e,n){return void 0===n&&(n={}),e.replace(/(?:{)(\w+)(?:})/g,function(e,t){return n[t]&&n[t].default||e})}(n,o),O(t,n)),description:e.description||""});var n,o})}var Ne="section/Authentication/";function De(e){Ne=e}var Fe=function(e){return{delete:"del",options:"opts"}[e]||e};function ze(e){return e in{"x-circular-ref":!0,"x-code-samples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-linkTo":!0}}function Be(e,n){return Object.keys(e).filter(function(e){return!0===n?e.startsWith("x-")&&!ze(e):e.startsWith("x-")&&n.indexOf(e)>-1}).reduce(function(n,t){return n[t]=e[t],n},{})}function Ue(e){return e.split(" or ").map(function(e){return e.replace(/^(string|object|number|integer|array|boolean)( ?.*)/,"$1s$2")}).join(" or ")}var $e=t(9),Ve=(t(56),t(57),t(58),t(59),t(60),t(61),t(62),t(63),t(64),t(65),t(66),t(67),t(68),t(69),t(70),t(71),t(72),t(73),t(74),"clike");function Qe(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"}[e]||Ve}function We(e,n){void 0===n&&(n=Ve),n=n.toLowerCase();var t=$e.languages[n];return t||(t=$e.languages[Qe(n)]),$e.highlight(e,t,"")}function Ye(e){return function(n,t,r){r.value=function(e,n){var t,r,o,i=null,a=0,s=function(){a=(new Date).getTime(),i=null,o=e.apply(t,r),i||(t=r=null)};return function(){var l=(new Date).getTime(),c=n-(l-a);return t=this,r=arguments,c<=0||c>n?(i&&(clearTimeout(i),i=null),a=l,o=e.apply(t,r),i||(t=r=null)):i||(i=setTimeout(s,c)),o}}(r.value,e)}}function He(e){0}function Ge(e){0}$e.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),$e.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var Ke={};function Je(e,n,t){if("function"===typeof t.value)return function(e,n,t){if(!t.value||t.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");var o="_memoized_"+n,i=t.value;return e[o]=Ke,r.__assign({},t,{value:function(){return this[o]===Ke&&(this[o]=i.call(this)),this[o]}})}(e,n,t);if("function"===typeof t.get)return function(e,n,t){var o="_memoized_"+n,i=t.get;return e[o]=Ke,r.__assign({},t,{get:function(){return this[o]===Ke&&(this[o]=i.call(this)),this[o]}})}(e,n,t);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(t.value)+" instead")}var Xe="hashchange",Ze=function(){function e(){var e=this;this.emit=function(){e._emiter.emit(Xe,e.currentId)},this._emiter=new ue.EventEmitter,this.bind()}return Object.defineProperty(e.prototype,"currentId",{get:function(){return l?decodeURIComponent(window.location.hash.substring(1)):""},enumerable:!0,configurable:!0}),e.prototype.linkForId=function(e){return e?"#"+e:""},e.prototype.subscribe=function(e){var n=this._emiter.addListener(Xe,e);return function(){return n.removeListener(Xe,e)}},e.prototype.bind=function(){l&&window.addEventListener("hashchange",this.emit,!1)},e.prototype.dispose=function(){l&&window.removeEventListener("hashchange",this.emit)},e.prototype.replace=function(e,n){void 0===n&&(n=!1),l&&null!=e&&e!==this.currentId&&(n?window.history.replaceState(null,"",window.location.href.split("#")[0]+this.linkForId(e)):(window.history.pushState(null,"",window.location.href.split("#")[0]+this.linkForId(e)),this.emit()))},r.__decorate([ce.bind,ce.debounce],e.prototype,"replace",null),e}(),en=new Ze;var nn=t(22),tn=function(){function e(){this.map=new Map,this.prevTerm=""}return e.prototype.add=function(e){this.map.set(e,new nn(e))},e.prototype.delete=function(e){this.map.delete(e)},e.prototype.addOnly=function(e){var n=this;this.map.forEach(function(t,r){-1===e.indexOf(r)&&(t.unmark(),n.map.delete(r))});for(var t=0,r=e;t --\x3e"}var un=function(){function e(e){var n=this;this.options=e,this.headings=[],this.headingRule=function(e,t,r,o){return 1===t?n.currentTopHeading=n.saveHeading(e,t):2===t&&n.saveHeading(e,t,n.currentTopHeading&&n.currentTopHeading.items,n.currentTopHeading&&n.currentTopHeading.id),n.originalHeadingRule(e,t,r,o)},this.headingEnhanceRenderer=new rn.Renderer,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}return e.containsComponent=function(e,n){return new RegExp(ln.replace(/{component}/g,n),"gmi").test(e)},e.prototype.saveHeading=function(e,n,t,r){void 0===t&&(t=this.headings);var o={id:r?r+"/"+w(e):"section/"+w(e),name:e,level:n,items:[]};return t.push(o),o},e.prototype.flattenHeadings=function(e){if(void 0===e)return[];for(var n=[],t=0,r=e;t-1&&(this.description=this.description.substring(0,n)),this.downloadLink=this.getDownloadLink(),this.downloadFileName=this.getDownloadFileName()}return e.prototype.getDownloadLink=function(){if(this.parser.specUrl)return this.parser.specUrl;if(l&&window.Blob&&window.URL&&window.URL.createObjectURL){var e=new Blob([JSON.stringify(this.parser.spec,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}},e.prototype.getDownloadFileName=function(){if(!this.parser.specUrl)return"swagger.json"},e}(),fn=function(){return function(e,n,t){var r=e.deref(t);this.id=n,this.sectionId=Ne+n,this.type=r.type,this.description=r.description||"","apiKey"===r.type&&(this.apiKey={name:r.name,in:r.in}),"http"===r.type&&(this.http={scheme:r.scheme,bearerFormat:r.bearerFormat}),"openIdConnect"===r.type&&(this.openId={connectUrl:r.openIdConnectUrl}),"oauth2"===r.type&&r.flows&&(this.flows=r.flows)}}(),hn=function(){return function(e){var n=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(n).map(function(t){return new fn(e,t,n[t])})}}(),mn=function(){function e(){this._counter={}}return e.prototype.reset=function(){this._counter={}},e.prototype.visit=function(e){this._counter[e]=this._counter[e]?this._counter[e]+1:1},e.prototype.exit=function(e){this._counter[e]=this._counter[e]&&this._counter[e]-1},e.prototype.visited=function(e){return!!this._counter[e]},e}(),gn=function(){function e(e,n,t){var r=this;void 0===t&&(t=new L({})),this.options=t,this._refCounter=new mn,this.byRef=function(e){var n;if(r.spec){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{n=fe.get(r.spec,e)}catch(t){}return n||{}}},this.validate(e),this.preprocess(e),this.spec=e;var o=l?window.location.href:"";"string"===typeof n&&(this.specUrl=Object(f.resolve)(o,n))}return e.prototype.validate=function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")},e.prototype.preprocess=function(e){if(!this.options.noAutoAuth&&e.info&&e.components&&e.components.securitySchemes){var n=e.info.description||"";if(!un.containsComponent(n,"security-definitions")){var t=cn("security-definitions");e.info.description=v(n,"Authentication",t)}}},e.prototype.isRef=function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)},e.prototype.resetVisited=function(){this._refCounter=new mn},e.prototype.exitRef=function(e){this.isRef(e)&&this._refCounter.exit(e.$ref)},e.prototype.deref=function(e,n){if(void 0===n&&(n=!1),this.isRef(e)){var t=this.byRef(e.$ref),r=this._refCounter.visited(e.$ref);if(this._refCounter.visit(e.$ref),r&&!n)return Object.assign({},t,{"x-circular-ref":!0});if(this.isRef(t)){var o=this.deref(t);return this.exitRef(t),o}return t}return e},e.prototype.shalowDeref=function(e){return this.isRef(e)?this.byRef(e.$ref):e},e.prototype.mergeAllOf=function(e,n,t){var o=this;if(void 0===t&&(t=!1),void 0===(e=this.hoistOneOfs(e)).allOf)return e;var i=r.__assign({},e,{allOf:void 0,parentRefs:[],title:e.title||(Ie(n)?fe.baseName(n):void 0)});void 0!==i.properties&&"object"===typeof i.properties&&(i.properties=r.__assign({},i.properties)),void 0!==i.items&&"object"===typeof i.items&&(i.items=r.__assign({},i.items));for(var a=0,s=e.allOf.map(function(e){var n,r=o.deref(e,t),a=e.$ref||void 0,s=o.mergeAllOf(r,a,t);return(n=i.parentRefs).push.apply(n,s.parentRefs||[]),{$ref:a,schema:s}});a-1})&&(n["#/components/schemas/"+r]=o["x-discriminator-value"]||r)}return n},e.prototype.exitParents=function(e){for(var n=0,t=e.parentRefs||[];n-1;return new kn(e,{name:a,required:c,schema:r.__assign({},l,{default:void 0===l.default?s[a]:l.default})},t+"/properties/"+a,o)});o.sortPropsAlphabetically&&Re(l,"name");o.requiredPropsFirst&&Pe(l,o.sortPropsAlphabetically?void 0:n.required);"object"!==typeof a&&!0!==a||l.push(new kn(e,{name:"property name *",required:!1,schema:!0===a?{}:a,kind:"additionalProperties"},t+"/additionalProperties",o));return l}(n,o,this.pointer,this.options):"array"===this.type&&o.items&&(this.items=new e(n,o.items,this.pointer+"/items",this.options),this.displayType=Ue(this.items.displayType),this.displayFormat=this.items.format,this.typePrefix=this.items.typePrefix+A("arrayOf"),this.title=this.title||this.items.title,this.isPrimitive=this.items.isPrimitive,void 0===this.example&&void 0!==this.items.example&&(this.example=[this.items.example]),this.items.isPrimitive&&(this.enum=this.items.enum)));this.initDiscriminator(o,n)}},e.prototype.initOneOf=function(n,t){var o=this;this.oneOf=n.map(function(n,i){var a=t.deref(n),s=t.mergeAllOf(a,o.pointer+"/oneOf/"+i),l=Ie(n.$ref)&&!s.title?fe.baseName(n.$ref):s.title,c=new e(t,r.__assign({},s,{title:l,allOf:[r.__assign({},o.schema,{oneOf:void 0,anyOf:void 0})]}),o.pointer+"/oneOf/"+i,o.options);return t.exitRef(n),t.exitParents(s),c}),this.displayType=this.oneOf.map(function(e){var n=e.typePrefix+(e.title?e.title+" ("+e.displayType+")":e.displayType);return n.indexOf(" or ")>-1&&(n="("+n+")"),n}).join(" or ")},e.prototype.initDiscriminator=function(n,t){var r=this,o=xn(n);this.discriminatorProp=o.propertyName;var i=t.findDerived((n.parentRefs||[]).concat([this.pointer]));if(n.oneOf)for(var a=0,s=n.oneOf;a0},enumerable:!0,configurable:!0}),r.__decorate([oe.observable],e.prototype,"activeMimeIdx",void 0),r.__decorate([oe.action],e.prototype,"activate",null),r.__decorate([oe.computed],e.prototype,"active",null),e}(),In=function(){return function(e,n,t){var r=e.deref(n);this.description=r.description||"",this.required=!!r.required,e.exitRef(n),void 0!==r.content&&(this.content=new jn(e,r.content,!0,t))}}(),An=function(){function e(e,n,t,o,i){this.headers=[],this.expanded="all"===i.expandResponses||i.expandResponses[n];var a=e.deref(o);e.exitRef(o),this.code=n,void 0!==a.content&&(this.content=new jn(e,a.content,!1,i)),void 0!==a["x-summary"]?(this.summary=a["x-summary"],this.description=a.description||""):(this.summary=a.description||"",this.description=""),this.type=ye(n,t);var s=a.headers;void 0!==s&&(this.headers=Object.keys(s).map(function(n){var t=s[n];return new kn(e,r.__assign({},t,{name:n}),"",i)}))}return e.prototype.toggle=function(){this.expanded=!this.expanded},r.__decorate([oe.observable],e.prototype,"expanded",void 0),r.__decorate([oe.action],e.prototype,"toggle",null),e}(),Cn=function(){function e(e,n,t,r){this.parser=e,this.operationSpec=n,this.options=r,this.type="operation",this.items=[],this.ready=!0,this.active=!1,this.expanded=!1,this.pointer=fe.compile(["paths",n.pathName,n.httpVerb]),this.id=void 0!==n.operationId?"operation/"+n.operationId:void 0!==t?t.id+this.pointer:this.pointer,this.name=_e(n),this.description=n.description,this.parent=t,this.externalDocs=n.externalDocs,this.deprecated=!!n.deprecated,this.httpVerb=n.httpVerb,this.deprecated=!!n.deprecated,this.operationId=n.operationId,this.codeSamples=n["x-code-samples"]||[],this.path=n.pathName;var o=e.byRef(fe.compile(["paths",n.pathName]));this.servers=Me(e.specUrl,n.servers||o&&o.servers||e.spec.servers||[]),this.security=(n.security||e.spec.security||[]).map(function(n){return new vn(n,e)}),r.showExtensions&&(this.extensions=Be(n,r.showExtensions))}return e.prototype.activate=function(){this.active=!0},e.prototype.deactivate=function(){this.active=!1},e.prototype.expand=function(){this.parent&&this.parent.expand()},e.prototype.collapse=function(){},Object.defineProperty(e.prototype,"requestBody",{get:function(){return this.operationSpec.requestBody&&new In(this.parser,this.operationSpec.requestBody,this.options)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parameters",{get:function(){var e=this,n=qe(this.parser,this.operationSpec.pathParameters,this.operationSpec.parameters).map(function(n){return new kn(e.parser,n,e.pointer,e.options)});return this.options.sortPropsAlphabetically&&Re(n,"name"),this.options.requiredPropsFirst&&Pe(n),n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"responses",{get:function(){var e=this,n=!1;return Object.keys(this.operationSpec.responses||[]).filter(function(e){return"default"===e||("success"===ye(e)&&(n=!0),ge(e))}).map(function(t){return new An(e.parser,t,n,e.operationSpec.responses[t],e.options)})},enumerable:!0,configurable:!0}),r.__decorate([oe.observable],e.prototype,"ready",void 0),r.__decorate([oe.observable],e.prototype,"active",void 0),r.__decorate([oe.observable],e.prototype,"expanded",void 0),r.__decorate([oe.action],e.prototype,"activate",null),r.__decorate([oe.action],e.prototype,"deactivate",null),r.__decorate([Je],e.prototype,"requestBody",null),r.__decorate([Je],e.prototype,"parameters",null),r.__decorate([Je],e.prototype,"responses",null),e}(),Pn=function(){function e(){}return e.buildStructure=function(n,t){var r=n.spec,o=[],i=e.getTagsWithOperations(r);return o.push.apply(o,e.addMarkdownItems(r.info.description||"",t)),r["x-tagGroups"]&&r["x-tagGroups"].length>0?o.push.apply(o,e.getTagGroupsItems(n,void 0,r["x-tagGroups"],i,t)):o.push.apply(o,e.getTagsItems(n,i,void 0,void 0,t)),o},e.addMarkdownItems=function(e,n){return function e(n,t,r){return void 0===r&&(r=1),t.map(function(t){var o=new bn("section",t,n);return o.depth=r,t.items&&(o.items=e(o,t.items,r+1)),un.containsComponent(o.description||"","security-definitions")&&De(o.id+"/"),o})}(void 0,new un(n).extractHeadings(e||""))},e.getTagGroupsItems=function(n,t,r,o,i){for(var a=[],s=0,l=r;s=r.flatItems.length-1&&e);){if(e){var o=r.getElementAt(t+1);if(r.scroll.isElementBellow(o))break}else{o=r.getElementAt(t);if(r.scroll.isElementAbove(o))break}t+=n}r.activate(r.flatItems[t],!0,!0)},this.updateOnHistory=function(e){var n;(void 0===e&&(e=r.history.currentId),e)&&((n=r.flatItems.find(function(n){return n.id===e}))?r.activateAndScroll(n,!1):(e.startsWith(Ne)&&(n=r.flatItems.find(function(e){return Ne.startsWith(e.id)}),r.activate(n)),r.scroll.scrollIntoViewBySelector("["+Rn+'="'+e+'"]')))},this.getItemById=function(e){return r.flatItems.find(function(n){return n.id===e})},this.items=e.contentItems,this.flatItems=g(this.items||[],"items"),this.flatItems.forEach(function(e,n){return e.absoluteIdx=n}),this.subscribe()}return e.updateOnHistory=function(e,n){void 0===e&&(e=en.currentId),e&&n.scrollIntoViewBySelector("["+Rn+'="'+e+'"]')},e.prototype.subscribe=function(){this._unsubscribe=this.scroll.subscribe(this.updateOnScroll),this._hashUnsubscribe=this.history.subscribe(this.updateOnHistory)},e.prototype.toggleSidebar=function(){this.sideBarOpened=!this.sideBarOpened},e.prototype.closeSidebar=function(){this.sideBarOpened=!1},e.prototype.getElementAt=function(e){var n=this.flatItems[e];return n&&c("["+Rn+'="'+n.id+'"]')||null},Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.flatItems[this.activeItemIdx]||void 0},enumerable:!0,configurable:!0}),e.prototype.activate=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1),(this.activeItem&&this.activeItem.id)!==(e&&e.id)&&(this.deactivate(this.activeItem),e?e.depth<=0||(this.activeItemIdx=e.absoluteIdx,n&&this.history.replace(e.id,t),e.activate(),e.expand()):this.history.replace("",t))},e.prototype.deactivate=function(e){if(void 0!==e){for(e.deactivate();void 0!==e;)e.collapse(),e=e.parent;this.activeItemIdx=-1}},e.prototype.activateAndScroll=function(e,n,t){var r=e&&this.getItemById(e.id)||e;this.activate(r,n,t),this.scrollToActive(),r&&r.items.length||this.closeSidebar()},e.prototype.scrollToActive=function(){this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx))},e.prototype.dispose=function(){this._unsubscribe(),this._hashUnsubscribe()},r.__decorate([oe.observable],e.prototype,"activeItemIdx",void 0),r.__decorate([oe.observable],e.prototype,"sideBarOpened",void 0),r.__decorate([oe.action],e.prototype,"toggleSidebar",null),r.__decorate([oe.action],e.prototype,"closeSidebar",null),r.__decorate([oe.action],e.prototype,"activate",null),r.__decorate([oe.action.bound],e.prototype,"activateAndScroll",null),e}(),Ln=function(){function e(e){this.options=e,this._prevOffsetY=0,this._scrollParent=l?window:void 0,this._emiter=new ue,this.bind()}return e.prototype.bind=function(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener("scroll",this.handleScroll)},e.prototype.dispose=function(){this._scrollParent&&this._scrollParent.removeEventListener("scroll",this.handleScroll),this._emiter.removeAllListeners("scroll")},e.prototype.scrollY=function(){return"undefined"!==typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0},e.prototype.isElementBellow=function(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()},e.prototype.isElementAbove=function(e){if(null!==e){var n=e.getBoundingClientRect().top;return(n>0?Math.floor(n):Math.ceil(n))<=this.options.scrollYOffset()}},e.prototype.subscribe=function(e){var n=this._emiter.addListener("scroll",e);return function(){return n.removeListener("scroll",e)}},e.prototype.scrollIntoView=function(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))},e.prototype.scrollIntoViewBySelector=function(e){var n=c(e);this.scrollIntoView(n)},e.prototype.handleScroll=function(){var e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit("scroll",e)},r.__decorate([ce.bind,Ye(100)],e.prototype,"handleScroll",null),e}();if(l)try{wn=t(75)}catch(al){wn=t(33).default}else wn=t(33).default;var Mn,Nn,Dn,Fn,zn,Bn,Un,$n,Vn,Qn,Wn,Yn,Hn,Gn,Kn,Jn,Xn,Zn=function(){function e(){this.searchWorker=new wn}return e.prototype.indexItems=function(e){var n=this;!function e(t){t.forEach(function(t){"group"!==t.type&&n.add(t.name,t.description||"",t.id),e(t.items)})}(e),this.searchWorker.done()},e.prototype.add=function(e,n,t){this.searchWorker.add(e,n,t)},e.prototype.search=function(e){return this.searchWorker.search(e)},e.prototype.toJS=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return[2,this.searchWorker.toJS()]})})},e.prototype.load=function(e){this.searchWorker.load(e)},e}(),et=$.div(Nn||(Nn=r.__makeTemplateObject(["\n width: calc(100% - ",");\n padding: 0 ","px;\n\n ",";\n"],["\n width: calc(100% - ",");\n padding: 0 ","px;\n\n ",";\n"])),function(e){return e.theme.rightPanel.width},function(e){return e.theme.spacing.sectionHorizontal},U.lessThan("medium",!0)(Mn||(Mn=r.__makeTemplateObject(["\n width: 100%;\n padding: ",";\n "],["\n width: 100%;\n padding: ",";\n "])),function(e){return e.theme.spacing.sectionVertical+"px "+e.theme.spacing.sectionHorizontal+"px"})),nt=$.div.attrs(function(e){var n;return(n={})[Rn]=e.id,n})(Fn||(Fn=r.__makeTemplateObject(["\n padding: ","px 0;\n\n &:last-child {\n min-height: calc(100vh + 1px);\n }\n\n & > &:last-child {\n min-height: initial;\n }\n\n ","\n ","\n"],["\n padding: ","px 0;\n\n &:last-child {\n min-height: calc(100vh + 1px);\n }\n\n & > &:last-child {\n min-height: initial;\n }\n\n ","\n ","\n"])),function(e){return e.theme.spacing.sectionVertical},U.lessThan("medium",!0)(Dn||(Dn=r.__makeTemplateObject(["\n padding: 0;\n "],["\n padding: 0;\n "]))),function(e){return e.underlined?"\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n ":""}),tt=$.div(Bn||(Bn=r.__makeTemplateObject(["\n width: ",";\n color: ",";\n background-color: ",";\n padding: 0 ","px;\n\n ",";\n"],["\n width: ",";\n color: ",";\n background-color: ",";\n padding: 0 ","px;\n\n ",";\n"])),function(e){return e.theme.rightPanel.width},function(e){return e.theme.rightPanel.textColor},function(e){return e.theme.rightPanel.backgroundColor},function(e){return e.theme.spacing.sectionHorizontal},U.lessThan("medium",!0)(zn||(zn=r.__makeTemplateObject(["\n width: 100%;\n padding: ",";\n "],["\n width: 100%;\n padding: ",";\n "])),function(e){return e.theme.spacing.sectionVertical+"px "+e.theme.spacing.sectionHorizontal+"px"})),rt=$(tt)(Un||(Un=r.__makeTemplateObject(["\n background-color: ",";\n"],["\n background-color: ",";\n"])),function(e){return e.theme.rightPanel.backgroundColor}),ot=$.div(Vn||(Vn=r.__makeTemplateObject(["\n display: flex;\n width: 100%;\n padding: 0;\n\n ",";\n"],["\n display: flex;\n width: 100%;\n padding: 0;\n\n ",";\n"])),U.lessThan("medium",!0)($n||($n=r.__makeTemplateObject(["\n flex-direction: column;\n "],["\n flex-direction: column;\n "])))),it={1:"1.85714em",2:"1.57143em",3:"1.27em"},at=function(e){return D(Qn||(Qn=r.__makeTemplateObject(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n"])),function(e){return e.theme.typography.headings.fontFamily},function(e){return e.theme.typography.headings.fontWeight},it[e],function(e){return e.theme.typography.headings.lineHeight})},st=$.h1(Wn||(Wn=r.__makeTemplateObject(["\n ",";\n color: ",";\n\n ",";\n"],["\n ",";\n color: ",";\n\n ",";\n"])),at(1),function(e){return e.theme.colors.primary.main},V("H1")),lt=$.h2(Yn||(Yn=r.__makeTemplateObject(["\n ",";\n color: black;\n\n ",";\n"],["\n ",";\n color: black;\n\n ",";\n"])),at(2),V("H2")),ct=($.h2(Hn||(Hn=r.__makeTemplateObject(["\n ",";\n color: black;\n\n ",";\n"],["\n ",";\n color: black;\n\n ",";\n"])),at(3),V("H3")),$.h3(Gn||(Gn=r.__makeTemplateObject(["\n color: ",";\n\n ",";\n"],["\n color: ",";\n\n ",";\n"])),function(e){return e.theme.rightPanel.textColor},V("RightPanelHeader"))),ut=$.h5(Kn||(Kn=r.__makeTemplateObject(["\n border-bottom: 1px solid rgba(38, 50, 56, 0.3);\n margin: 1em 0 1em 0;\n color: rgba(38, 50, 56, 0.5);\n font-weight: normal;\n text-transform: uppercase;\n font-size: 0.929em;\n line-height: 20px;\n\n ",";\n"],["\n border-bottom: 1px solid rgba(38, 50, 56, 0.3);\n margin: 1em 0 1em 0;\n color: rgba(38, 50, 56, 0.5);\n font-weight: normal;\n text-transform: uppercase;\n font-size: 0.929em;\n line-height: 20px;\n\n ",";\n"])),V("UnderlinedHeader")),pt=t(38),dt=t.n(pt),ft=Object(i.createContext)(void 0),ht=ft.Provider,mt=ft.Consumer,gt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={loading:!0,resolvedSpec:null},n}return r.__extends(n,e),n.getDerivedStateFromProps=function(e,n){return e.specUrl!==n.prevSpecUrl||e.spec!==n.prevSpec?{loading:!0,resolvedSpec:null,prevSpec:e.spec,prevSpecUrl:e.specUrl}:null},n.prototype.makeStore=function(e,n,t){if(e)try{return new yo(e,n,t)}catch(al){throw this.props.onLoaded&&this.props.onLoaded(al),al}},n.prototype.componentDidMount=function(){this.load()},n.prototype.componentDidUpdate=function(){null===this.state.resolvedSpec?this.load():!this.state.loading&&this.props.onLoaded&&this.props.onLoaded()},n.prototype.load=function(){return r.__awaiter(this,void 0,void 0,function(){var e,n,t,o,i;return r.__generator(this,function(r){switch(r.label){case 0:e=this.props,n=e.specUrl,t=e.spec,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,se(t||n)];case 2:return o=r.sent(),this.setState({resolvedSpec:o,loading:!1}),[3,4];case 3:return i=r.sent(),this.props.onLoaded&&this.props.onLoaded(i),this.setState({error:i}),[3,4];case 4:return[2]}})})},n.prototype.render=function(){if(this.state.error)throw this.state.error;var e=this.props,n=e.specUrl,t=e.options,r=this.state,o=r.loading,i=r.resolvedSpec;return this.props.children({loading:o,store:this.makeStore(i,n,t)})},r.__decorate([dt.a],n.prototype,"makeStore",null),n}(i.Component),yt=function(e){return D(Jn||(Jn=r.__makeTemplateObject(["\n "," {\n cursor: pointer;\n margin-left: -20px;\n padding: 0;\n line-height: 1;\n width: 20px;\n display: inline-block;\n }\n ",":before {\n content: '';\n width: 15px;\n height: 15px;\n background-size: contain;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');\n opacity: 0.5;\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n }\n\n h1:hover > ","::before, h2:hover > ","::before, ",":hover::before {\n visibility: visible;\n }\n"],["\n "," {\n cursor: pointer;\n margin-left: -20px;\n padding: 0;\n line-height: 1;\n width: 20px;\n display: inline-block;\n }\n ",":before {\n content: '';\n width: 15px;\n height: 15px;\n background-size: contain;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');\n opacity: 0.5;\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n }\n\n h1:hover > ","::before, h2:hover > ","::before, ",":hover::before {\n visibility: visible;\n }\n"])),e,e,e,e,e)},bt=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},vt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.navigate=function(e,t){t.defaultPrevented||0!==t.button||bt(t)||(t.preventDefault(),e.replace(n.props.to))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this;return i.createElement(mt,null,function(n){return i.createElement("a",{className:e.props.className,href:n.menu.history.linkForId(e.props.to),onClick:e.navigate.bind(e,n.menu.history)},e.props.children)})},n}(i.Component),_t=$(vt)(Xn||(Xn=r.__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),yt("&"));function xt(e){return i.createElement(_t,{to:e.to})}var wt,kt,Ot,Et,Tt,St,jt,It,At,Ct,Pt,Rt,qt,Lt,Mt,Nt,Dt,Ft,zt,Bt,Ut,$t,Vt,Qt,Wt,Yt,Ht,Gt={left:"90deg",right:"-90deg",up:"-180deg",down:"0"},Kt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return i.createElement("svg",{className:this.props.className,style:this.props.style,version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0"},i.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "}))},n}(i.PureComponent),Jt=$(Kt)(wt||(wt=r.__makeTemplateObject(["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n transform: rotateZ(",");\n\n polygon {\n fill: ",";\n }\n"],["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n transform: rotateZ(",");\n\n polygon {\n fill: ",";\n }\n"])),function(e){return e.size||"18px"},function(e){return e.size||"18px"},function(e){return e.float||""},function(e){return Gt[e.direction||"down"]},function(e){return e.color&&e.theme.colors[e.color]&&e.theme.colors[e.color].main||e.color}),Xt=$.span(kt||(kt=r.__makeTemplateObject(["\n display: inline-block;\n padding: 0 5px;\n margin: 0;\n background-color: ",";\n color: ",";\n font-size: ",";\n vertical-align: text-top;\n"],["\n display: inline-block;\n padding: 0 5px;\n margin: 0;\n background-color: ",";\n color: ",";\n font-size: ",";\n vertical-align: text-top;\n"])),function(e){return e.theme.colors[e.type].main},function(e){return e.theme.colors[e.type].contrastText},function(e){return e.theme.typography.code.fontSize}),Zt=D(Ot||(Ot=r.__makeTemplateObject(["\n text-decoration: line-through;\n color: #bdccd3;\n"],["\n text-decoration: line-through;\n color: #bdccd3;\n"]))),er=$.caption(Et||(Et=r.__makeTemplateObject(["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"],["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"])),function(e){return e.theme.colors.text.secondary}),nr=$.td(Tt||(Tt=r.__makeTemplateObject(["\n border-left: 1px solid ",";\n box-sizing: border-box;\n position: relative;\n padding: 10px 10px 10px 0;\n\n tr:first-of-type > &,\n tr.last > & {\n border-left-width: 0;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n }\n\n tr:first-of-type > & {\n background-image: linear-gradient(\n to bottom,\n transparent 0%,\n transparent 22px,\n "," 22px,\n "," 100%\n );\n }\n\n tr.last > & {\n background-image: linear-gradient(\n to bottom,\n "," 0%,\n "," 22px,\n transparent 22px,\n transparent 100%\n );\n }\n\n tr.last + tr > & {\n border-left-color: transparent;\n }\n\n tr.last:first-child > & {\n background: none;\n border-left-color: transparent;\n }\n"],["\n border-left: 1px solid ",";\n box-sizing: border-box;\n position: relative;\n padding: 10px 10px 10px 0;\n\n tr:first-of-type > &,\n tr.last > & {\n border-left-width: 0;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n }\n\n tr:first-of-type > & {\n background-image: linear-gradient(\n to bottom,\n transparent 0%,\n transparent 22px,\n "," 22px,\n "," 100%\n );\n }\n\n tr.last > & {\n background-image: linear-gradient(\n to bottom,\n "," 0%,\n "," 22px,\n transparent 22px,\n transparent 100%\n );\n }\n\n tr.last + tr > & {\n border-left-color: transparent;\n }\n\n tr.last:first-child > & {\n background: none;\n border-left-color: transparent;\n }\n"])),function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor}),tr=$(nr)(St||(St=r.__makeTemplateObject(["\n padding: 0;\n"],["\n padding: 0;\n"]))),rr=$(nr)(jt||(jt=r.__makeTemplateObject(["\n vertical-align: top;\n line-height: 20px;\n white-space: nowrap;\n font-size: 0.929em;\n font-family: ",";\n\n &.deprecated {\n ",";\n }\n\n ",";\n\n ",";\n"],["\n vertical-align: top;\n line-height: 20px;\n white-space: nowrap;\n font-size: 0.929em;\n font-family: ",";\n\n &.deprecated {\n ",";\n }\n\n ",";\n\n ",";\n"])),function(e){return e.theme.typography.headings.fontFamily},Zt,function(e){return"field"!==e.kind?"font-style: italic":""},V("PropertyNameCell")),or=$.td(It||(It=r.__makeTemplateObject(["\n border-bottom: 1px solid #9fb4be;\n padding: 10px 0;\n width: ",";\n box-sizing: border-box;\n\n tr.expanded & {\n border-bottom: none;\n }\n"],["\n border-bottom: 1px solid #9fb4be;\n padding: 10px 0;\n width: ",";\n box-sizing: border-box;\n\n tr.expanded & {\n border-bottom: none;\n }\n"])),function(e){return e.theme.schema.defaultDetailsWidth}),ir=$.span(At||(At=r.__makeTemplateObject(["\n color: ",";\n font-family: ",";\n margin-right: 10px;\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n &::after {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 1px;\n background: ",";\n height: 7px;\n }\n"],["\n color: ",";\n font-family: ",";\n margin-right: 10px;\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n &::after {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 1px;\n background: ",";\n height: 7px;\n }\n"])),function(e){return e.theme.schema.linesColor},function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor}),ar=$.div(Ct||(Ct=r.__makeTemplateObject(["\n padding: ",";\n"],["\n padding: ",";\n"])),function(e){return e.theme.schema.nestingSpacing}),sr=$.table(Pt||(Pt=r.__makeTemplateObject(["\n border-collapse: separate;\n border-radius: 3px;\n font-size: ",";\n\n border-spacing: 0;\n width: 100%;\n\n > tr {\n vertical-align: middle;\n }\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin: ",";\n margin-right: 0;\n background: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: #ffffff;\n }\n"],["\n border-collapse: separate;\n border-radius: 3px;\n font-size: ",";\n\n border-spacing: 0;\n width: 100%;\n\n > tr {\n vertical-align: middle;\n }\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin: ",";\n margin-right: 0;\n background: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: #ffffff;\n }\n"])),function(e){return e.theme.typography.fontSize},ar,ar,ar,ar,ar,ar,ar,ar,ar,function(e){return e.theme.schema.nestingSpacing},function(e){return e.theme.schema.nestedBackground},ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar),lr=$.ul(Rt||(Rt=r.__makeTemplateObject(["\n margin: 0 0 3px 0;\n padding: 0;\n list-style: none;\n display: inline-block;\n"],["\n margin: 0 0 3px 0;\n padding: 0;\n list-style: none;\n display: inline-block;\n"]))),cr=$.span(qt||(qt=r.__makeTemplateObject(["\n font-size: 0.9em;\n margin-right: 10px;\n color: ",";\n font-family: Montserrat;\n}\n"],["\n font-size: 0.9em;\n margin-right: 10px;\n color: ",";\n font-family: Montserrat;\n}\n"])),function(e){return e.theme.colors.primary.main}),ur=$.li(Lt||(Lt=r.__makeTemplateObject(["\n display: inline-block;\n margin-right: 10px;\n font-size: 0.8em;\n cursor: pointer;\n border: 1px solid ",";\n padding: 2px 10px;\n\n ","\n"],["\n display: inline-block;\n margin-right: 10px;\n font-size: 0.8em;\n cursor: pointer;\n border: 1px solid ",";\n padding: 2px 10px;\n\n ","\n"])),function(e){return e.theme.colors.primary.main},function(e){return e.active?"\n color: white;\n background-color: "+e.theme.colors.primary.main+";\n ":"\n color: "+e.theme.colors.primary.main+";\n background-color: white;\n "}),pr=$.div(Mt||(Mt=r.__makeTemplateObject(["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ' [';\n }\n"],["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ' [';\n }\n"])),function(e){return e.theme.typography.code.fontFamily}),dr=$.div(Nt||(Nt=r.__makeTemplateObject(["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ']';\n }\n"],["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ']';\n }\n"])),function(e){return e.theme.typography.code.fontFamily}),fr=t(39),hr=$(t.n(fr).a)(Dt||(Dt=r.__makeTemplateObject(["\n min-width: 100px;\n display: inline-block;\n position: relative;\n width: auto;\n font-family: ",";\n\n .Dropdown-control {\n font-family: ",";\n position: relative;\n font-size: 0.929em;\n width: 100%;\n line-height: 1.5em;\n vertical-align: middle;\n cursor: pointer;\n border-color: rgba(38, 50, 56, 0.5);\n color: #263238;\n outline: none;\n padding: 0.15em 1.5em 0.2em 0.5em;\n border-radius: 2px;\n border-width: 1px;\n border-style: solid;\n margin-top: 5px;\n background: white;\n\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n color: ",";\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12);\n }\n }\n\n .Dropdown-arrow {\n border-color: "," transparent transparent;\n border-style: solid;\n border-width: 0.35em 0.35em 0;\n content: ' ';\n display: block;\n height: 0;\n position: absolute;\n right: 0.35em;\n top: 50%;\n margin-top: -0.125em;\n width: 0;\n }\n\n .Dropdown-menu {\n position: absolute;\n margin-top: 2px;\n left: 0;\n right: 0;\n\n z-index: 10;\n min-width: 100px;\n\n background: white;\n border: 1px solid rgba(38, 50, 56, 0.2);\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);\n\n max-height: 220px;\n overflow: auto;\n }\n\n .Dropdown-option {\n font-size: 0.9em;\n color: #263238;\n cursor: pointer;\n padding: 0.4em;\n\n &.is-selected {\n background-color: rgba(0, 0, 0, 0.05);\n }\n\n &:hover {\n background-color: rgba(38, 50, 56, 0.12);\n }\n }\n"],["\n min-width: 100px;\n display: inline-block;\n position: relative;\n width: auto;\n font-family: ",";\n\n .Dropdown-control {\n font-family: ",";\n position: relative;\n font-size: 0.929em;\n width: 100%;\n line-height: 1.5em;\n vertical-align: middle;\n cursor: pointer;\n border-color: rgba(38, 50, 56, 0.5);\n color: #263238;\n outline: none;\n padding: 0.15em 1.5em 0.2em 0.5em;\n border-radius: 2px;\n border-width: 1px;\n border-style: solid;\n margin-top: 5px;\n background: white;\n\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n color: ",";\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12);\n }\n }\n\n .Dropdown-arrow {\n border-color: "," transparent transparent;\n border-style: solid;\n border-width: 0.35em 0.35em 0;\n content: ' ';\n display: block;\n height: 0;\n position: absolute;\n right: 0.35em;\n top: 50%;\n margin-top: -0.125em;\n width: 0;\n }\n\n .Dropdown-menu {\n position: absolute;\n margin-top: 2px;\n left: 0;\n right: 0;\n\n z-index: 10;\n min-width: 100px;\n\n background: white;\n border: 1px solid rgba(38, 50, 56, 0.2);\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);\n\n max-height: 220px;\n overflow: auto;\n }\n\n .Dropdown-option {\n font-size: 0.9em;\n color: #263238;\n cursor: pointer;\n padding: 0.4em;\n\n &.is-selected {\n background-color: rgba(0, 0, 0, 0.05);\n }\n\n &:hover {\n background-color: rgba(38, 50, 56, 0.12);\n }\n }\n"])),function(e){return e.theme.typography.headings.fontFamily},function(e){return e.theme.typography.headings.fontFamily},function(e){return e.theme.colors.primary.main},function(e){return e.theme.colors.primary.main},function(e){return e.theme.colors.primary.main}),mr=$(hr)(Ft||(Ft=r.__makeTemplateObject(["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n\n .Dropdown-control {\n font-size: 1em;\n border: none;\n padding: 0 1.2em 0 0;\n background: transparent;\n\n &:hover {\n color: ",";\n box-shadow: none;\n }\n }\n"],["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n\n .Dropdown-control {\n font-size: 1em;\n border: none;\n padding: 0 1.2em 0 0;\n background: transparent;\n\n &:hover {\n color: ",";\n box-shadow: none;\n }\n }\n"])),function(e){return e.theme.colors.primary.main}),gr=$.span(zt||(zt=r.__makeTemplateObject(["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n color: black;\n"],["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n color: black;\n"]))),yr=t(8),br=$(yr.Tabs)(Bt||(Bt=r.__makeTemplateObject(["\n > ul {\n list-style: none;\n padding: 0;\n margin: 0;\n margin: 0 -5px;\n\n > li {\n padding: 5px 10px;\n display: inline-block;\n\n background-color: ",";\n border-bottom: 1px solid rgba(0, 0, 0, 0.5);\n cursor: pointer;\n text-align: center;\n outline: none;\n color: ",";\n margin: 0\n ",";\n border: 1px solid ",";\n border-radius: 5px;\n min-width: 60px;\n font-size: 0.9em;\n font-weight: bold;\n\n &.react-tabs__tab--selected {\n color: ",";\n background: ",";\n }\n\n &:only-child {\n flex: none;\n min-width: 100px;\n }\n\n &.tab-success {\n color: ",";\n }\n\n &.tab-redirect {\n color: ",";\n }\n\n &.tab-info {\n color: ",";\n }\n\n &.tab-error {\n color: ",";\n }\n }\n }\n > .react-tabs__tab-panel {\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n }\n"],["\n > ul {\n list-style: none;\n padding: 0;\n margin: 0;\n margin: 0 -5px;\n\n > li {\n padding: 5px 10px;\n display: inline-block;\n\n background-color: ",";\n border-bottom: 1px solid rgba(0, 0, 0, 0.5);\n cursor: pointer;\n text-align: center;\n outline: none;\n color: ",";\n margin: 0\n ",";\n border: 1px solid ",";\n border-radius: 5px;\n min-width: 60px;\n font-size: 0.9em;\n font-weight: bold;\n\n &.react-tabs__tab--selected {\n color: ",";\n background: ",";\n }\n\n &:only-child {\n flex: none;\n min-width: 100px;\n }\n\n &.tab-success {\n color: ",";\n }\n\n &.tab-redirect {\n color: ",";\n }\n\n &.tab-info {\n color: ",";\n }\n\n &.tab-error {\n color: ",";\n }\n }\n }\n > .react-tabs__tab-panel {\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n }\n"])),function(e){return e.theme.codeSample.backgroundColor},function(e){var n=e.theme;return Object(a.darken)(n.colors.tonalOffset,n.rightPanel.textColor)},function(e){var n=e.theme;return n.spacing.unit+"px "+n.spacing.unit+"px "+n.spacing.unit+"px"},function(e){var n=e.theme;return Object(a.darken)(.05,n.codeSample.backgroundColor)},function(e){return e.theme.colors.text.primary},function(e){return e.theme.rightPanel.textColor},function(e){return e.theme.colors.responses.success.color},function(e){return e.theme.colors.responses.redirect.color},function(e){return e.theme.colors.responses.info.color},function(e){return e.theme.colors.responses.error.color},function(e){return e.theme.codeSample.backgroundColor},function(e){return 4*e.theme.spacing.unit}),vr=$(br)(Ut||(Ut=r.__makeTemplateObject(["\n > ul {\n display: block;\n > li {\n padding: 2px 5px;\n min-width: auto;\n margin: 0 15px 0 0;\n font-size: 13px;\n font-weight: normal;\n border-bottom: 1px dashed;\n color: ",";\n border-radius: 0;\n background: none;\n\n &:last-child {\n margin-right: 0;\n }\n\n &.react-tabs__tab--selected {\n color: ",";\n background: none;\n }\n }\n }\n > .react-tabs__tab-panel {\n & > div,\n & > pre {\n padding: "," 0;\n }\n }\n"],["\n > ul {\n display: block;\n > li {\n padding: 2px 5px;\n min-width: auto;\n margin: 0 15px 0 0;\n font-size: 13px;\n font-weight: normal;\n border-bottom: 1px dashed;\n color: ",";\n border-radius: 0;\n background: none;\n\n &:last-child {\n margin-right: 0;\n }\n\n &.react-tabs__tab--selected {\n color: ",";\n background: none;\n }\n }\n }\n > .react-tabs__tab-panel {\n & > div,\n & > pre {\n padding: "," 0;\n }\n }\n"])),function(e){var n=e.theme;return Object(a.darken)(n.colors.tonalOffset,n.rightPanel.textColor)},function(e){return e.theme.rightPanel.textColor},function(e){return 2*e.theme.spacing.unit}),_r=$.div($t||($t=r.__makeTemplateObject(["\n /**\n * Based on prism-dark.css\n */\n\n code[class*='language-'],\n pre[class*='language-'] {\n /* color: white;\n background: none; */\n text-shadow: 0 -0.1em 0.2em black;\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\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n @media print {\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: hsl(30, 20%, 50%);\n }\n\n .token.punctuation {\n opacity: 0.7;\n }\n\n .namespace {\n opacity: 0.7;\n }\n\n .token.property,\n .token.tag,\n .token.number,\n .token.constant,\n .token.symbol {\n color: #4a8bb3;\n }\n\n .token.boolean {\n color: firebrick;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: #a0fbaa;\n & + a,\n & + a:visited {\n color: #4ed2ba;\n text-decoration: underline;\n }\n }\n\n /* .property.token.string {\n color: white;\n } */\n\n .token.operator,\n .token.entity,\n .token.url,\n .token.variable {\n color: hsl(40, 90%, 60%);\n }\n\n .token.atrule,\n .token.attr-value,\n .token.keyword {\n color: hsl(350, 40%, 70%);\n }\n\n .token.regex,\n .token.important {\n color: #e90;\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.deleted {\n color: red;\n }\n\n ",";\n"],["\n /**\n * Based on prism-dark.css\n */\n\n code[class*='language-'],\n pre[class*='language-'] {\n /* color: white;\n background: none; */\n text-shadow: 0 -0.1em 0.2em black;\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\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n @media print {\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: hsl(30, 20%, 50%);\n }\n\n .token.punctuation {\n opacity: 0.7;\n }\n\n .namespace {\n opacity: 0.7;\n }\n\n .token.property,\n .token.tag,\n .token.number,\n .token.constant,\n .token.symbol {\n color: #4a8bb3;\n }\n\n .token.boolean {\n color: firebrick;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: #a0fbaa;\n & + a,\n & + a:visited {\n color: #4ed2ba;\n text-decoration: underline;\n }\n }\n\n /* .property.token.string {\n color: white;\n } */\n\n .token.operator,\n .token.entity,\n .token.url,\n .token.variable {\n color: hsl(40, 90%, 60%);\n }\n\n .token.atrule,\n .token.attr-value,\n .token.keyword {\n color: hsl(350, 40%, 70%);\n }\n\n .token.regex,\n .token.important {\n color: #e90;\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.deleted {\n color: red;\n }\n\n ",";\n"])),V("Prism")),xr=$.div(Vt||(Vt=r.__makeTemplateObject(["\n opacity: 0.4;\n transition: opacity 0.3s ease;\n text-align: right;\n\n > span {\n display: inline-block;\n padding: 2px 10px;\n cursor: pointer;\n\n :hover {\n background: rgba(255, 255, 255, 0.1);\n }\n }\n"],["\n opacity: 0.4;\n transition: opacity 0.3s ease;\n text-align: right;\n\n > span {\n display: inline-block;\n padding: 2px 10px;\n cursor: pointer;\n\n :hover {\n background: rgba(255, 255, 255, 0.1);\n }\n }\n"]))),wr=$.div(Qt||(Qt=r.__makeTemplateObject(["\n &:hover "," {\n opacity: 1;\n }\n"],["\n &:hover "," {\n opacity: 1;\n }\n"])),xr),kr=$(_r.withComponent("pre"))(Wt||(Wt=r.__makeTemplateObject(["\n font-family: ",";\n font-size: ",";\n overflow-x: auto;\n margin: 0;\n\n white-space: ",";\n"],["\n font-family: ",";\n font-size: ",";\n overflow-x: auto;\n margin: 0;\n\n white-space: ",";\n"])),function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"}),Or=t(24),Er=t.n(Or),Tr=t(25),Sr=t.n(Tr),jr=Er.a||Or,Ir=F(Yt||(Yt=r.__makeTemplateObject(["",""],["",""])),Sr.a&&Sr.a.toString()),Ar=$.div(Ht||(Ht=r.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),Cr=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleRef=function(e){n._container=e},n}return r.__extends(n,e),n.prototype.componentDidMount=function(){var e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new jr(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)},n.prototype.componentDidUpdate=function(){this.inst.update()},n.prototype.componentWillUnmount=function(){this.inst.destroy()},n.prototype.render=function(){var e=this.props,n=e.children,t=e.className,r=e.updateFn;return r&&r(this.componentDidUpdate.bind(this)),i.createElement(i.Fragment,null,i.createElement(Ir,null),i.createElement(Ar,{className:"scrollbar-container "+t,ref:this.handleRef},n))},n}(i.Component);function Pr(e){return i.createElement(ne.Consumer,null,function(n){return n.nativeScrollbars?i.createElement("div",{style:{overflow:"auto",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):i.createElement(Cr,r.__assign({},e),e.children)})}var Rr,qr,Lr=t(40),Mr=D(Rr||(Rr=r.__makeTemplateObject(["\n a {\n text-decoration: none;\n color: ",";\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n }\n"],["\n a {\n text-decoration: none;\n color: ",";\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n }\n"])),function(e){return e.theme.typography.links.color},function(e){return e.theme.typography.links.visited},function(e){return e.theme.typography.links.hover}),Nr=$(_r)(qr||(qr=r.__makeTemplateObject(["\n\n font-family: ",";\n font-weight: ",";\n line-height: ",";\n\n p {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ","\n\n ","\n\n h1 {\n ",";\n color: ",";\n margin-top: 0;\n }\n\n h2 {\n ",";\n color: ",";\n }\n\n code {\n color: ",";\n background-color: ",";\n\n font-family: ",";\n border-radius: 2px;\n border: 1px solid rgba(38, 50, 56, 0.1);\n padding: 0 ","px;\n font-size: ",";\n font-weight: ",";\n\n word-break: break-word;\n }\n\n pre {\n font-family: ",";\n white-space:",";\n background-color: #263238;\n color: white;\n padding: ","px;\n overflow-x: auto;\n line-height: normal;\n border-radius: 0px\n border: 1px solid rgba(38, 50, 56, 0.1);\n\n code {\n background-color: transparent;\n color: white;\n padding: 0;\n\n &:before,\n &:after {\n content: none;\n }\n }\n }\n\n blockquote {\n margin: 0;\n margin-bottom: 1em;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n img {\n max-width: 100%;\n box-sizing: content-box;\n }\n\n ul,\n ol {\n padding-left: 2em;\n margin: 0;\n margin-bottom: 1em;\n\n ul, ol {\n margin-bottom: 0;\n margin-top: 0;\n }\n }\n\n table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n }\n\n table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n\n &:nth-child(2n) {\n background-color: ",";\n }\n }\n\n table th,\n table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n table th {\n text-align: left;\n font-weight: bold;\n }\n\n ",";\n\n ","\n\n ",";\n"],["\n\n font-family: ",";\n font-weight: ",";\n line-height: ",";\n\n p {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ","\n\n ","\n\n h1 {\n ",";\n color: ",";\n margin-top: 0;\n }\n\n h2 {\n ",";\n color: ",";\n }\n\n code {\n color: ",";\n background-color: ",";\n\n font-family: ",";\n border-radius: 2px;\n border: 1px solid rgba(38, 50, 56, 0.1);\n padding: 0 ","px;\n font-size: ",";\n font-weight: ",";\n\n word-break: break-word;\n }\n\n pre {\n font-family: ",";\n white-space:",";\n background-color: #263238;\n color: white;\n padding: ","px;\n overflow-x: auto;\n line-height: normal;\n border-radius: 0px\n border: 1px solid rgba(38, 50, 56, 0.1);\n\n code {\n background-color: transparent;\n color: white;\n padding: 0;\n\n &:before,\n &:after {\n content: none;\n }\n }\n }\n\n blockquote {\n margin: 0;\n margin-bottom: 1em;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n img {\n max-width: 100%;\n box-sizing: content-box;\n }\n\n ul,\n ol {\n padding-left: 2em;\n margin: 0;\n margin-bottom: 1em;\n\n ul, ol {\n margin-bottom: 0;\n margin-top: 0;\n }\n }\n\n table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n }\n\n table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n\n &:nth-child(2n) {\n background-color: ",";\n }\n }\n\n table th,\n table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n table th {\n text-align: left;\n font-weight: bold;\n }\n\n ",";\n\n ","\n\n ",";\n"])),function(e){return e.theme.typography.fontFamily},function(e){return e.theme.typography.fontWeightRegular},function(e){return e.theme.typography.lineHeight},function(e){return e.compact&&"\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n "},function(e){return e.inline&&" p {\n display: inline-block;\n }"},at(1),function(e){return e.theme.colors.primary.main},at(2),function(e){return e.theme.colors.text.primary},function(e){return e.theme.typography.code.color},function(e){return e.theme.typography.code.backgroundColor},function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.spacing.unit},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.fontWeight},function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"},function(e){return 4*e.theme.spacing.unit},function(e){return e.theme.schema.nestedBackground},yt(".share-link"),Mr,V("Markdown")),Dr=Nr.withComponent("span"),Fr=function(e,n){return e?Lr.sanitize(n):n};function zr(e){var n=e.inline?Dr:Nr;return i.createElement(re,null,function(t){return i.createElement(n,r.__assign({className:"redoc-markdown "+(e.className||""),dangerouslySetInnerHTML:{__html:Fr(t.untrustedSpec,e.html)}},e))})}var Br,Ur=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.source,t=e.inline,r=e.compact,o=e.className,a=new un;return i.createElement(zr,{html:a.renderMd(n),inline:t,compact:r,className:o})},n}(i.Component),$r={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"Open ID Connect"},Vr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.type,t=e.flow;return i.createElement("tr",null,i.createElement("th",null," ",n," OAuth Flow "),i.createElement("td",null,"implicit"===n||"authorizationCode"===n?i.createElement("div",null,i.createElement("strong",null," Authorization URL: "),t.authorizationUrl):null,"password"===n||"clientCredentials"===n||"authorizationCode"===n?i.createElement("div",null,i.createElement("strong",null," Token URL: "),t.tokenUrl):null,t.refreshUrl&&i.createElement("div",null,i.createElement("strong",null," Refresh URL: "),t.refreshUrl),i.createElement("div",null,i.createElement("strong",null," Scopes: ")),i.createElement("ul",null,Object.keys(t.scopes).map(function(e){return i.createElement("li",{key:e},i.createElement("code",null,e)," - ",i.createElement(Ur,{inline:!0,source:t.scopes[e]||""}))}))))},n}(i.PureComponent),Qr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return this.props.securitySchemes.schemes.map(function(e){return i.createElement(nt,{id:e.sectionId,key:e.id},i.createElement(ot,null,i.createElement(et,null,i.createElement(lt,null,i.createElement(xt,{to:e.sectionId}),e.id),i.createElement(Ur,{source:e.description||""}),i.createElement(Nr,null,i.createElement("table",{className:"security-details"},i.createElement("tbody",null,i.createElement("tr",null,i.createElement("th",null," Security scheme type: "),i.createElement("td",null," ",$r[e.type]||e.type," ")),e.apiKey?i.createElement("tr",null,i.createElement("th",null," ",T(e.apiKey.in||"")," parameter name:"),i.createElement("td",null," ",e.apiKey.name," ")):e.http?[i.createElement("tr",{key:"scheme"},i.createElement("th",null," HTTP Authorization Scheme "),i.createElement("td",null," ",e.http.scheme," ")),"bearer"===e.http.scheme&&e.http.bearerFormat&&i.createElement("tr",{key:"bearer"},i.createElement("th",null," Bearer format "),i.createElement("td",null,' "',e.http.bearerFormat,'" '))]:e.openId?i.createElement("tr",null,i.createElement("th",null," Connect URL "),i.createElement("td",null,i.createElement("a",{target:"_blank",href:e.openId.connectUrl},e.openId.connectUrl))):e.flows?Object.keys(e.flows).map(function(n){return i.createElement(Vr,{key:n,type:n,flow:e.flows[n]})}):null))))))})},n}(i.PureComponent);function Wr(e,n,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,function(){var o;return r.__generator(this,function(r){switch(r.label){case 0:return[4,se(e||n)];case 1:return o=r.sent(),[2,new yo(o,n,t)]}})})}var Yr,Hr,Gr,Kr,Jr,Xr,Zr,eo,no,to,ro,oo,io,ao,so,lo,co,uo,po,fo,ho,mo,go,yo=function(){function e(e,n,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=!0),this.marker=new tn,this.disposer=null,this.rawOptions=t,this.options=new L(t,bo),this.scroll=new Ln(this.options),qn.updateOnHistory(en.currentId,this.scroll),this.spec=new yn(e,n,this.options),this.menu=new qn(this.spec,this.scroll,en),this.options.disableSearch||(this.search=new Zn,r&&this.search.indexItems(this.menu.items),this.disposer=Object(oe.observe)(this.menu,"activeItemIdx",function(e){o.updateMarkOnMenu(e.newValue)}))}return e.fromJS=function(n){var t=new e(n.spec.data,n.spec.url,n.options,!1);return t.menu.activeItemIdx=n.menu.activeItemIdx||0,t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),t.options.disableSearch||t.search.load(n.searchIndex),t},e.prototype.onDidMount=function(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)},e.prototype.dispose=function(){this.scroll.dispose(),this.menu.dispose(),null!=this.disposer&&this.disposer()},e.prototype.toJS=function(){return r.__awaiter(this,void 0,void 0,function(){var e,n;return r.__generator(this,function(t){switch(t.label){case 0:return e={menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec}},this.search?[4,this.search.toJS()]:[3,2];case 1:return n=t.sent(),[3,3];case 2:n=void 0,t.label=3;case 3:return[2,(e.searchIndex=n,e.options=this.rawOptions,e)]}})})},e.prototype.updateMarkOnMenu=function(e){for(var n=Math.max(0,e),t=Math.min(this.menu.flatItems.length,n+5),r=[],o=n;o0&&" (",e.scopes.map(function(e){return i.createElement(Lo,{key:e},e)}),e.scopes.length>0&&") ")}))},n}(i.PureComponent),Fo=$.div(io||(io=r.__makeTemplateObject(["\n flex: 1;\n"],["\n flex: 1;\n"]))),zo=$.div(ao||(ao=r.__makeTemplateObject(["\n width: ",";\n"],["\n width: ",";\n"])),function(e){return e.theme.schema.defaultDetailsWidth}),Bo=$(ut)(so||(so=r.__makeTemplateObject(["\n display: inline-block;\n margin: 0;\n"],["\n display: inline-block;\n margin: 0;\n"]))),Uo=$.div(lo||(lo=r.__makeTemplateObject(["\n width: 100%;\n display: flex;\n margin: 1em 0;\n"],["\n width: 100%;\n display: flex;\n margin: 1em 0;\n"]))),$o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.securities;return e.length?i.createElement(Uo,null,i.createElement(Fo,null,i.createElement(Bo,null,"Authorizations: ")),i.createElement(zo,null,e.map(function(e,n){return i.createElement(Do,{key:n,security:e})}))):null},n}(i.PureComponent),Vo=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleClick=function(){_o.selectElement(n.child)},n}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props.children;return i.createElement("div",{ref:function(n){return e.child=n},onClick:this.handleClick},n)},n}(i.PureComponent),Qo=$.div(co||(co=r.__makeTemplateObject(["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"],["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"]))),Wo=$.span(uo||(uo=r.__makeTemplateObject(["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"],["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"])),function(e){return e.theme.typography.code.fontFamily}),Yo=$.div(po||(po=r.__makeTemplateObject(["\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n"],["\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n"])),function(e){return e.inverted?"10px":"20px"},function(e){return e.inverted?"0":"4px 4px 0 0"},function(e){return e.inverted?"transparent":e.theme.codeSample.backgroundColor},function(e){return e.inverted?"0":"1px solid transparent"},function(e){return e.inverted?"1px solid #ccc":"0"},function(e){return e.expanded&&!e.inverted&&"border-color: "+e.theme.colors.border.dark+";"||""},Wo,function(e){return e.inverted?e.theme.colors.text.primary:"#ffffff"}),Ho=$.span.attrs(function(e){return{className:"http-verb "+e.type}})(fo||(fo=r.__makeTemplateObject(["\n font-size: 0.929em;\n line-height: 20px;\n background-color: ",";\n color: #ffffff;\n padding: 3px 10px;\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"],["\n font-size: 0.929em;\n line-height: 20px;\n background-color: ",";\n color: #ffffff;\n padding: 3px 10px;\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"])),function(e){return e.theme.colors.http[e.type]||"#999999"},function(e){return e.theme.typography.headings.fontFamily}),Go=$.div(ho||(ho=r.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n\n ","\n"],["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n\n ","\n"])),function(e){return e.expanded?"":"transform: translateY(-50%) scaleY(0);"}),Ko=$.div(mo||(mo=r.__makeTemplateObject(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),Jo=$.div(go||(go=r.__makeTemplateObject(["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"],["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"])),function(e){return e.theme.colors.primary.main},function(e){return e.theme.colors.text.primary}),Xo=function(e){function n(n){var t=e.call(this,n)||this;return t.toggle=function(){t.setState({expanded:!t.state.expanded})},t.state={expanded:!1},t}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.operation,r=n.inverted,o=n.hideHostname,a=this.state.expanded;return i.createElement(ne.Consumer,null,function(n){return i.createElement(Qo,null,i.createElement(Yo,{onClick:e.toggle,expanded:a,inverted:r},i.createElement(Ho,{type:t.httpVerb}," ",t.httpVerb)," ",i.createElement(Wo,null,t.path),i.createElement(Jt,{float:"right",color:r?"black":"white",size:"20px",direction:a?"up":"down",style:{marginRight:"-25px"}})),i.createElement(Go,{expanded:a},t.servers.map(function(e){return i.createElement(Ko,{key:e.url},i.createElement(Ur,{source:e.description||"",compact:!0}),i.createElement(Vo,null,i.createElement(Jo,null,i.createElement("span",null,o||n.hideHostname?E(e.url):e.url),t.path)))})))})},n}(i.Component);function Zo(e){var n=e.Label,t=void 0===n?gr:n,o=e.Dropdown,a=void 0===o?mr:o;return 1===e.options.length?i.createElement(t,null,e.options[0].label):i.createElement(a,r.__assign({},e))}var ei,ni,ti,ri,oi,ii,ai,si,li,ci,ui,pi,di,fi,hi=$(rr)(ei||(ei=r.__makeTemplateObject(["\n cursor: pointer;\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n cursor: pointer;\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),Jt,function(e){return e.theme.schema.arrow.size},function(e){return e.theme.schema.arrow.size},function(e){return e.theme.schema.arrow.color}),mi=$.span(ni||(ni=r.__makeTemplateObject(["\n vertical-align: middle;\n font-size: ",";\n line-height: 20px;\n"],["\n vertical-align: middle;\n font-size: ",";\n line-height: 20px;\n"])),function(e){return e.theme.typography.code.fontSize}),gi=$(mi)(ti||(ti=r.__makeTemplateObject(["\n color: ",";\n"],["\n color: ",";\n"])),function(e){return Object(a.transparentize)(.2,e.theme.schema.typeNameColor)}),yi=$(mi)(ri||(ri=r.__makeTemplateObject(["\n color: ",";\n"],["\n color: ",";\n"])),function(e){return e.theme.schema.typeNameColor}),bi=$(mi)(oi||(oi=r.__makeTemplateObject(["\n color: ",";\n"],["\n color: ",";\n"])),function(e){return e.theme.schema.typeTitleColor}),vi=yi,_i=$(mi.withComponent("div"))(ii||(ii=r.__makeTemplateObject(["\n color: ",";\n font-size: ",";\n font-weight: normal;\n margin-left: 20px;\n line-height: 1;\n"],["\n color: ",";\n font-size: ",";\n font-weight: normal;\n margin-left: 20px;\n line-height: 1;\n"])),function(e){return e.theme.schema.requireLabelColor},function(e){return e.theme.schema.labelsTextSize}),xi=$(mi)(ai||(ai=r.__makeTemplateObject(["\n color: ",";\n font-size: 13px;\n"],["\n color: ",";\n font-size: 13px;\n"])),function(e){return e.theme.colors.warning.main}),wi=$(mi)(si||(si=r.__makeTemplateObject(["\n color: #3195a6;\n font-size: 13px;\n"],["\n color: #3195a6;\n font-size: 13px;\n"]))),ki=$(mi)(li||(li=r.__makeTemplateObject(["\n color: #3195a6;\n &::before,\n &::after {\n font-weight: bold;\n }\n\n &::before {\n content: ' /';\n }\n\n &::after {\n content: '/ ';\n }\n"],["\n color: #3195a6;\n &::before,\n &::after {\n font-weight: bold;\n }\n\n &::before {\n content: ' /';\n }\n\n &::after {\n content: '/ ';\n }\n"]))),Oi=$(mi)(ci||(ci=r.__makeTemplateObject(["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"],["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"])),function(e){var n=e.theme;return"\n background-color: "+Object(a.transparentize)(.95,n.colors.text.primary)+";\n color: "+Object(a.transparentize)(.1,n.colors.text.primary)+";\n\n margin: "+n.spacing.unit+"px;\n padding: 0 "+n.spacing.unit+"px;\n border: 1px solid "+Object(a.transparentize)(.9,n.colors.text.primary)+";\n font-family: "+n.typography.code.fontFamily+";\n color: "+n.typography.code.color+";\n}"},V("ExampleValue")),Ei=$(Oi)(ui||(ui=r.__makeTemplateObject([""],[""]))),Ti=$(mi)(pi||(pi=r.__makeTemplateObject(["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"],["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"])),function(e){var n=e.theme;return"\n background-color: "+Object(a.transparentize)(.95,n.colors.primary.light)+";\n color: "+Object(a.transparentize)(.1,n.colors.primary.main)+";\n\n margin: 0 "+n.spacing.unit+"px;\n padding: 0 "+n.spacing.unit+"px;\n border: 1px solid "+Object(a.transparentize)(.9,n.colors.primary.main)+";\n}"},V("ConstraintItem")),Si=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.values,t=e.type;return n.length?i.createElement("div",null,i.createElement(mi,null,"array"===t?A("enumArray"):""," ",1===n.length?A("enumSingleValue"):A("enum"),":"),n.map(function(e,n){return i.createElement(i.Fragment,{key:n},i.createElement(Oi,null,JSON.stringify(e))," ")})):null},n}(i.PureComponent),ji=$(Nr)(di||(di=r.__makeTemplateObject(["\n margin: 2px 0;\n"],["\n margin: 2px 0;\n"]))),Ii=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.extensions;return i.createElement(ne.Consumer,null,function(n){return i.createElement(i.Fragment,null,n.showExtensions&&Object.keys(e).map(function(n){return i.createElement(ji,{key:n},i.createElement(mi,null," ",n.substring(2),": ")," ",i.createElement(Ei,null,"string"===typeof e[n]?e[n]:JSON.stringify(e[n])))}))})},n}(i.PureComponent),Ai=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return 0===this.props.constraints.length?null:i.createElement("span",null," ",this.props.constraints.map(function(e){return i.createElement(Ti,{key:e}," ",e," ")}))},n}(i.PureComponent),Ci=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return void 0===this.props.value?null:i.createElement("div",null,i.createElement(mi,null," ",this.props.label," ")," ",i.createElement(Oi,null,JSON.stringify(this.props.value)))},n}(i.PureComponent),Pi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.showExamples,t=e.field,o=e.renderDiscriminatorSwitch,a=t.schema,s=t.description,l=t.example,c=t.deprecated;return i.createElement("div",null,i.createElement("div",null,i.createElement(gi,null,a.typePrefix),i.createElement(yi,null,a.displayType),a.displayFormat&&i.createElement(vi,null," ","<",a.displayFormat,">"," "),a.title&&i.createElement(bi,null," (",a.title,") "),i.createElement(Ai,{constraints:a.constraints}),a.nullable&&i.createElement(wi,null," ",A("nullable")," "),a.pattern&&i.createElement(ki,null,a.pattern),a.isCircular&&i.createElement(xi,null," ",A("recursive")," ")),c&&i.createElement("div",null,i.createElement(Xt,{type:"warning"}," ",A("deprecated")," ")),i.createElement(Ci,{label:A("default")+":",value:a.default}),!o&&i.createElement(Si,{type:a.type,values:a.enum})," ",n&&i.createElement(Ci,{label:A("example")+":",value:l}),i.createElement(Ii,{extensions:r.__assign({},t.extensions,a.extensions)}),i.createElement("div",null,i.createElement(Ur,{compact:!0,source:s})),a.externalDocs&&i.createElement(ko,{externalDocs:a.externalDocs,compact:!0}),o&&o(this.props)||null)},n}(i.PureComponent),Ri=$.div(fi||(fi=r.__makeTemplateObject(["\n padding-left: ","px;\n"],["\n padding-left: ","px;\n"])),function(e){return 2*e.theme.spacing.unit}),qi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.schema.items;return i.createElement("div",null,i.createElement(pr,null," Array "),i.createElement(Ri,null,i.createElement(Fi,r.__assign({},this.props,{schema:e}))),i.createElement(dr,null))},n}(i.PureComponent),Li=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.changeActiveChild=function(e){var t=e.value,r=parseInt(t,10);n.props.parent.activateOneOf(r)},n}return r.__extends(n,e),n.prototype.sortOptions=function(e,n){if(0!==n.length){var t={};n.forEach(function(e,n){t[e]=n}),e.sort(function(e,n){return t[e.label]>t[n.label]?1:-1})}},n.prototype.render=function(){var e=this.props,n=e.parent,t=e.enumValues;if(void 0===n.oneOf)return null;var r=n.oneOf.map(function(e,n){return{value:n.toString(),label:e.title}}),o=r[n.activeOneOf];return this.sortOptions(r,t),i.createElement(hr,{value:o,options:r,onChange:this.changeActiveChild})},n=r.__decorate([xo.observer],n)}(i.Component),Mi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),Object.defineProperty(n.prototype,"parentSchema",{get:function(){return this.props.discriminator.parentSchema},enumerable:!0,configurable:!0}),n.prototype.render=function(){var e=this,n=this.props,t=n.schema.fields,r=void 0===t?[]:t,o=n.showTitle,a=n.discriminator,s=this.props.skipReadOnly||this.props.skipWriteOnly?r.filter(function(n){return e.props.skipReadOnly&&!n.schema.readOnly||e.props.skipWriteOnly&&!n.schema.writeOnly}):r;return i.createElement(sr,null,o&&i.createElement(er,null,this.props.schema.title),i.createElement("tbody",null,h(s,function(n,t){return i.createElement(zi,{key:n.name,isLast:t,field:n,renderDiscriminatorSwitch:a&&a.fieldName===n.name&&function(){return i.createElement(Li,{parent:e.parentSchema,enumValues:n.schema.enum})}||void 0,className:n.expanded?"expanded":void 0,showExamples:!1,skipReadOnly:e.props.skipReadOnly,skipWriteOnly:e.props.skipWriteOnly,showTitle:e.props.showTitle})})))},n=r.__decorate([xo.observer],n)}(i.Component),Ni=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.activateOneOf=function(){n.props.schema.activateOneOf(n.props.idx)},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.idx,t=e.schema,r=e.subSchema;return i.createElement(ur,{active:n===t.activeOneOf,onClick:this.activateOneOf},r.title||r.typePrefix+r.displayType)},n=r.__decorate([xo.observer],n)}(i.Component),Di=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.schema.oneOf,t=e.schema;return void 0===n?null:i.createElement("div",null,i.createElement(cr,null," ",t.oneOfType," "),i.createElement(lr,null,n.map(function(e,n){return i.createElement(Ni,{key:e.pointer,schema:t,subSchema:e,idx:n})})),i.createElement(Fi,r.__assign({},this.props,{schema:n[t.activeOneOf]})))},n=r.__decorate([xo.observer],n)}(i.Component),Fi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.schema;if(!e)return i.createElement("em",null," Schema not provided ");var n=e.type,t=e.oneOf,o=e.discriminatorProp;if(e.isCircular)return i.createElement("div",null,i.createElement(yi,null,e.displayType),e.title&&i.createElement(bi,null," ",e.title," "),i.createElement(xi,null," ",A("recursive")," "));if(void 0!==o){if(!t||!t.length)throw new Error("Looks like you are using discriminator wrong: you don't have any definition inherited from the "+e.title);return i.createElement(Mi,r.__assign({},r.__assign({},this.props,{schema:t[e.activeOneOf]}),{discriminator:{fieldName:o,parentSchema:e}}))}if(void 0!==t)return i.createElement(Di,r.__assign({schema:e},this.props));switch(n){case"object":return i.createElement(Mi,r.__assign({},this.props));case"array":return i.createElement(qi,r.__assign({},this.props))}var a={schema:e,name:"",required:!1,description:e.description,externalDocs:e.externalDocs,deprecated:!1,toggle:function(){return null},expanded:!1};return i.createElement("div",null,i.createElement(Pi,{field:a}))},n=r.__decorate([xo.observer],n)}(i.Component),zi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggle=function(){n.props.field.toggle()},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.field,o=e.isLast,a=t.name,s=t.expanded,l=t.deprecated,c=t.required,u=t.kind,p=!t.schema.isPrimitive&&!t.schema.isCircular,d=p?i.createElement(hi,{onClick:this.toggle,className:l?"deprecated":"",kind:u,title:a},i.createElement(ir,null),a,i.createElement(Jt,{direction:s?"down":"right"}),c&&i.createElement(_i,null," required ")):i.createElement(rr,{className:l?"deprecated":void 0,kind:u,title:a},i.createElement(ir,null),a,c&&i.createElement(_i,null," required "));return i.createElement(i.Fragment,null,i.createElement("tr",{className:o?"last "+n:n},d,i.createElement(or,null,i.createElement(Pi,r.__assign({},this.props)))),t.expanded&&p&&i.createElement("tr",{key:t.name+"inner"},i.createElement(tr,{colSpan:2},i.createElement(ar,null,i.createElement(Fi,{schema:t.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle})))))},n=r.__decorate([xo.observer],n)}(i.Component),Bi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.place,t=e.parameters;return t&&t.length?i.createElement("div",{key:n},i.createElement(ut,null,n," Parameters"),i.createElement(sr,null,i.createElement("tbody",null,h(t,function(e,n){return i.createElement(zi,{key:e.name,isLast:n,field:e,showExamples:!0})})))):null},n}(i.PureComponent),Ui=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.switchMedia=function(e){var t=e.value;n.props.content&&n.props.content.activate(parseInt(t,10))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.content;if(!e||!e.mediaTypes||!e.mediaTypes.length)return null;var n=e.activeMimeIdx,t=e.mediaTypes.map(function(e,n){return{label:e.name,value:n.toString()}});return i.createElement(i.Fragment,null,this.props.renderDropdown({value:t[n],options:t,onChange:this.switchMedia}),this.props.children(e.active))},n=r.__decorate([xo.observer],n)}(i.Component);var $i=["path","query","cookie","header"],Vi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.orderParams=function(e){var n={};return e.forEach(function(e){var t,r,o;t=n,r=e.in,o=e,t[r]||(t[r]=[]),t[r].push(o)}),n},n.prototype.render=function(){var e=this.props,n=e.body,t=e.parameters,r=void 0===t?[]:t;if(void 0===n&&void 0===r)return null;var o=this.orderParams(r),a=r.length>0?$i:[],s=n&&n.content,l=n&&n.description;return i.createElement(i.Fragment,null,a.map(function(e){return i.createElement(Bi,{key:e,place:e,parameters:o[e]})}),s&&i.createElement(Wi,{content:s,description:l}))},n}(i.PureComponent);function Qi(e){return i.createElement(ut,{key:"header"},"Request Body schema: ",i.createElement(Zo,r.__assign({},e)))}function Wi(e){var n=e.content,t=e.description;return i.createElement(Ui,{content:n,renderDropdown:Qi},function(e){var n=e.schema;return i.createElement(i.Fragment,null,void 0!==t&&i.createElement(Ur,{source:t}),i.createElement(Fi,{skipReadOnly:!0,key:"schema",schema:n}))})}var Yi,Hi,Gi,Ki,Ji,Xi=$.div(Yi||(Yi=r.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),Zi=$.div(Hi||(Hi=r.__makeTemplateObject(["\n position: absolute;\n min-width: 80px;\n max-width: 500px;\n background: #fff;\n bottom: 100%;\n left: 50%;\n margin-bottom: 10px;\n transform: translateX(-50%);\n\n border-radius: 4px;\n padding: 0.3em 0.6em;\n text-align: center;\n box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);\n"],["\n position: absolute;\n min-width: 80px;\n max-width: 500px;\n background: #fff;\n bottom: 100%;\n left: 50%;\n margin-bottom: 10px;\n transform: translateX(-50%);\n\n border-radius: 4px;\n padding: 0.3em 0.6em;\n text-align: center;\n box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);\n"]))),ea=$.div(Gi||(Gi=r.__makeTemplateObject(["\n background: #fff;\n color: #000;\n display: inline;\n font-size: 0.85em;\n white-space: nowrap;\n"],["\n background: #fff;\n color: #000;\n display: inline;\n font-size: 0.85em;\n white-space: nowrap;\n"]))),na=$.div(Ki||(Ki=r.__makeTemplateObject(["\n position: absolute;\n width: 0;\n height: 0;\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n border-left: solid transparent 5px;\n border-right: solid transparent 5px;\n border-top: solid #fff 5px;\n"],["\n position: absolute;\n width: 0;\n height: 0;\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n border-left: solid transparent 5px;\n border-right: solid transparent 5px;\n border-top: solid #fff 5px;\n"]))),ta=$.div(Ji||(Ji=r.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 20px;\n bottom: -20px;\n"],["\n position: absolute;\n width: 100%;\n height: 20px;\n bottom: -20px;\n"]))),ra=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.open,t=e.title,r=e.children;return i.createElement(Xi,null,r,n&&i.createElement(Zi,null,i.createElement(ea,null,t),i.createElement(na,null),i.createElement(ta,null)))},n}(i.Component),oa=function(e){function n(n){var t=e.call(this,n)||this;return t.copy=function(){var e="string"===typeof t.props.data?t.props.data:JSON.stringify(t.props.data,null,2);_o.copyCustom(e),t.showTooltip()},t.renderCopyButton=function(){return i.createElement("span",{onClick:t.copy},i.createElement(ra,{title:_o.isSupported()?"Copied":"Not supported in your browser",open:t.state.tooltipShown},"Copy"))},t.state={tooltipShown:!1},t}return r.__extends(n,e),n.prototype.render=function(){return this.props.children({renderCopyButton:this.renderCopyButton})},n.prototype.showTooltip=function(){var e=this;this.setState({tooltipShown:!0}),setTimeout(function(){e.setState({tooltipShown:!1})},1500)},n}(i.PureComponent),ia=1,aa=2;function sa(e){ia=1;var n="";return n+='
',n+=da(e),n+="
"}function la(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(//g,">"):""}function ca(e){return e.replace(/([\\"])/g,"\\$1")}function ua(e,n){return''+la(e)+""}function pa(e){return''+e+""}function da(e){var n=typeof e,t="";return void 0===e||null===e?t+=ua("null","token keyword"):e&&e.constructor===Array?(ia++,t+=function(e){for(var n=ia>aa?"collapsed":"",t='
'+pa("[")+'
    ',r=!1,o=e.length,i=0;i
    ',t+=da(e[i]),i";t+="
"+pa("]"),r||(t=pa("[ ]"));return t}(e),ia--):e&&e.constructor===Date?t+=ua('"'+e.toISOString()+'"',"token string"):"object"===n?(ia++,t+=function(e){for(var n=ia>aa?"collapsed":"",t=Object.keys(e),r=t.length,o='
'+pa("{")+'
    ',i=!1,a=0;a
    ',o+='"'+la(s)+'": ',o+=da(e[s]),a"}o+="
"+pa("}"),i||(o=pa("{ }"));return o}(e),ia--):"number"===n?t+=ua(e,"token number"):"string"===n?/^(http|https):\/\/[^\s]+$/.test(e)?t+=ua('"',"token string")+''+la(ca(e))+""+ua('"',"token string"):t+=ua('"'+ca(e)+'"',"token string"):"boolean"===n&&(t+=ua(e,"token boolean")),t}var fa,ha,ma,ga=D(fa||(fa=r.__makeTemplateObject(["\n .redoc-json > .collapser {\n display: none;\n }\n\n font-family: ",";\n font-size: ",";\n\n white-space: ",";\n contain: content;\n overflow-x: auto;\n\n .callback-function {\n color: gray;\n }\n\n .collapser:after {\n content: '-';\n cursor: pointer;\n }\n\n .collapsed > .collapser:after {\n content: '+';\n cursor: pointer;\n }\n\n .ellipsis:after {\n content: ' \u2026 ';\n }\n\n .collapsible {\n margin-left: 2em;\n }\n\n .hoverable {\n padding-top: 1px;\n padding-bottom: 1px;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 2px;\n }\n\n .hovered {\n background-color: rgba(235, 238, 249, 1);\n }\n\n .collapser {\n padding-right: 6px;\n padding-left: 6px;\n }\n\n ul {\n list-style-type: none;\n padding: 0px;\n margin: 0px 0px 0px 26px;\n }\n\n li {\n position: relative;\n display: block;\n }\n\n .hoverable {\n display: inline-block;\n }\n\n .selected {\n outline-style: solid;\n outline-width: 1px;\n outline-style: dotted;\n }\n\n .collapsed > .collapsible {\n display: none;\n }\n\n .ellipsis {\n display: none;\n }\n\n .collapsed > .ellipsis {\n display: inherit;\n }\n\n .collapser {\n position: absolute;\n top: 1px;\n left: -1.5em;\n cursor: default;\n user-select: none;\n -webkit-user-select: none;\n }\n"],["\n .redoc-json > .collapser {\n display: none;\n }\n\n font-family: ",";\n font-size: ",";\n\n white-space: ",";\n contain: content;\n overflow-x: auto;\n\n .callback-function {\n color: gray;\n }\n\n .collapser:after {\n content: '-';\n cursor: pointer;\n }\n\n .collapsed > .collapser:after {\n content: '+';\n cursor: pointer;\n }\n\n .ellipsis:after {\n content: ' \u2026 ';\n }\n\n .collapsible {\n margin-left: 2em;\n }\n\n .hoverable {\n padding-top: 1px;\n padding-bottom: 1px;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 2px;\n }\n\n .hovered {\n background-color: rgba(235, 238, 249, 1);\n }\n\n .collapser {\n padding-right: 6px;\n padding-left: 6px;\n }\n\n ul {\n list-style-type: none;\n padding: 0px;\n margin: 0px 0px 0px 26px;\n }\n\n li {\n position: relative;\n display: block;\n }\n\n .hoverable {\n display: inline-block;\n }\n\n .selected {\n outline-style: solid;\n outline-width: 1px;\n outline-style: dotted;\n }\n\n .collapsed > .collapsible {\n display: none;\n }\n\n .ellipsis {\n display: none;\n }\n\n .collapsed > .ellipsis {\n display: inherit;\n }\n\n .collapser {\n position: absolute;\n top: 1px;\n left: -1.5em;\n cursor: default;\n user-select: none;\n -webkit-user-select: none;\n }\n"])),function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"}),ya=$.div(ha||(ha=r.__makeTemplateObject(["\n &:hover > "," {\n opacity: 1;\n }\n"],["\n &:hover > "," {\n opacity: 1;\n }\n"])),xr),ba=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderInner=function(e){var t=e.renderCopyButton;return i.createElement(ya,null,i.createElement(xr,null,t(),i.createElement("span",{onClick:n.expandAll}," Expand all "),i.createElement("span",{onClick:n.collapseAll}," Collapse all ")),i.createElement(_r,{className:n.props.className,ref:function(e){return n.node=e},dangerouslySetInnerHTML:{__html:sa(n.props.data)}}))},n.expandAll=function(){for(var e=n.node.getElementsByClassName("collapsible"),t=0,r=Array.prototype.slice.call(e);t1)return i.createElement(vr,{defaultIndex:0},i.createElement(yr.TabList,null,r.map(function(n){return i.createElement(yr.Tab,{key:n}," ",e[n].summary||n," ")})),r.map(function(t){return i.createElement(yr.TabPanel,{key:t},i.createElement(ka,{example:e[t],mimeType:n}))}));var o=r[0];return i.createElement("div",null,i.createElement(ka,{example:e[o],mimeType:n}))},n}(i.Component),Da=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderDropdown=function(e){return i.createElement(Zo,r.__assign({Label:qa,Dropdown:La},e))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.content;return void 0===e?null:i.createElement(Ui,{content:e,renderDropdown:this.renderDropdown},function(e){return i.createElement(Na,{key:"samples",mediaType:e})})},n=r.__decorate([xo.observer],n)}(i.Component),Fa=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.operation,n=e.requestBody&&e.requestBody.content,t=n&&n.hasSample,r=e.codeSamples,o=t||r.length>0,a=r.length+(t?1:0)===1&&this.context.hideSingleRequestSampleTab;return o&&i.createElement("div",null,i.createElement(ct,null," Request samples "),i.createElement(br,{defaultIndex:0},i.createElement(yr.TabList,{hidden:a},t&&i.createElement(yr.Tab,{key:"payload"}," Payload "),r.map(function(e){return i.createElement(yr.Tab,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)})),t&&i.createElement(yr.TabPanel,{key:"payload"},i.createElement("div",null,i.createElement(Da,{content:n}))),r.map(function(e){return i.createElement(yr.TabPanel,{key:e.lang},i.createElement(xa,{lang:e.lang,source:e.source}))})))||null},n.contextType=ne,n=r.__decorate([xo.observer],n)}(i.Component),za=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.title,t=e.type,r=e.empty,o=e.code,a=e.opened,s=e.className,l=e.onClick;return i.createElement("div",{className:s,onClick:!r&&l||void 0},!r&&i.createElement(Jt,{size:"1.5em",color:t,direction:a?"up":"down",float:"left"}),i.createElement("strong",null,o," "),i.createElement(Ur,{compact:!0,inline:!0,source:n}))},n}(i.PureComponent),Ba=$(za)(ja||(ja=r.__makeTemplateObject(["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n\n ",";\n"],["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n\n ",";\n"])),function(e){return e.theme.colors.responses[e.type].color},function(e){return e.theme.colors.responses[e.type].backgroundColor},function(e){return e.empty?'\ncursor: default;\n&::before {\n content: "\u2014";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n}\n':""}),Ua=$.div(Ia||(Ia=r.__makeTemplateObject(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),$a=$(ut.withComponent("caption"))(Aa||(Aa=r.__makeTemplateObject(["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"],["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"]))),Va=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.headers;return void 0===e||0===e.length?null:i.createElement(sr,null,i.createElement($a,null," Response Headers "),i.createElement("tbody",null,h(e,function(e,n){return i.createElement(zi,{isLast:n,key:e.name,field:e,showExamples:!0})})))},n}(i.PureComponent),Qa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderDropdown=function(e){return i.createElement(ut,{key:"header"},"Response Schema: ",i.createElement(Zo,r.__assign({},e)))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.response,n=e.description,t=e.headers,r=e.content;return i.createElement(i.Fragment,null,n&&i.createElement(Ur,{source:n}),i.createElement(Va,{headers:t}),i.createElement(Ui,{content:r,renderDropdown:this.renderDropdown},function(e){var n=e.schema;return i.createElement(Fi,{skipWriteOnly:!0,key:"schema",schema:n})}))},n}(i.PureComponent),Wa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggle=function(){n.props.response.toggle()},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.response,n=e.headers,t=e.type,r=e.summary,o=e.description,a=e.code,s=e.expanded,l=e.content,c=void 0===l?[]:l.mediaTypes.filter(function(e){return void 0!==e.schema}),u=0===n.length&&0===c.length&&!o;return i.createElement("div",null,i.createElement(Ba,{onClick:this.toggle,type:t,empty:u,title:r||"",code:a,opened:s}),s&&!u&&i.createElement(Ua,null,i.createElement(Qa,{response:this.props.response})))},n=r.__decorate([xo.observer],n)}(i.Component),Ya=$.h3(Ca||(Ca=r.__makeTemplateObject(["\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: #253137;\n font-weight: normal;\n"],["\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: #253137;\n font-weight: normal;\n"]))),Ha=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.responses;return e&&0!==e.length?i.createElement("div",null,i.createElement(Ya,null," Responses "),e.map(function(e){return i.createElement(Wa,{key:e.code,response:e})})):null},n}(i.PureComponent),Ga=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.operation.responses.filter(function(e){return e.content&&e.content.hasSample});return e.length>0&&i.createElement("div",null,i.createElement(ct,null," Response samples "),i.createElement(br,{defaultIndex:0},i.createElement(yr.TabList,null,e.map(function(e){return i.createElement(yr.Tab,{className:"tab-"+e.type,key:e.code},e.code)})),e.map(function(e){return i.createElement(yr.TabPanel,{key:e.code},i.createElement("div",null,i.createElement(Da,{content:e.content})))})))||null},n=r.__decorate([xo.observer],n)}(i.Component),Ka=$(ot)(Pa||(Pa=r.__makeTemplateObject(["\n backface-visibility: hidden;\n contain: content;\n\n overflow: hidden;\n"],["\n backface-visibility: hidden;\n contain: content;\n\n overflow: hidden;\n"]))),Ja=$.div(Ra||(Ra=r.__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),function(e){return 6*e.theme.spacing.unit}),Xa=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.operation,n=e.name,t=e.description,r=e.deprecated,o=e.externalDocs,a=!(!t&&!o);return i.createElement(ne.Consumer,null,function(s){return i.createElement(Ka,null,i.createElement(et,null,i.createElement(lt,null,i.createElement(xt,{to:e.id}),n," ",r&&i.createElement(Xt,{type:"warning"}," Deprecated ")),s.pathInMiddlePanel&&i.createElement(Xo,{operation:e,inverted:!0}),a&&i.createElement(Ja,null,void 0!==t&&i.createElement(Ur,{source:t}),o&&i.createElement(ko,{externalDocs:o})),i.createElement(Ii,{extensions:e.extensions}),i.createElement($o,{securities:e.security}),i.createElement(Vi,{parameters:e.parameters,body:e.requestBody}),i.createElement(Ha,{responses:e.responses})),i.createElement(rt,null,!s.pathInMiddlePanel&&i.createElement(Xo,{operation:e}),i.createElement(Fa,{operation:e}),i.createElement(Ga,{operation:e})))})},n=r.__decorate([xo.observer],n)}(i.Component),Za=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.items;return 0===e.length?null:e.map(function(e){return i.createElement(es,{item:e,key:e.id})})},n=r.__decorate([xo.observer],n)}(i.Component),es=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e,n=this.props.item;switch(n.type){case"group":e=null;break;case"tag":case"section":e=i.createElement(ts,r.__assign({},this.props));break;case"operation":e=i.createElement(rs,{item:n});break;default:e=i.createElement(ts,r.__assign({},this.props))}return i.createElement(i.Fragment,null,e&&i.createElement(nt,{id:n.id,underlined:"operation"===n.type},e),n.items&&i.createElement(Za,{items:n.items}))},n=r.__decorate([xo.observer],n)}(i.Component),ns=function(e){return i.createElement(et,null,e)},ts=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.item,n=e.name,t=e.description,r=e.externalDocs,o=2===e.level?lt:st;return i.createElement(i.Fragment,null,i.createElement(ot,null,i.createElement(et,null,i.createElement(o,null,i.createElement(xt,{to:this.props.item.id}),n))),i.createElement(qo,{source:t||"",htmlWrap:ns}),r&&i.createElement(ot,null,i.createElement(et,null,i.createElement(ko,{externalDocs:r}))))},n=r.__decorate([xo.observer],n)}(i.Component),rs=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return i.createElement(Xa,{operation:this.props.item})},n=r.__decorate([xo.observer],n)}(i.Component),os=t(41),is=$.span.attrs(function(e){return{className:"operation-type "+e.type}})(ss||(ss=r.__makeTemplateObject(["\n width: 32px;\n display: inline-block;\n height: ",";\n line-height: ",";\n background-color: #333;\n border-radius: 3px;\n background-repeat: no-repeat;\n background-position: 6px 4px;\n font-size: 7px;\n font-family: Verdana; // web-safe\n color: white;\n text-transform: uppercase;\n text-align: center;\n font-weight: bold;\n vertical-align: middle;\n margin-right: 6px;\n margin-top: 2px;\n\n &.get {\n background-color: ",";\n }\n\n &.post {\n background-color: ",";\n }\n\n &.put {\n background-color: ",";\n }\n\n &.options {\n background-color: ",";\n }\n\n &.patch {\n background-color: ",";\n }\n\n &.delete {\n background-color: ",";\n }\n\n &.basic {\n background-color: ",";\n }\n\n &.link {\n background-color: ",";\n }\n\n &.head {\n background-color: ",";\n }\n"],["\n width: 32px;\n display: inline-block;\n height: ",";\n line-height: ",";\n background-color: #333;\n border-radius: 3px;\n background-repeat: no-repeat;\n background-position: 6px 4px;\n font-size: 7px;\n font-family: Verdana; // web-safe\n color: white;\n text-transform: uppercase;\n text-align: center;\n font-weight: bold;\n vertical-align: middle;\n margin-right: 6px;\n margin-top: 2px;\n\n &.get {\n background-color: ",";\n }\n\n &.post {\n background-color: ",";\n }\n\n &.put {\n background-color: ",";\n }\n\n &.options {\n background-color: ",";\n }\n\n &.patch {\n background-color: ",";\n }\n\n &.delete {\n background-color: ",";\n }\n\n &.basic {\n background-color: ",";\n }\n\n &.link {\n background-color: ",";\n }\n\n &.head {\n background-color: ",";\n }\n"])),function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.colors.http.get},function(e){return e.theme.colors.http.post},function(e){return e.theme.colors.http.put},function(e){return e.theme.colors.http.options},function(e){return e.theme.colors.http.patch},function(e){return e.theme.colors.http.delete},function(e){return e.theme.colors.http.basic},function(e){return e.theme.colors.http.link},function(e){return e.theme.colors.http.head});function as(e,n){var t=n.theme;return e>1?Object(a.darken)(.1,t.menu.backgroundColor):1===e?Object(a.darken)(.05,t.menu.backgroundColor):""}var ss,ls,cs,us,ps,ds,fs,hs,ms,gs,ys,bs=$.ul(ls||(ls=r.__makeTemplateObject(["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"],["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"])),function(e){return e.expanded?"":"display: none;"}),vs=$.li(cs||(cs=r.__makeTemplateObject(["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"],["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"])),function(e){return 0===e.depth?"margin-top: 15px":""}),_s={0:D(us||(us=r.__makeTemplateObject(["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "],["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "])),function(e){return e.theme.menu.groupItems.textTransform},function(e){return e.theme.menu.textColor}),1:D(ps||(ps=r.__makeTemplateObject(["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "],["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "])),function(e){return e.theme.menu.level1Items.textTransform},function(e){return e.theme.colors.primary.main}),2:D(ds||(ds=r.__makeTemplateObject(["\n color: ",";\n "],["\n color: ",";\n "])),function(e){return e.theme.menu.textColor})},xs=$.label.attrs(function(e){return{role:"menuitem",className:os("-depth"+e.depth,{active:e.active})}})(fs||(fs=r.__makeTemplateObject(["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),function(e){return e.active?e.theme.colors.primary.main:e.theme.menu.textColor},function(e){return 4*e.theme.spacing.unit},function(e){var n=e.depth,t=e.type,r=e.theme;return"section"===t&&n>1&&"padding-left: "+8*r.spacing.unit+"px;"||""},function(e){return e.theme.typography.headings.fontFamily},function(e){return _s[e.depth]},function(e){return e.active?as(e.depth,e):""},function(e){return e.deprecated&&Zt||""},function(e){return as(e.depth,e)},Jt,function(e){return e.theme.menu.arrow.size},function(e){return e.theme.menu.arrow.size},function(e){return e.theme.menu.arrow.color}),ws=$.span(hs||(hs=r.__makeTemplateObject(["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"])),function(e){return e.width?e.width:"auto"}),ks=$.div(ms||(ms=r.__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),function(e){var n=e.theme;return"\n font-size: 0.8em;\n margin-top: "+2*n.spacing.unit+"px;\n padding: 0 "+4*n.spacing.unit+"px;\n text-align: left;\n\n opacity: 0.7;\n\n a,\n a:visited,\n a:hover {\n color: "+n.menu.textColor+" !important;\n border-top: 1px solid "+Object(a.darken)(.1,n.menu.backgroundColor)+";\n padding: "+n.spacing.unit+"px 0;\n display: block;\n }\n"}),Os=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.activate=function(e){var t=n.props.item.active;n.props.onActivate(t?void 0:n.props.item),e.stopPropagation()},n.saveRef=function(e){n.ref=e},n}return r.__extends(n,e),n.prototype.componentDidMount=function(){this.scrollIntoViewIfActive()},n.prototype.componentDidUpdate=function(){this.scrollIntoViewIfActive()},n.prototype.scrollIntoViewIfActive=function(){this.props.item.active&&this.ref&&this.ref.scrollIntoViewIfNeeded()},n.prototype.render=function(){var e=this.props,n=e.item,t=e.withoutChildren;return i.createElement(vs,{onClick:this.activate,depth:n.depth,ref:this.saveRef,"data-item-id":n.id},"operation"===n.type?i.createElement(Es,r.__assign({},this.props,{item:n})):i.createElement(xs,{depth:n.depth,active:n.active,type:n.type},i.createElement(ws,{title:n.name},n.name,this.props.children),n.depth>0&&n.items.length>0&&i.createElement(Jt,{float:"right",direction:n.expanded?"down":"right"})||null),!t&&n.items&&n.items.length>0&&i.createElement(Ts,{expanded:n.expanded,items:n.items,onActivate:this.props.onActivate}))},n=r.__decorate([xo.observer],n)}(i.Component),Es=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.item;return i.createElement(xs,{depth:e.depth,active:e.active,deprecated:e.deprecated},i.createElement(is,{type:e.httpVerb},Fe(e.httpVerb)),i.createElement(ws,{width:"calc(100% - 38px)"},e.name,this.props.children))},n=r.__decorate([xo.observer],n)}(i.Component),Ts=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.items,o=n.root,a=n.className,s=null==this.props.expanded||this.props.expanded;return i.createElement(bs,r.__assign({className:a,style:this.props.style,expanded:s},o?{role:"navigation"}:{}),t.map(function(n,t){return i.createElement(Os,{key:t,item:n,onActivate:e.props.onActivate})}))},n=r.__decorate([xo.observer],n)}(i.Component),Ss=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.activate=function(e){n.props.menu.activateAndScroll(e,!0),setTimeout(function(){n._updateScroll&&n._updateScroll()})},n.saveScrollUpdate=function(e){n._updateScroll=e},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.menu;return i.createElement(Pr,{updateFn:this.saveScrollUpdate,className:this.props.className,options:{wheelPropagation:!1}},i.createElement(Ts,{items:e.items,onActivate:this.activate,root:!0}),i.createElement(ks,null,i.createElement("a",{target:"_blank",href:"https://github.com/Rebilly/ReDoc"},"Documentation Powered by ReDoc")))},n=r.__decorate([xo.observer],n)}(i.Component),js=function(e){var n=e.open?8:-4;return i.createElement(As,null,i.createElement(Is,{size:15,style:{transform:"translate(2px, "+n+"px) rotate(180deg)",transition:"transform 0.2s ease"}}),i.createElement(Is,{size:15,style:{transform:"translate(2px, "+(0-n)+"px)",transition:"transform 0.2s ease"}}))},Is=function(e){var n=e.size,t=void 0===n?10:n,r=e.className,o=void 0===r?"":r,a=e.style;return i.createElement("svg",{className:o,style:a||{},viewBox:"0 0 926.23699 573.74994",version:"1.1",x:"0px",y:"0px",width:t,height:t},i.createElement("g",{transform:"translate(904.92214,-879.1482)"},i.createElement("path",{d:"\n m -673.67664,1221.6502 -231.2455,-231.24803 55.6165,\n -55.627 c 30.5891,-30.59485 56.1806,-55.627 56.8701,-55.627 0.6894,\n 0 79.8637,78.60862 175.9427,174.68583 l 174.6892,174.6858 174.6892,\n -174.6858 c 96.079,-96.07721 175.253196,-174.68583 175.942696,\n -174.68583 0.6895,0 26.281,25.03215 56.8701,\n 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864\n -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,\n -104.0616 -231.873,-231.248 z\n ",fill:"currentColor"})))},As=$.div(gs||(gs=r.__makeTemplateObject(["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"],["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"])),function(e){return e.theme.colors.primary.main});l&&(ys=t(79));var Cs,Ps,Rs,qs,Ls,Ms,Ns,Ds,Fs,zs,Bs,Us,$s,Vs,Qs=ys&&ys(),Ws=$.div(Ps||(Ps=r.__makeTemplateObject(["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n contain: strict;\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"],["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n contain: strict;\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"])),function(e){return e.theme.menu.width},function(e){return e.theme.menu.backgroundColor},U.lessThan("small")(Cs||(Cs=r.__makeTemplateObject(["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: #ffffff;\n display: ",";\n "],["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: #ffffff;\n display: ",";\n "])),function(e){return e.open?"flex":"none"})),Ys=$.div(qs||(qs=r.__makeTemplateObject(["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"],["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"])),function(e){return e.theme.colors.primary.main},U.lessThan("small")(Rs||(Rs=r.__makeTemplateObject(["\n display: flex;\n "],["\n display: flex;\n "])))),Hs=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggleNavMenu=function(){n.props.menu.toggleSidebar()},n}return r.__extends(n,e),n.prototype.componentDidMount=function(){Qs&&Qs.add(this.stickyElement)},n.prototype.componentWillUnmount=function(){Qs&&Qs.remove(this.stickyElement)},n.prototype.getScrollYOffset=function(e){return(void 0!==this.props.scrollYOffset?L.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset())+"px"},n.prototype.render=function(){var e=this,n=this.props.menu.sideBarOpened,t=function(n){var t=e.getScrollYOffset(n);return{top:t,height:"calc(100vh - "+t+")"}};return i.createElement(ne.Consumer,null,function(r){return i.createElement(i.Fragment,null,i.createElement(Ws,{open:n,className:e.props.className,style:t(r),ref:function(n){e.stickyElement=n}},e.props.children),i.createElement(Ys,{onClick:e.toggleNavMenu},i.createElement(js,{open:n})))})},n=r.__decorate([xo.observer],n)}(i.Component),Gs=$.div(Ls||(Ls=r.__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),function(e){var n=e.theme;return"\n font-family: "+n.typography.fontFamily+";\n font-size: "+n.typography.fontSize+";\n font-weight: "+n.typography.fontWeightRegular+";\n line-height: "+n.typography.lineHeight+";\n color: "+n.colors.text.primary+";\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: "+n.typography.smoothing+";\n font-smoothing: "+n.typography.smoothing+";\n "+(n.typography.optimizeSpeed?"text-rendering: optimizeSpeed !important":"")+";\n\n tap-highlight-color: rgba(0, 0, 0, 0);\n text-size-adjust: 100%;\n\n * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n }\n"}),Ks=$.div(Ns||(Ns=r.__makeTemplateObject(["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"],["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"])),function(e){return e.theme.menu.width},U.lessThan("small",!0)(Ms||(Ms=r.__makeTemplateObject(["\n width: 100%;\n "],["\n width: 100%;\n "])))),Js=$.div(Fs||(Fs=r.__makeTemplateObject(["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"],["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"])),function(e){return e.theme.rightPanel.backgroundColor},function(e){var n=e.theme;if(n.rightPanel.width.endsWith("%")){var t=parseInt(n.rightPanel.width,10);return"calc((100% - "+n.menu.width+") * "+t/100+")"}return n.rightPanel.width},U.lessThan("medium",!0)(Ds||(Ds=r.__makeTemplateObject(["\n display: none;\n "],["\n display: none;\n "])))),Xs=$.div(zs||(zs=r.__makeTemplateObject(["\n padding: 5px 0;\n"],["\n padding: 5px 0;\n"]))),Zs=$.input.attrs(function(){return{className:"search-input"}})(Bs||(Bs=r.__makeTemplateObject(["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"],["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"])),function(e){return 8*e.theme.spacing.unit},function(e){return 4*e.theme.spacing.unit},function(e){return 2*e.theme.spacing.unit},function(e){return 4*e.theme.spacing.unit},function(e){var n=e.theme;return Object(a.darken)(.1,n.menu.backgroundColor)},function(e){return e.theme.typography.fontFamily},function(e){return e.theme.menu.textColor}),el=$(function(e){return i.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},i.createElement("path",{d:"M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z"}))}).attrs({className:"search-icon"})(Us||(Us=r.__makeTemplateObject(["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"],["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"])),function(e){return 4*e.theme.spacing.unit},function(e){return e.theme.menu.textColor}),nl=$.div($s||($s=r.__makeTemplateObject(["\n padding: ","px 0;\n background-color: #ededed;\n min-height: 150px;\n max-height: 250px;\n border-top: 1px solid #e1e1e1;\n border-bottom: 1px solid #e1e1e1;\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover {\n background-color: #e1e1e1;\n }\n\n > svg {\n display: none;\n }\n\n &.active {\n background-color: #e1e1e1;\n }\n }\n"],["\n padding: ","px 0;\n background-color: #ededed;\n min-height: 150px;\n max-height: 250px;\n border-top: 1px solid #e1e1e1;\n border-bottom: 1px solid #e1e1e1;\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover {\n background-color: #e1e1e1;\n }\n\n > svg {\n display: none;\n }\n\n &.active {\n background-color: #e1e1e1;\n }\n }\n"])),function(e){return e.theme.spacing.unit},xs),tl=$.i(Vs||(Vs=r.__makeTemplateObject(["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"],["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"])),function(e){return 2*e.theme.spacing.unit},function(e){return 4*e.theme.spacing.unit}),rl=function(e){function n(n){var t=e.call(this,n)||this;return t.activeItemRef=null,t.clear=function(){t.setState({results:[],term:"",activeItemIdx:-1}),t.props.marker.unmark()},t.handleKeyDown=function(e){if(27===e.keyCode&&t.clear(),40===e.keyCode&&(t.setState({activeItemIdx:Math.min(t.state.activeItemIdx+1,t.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(t.setState({activeItemIdx:Math.max(0,t.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){var n=t.state.results[t.state.activeItemIdx];if(n){var r=t.props.getItemById(n.meta);r&&t.props.onActivate(r)}}},t.search=function(e){var n=e.target.value;n.length<3?t.clearResults(n):(t.setState({term:n}),t.props.search.search(e.target.value).then(function(e){t.setResults(e,n)}))},t.state={results:[],term:"",activeItemIdx:-1},t}return r.__extends(n,e),n.prototype.clearResults=function(e){this.setState({results:[],term:e}),this.props.marker.unmark()},n.prototype.setResults=function(e,n){this.setState({results:e,term:n}),this.props.marker.mark(n)},n.prototype.render=function(){var e=this,n=this.state.activeItemIdx,t=this.state.results.map(function(n){return{item:e.props.getItemById(n.meta),score:n.score}});return t.sort(function(e,n){return n.score-e.score}),i.createElement(Xs,{role:"search"},this.state.term&&i.createElement(tl,{onClick:this.clear},"\xd7"),i.createElement(el,null),i.createElement(Zs,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...",type:"text",onChange:this.search}),t.length>0&&i.createElement(Pr,{options:{wheelPropagation:!1}},i.createElement(nl,{"data-role":"search:results"},t.map(function(t,r){return i.createElement(Os,{item:Object.create(t.item,{active:{value:r===n}}),onActivate:e.props.onActivate,withoutChildren:!0,key:t.item.id,"data-role":"search:result"})}))))},n}(i.PureComponent),ol=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.componentDidMount=function(){this.props.store.onDidMount()},n.prototype.componentWillUnmount=function(){this.props.store.dispose()},n.prototype.render=function(){var e=this.props.store,n=e.spec,t=e.menu,r=e.options,o=e.search,a=e.marker,s=this.props.store;return i.createElement(B,{theme:r.theme},i.createElement(ht,{value:this.props.store},i.createElement(te,{value:r},i.createElement(Gs,{className:"redoc-wrap"},i.createElement(Hs,{menu:t,className:"menu-content"},i.createElement(Ro,{info:n.info}),!r.disableSearch&&i.createElement(rl,{search:o,marker:a,getItemById:t.getItemById,onActivate:t.activateAndScroll})||null,i.createElement(Ss,{menu:t})),i.createElement(Ks,{className:"api-content"},i.createElement(Io,{store:s}),i.createElement(Za,{items:t.items})),i.createElement(Js,null)))))},n.propTypes={store:o.instanceOf(yo).isRequired},n}(i.Component),il=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.spec,t=e.specUrl,r=e.options,o=void 0===r?{}:r,a=e.onLoaded,s=void 0!==o.hideLoading,l=new L(o);return i.createElement(K,null,i.createElement(gt,{spec:n,specUrl:t,options:o,onLoaded:a},function(e){var n=e.loading,t=e.store;return n?s?null:i.createElement(ee,{color:l.theme.colors.primary.main}):i.createElement(ol,{store:t})}))},n.propTypes={spec:function(e,n,t){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+t+"'.")},specUrl:function(e,n,t){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+t+"'.")},options:o.any,onLoaded:o.any},n}(i.PureComponent);t.d(n,"ApiContentWrap",function(){return Ks}),t.d(n,"BackgroundStub",function(){return Js}),t.d(n,"RedocWrap",function(){return Gs}),t.d(n,"StyledMarkdownBlock",function(){return Nr}),t.d(n,"RedocStandalone",function(){return il}),t.d(n,"Redoc",function(){return ol}),t.d(n,"ApiInfo",function(){return Io}),t.d(n,"ApiLogo",function(){return Ro}),t.d(n,"ContentItems",function(){return Za}),t.d(n,"ContentItem",function(){return es}),t.d(n,"SectionItem",function(){return ts}),t.d(n,"OperationItem",function(){return rs}),t.d(n,"SearchBox",function(){return rl}),t.d(n,"Operation",function(){return Xa}),t.d(n,"Loading",function(){return ee}),t.d(n,"Markdown",function(){return Ur}),t.d(n,"OAuthFlow",function(){return Vr}),t.d(n,"SecurityDefs",function(){return Qr}),t.d(n,"ResponseView",function(){return Wa}),t.d(n,"ResponseDetails",function(){return Qa}),t.d(n,"ResponseHeaders",function(){return Va}),t.d(n,"ResponsesList",function(){return Ha}),t.d(n,"ResponseTitle",function(){return za}),t.d(n,"ResponseSamples",function(){return Ga}),t.d(n,"PayloadSamples",function(){return Da}),t.d(n,"MediaTypesSwitch",function(){return Ui}),t.d(n,"ErrorBoundary",function(){return K}),t.d(n,"StoreProvider",function(){return ht}),t.d(n,"StoreConsumer",function(){return mt}),t.d(n,"StoreBuilder",function(){return gt}),t.d(n,"OptionsContext",function(){return ne}),t.d(n,"OptionsProvider",function(){return te}),t.d(n,"OptionsConsumer",function(){return re}),t.d(n,"StickyResponsiveSidebar",function(){return Hs}),t.d(n,"Schema",function(){return Fi}),t.d(n,"ObjectSchema",function(){return Mi}),t.d(n,"OneOfButton",function(){return Ni}),t.d(n,"OneOfSchema",function(){return Di}),t.d(n,"ArraySchema",function(){return qi}),t.d(n,"DiscriminatorDropdown",function(){return Li}),t.d(n,"JsonViewer",function(){return va}),t.d(n,"MenuItem",function(){return Os}),t.d(n,"MenuItems",function(){return Ts}),t.d(n,"SideMenu",function(){return Ss}),t.d(n,"OperationBadge",function(){return is}),t.d(n,"MenuItemUl",function(){return bs}),t.d(n,"MenuItemLi",function(){return vs}),t.d(n,"menuItemDepth",function(){return _s}),t.d(n,"MenuItemLabel",function(){return xs}),t.d(n,"MenuItemTitle",function(){return ws}),t.d(n,"RedocAttribution",function(){return ks}),t.d(n,"MiddlePanel",function(){return et}),t.d(n,"Row",function(){return ot}),t.d(n,"RightPanel",function(){return tt}),t.d(n,"Section",function(){return nt}),t.d(n,"createStore",function(){return Wr}),t.d(n,"AppStore",function(){return yo}),t.d(n,"OpenAPIParser",function(){return gn}),t.d(n,"LEGACY_REGEXP",function(){return an}),t.d(n,"MDX_COMPONENT_REGEXP",function(){return sn}),t.d(n,"COMPONENT_REGEXP",function(){return ln}),t.d(n,"buildComponentComment",function(){return cn}),t.d(n,"MarkdownRenderer",function(){return un}),t.d(n,"SECTION_ATTR",function(){return Rn}),t.d(n,"MenuStore",function(){return qn}),t.d(n,"ScrollService",function(){return Ln}),t.d(n,"SpecStore",function(){return yn}),t.d(n,"ClipboardService",function(){return _o}),t.d(n,"HistoryService",function(){return Ze}),t.d(n,"history",function(){return en}),t.d(n,"ApiInfoModel",function(){return dn}),t.d(n,"SecuritySchemeModel",function(){return fn}),t.d(n,"SecuritySchemesModel",function(){return hn}),t.d(n,"RedocNormalizedOptions",function(){return L}),t.d(n,"GROUP_DEPTH",function(){return 0}),t.d(n,"MenuBuilder",function(){return Pn}),t.d(n,"SearchStore",function(){return Zn}),t.d(n,"MarkerService",function(){return tn}),t.d(n,"GroupModel",function(){return bn}),t.d(n,"OperationModel",function(){return Cn}),t.d(n,"RequestBodyModel",function(){return In}),t.d(n,"ExampleModel",function(){return Tn}),t.d(n,"MediaContentModel",function(){return jn}),t.d(n,"MediaTypeModel",function(){return Sn}),t.d(n,"ResponseModel",function(){return An}),t.d(n,"SchemaModel",function(){return _n}),t.d(n,"FieldModel",function(){return kn}),t.d(n,"JsonPointer",function(){return fe}),t.d(n,"isStatusCode",function(){return ge}),t.d(n,"getStatusCodeType",function(){return ye}),t.d(n,"isOperationName",function(){return ve}),t.d(n,"getOperationSummary",function(){return _e}),t.d(n,"detectType",function(){return we}),t.d(n,"isPrimitiveType",function(){return ke}),t.d(n,"isJsonLike",function(){return Oe}),t.d(n,"isFormUrlEncoded",function(){return Ee}),t.d(n,"urlFormEncodePayload",function(){return Se}),t.d(n,"langFromMime",function(){return je}),t.d(n,"isNamedDefinition",function(){return Ie}),t.d(n,"humanizeConstraints",function(){return Ce}),t.d(n,"sortByRequired",function(){return Pe}),t.d(n,"sortByField",function(){return Re}),t.d(n,"mergeParams",function(){return qe}),t.d(n,"mergeSimilarMediaTypes",function(){return Le}),t.d(n,"normalizeServers",function(){return Me}),t.d(n,"SECURITY_DEFINITIONS_COMPONENT_NAME",function(){return"security-definitions"}),t.d(n,"SECURITY_SCHEMES_SECTION_PREFIX",function(){return Ne}),t.d(n,"setSecuritySchemePrefix",function(){return De}),t.d(n,"shortenHTTPVerb",function(){return Fe}),t.d(n,"isRedocExtension",function(){return ze}),t.d(n,"extractExtensions",function(){return Be}),t.d(n,"pluralizeType",function(){return Ue}),t.d(n,"mapWithLast",function(){return h}),t.d(n,"mapValues",function(){return m}),t.d(n,"flattenByProp",function(){return g}),t.d(n,"stripTrailingSlash",function(){return y}),t.d(n,"isNumeric",function(){return b}),t.d(n,"appendToMdHeading",function(){return v}),t.d(n,"mergeObjects",function(){return _}),t.d(n,"safeSlugify",function(){return w}),t.d(n,"isAbsoluteUrl",function(){return k}),t.d(n,"resolveUrl",function(){return O}),t.d(n,"getBasePath",function(){return E}),t.d(n,"titleize",function(){return T}),t.d(n,"removeQueryString",function(){return S}),t.d(n,"mapLang",function(){return Qe}),t.d(n,"highlight",function(){return We}),t.d(n,"loadAndBundleSpec",function(){return se}),t.d(n,"convertSwagger2OpenAPI",function(){return le}),t.d(n,"IS_BROWSER",function(){return l}),t.d(n,"querySelector",function(){return c}),t.d(n,"html2Str",function(){return u}),t.d(n,"Throttle",function(){return Ye}),t.d(n,"debugTime",function(){return He}),t.d(n,"debugTimeEnd",function(){return Ge}),t.d(n,"memoize",function(){return Je}),t.d(n,"media",function(){return U}),t.d(n,"css",function(){return D}),t.d(n,"createGlobalStyle",function(){return F}),t.d(n,"keyframes",function(){return z}),t.d(n,"ThemeProvider",function(){return B}),t.d(n,"extensionsHook",function(){return V}),t.d(n,"styled",function(){return $})}])},e.exports=r()}},[[155,1,2]]]); +(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{155:function(e,n,t){e.exports=t(301)},160:function(e,n,t){},181:function(e,n){},183:function(e,n){},220:function(e,n){},301:function(e,n,t){"use strict";t.r(n);var r=t(0),o=t.n(r),i=t(6),a=t.n(i),s=(t(160),t(145)),l=t(16),c=t(66),u=t(32),p=t(77),d=t(67),f=t(76),h=t(133),m=t(134),g=t(93),y=t(330),b=t(329),v=t(331),_=t(79),x=t(326),w=t(305),k=t(327),O=t(332),E=t(328),T=t(333),S=t(8),j=t(142),I=t.n(j),A=t(148),C=Object(T.a)({root:{width:"100%",maxWidth:360},selectText:{flex:"0 1 auto"},icon:{fontSize:32}}),P=function(e){function n(){return Object(c.a)(this,n),Object(p.a)(this,Object(d.a)(n).apply(this,arguments))}return Object(f.a)(n,e),Object(u.a)(n,[{key:"componentWillMount",value:function(){this.setState({anchorEl:null})}},{key:"handleClickListItem",value:function(e){this.setState({anchorEl:e.currentTarget})}},{key:"handleMenuItemClick",value:function(e,n){this.props.history.push("/doc/".concat(n.id)),this.setState({anchorEl:null})}},{key:"handleClose",value:function(){this.setState({anchorEl:null})}},{key:"render",value:function(){var e=this,n=this.state.anchorEl,t=this.props,r=t.docs,i=t.doc,a=t.classes;return o.a.createElement("div",{className:a.root},o.a.createElement(x.a,{component:"nav","aria-label":"Selected documentation"},o.a.createElement(w.a,{button:!0,"aria-haspopup":"true","aria-controls":"lock-menu","aria-label":"Selected documentation",onClick:this.handleClickListItem.bind(this)},o.a.createElement(k.a,{primary:i?i.title:"Select documentation",className:a.selectText}),o.a.createElement(I.a,{className:a.icon}))),o.a.createElement(O.a,{id:"lock-menu",anchorEl:n,keepMounted:!0,open:Boolean(n),onClose:this.handleClose.bind(this)},r.map(function(n,t){return o.a.createElement(E.a,{key:t,selected:n===i,onClick:function(t){return e.handleMenuItemClick(t,n)}},n.title)})))}}]),n}(r.Component),R=Object(A.a)(Object(S.a)(C),l.f)(P),q=Object(b.a)(function(e){return{root:{flexGrow:1},title:{marginRight:e.spacing(2)},toolbar:{boxShadow:"none"}}}),L=function(e){var n=e.docs,t=e.doc,r=q();return o.a.createElement("div",{className:r.root},o.a.createElement(y.a,{className:r.toolbar,position:"fixed"},o.a.createElement(v.a,null,o.a.createElement(_.a,{variant:"h6",className:r.title},"Openprovider documentation"),o.a.createElement(R,{docs:n,doc:t}))))};function M(){var e=Object(m.a)(["\n padding-top: 64px;\n"]);return M=function(){return e},e}var N={untrustedSpec:!0,noAutoAuth:!0,scrollYOffset:function(){var e=document.querySelector(".MuiAppBar-root");return e?e.getBoundingClientRect().bottom:164},theme:{headerSize:64,spacing:{unit:5,sectionHorizontal:40,sectionVertical:10},extensionsHook:function(e,n){switch(e){case"H1":return"\n margin: 10px 0 0 0;\n ";case"H2":return"\n margin: 8px 0;\n ";default:return}}}},D=g.styled.div(M()),F=function(e){var n=e.doc,t=e.docs;Object(h.a)(e,["doc","docs"]);return o.a.createElement(o.a.Fragment,null,o.a.createElement(L,{doc:n,docs:t}),o.a.createElement(D,null,n&&o.a.createElement(g.RedocStandalone,{specUrl:n.path,options:N})))},z=function(e){function n(){return Object(c.a)(this,n),Object(p.a)(this,Object(d.a)(n).apply(this,arguments))}return Object(f.a)(n,e),Object(u.a)(n,[{key:"componentWillMount",value:function(){this.setState({docs:[]})}},{key:"componentDidMount",value:function(){var e=this;fetch("/map.json").then(function(e){return e.json()}).then(function(n){return e.setState({docs:n})}).catch(function(){throw new Error("REACT_APP_API_JSON is invalid.")})}},{key:"render",value:function(){var e=this.props.match,n=this.state.docs;return o.a.createElement(o.a.Fragment,null,o.a.createElement(l.b,{path:e.path,exact:!0,render:function(){var t=n&&n.length?n[0]:null;return t?o.a.createElement(l.a,{to:"".concat(e.url,"/").concat(t.id)}):o.a.createElement(o.a.Fragment,null)}}),o.a.createElement(l.b,{path:"".concat(e.path,"/:id"),render:function(e){var t=e.match.params,r=n.find(function(e){return e.id===t.id})||null;return o.a.createElement(F,{doc:r,docs:n})}}))}}]),n}(r.Component);a.a.render(o.a.createElement(function(){return o.a.createElement(s.a,null,o.a.createElement(l.b,{path:"/",exact:!0,render:function(){return o.a.createElement(l.a,{to:"/doc"})}}),o.a.createElement(l.b,{path:"/doc",component:z}))},null),document.getElementById("root"))},93:function(e,n,t){var r;r=function(){return function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="",t(t.s=80)}([function(e,n){e.exports=t(0)},function(e,n){e.exports=t(161)},function(e,n){e.exports=t(162)},function(e,n){e.exports=t(300)},function(e,n){e.exports=t(14)},function(e,n){e.exports=t(44)},function(e,n){e.exports=t(169)},function(e,n){e.exports=t(171)},function(e,n){e.exports=t(299)},function(e,n){e.exports=t(174)},function(e,n){e.exports=void 0},function(e,n){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch(r){"object"===typeof window&&(t=window)}e.exports=t},function(e,n){e.exports=t(4)},function(e,n){e.exports=t(175)},function(e,n){e.exports=t(176)},function(e,n){var t,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(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,c=[],u=!1,p=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):p=-1,c.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var n=c.length;n;){for(l=c,c=[];++p1)for(var t=1;t=0){var o=n.split("#");if(o[0])return!1;n=o[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));for(var i=n.split("/"),a=0;a0?i[a-1]:"",-1!=l||e.hasOwnProperty(i[a]))if(l>=0)s&&(e[l]=t),e=e[l];else{if(-2===l)return s?(Array.isArray(e)&&e.push(t),t):void 0;s&&(e[i[a]]=t),e=e[i[a]]}else{if("undefined"===typeof t||"object"!==typeof e||Array.isArray(e))return!1;e[i[a]]=s?t:"0"===i[a+1]||"-"===i[a+1]?[]:{},e=e[i[a]]}}return e},jpescape:function(e){return e=(e=e.split("~").join("~0")).split("/").join("~1")},jpunescape:r}},function(e,n,t){"use strict";e.exports={nop:function(e){return e},clone:function(e){return JSON.parse(JSON.stringify(e))},shallowClone:function(e){var n={};for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},deepClone:function e(n){var t=Array.isArray(n)?[]:{};for(var r in n)(n.hasOwnProperty(r)||Array.isArray(n))&&(t[r]="object"===typeof n[r]?e(n[r]):n[r]);return t},fastClone:function(e){return Object.assign({},e)},circularClone:function e(n,t){if(t||(t=new WeakMap),Object(n)!==n||n instanceof Function)return n;if(t.has(n))return t.get(n);try{var r=new n.constructor}catch(o){r=Object.create(Object.getPrototypeOf(n))}return t.set(n,r),Object.assign.apply(Object,[r].concat(Object.keys(n).map(function(r){var o;return(o={})[r]=e(n[r],t),o})))}}},function(e,n,t){(function(e){function t(e,n){for(var t=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),t++):t&&(e.splice(r,1),t--)}if(n)for(;t--;t)e.unshift("..");return e}function r(e,n){if(e.filter)return e.filter(n);for(var t=[],r=0;r=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,o="/"===a.charAt(0))}return(o?"/":"")+(n=t(r(n.split("/"),function(e){return!!e}),!o).join("/"))||"."},n.normalize=function(e){var i=n.isAbsolute(e),a="/"===o(e,-1);return(e=t(r(e.split("/"),function(e){return!!e}),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(r(e,function(e,n){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},n.relative=function(e,t){function r(e){for(var n=0;n=0&&""===e[t];t--);return n>t?[]:e.slice(n,t-n+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,l=0;l=1;--i)if(47===(n=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?t?"/":".":t&&1===r?"/":e.slice(0,r)},n.basename=function(e,n){var t=function(e){"string"!==typeof e&&(e+="");var n,t=0,r=-1,o=!0;for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!o){t=n+1;break}}else-1===r&&(o=!1,r=n+1);return-1===r?"":e.slice(t,r)}(e);return n&&t.substr(-1*n.length)===n&&(t=t.substr(0,t.length-n.length)),t},n.extname=function(e){"string"!==typeof e&&(e+="");for(var n=-1,t=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===n?n=a:1!==i&&(i=1):-1!==n&&(i=-1);else if(!o){t=a+1;break}}return-1===n||-1===r||0===i||1===i&&n===r-1&&n===t+1?"":e.slice(n,r)};var o="b"==="ab".substr(-1)?function(e,n,t){return e.substr(n,t)}:function(e,n,t){return n<0&&(n=e.length+n),e.substr(n,t)}}).call(this,t(15))},function(e,n){e.exports=t(177)},function(e,n,t){"use strict";e.exports={isRef:function(e,n){return"$ref"===n&&!!e&&"string"===typeof e[n]}}},function(e,n,t){"use strict";var r=t(16).jpescape;e.exports={recurse:function e(n,t,o){if(t||(t={depth:0}),t.depth||(t=Object.assign({},{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1},t)),"object"===typeof n){var i=t.path;for(var a in n){if(t.key=a,t.path=t.path+"/"+encodeURIComponent(r(a)),t.identityPath=t.seen.get(n[a]),t.identity="undefined"!==typeof t.identityPath,o(n,a,t),"object"===typeof n[a]&&!t.identity){t.identityDetection&&!Array.isArray(n[a])&&null!==n[a]&&t.seen.set(n[a],t.path);var s={};s.parent=n,s.path=t.path,s.depth=t.depth?t.depth+1:1,s.pkey=a,s.payload=t.payload,s.seen=t.seen,s.identity=!1,s.identityDetection=t.identityDetection,e(n[a],s,o)}t.path=i}}}}},function(e,n){e.exports=t(178)},function(e,n){e.exports=t(179)},function(e,n){e.exports=t(180)},function(e,n,t){(e.exports=t(78)(!1)).push([e.i,"/*\n * Container style\n */\n.ps {\n overflow: hidden !important;\n overflow-anchor: none;\n -ms-overflow-style: none;\n touch-action: auto;\n -ms-touch-action: auto;\n}\n\n/*\n * Scrollbar rail styles\n */\n.ps__rail-x {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n height: 15px;\n /* there must be 'bottom' or 'top' for ps__rail-x */\n bottom: 0px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-y {\n display: none;\n opacity: 0;\n transition: background-color .2s linear, opacity .2s linear;\n -webkit-transition: background-color .2s linear, opacity .2s linear;\n width: 15px;\n /* there must be 'right' or 'left' for ps__rail-y */\n right: 0;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps--active-x > .ps__rail-x,\n.ps--active-y > .ps__rail-y {\n display: block;\n background-color: transparent;\n}\n\n.ps:hover > .ps__rail-x,\n.ps:hover > .ps__rail-y,\n.ps--focus > .ps__rail-x,\n.ps--focus > .ps__rail-y,\n.ps--scrolling-x > .ps__rail-x,\n.ps--scrolling-y > .ps__rail-y {\n opacity: 0.6;\n}\n\n.ps .ps__rail-x:hover,\n.ps .ps__rail-y:hover,\n.ps .ps__rail-x:focus,\n.ps .ps__rail-y:focus,\n.ps .ps__rail-x.ps--clicking,\n.ps .ps__rail-y.ps--clicking {\n background-color: #eee;\n opacity: 0.9;\n}\n\n/*\n * Scrollbar thumb styles\n */\n.ps__thumb-x {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, height .2s ease-in-out;\n -webkit-transition: background-color .2s linear, height .2s ease-in-out;\n height: 6px;\n /* there must be 'bottom' for ps__thumb-x */\n bottom: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__thumb-y {\n background-color: #aaa;\n border-radius: 6px;\n transition: background-color .2s linear, width .2s ease-in-out;\n -webkit-transition: background-color .2s linear, width .2s ease-in-out;\n width: 6px;\n /* there must be 'right' for ps__thumb-y */\n right: 2px;\n /* please don't change 'position' */\n position: absolute;\n}\n\n.ps__rail-x:hover > .ps__thumb-x,\n.ps__rail-x:focus > .ps__thumb-x,\n.ps__rail-x.ps--clicking .ps__thumb-x {\n background-color: #999;\n height: 11px;\n}\n\n.ps__rail-y:hover > .ps__thumb-y,\n.ps__rail-y:focus > .ps__thumb-y,\n.ps__rail-y.ps--clicking .ps__thumb-y {\n background-color: #999;\n width: 11px;\n}\n\n/* MS supports */\n@supports (-ms-overflow-style: none) {\n .ps {\n overflow: auto !important;\n }\n}\n\n@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {\n .ps {\n overflow: auto !important;\n }\n}\n",""])},function(e,n){},function(e,n,t){"use strict";(function(n){var r=t(10),o=n.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1b[31m",yellow:"\x1b[33;1m",green:"\x1b[32m",normal:"\x1b[0m"};function i(e){for(var n=[],t=function(e){n.find(function(n,t,o){return function(e,n){function t(e,n){return r.stringify(e)===r.stringify(Object.assign({},e,n))}return t(e,n)&&t(n,e)}(n,e)})||n.push(e)},o=0,i=e;o=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,n){if(l.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 t=e.length;if(0===t)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return B(e).length;default:if(r)return z(e).length;n=(""+n).toLowerCase(),r=!0}}function m(e,n,t){var r=e[n];e[n]=e[t],e[t]=r}function g(e,n,t,r,o){if(0===e.length)return-1;if("string"===typeof t?(r=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=o?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(o)return-1;t=e.length-1}else if(t<0){if(!o)return-1;t=0}if("string"===typeof n&&(n=l.from(n,r)),l.isBuffer(n))return 0===n.length?-1:y(e,n,t,r,o);if("number"===typeof n)return n&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,n,t):Uint8Array.prototype.lastIndexOf.call(e,n,t):y(e,[n],t,r,o);throw new TypeError("val must be string, number or Buffer")}function y(e,n,t,r,o){var i,a=1,s=e.length,l=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||n.length<2)return-1;a=2,s/=2,l/=2,t/=2}function c(e,n){return 1===a?e[n]:e.readUInt16BE(n*a)}if(o){var u=-1;for(i=t;is&&(t=s-l),i=t;i>=0;i--){for(var p=!0,d=0;do&&(r=o):r=o;var i=n.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=t%256,i.push(o),i.push(r);return i}(n,e.length-t),e,t,r)}function O(e,n,t){return 0===n&&t===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(n,t))}function E(e,n,t){t=Math.min(e.length,t);for(var r=[],o=n;o239?4:c>223?3:c>191?2:1;if(o+p<=t)switch(p){case 1:c<128&&(u=c);break;case 2:128===(192&(i=e[o+1]))&&(l=(31&c)<<6|63&i)>127&&(u=l);break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(l=(15&c)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(u=l)}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 n=e.length;if(n<=T)return String.fromCharCode.apply(String,e);var t="",r=0;for(;rthis.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(n>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,n,t);case"utf8":case"utf-8":return E(this,n,t);case"ascii":return S(this,n,t);case"latin1":case"binary":return j(this,n,t);case"base64":return O(this,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,n,t);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",t=n.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},l.prototype.compare=function(e,n,t,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===n&&(n=0),void 0===t&&(t=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),n<0||t>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&n>=t)return 0;if(r>=o)return-1;if(n>=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(t>>>=0)-(n>>>=0),s=Math.min(i,a),c=this.slice(r,o),u=e.slice(n,t),p=0;po)&&(t=o),e.length>0&&(t<0||n<0)||n>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,n,t);case"utf8":case"utf-8":return v(this,e,n,t);case"ascii":return _(this,e,n,t);case"latin1":case"binary":return x(this,e,n,t);case"base64":return w(this,e,n,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,n,t);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function S(e,n,t){var r="";t=Math.min(e.length,t);for(var o=n;or)&&(t=r);for(var o="",i=n;it)throw new RangeError("Trying to access beyond buffer length")}function P(e,n,t,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(n>o||ne.length)throw new RangeError("Index out of range")}function R(e,n,t,r){n<0&&(n=65535+n+1);for(var o=0,i=Math.min(e.length-t,2);o>>8*(r?o:1-o)}function q(e,n,t,r){n<0&&(n=4294967295+n+1);for(var o=0,i=Math.min(e.length-t,4);o>>8*(r?o:3-o)&255}function L(e,n,t,r,o,i){if(t+r>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function M(e,n,t,r,i){return i||L(e,0,t,4),o.write(e,n,t,r,23,4),t+4}function N(e,n,t,r,i){return i||L(e,0,t,8),o.write(e,n,t,r,52,8),t+8}l.prototype.slice=function(e,n){var t,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(n=void 0===n?r:~~n)<0?(n+=r)<0&&(n=0):n>r&&(n=r),n0&&(o*=256);)r+=this[e+--n]*o;return r},l.prototype.readUInt8=function(e,n){return n||C(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,n){return n||C(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,n){return n||C(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,n){return n||C(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,n){return n||C(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,n,t){e|=0,n|=0,t||C(e,n,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*n)),r},l.prototype.readIntBE=function(e,n,t){e|=0,n|=0,t||C(e,n,this.length);for(var r=n,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*n)),i},l.prototype.readInt8=function(e,n){return n||C(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,n){n||C(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt16BE=function(e,n){n||C(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},l.prototype.readInt32LE=function(e,n){return n||C(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,n){return n||C(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,n){return n||C(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,n){return n||C(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,n){return n||C(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,n){return n||C(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,n,t,r){(e=+e,n|=0,t|=0,r)||P(this,e,n,t,Math.pow(2,8*t)-1,0);var o=1,i=0;for(this[n]=255&e;++i=0&&(i*=256);)this[n+o]=e/i&255;return n+t},l.prototype.writeUInt8=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=255&e,n+1},l.prototype.writeUInt16LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):R(this,e,n,!0),n+2},l.prototype.writeUInt16BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):R(this,e,n,!1),n+2},l.prototype.writeUInt32LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=255&e):q(this,e,n,!0),n+4},l.prototype.writeUInt32BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):q(this,e,n,!1),n+4},l.prototype.writeIntLE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);P(this,e,n,t,o-1,-o)}var i=0,a=1,s=0;for(this[n]=255&e;++i>0)-s&255;return n+t},l.prototype.writeIntBE=function(e,n,t,r){if(e=+e,n|=0,!r){var o=Math.pow(2,8*t-1);P(this,e,n,t,o-1,-o)}var i=t-1,a=1,s=0;for(this[n+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[n+i+1]&&(s=1),this[n+i]=(e/a>>0)-s&255;return n+t},l.prototype.writeInt8=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=255&e,n+1},l.prototype.writeInt16LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8):R(this,e,n,!0),n+2},l.prototype.writeInt16BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=255&e):R(this,e,n,!1),n+2},l.prototype.writeInt32LE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[n]=255&e,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):q(this,e,n,!0),n+4},l.prototype.writeInt32BE=function(e,n,t){return e=+e,n|=0,t||P(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=255&e):q(this,e,n,!1),n+4},l.prototype.writeFloatLE=function(e,n,t){return M(this,e,n,!0,t)},l.prototype.writeFloatBE=function(e,n,t){return M(this,e,n,!1,t)},l.prototype.writeDoubleLE=function(e,n,t){return N(this,e,n,!0,t)},l.prototype.writeDoubleBE=function(e,n,t){return N(this,e,n,!1,t)},l.prototype.copy=function(e,n,t,r){if(t||(t=0),r||0===r||(r=this.length),n>=e.length&&(n=e.length),n||(n=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-n=0;--o)e[o+n]=this[o+t];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"===typeof e)for(i=n;i55295&&t<57344){if(!o){if(t>56319){(n-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(n-=3)>-1&&i.push(239,191,189);continue}o=t;continue}if(t<56320){(n-=3)>-1&&i.push(239,191,189),o=t;continue}t=65536+(o-55296<<10|t-56320)}else o&&(n-=3)>-1&&i.push(239,191,189);if(o=null,t<128){if((n-=1)<0)break;i.push(t)}else if(t<2048){if((n-=2)<0)break;i.push(t>>6|192,63&t|128)}else if(t<65536){if((n-=3)<0)break;i.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;i.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return i}function B(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(D,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function U(e,n,t,r){for(var o=0;o=n.length||o>=e.length);++o)n[o+t]=e[o];return o}}).call(this,t(11))},function(e,n,t){(function(e){n.fetch=s(e.fetch)&&s(e.ReadableStream),n.writableStream=s(e.WritableStream),n.abortController=s(e.AbortController),n.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),n.blobConstructor=!0}catch(l){}var t;function r(){if(void 0!==t)return t;if(e.XMLHttpRequest){t=new e.XMLHttpRequest;try{t.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(l){t=null}}else t=null;return t}function o(e){var n=r();if(!n)return!1;try{return n.responseType=e,n.responseType===e}catch(l){}return!1}var i="undefined"!==typeof e.ArrayBuffer,a=i&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}n.arraybuffer=n.fetch||i&&o("arraybuffer"),n.msstream=!n.fetch&&a&&o("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&i&&o("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||!!r()&&s(r().overrideMimeType),n.vbArray=s(e.VBArray),t=null}).call(this,t(11))},function(e,n){e.exports=t(28)},function(e,n,t){(function(e,r,o){var i=t(29),a=t(30),s=t(32),l=n.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=n.IncomingMessage=function(n,t,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){e.nextTick(function(){c.emit("close")})}),"fetch"===a){if(c._fetchResponse=t,c.url=t.url,c.statusCode=t.status,c.statusMessage=t.statusText,t.headers.forEach(function(e,n){c.headers[n.toLowerCase()]=e,c.rawHeaders.push(n,e)}),i.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(n,t){c._destroyed?t():c.push(new r(e))?n():c._resumeFetch=n})},close:function(){o.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void t.body.pipeTo(u).catch(function(e){o.clearTimeout(l),c._destroyed||c.emit("error",e)})}catch(h){}}var p=t.body.getReader();!function e(){p.read().then(function(n){if(!c._destroyed){if(n.done)return o.clearTimeout(l),void c.push(null);c.push(new r(n.value)),e()}}).catch(function(e){o.clearTimeout(l),c._destroyed||c.emit("error",e)})}()}else{if(c._xhr=n,c._pos=0,c.url=n.responseURL,c.statusCode=n.status,c.statusMessage=n.statusText,n.getAllResponseHeaders().split(/\r?\n/).forEach(function(e){var n=e.match(/^([^:]+):\s*(.*)/);if(n){var t=n[1].toLowerCase();"set-cookie"===t?(void 0===c.headers[t]&&(c.headers[t]=[]),c.headers[t].push(n[2])):void 0!==c.headers[t]?c.headers[t]+=", "+n[2]:c.headers[t]=n[2],c.rawHeaders.push(n[1],n[2])}}),c._charset="x-user-defined",!i.overrideMimeType){var d=c.rawHeaders["mime-type"];if(d){var f=d.match(/;\s*charset=([^;])(;|$)/);f&&(c._charset=f[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this._resumeFetch;e&&(this._resumeFetch=null,e())},c.prototype._onXHRProgress=function(){var e=this,n=e._xhr,t=null;switch(e._mode){case"text:vbarray":if(n.readyState!==l.DONE)break;try{t=new o.VBArray(n.responseBody).toArray()}catch(u){}if(null!==t){e.push(new r(t));break}case"text":try{t=n.responseText}catch(u){e._mode="text:vbarray";break}if(t.length>e._pos){var i=t.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(i.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(t)}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,t(15),t(28).Buffer,t(11))},function(e,n){e.exports=t(80)},function(e,n,t){"use strict";t.r(n),t.d(n,"add",function(){return p}),t.d(n,"done",function(){return d}),t.d(n,"toJS",function(){return f}),t.d(n,"load",function(){return h}),t.d(n,"search",function(){return m});var r=t(1),o=t(7);try{t(77)}catch(g){}var i=function(){return function(){this.add=p,this.done=d,this.search=m,this.toJS=f,this.load=h}}();n.default=i;var a=[],s=function(){throw new Error("Should not be called")},l=new Promise(function(e){s=e});o.tokenizer.separator=/\s+/;var c=new o.Builder;c.field("title"),c.field("description"),c.ref("ref"),c.pipeline.add(o.trimmer,o.stopWordFilter,o.stemmer);var u=function(e){return"*"+o.stemmer(new o.Token(e,{}))+"*"};function p(e,n,t){var r=a.push(t)-1,o={title:e.toLowerCase(),description:n.toLowerCase(),ref:r};c.add(o)}function d(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return s(c.build()),[2]})})}function f(){return r.__awaiter(this,void 0,void 0,function(){var e;return r.__generator(this,function(n){switch(n.label){case 0:return e={store:a},[4,l];case 1:return[2,(e.index=n.sent().toJSON(),e)]}})})}function h(e){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(n){return a=e.store,s(o.Index.load(e.index)),[2]})})}function m(e,n){return void 0===n&&(n=0),r.__awaiter(this,void 0,void 0,function(){var t;return r.__generator(this,function(r){switch(r.label){case 0:return 0===e.trim().length?[2,[]]:[4,l];case 1:return t=r.sent().query(function(n){e.trim().toLowerCase().split(/\s+/).forEach(function(e){var t=u(e);n.term(t,{})})}),n>0&&(t=t.slice(0,n)),[2,t.map(function(e){return{meta:a[e.ref],score:e.score}})]}})})}},function(e,n){e.exports=t(188)},function(e,n){e.exports=t(189)},function(e,n){e.exports=t(191)},function(e,n,t){"use strict";var r,o=t(1),i=t(26),a=t(5),s=(t(18),t(42)),l=t(10),c=t(10),u=t(16),p=u.jptr,d=t(20).isRef,f=t(17).clone,h=t(17).circularClone,m=t(21).recurse,g=t(43),y=t(45),b=t(27),v=t(46).statusCodes,_=t(55).version,x="3.0.0",w=function(e){function n(n){var t=e.call(this,n)||this;return t.name="S2OError",t}return o.__extends(n,e),n}(Error);function k(e,n){var t=new w(e);if(t.options=n,!n.promise)throw t;n.promise.reject(t)}function O(e,n,t){t.warnOnly?n[t.warnProperty||"x-s2o-warning"]=e:k(e,t)}function E(e,n){y.walkSchema(e,{},{},function(e,t,r){!function(e,n){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)for(var t in e.discriminator=e["x-discriminator"],delete e["x-discriminator"],e.discriminator.mapping){var r=e.discriminator.mapping[t];r.startsWith("#/definitions/")&&(e.discriminator.mapping[t]=r.replace("#/definitions/","#/components/schemas/"))}}(e),function(e,n,t){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(t.patch){if(0===e.type.length)delete e.type;else{e.oneOf||(e.oneOf=[]);for(var r=0,o=e.type;r1&&O("Lost properties from oneOf",e,t),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",t);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&&("undefined"===typeof n.required&&(n.required=[]),Array.isArray(n.required)&&n.required.push(e.name)),delete e.required),e.xml&&"string"===typeof e.xml.namespace&&(e.xml.namespace||delete e.xml.namespace)}(e,t,n)})}function T(e,n,t){var o,i=t.payload.options;if(d(e,n)){if(e[n].startsWith("#/components/"));else if("#/consumes"===e[n])delete e[n],t.parent[t.pkey]=f(i.openapi.consumes);else if("#/produces"===e[n])delete e[n],t.parent[t.pkey]=f(i.openapi.produces);else if(e[n].startsWith("#/definitions/")){var a=e[n].replace("#/definitions/","").split("/");(x=r.schemas[decodeURIComponent(a[0])])?a[0]=x:O("Could not resolve reference "+e[n],e,i),e[n]="#/components/schemas/"+a.join("/")}else if(e[n].startsWith("#/parameters/"))e[n]="#/components/parameters/"+b.sanitise(e[n].replace("#/parameters/",""));else if(e[n].startsWith("#/responses/"))e[n]="#/components/responses/"+b.sanitise(e[n].replace("#/responses/",""));else if(e[n].startsWith("#")){var s=f(u.jptr(i.openapi,e[n]));if(!1===s)O("direct $ref not found "+e[n],e,i);else if(i.refmap[e[n]])e[n]=i.refmap[e[n]];else{var l=e[n],c="schemas",p=(l=(l=(l=(l=l.replace("/properties/headers/","")).replace("/properties/responses/","")).replace("/properties/parameters/","")).replace("/properties/schemas/","")).lastIndexOf("/schema");if("schemas"===(c=l.indexOf("/headers/")>p?"headers":l.indexOf("/responses/")>p?"responses":l.indexOf("/example")>p?"examples":l.indexOf("/parameters/")>p?"parameters":"schemas")&&E(s,i),"responses"!==c){var h=c.substr(0,c.length-1);"parameter"===h&&s.name&&s.name===b.sanitise(s.name)&&(h=encodeURIComponent(s.name));var m=1;for(e["x-miro"]&&(o=(o=e["x-miro"]).indexOf("#")>=0?o.split("#")[1].split("/").pop():o.split("/").pop().split(".")[0],h=encodeURIComponent(b.sanitise(o)),m="");u.jptr(i.openapi,"#/components/"+c+"/"+h+m);)m=""===m?2:++m;var g="#/components/"+c+"/"+h+m,y="";"examples"===c&&(s={value:s},y="/value"),u.jptr(i.openapi,g,s),i.refmap[e[n]]=g+y,e[n]=g+y}}}if(delete e["x-miro"],Object.keys(e).length>1){var v=e[n],_=t.path.indexOf("/schema")>=0;"preserve"===i.refSiblings||(_&&"allOf"===i.refSiblings?(delete e.$ref,t.parent[t.pkey]={allOf:[{$ref:v},e]}):t.parent[t.pkey]={$ref:v})}}if("x-ms-odata"===n&&"string"===typeof e[n]&&e[n].startsWith("#/")){var x;a=e[n].replace("#/definitions/","").replace("#/components/schemas/","").split("/");(x=r.schemas[decodeURIComponent(a[0])])?a[0]=x:O("Could not resolve reference "+e[n],e,i),e[n]="#/components/schemas/"+a.join("/")}}function S(e){for(var n in e)for(var t in e[n]){var r=b.sanitise(t);t!=r&&(e[n][r]=e[n][t],delete e[n][t])}}function j(e,n){if("basic"===e.type&&(e.type="http",e.scheme="basic"),"oauth2"===e.type){var t={},r=e.flow;"application"===e.flow&&(r="clientCredentials"),"accessCode"===e.flow&&(r="authorizationCode"),"undefined"!==typeof e.authorizationUrl&&(t.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),"string"===typeof e.tokenUrl&&(t.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),t.scopes=e.scopes||{},e.flows={},e.flows[r]=t,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,"undefined"!==typeof e.name&&(n.patch?delete e.name:k("(Patchable) oauth2 securitySchemes should not have name property",n))}}function I(e){return e&&!e["x-s2o-delete"]}function A(e,n){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&e.items.collectionFormat&&e.items.type&&"array"!=e.items.type&&(e.items.collectionFormat!=e.collectionFormat&&O("Nested collectionFormats are not supported",e,n),delete e.items.collectionFormat),"undefined"!==typeof e.collectionFormat&&("array"!=e.type&&(n.patch?delete e.collectionFormat:k("(Patchable) collectionFormat is only applicable to header.type array",n)),"csv"===e.collectionFormat&&(e.style="simple"),"ssv"===e.collectionFormat&&O("collectionFormat:ssv is no longer supported for headers",e,n),"pipes"===e.collectionFormat&&O("collectionFormat:pipes is no longer supported for headers",e,n),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(O("collectionFormat:tsv is no longer supported",e,n),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),delete e.type;for(var t=0,r=b.parameterTypeProperties;t=0){var t=e.$ref.split("#/parameters/");e.$ref=t[0]+"#/components/parameters/"+b.sanitise(t[1])}e.$ref.indexOf("#/definitions/")>=0&&O("Definition used as parameter",e,n)}function P(e,n,t,r,o,i,a){var s,l={},c=!0;if(n&&n.consumes&&"string"===typeof n.consumes){if(!a.patch)return k("(Patchable) operation.consumes must be an array",a);n.consumes=[n.consumes]}Array.isArray(i.consumes)||delete i.consumes;var u=((n?n.consumes:null)||i.consumes||[]).filter(b.uniqueOnly);if(e&&e.$ref&&"string"===typeof e.$ref){C(e,a);var d=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),h=!1;if((j=i.components.parameters[d])&&!j["x-s2o-delete"]||!e.$ref.startsWith("#/")||(e["x-s2o-delete"]=!0,h=!0),h){var g=e.$ref,y=p(i,e.$ref);!y&&g.startsWith("#/")?O("Could not resolve reference "+g,e,a):y&&(e=y)}}if(e&&(e.name||e.in)){"boolean"===typeof e["x-deprecated"]&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),"undefined"!==typeof 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=p(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=p(i,e.description.$ref)),null===e.description&&delete e.description;var v=e.collectionFormat;if(e.collectionFormat&&("array"!=e.type&&(a.patch?delete e.collectionFormat:k("(Patchable) collectionFormat is only applicable to param.type array",a)),"csv"!==e.collectionFormat||"query"!==e.in&&"cookie"!==e.in||(e.style="form",e.explode=!1),"csv"!==e.collectionFormat||"path"!==e.in&&"header"!==e.in||(e.style="simple"),"ssv"===e.collectionFormat&&("query"===e.in?e.style="spaceDelimited":O("collectionFormat:ssv is no longer supported except for in:query parameters",e,a)),"pipes"===e.collectionFormat&&("query"===e.in?e.style="pipeDelimited":O("collectionFormat:pipes is no longer supported except for in:query parameters",e,a)),"multi"===e.collectionFormat&&(e.explode=!0),"tsv"===e.collectionFormat&&(O("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)O("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,m(e.schema.items,null,function(n,t,r){"collectionFormat"===t&&"string"===typeof n[t]&&(v&&n[t]!==v&&O("Nested collectionFormats are not supported",e,a),delete n[t])}));for(var _=0,x=b.parameterTypeProperties;_=0&&(T="multipart/form-data"),l.content[T]={},e.schema)l.content[T].schema=e.schema,e.schema.$ref&&(l["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{l.content[T].schema={},l.content[T].schema.type="object",l.content[T].schema.properties={},l.content[T].schema.properties[e.name]={};var S=l.content[T].schema,j=l.content[T].schema.properties[e.name];e.description&&(j.description=e.description),e.example&&(j.example=e.example),e.type&&(j.type=e.type);for(var I=0,A=b.parameterTypeProperties;I0&&(e["x-s2o-delete"]=!0,n&&(n.requestBody&&c?(n.requestBody["x-s2o-overloaded"]=!0,O("Operation "+(n.operationId||o)+" has multiple requestBodies",n,a)):(n.requestBody||(n=t[r]=function(e,n){for(var t={},r=0,o=Object.keys(e);r=0?O("definition used as response: "+e.$ref,e,o):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+b.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if(("undefined"===typeof e.description||null===e.description||""===e.description&&o.patch)&&(o.patch?"object"!==typeof e||Array.isArray(e)||(e.description=v[e]||""):k("(Patchable) response.description is mandatory",o)),"undefined"!==typeof e.schema){if(E(e.schema,o),e.schema.$ref&&"string"===typeof e.schema.$ref&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+b.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),t&&t.produces&&"string"===typeof t.produces){if(!o.patch)return k("(Patchable) operation.produces must be an array",o);t.produces=[t.produces]}r.produces&&!Array.isArray(r.produces)&&delete r.produces;var i=((t?t.produces:null)||r.produces||[]).filter(b.uniqueOnly);i.length||i.push("*/*"),e.content={};for(var a=0,s=i;a=0||"x-amazon-apigateway-any-method"===l){var c=s[l];if(c&&c.parameters&&Array.isArray(c.parameters)){if(s.parameters)for(var d=function(e){"string"===typeof e.$ref&&(C(e,t),e=p(o,e.$ref)),c.parameters.find(function(n,t,r){return n.name===e.name&&n.in===e.in})||"formData"!==e.in&&"body"!==e.in&&"file"!==e.type||(c=P(e,c,s,l,i,o,t),t.rbname&&""===c[t.rbname]&&delete c[t.rbname])},h=0,m=s.parameters;h1){i="";for(x.name||(x.name="requestBody",i=v++);y.indexOf(x.name+i)>=0;)i=i?++i:2;for(var s in x.name=x.name+i,y.push(x.name),e.components.requestBodies[x.name]=f(x.body),x.refs){var w={};w.$ref="#/components/requestBodies/"+x.name,u.jptr(e,x.refs[s],w)}}}}return e.components.responses&&0===Object.keys(e.components.responses).length&&delete e.components.responses,e.components.parameters&&0===Object.keys(e.components.parameters).length&&delete e.components.parameters,e.components.examples&&0===Object.keys(e.components.examples).length&&delete e.components.examples,e.components.requestBodies&&0===Object.keys(e.components.requestBodies).length&&delete e.components.requestBodies,e.components.securitySchemes&&0===Object.keys(e.components.securitySchemes).length&&delete e.components.securitySchemes,e.components.headers&&0===Object.keys(e.components.headers).length&&delete e.components.headers,e.components.schemas&&0===Object.keys(e.components.schemas).length&&delete e.components.schemas,e.components&&0===Object.keys(e.components).length&&delete e.components,e}function N(e){return e&&e.url&&"string"===typeof e.url?(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(n,t){e.variables||(e.variables={}),e.variables[t]={default:"unknown"}}),e):e}function D(e,n,t){if("undefined"===typeof e.info||null===e.info){if(!n.patch)return t(new w("(Patchable) info object is mandatory"));e.info={version:"",title:""}}if("object"!==typeof e.info||Array.isArray(e.info))return t(new w("info must be an object"));if("undefined"===typeof e.info.title||null===e.info.title){if(!n.patch)return t(new w("(Patchable) info.title cannot be null"));e.info.title=""}if("undefined"===typeof e.info.version||null===e.info.version){if(!n.patch)return t(new w("(Patchable) info.version cannot be null"));e.info.version=""}if("string"!==typeof e.info.version){if(!n.patch)return t(new w("(Patchable) info.version must be a string"));e.info.version=e.info.version.toString()}if("undefined"!==typeof e.info.logo){if(!n.patch)return t(new w("(Patchable) info should not have logo property"));e.info["x-logo"]=e.info.logo,delete e.info.logo}if("undefined"!==typeof e.info.termsOfService){if(null===e.info.termsOfService){if(!n.patch)return t(new w("(Patchable) info.termsOfService cannot be null"));e.info.termsOfService=""}if(a.URL&&n.whatwg)try{a.URL.parse(e.info.termsOfService)}catch(r){if(!n.patch)return t(new w("(Patchable) info.termsOfService must be a URL"));delete e.info.termsOfService}}}function F(e,n,t){if("undefined"===typeof e.paths){if(!n.patch)return t(new w("(Patchable) paths object is mandatory"));e.paths={}}}function z(e,n,t){return s(t,new Promise(function(t,r){if(e||(e={}),n.original=e,n.text||(n.text=c.stringify(e)),n.externals=[],n.externalRefs={},n.rewriteRefs=!0,n.preserveMiro=!0,n.promise={},n.promise.resolve=t,n.promise.reject=r,n.cache||(n.cache={}),n.source&&(n.cache[n.source]=n.original),e.openapi&&"string"===typeof e.openapi&&e.openapi.startsWith("3."))return n.openapi=h(e),D(n.openapi,n,r),F(n.openapi,n,r),void g.optionalResolve(n).then(function(){return n.direct?t(n.openapi):t(n)}).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)));var o=n.openapi={};if(o.openapi="string"===typeof n.targetVersion&&n.targetVersion.startsWith("3.")?n.targetVersion:x,n.origin){o["x-origin"]||(o["x-origin"]=[]);var i={};i.url=n.source||n.origin,i.format="swagger",i.version=e.swagger,i.converter={},i.converter.url="https://github.com/mermade/oas-kit",i.converter.version=_,o["x-origin"].push(i)}if(delete(o=Object.assign(o,h(e))).swagger,m(o,{},function(e,n,t){null===e[n]&&!n.startsWith("x-")&&"default"!==n&&t.path.indexOf("/example")<0&&delete e[n]}),e.host)for(var a=0,s=Array.isArray(e.schemes)?e.schemes:[""];a1&&console.warn("Replacing with",c),m++}}else{var g=u(l(n,e[t]));if(a.verbose>1&&console.warn((!1===g?f.colour.red:f.colour.green)+"Fragment resolution",e[t],f.colour.normal),!1===g){if(r.parent[r.pkey]={},a.fatal){var y=new Error("Fragment $ref resolution failed "+e[t]);if(!a.promise)throw y;a.promise.reject(y)}}else m++,r.parent[r.pkey]=g,h[e[t]]=r.path.replace("/%24ref","")}else if(p.protocol){c=i.resolve(o,e[t]).toString();a.verbose>1&&console.warn(f.colour.yellow+"Rewriting external url ref",e[t],"as",c,f.colour.normal),e["x-miro"]=e[t],e[t]=c}else if(!e["x-miro"]){c=i.resolve(o,e[t]).toString();a.verbose>1&&console.warn(f.colour.yellow+"Rewriting external ref",e[t],"as",c,f.colour.normal),e["x-miro"]=e[t],e[t]=c}});return c(e,{},function(e,n,t){d(e,n)&&"undefined"!==typeof e.$fixed&&delete e.$fixed}),a.verbose>1&&console.warn("Finished fragment resolution"),e}function m(e,n){if(!n.filters||!n.filters.length)return e;for(var t=0,r=n.filters;t1&&(f="#"+g[1],n=g[0]),d=d.join("/");var y,b,v,_,x,w=i.parse(n),k=(y=w.protocol,b=p.protocol,y&&y.length>2?y:b&&b.length>2?b:"file:");if(v="file:"===k?o.resolve(d?d+"/":"",n):i.resolve(d?d+"/":"",n),t.cache[v]){t.verbose&&console.warn("CACHED",v,f);var O=u(t.cache[v]),E=t.externalRef=O;if(f&&!1===(E=l(E,f))&&(E={},t.fatal)){var T=new Error("Cached $ref resolution failed "+v+f);if(!t.promise)throw T;t.promise.reject(T)}return E=m(E=h(E,O,n,f,v,t),t),c(u(E),v,t),Promise.resolve(E)}return t.verbose&&console.warn("GET",v,f),t.handlers&&t.handlers[k]?t.handlers[k](d,n,f,t).then(function(e){return t.externalRef=e,e=m(e,t),t.cache[v]=e,c(e,v,t),e}).catch(function(e){throw t.verbose&&console.warn(e),e}):k&&k.startsWith("http")?a(v,{agent:t.agent}).then(function(e){if(200!==e.status)throw new Error("Received status code "+e.status);return e.text()}).then(function(e){try{var r=s.parse(e,{schema:"core"});if(e=t.externalRef=r,t.cache[v]=u(e),f&&!1===(e=l(e,f))&&(e={},t.fatal)){var o=new Error("Remote $ref resolution failed "+v+f);if(!t.promise)throw o;t.promise.reject(o)}e=m(e=h(e,r,n,f,v,t),t)}catch(o){if(t.verbose&&console.warn(o),!t.promise||!t.fatal)throw o;t.promise.reject(o)}return c(e,v,t),e}).catch(function(e){if(t.verbose&&console.warn(e),t.cache[v]={},!t.promise||!t.fatal)throw e;t.promise.reject(e)}):(_=v,x=t.encoding||"utf8",new Promise(function(e,n){r.readFile(_,x,function(t,r){t?n(t):e(r)})})).then(function(e){try{var r=s.parse(e,{schema:"core"});if(e=t.externalRef=r,t.cache[v]=u(e),f&&!1===(e=l(e,f))&&(e={},t.fatal)){var o=new Error("File $ref resolution failed "+v+f);if(!t.promise)throw o;t.promise.reject(o)}e=m(e=h(e,r,n,f,v,t),t)}catch(o){if(t.verbose&&console.warn(o),!t.promise||!t.fatal)throw o;t.promise.reject(o)}return c(e,v,t),e}).catch(function(e){if(t.verbose&&console.warn(e),!t.promise||!t.fatal)throw e;t.promise.reject(e)})}function y(e){return new Promise(function(n,t){(function(e){return new Promise(function(n,t){function r(n,t,r){if(n[t]&&d(n[t],"$ref")){var i=n[t].$ref;if(!i.startsWith("#")){var a="";if(!o[i]){var s=Object.keys(o).find(function(e,n,t){return i.startsWith(e+"/")});s&&(e.verbose&&console.warn("Found potential subschema at",s),a=(a="/"+(i.split("#")[1]||"").replace(s.split("#")[1]||"")).split("/undefined").join(""),i=s)}if(o[i]||(o[i]={resolved:!1,paths:[],extras:{},description:n[t].description}),o[i].resolved)if(e.rewriteRefs){var l=o[i].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",i,l),n[t]["x-miro"]=i,n[t].$ref=l+a}else n[t]=u(o[i].data);else o[i].paths.push(r.path),o[i].extras[r.path]=a}}}var o=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return n(o);c(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},r),c(e.openapi.components,{identityDetection:!0,path:"#/components"},r),c(e.openapi,{identityDetection:!0},r),n(o)})})(e).then(function(n){var t=function(t){if(!n[t].resolved){var r=e.resolver.depth;r>0&&r++,e.resolver.actions[r].push(function(){return g(e.openapi,t,e,function(e,r,o){if(!n[t].resolved){var i={};i.context=n[t],i.$ref=t,i.original=u(e),i.updated=e,i.source=r,o.externals.push(i),n[t].resolved=!0}var a=Object.assign({},o,{source:"",resolver:{actions:o.resolver.actions,depth:o.resolver.actions.length-1,base:o.resolver.base}});o.patch&&n[t].description&&!e.description&&"object"===typeof e&&(e.description=n[t].description),n[t].data=e;for(var s,c=(s=n[t].paths,new Set(s).slice()),p=0,d=c=c.sort(function(e,n){var t=e.startsWith("#/components/")||e.startsWith("#/definitions/"),r=n.startsWith("#/components/")||n.startsWith("#/definitions/");return t&&!r?-1:r&&!t?1:0});p1&&console.warn("Creating pointer to data at",f),l(o.openapi,f,{$ref:n[t].resolvedAt+n[t].extras[f],"x-miro":t+n[t].extras[f]});else{n[t].resolvedAt?o.verbose>1&&console.warn("Avoiding circular reference"):(n[t].resolvedAt=f,o.verbose>1&&console.warn("Creating initial clone of data at",f));var h=u(e);l(o.openapi,f,h)}}0===o.resolver.actions[a.resolver.depth].length&&o.resolver.actions[a.resolver.depth].push(function(){return y(a)})})})}};for(var r in n)t(r)}).catch(function(n){e.verbose&&console.warn(n),t(n)});var r={options:e};r.actions=e.resolver.actions[e.resolver.depth],n(r)})}var b=function(e){return e.reduce(function(e,n){return e.then(function(e){return n().then(Array.prototype.concat.bind(e))})},Promise.resolve([]))};function v(e,n,t){e.resolver.actions.push([]),y(e).then(function(r){b(r.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),n(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){v(r.options,n,t)},0):(e.verbose>1&&console.warn(f.colour.yellow+"Finished external resolution!",f.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(f.colour.yellow+"Starting internal resolution!",f.colour.normal),e.openapi=p(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(f.colour.yellow+"Finished internal resolution!",f.colour.normal)),c(e.openapi,{},function(n,t,r){d(n,t)&&(e.preserveMiro||delete n["x-miro"])}),n(e))}).catch(function(n){e.verbose&&console.warn(n),t(n)})}).catch(function(n){e.verbose&&console.warn(n),t(n)})}function _(e){if(e.cache||(e.cache={}),e.source){var n=i.parse(e.source);(!n.protocol||n.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 _(e),new Promise(function(n,t){e.resolve?v(e,n,t):n(e)})},resolve:function(e,n,t){return t||(t={}),t.openapi=e,t.source=n,t.resolve=!0,_(t),new Promise(function(e,n){v(t,e,n)})}}},function(e,n,t){"use strict";var r=t(21).recurse,o=t(17).shallowClone,i=t(16).jptr,a=t(20).isRef,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(n,t,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;var c=l.depth>1?n:o(n),u={data:c},p=l.depth>1?t:o(t);l.master||(l.master=c);for(var d=s(l),f=1;f>0;)f=0,r(u,l.state,function(n,t,r){if(a(n,t)){var o,s=n[t];if(f++,l.cache[s])if((o=l.cache[s]).resolved)d.warn("Patching %s for %s",s,o.path),r.parent[r.pkey]=o.data,l.$ref&&"object"===typeof r.parent[r.pkey]&&(r.parent[r.pkey][l.$ref]=s);else{if(s===o.path)throw new Error("Tight circle at "+o.path);d.warn("Unresolved ref"),r.parent[r.pkey]=i(o.source,o.path),!1===r.parent[r.pkey]&&(r.parent[r.pkey]=i(o.source,o.key)),l.$ref&&"object"===typeof r.parent[r.pkey]&&(r.parent[l.$ref]=s)}else(o={}).path=r.path.split("/$ref")[0],o.key=s,d.warn("Dereffing %s at %s",s,o.path),o.source=p,o.data=i(o.source,o.key),!1===o.data&&(o.data=i(l.master,o.key),o.source=l.master),!1===o.data&&d.warn("Missing $ref target",o.key),l.cache[s]=o,o.data=r.parent[r.pkey]=e(i(o.source,o.key),o.source,l),l.$ref&&"object"===typeof r.parent[r.pkey]&&(r.parent[r.pkey][l.$ref]=s),o.resolved=!0}});return u.data}}},function(e,n,t){"use strict";function r(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}e.exports={getDefaultState:r,walkSchema:function e(n,t,o,i){if("undefined"===typeof o.depth&&(o=r()),null===n||"undefined"===typeof n)return n;if("undefined"!==typeof n.$ref){var a={$ref:n.$ref};return o.allowRefSiblings&&n.description&&(a.description=n.description),i(a,t,o),a}if(o.combine&&(n.allOf&&Array.isArray(n.allOf)&&1===n.allOf.length&&delete(n=Object.assign({},n.allOf[0],n)).allOf,n.anyOf&&Array.isArray(n.anyOf)&&1===n.anyOf.length&&delete(n=Object.assign({},n.anyOf[0],n)).anyOf,n.oneOf&&Array.isArray(n.oneOf)&&1===n.oneOf.length&&delete(n=Object.assign({},n.oneOf[0],n)).oneOf),i(n,t,o),o.seen.has(n))return n;if("object"===typeof n&&null!==n&&o.seen.set(n,!0),o.top=!1,o.depth++,"undefined"!==typeof n.items&&(o.property="items",e(n.items,n,o,i)),n.additionalItems&&"object"===typeof n.additionalItems&&(o.property="additionalItems",e(n.additionalItems,n,o,i)),n.additionalProperties&&"object"===typeof n.additionalProperties&&(o.property="additionalProperties",e(n.additionalProperties,n,o,i)),n.properties)for(var s in n.properties){var l=n.properties[s];o.property="properties/"+s,e(l,n,o,i)}if(n.patternProperties)for(var s in n.patternProperties)l=n.patternProperties[s],o.property="patternProperties/"+s,e(l,n,o,i);if(n.allOf)for(var c in n.allOf)l=n.allOf[c],o.property="allOf/"+c,e(l,n,o,i);if(n.anyOf)for(var c in n.anyOf)l=n.anyOf[c],o.property="anyOf/"+c,e(l,n,o,i);if(n.oneOf)for(var c in n.oneOf)l=n.oneOf[c],o.property="oneOf/"+c,e(l,n,o,i);return n.not&&(o.property="not",e(n.not,n,o,i)),o.depth--,n}}},function(e,n,t){"use strict";var r=t(47);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,n,t){(function(e){var r=t(48),o=t(31),i=t(53),a=t(54),s=t(5),l=n;l.request=function(n,t){n="string"===typeof n?s.parse(n):i(n);var o=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=n.protocol||o,l=n.hostname||n.host,c=n.port,u=n.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),n.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,n.method=(n.method||"GET").toUpperCase(),n.headers=n.headers||{};var p=new r(n);return t&&p.on("response",t),p},l.get=function(e,n){var t=l.request(e,n);return t.end(),t},l.ClientRequest=r,l.IncomingMessage=o.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.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,t(11))},function(e,n,t){(function(n,r,o){var i=t(29),a=t(30),s=t(31),l=t(32),c=t(52),u=s.IncomingMessage,p=s.readyStates;var d=e.exports=function(e){var t,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new n(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(n){r.setHeader(n,e.headers[n])});var o=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!i.abortController)o=!1,t=!0;else if("prefer-streaming"===e.mode)t=!1;else if("allow-wrong-content-type"===e.mode)t=!i.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");t=!0}r._mode=function(e,n){return i.fetch&&n?"fetch":i.mozchunkedarraybuffer?"moz-chunked-arraybuffer":i.msstream?"ms-stream":i.arraybuffer&&e?"arraybuffer":i.vbArray&&e?"text:vbarray":"text"}(t,o),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};a(d,l.Writable),d.prototype.setHeader=function(e,n){var t=e.toLowerCase();-1===f.indexOf(t)&&(this._headers[t]={name:e,value:n})},d.prototype.getHeader=function(e){var n=this._headers[e.toLowerCase()];return n?n.value:null},d.prototype.removeHeader=function(e){delete this._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var t=e._opts,a=e._headers,s=null;"GET"!==t.method&&"HEAD"!==t.method&&(s=i.arraybuffer?c(n.concat(e._body)):i.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):n.concat(e._body).toString());var l=[];if(Object.keys(a).forEach(function(e){var n=a[e].name,t=a[e].value;Array.isArray(t)?t.forEach(function(e){l.push([n,e])}):l.push([n,t])}),"fetch"===e._mode){var u=null;if(i.abortController){var d=new AbortController;u=d.signal,e._fetchAbortController=d,"requestTimeout"in t&&0!==t.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},t.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:t.withCredentials?"include":"same-origin",signal:u}).then(function(n){e._fetchResponse=n,e._connect()},function(n){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",n)})}else{var f=e._xhr=new r.XMLHttpRequest;try{f.open(e._opts.method,e._opts.url,!0)}catch(h){return void o.nextTick(function(){e.emit("error",h)})}"responseType"in f&&(f.responseType=e._mode.split(":")[0]),"withCredentials"in f&&(f.withCredentials=!!t.withCredentials),"text"===e._mode&&"overrideMimeType"in f&&f.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in t&&(f.timeout=t.requestTimeout,f.ontimeout=function(){e.emit("requestTimeout")}),l.forEach(function(e){f.setRequestHeader(e[0],e[1])}),e._response=null,f.onreadystatechange=function(){switch(f.readyState){case p.LOADING:case p.DONE:e._onXHRProgress()}},"moz-chunked-arraybuffer"===e._mode&&(f.onprogress=function(){e._onXHRProgress()}),f.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{f.send(s)}catch(h){return void o.nextTick(function(){e.emit("error",h)})}}}},d.prototype._onXHRProgress=function(){(function(e){try{var n=e.status;return null!==n&&0!==n}catch(t){return!1}})(this._xhr)&&!this._destroyed&&(this._response||this._connect(),this._response._onXHRProgress())},d.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(n){e.emit("error",n)}),e.emit("response",e._response))},d.prototype._write=function(e,n,t){this._body.push(e),t()},d.prototype.abort=d.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()},d.prototype.end=function(e,n,t){"function"===typeof e&&(t=e,e=void 0),l.Writable.prototype.end.call(this,e,n,t)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var f=["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,t(28).Buffer,t(11),t(15))},function(e,n){e.exports=t(103)},function(e,n){e.exports=t(104)},function(e,n){e.exports=t(81)},function(e,n){e.exports=t(116)},function(e,n){e.exports=t(117)},function(e,n){e.exports=t(118)},function(e){e.exports={_from:"swagger2openapi@^5.2.3",_id:"swagger2openapi@5.3.0",_inBundle:!1,_integrity:"sha512-3rmO7uXotaV+r+IHfnzNMfAX1FA1WTu+RRXIHnuolk5R6CZOY91NYAhbEH3fDD0e/ywJROzB57cOV1yRCUxxmg==",_location:"/swagger2openapi",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"swagger2openapi@^5.2.3",name:"swagger2openapi",escapedName:"swagger2openapi",rawSpec:"^5.2.3",saveSpec:null,fetchSpec:"^5.2.3"},_requiredBy:["/"],_resolved:"https://registry.npmjs.org/swagger2openapi/-/swagger2openapi-5.3.0.tgz",_shasum:"ac5bcdf6fb3adb0eccedd65cc7a3a739f80b5532",_spec:"swagger2openapi@^5.2.3",_where:"/Users/artem/work/redoc",author:{name:"Mike Ralphson",email:"mike.ralphson@gmail.com"},bin:{swagger2openapi:"./swagger2openapi.js","oas-validate":"./oas-validate.js",boast:"./boast.js"},browserify:{transform:[["babelify",{presets:["es2015"]}]]},bugs:{url:"https://github.com/mermade/oas-kit/issues"},bundleDependencies:!1,dependencies:{"better-ajv-errors":"^0.6.1","call-me-maybe":"^1.0.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.7","oas-resolver":"^2.2.4","oas-schema-walker":"^1.1.2","oas-validator":"^3.3.0",reftools:"^1.0.7",yaml:"^1.3.1",yargs:"^12.0.5"},deprecated:!1,description:"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",gitHead:"4eecb5c1689726e413734c536a0bd1f93a334c02",homepage:"https://github.com/Mermade/oas-kit#readme",keywords:["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],license:"BSD-3-Clause",main:"index.js",name:"swagger2openapi",repository:{url:"git+https://github.com/Mermade/oas-kit.git",type:"git"},scripts:{test:"mocha"},version:"5.3.0"}},function(e,n){e.exports=t(232)},function(e,n){e.exports=t(233)},function(e,n){e.exports=t(234)},function(e,n){e.exports=t(235)},function(e,n){e.exports=t(236)},function(e,n){e.exports=t(237)},function(e,n){e.exports=t(238)},function(e,n){e.exports=t(239)},function(e,n){e.exports=t(240)},function(e,n){e.exports=t(241)},function(e,n){e.exports=t(242)},function(e,n){e.exports=t(243)},function(e,n){e.exports=t(244)},function(e,n){e.exports=t(245)},function(e,n){e.exports=t(246)},function(e,n){e.exports=t(247)},function(e,n){e.exports=t(248)},function(e,n){e.exports=t(249)},function(e,n){e.exports=t(250)},function(e,n,t){var r=t(76),o=["add","done","toJS","load","search"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(["/*!\n * ReDoc - OpenAPI/Swagger-generated API Reference Documentation\n * -------------------------------------------------------------\n * Version: \"2.0.0-rc.8-5\"\n * Repo: https://github.com/Rebilly/ReDoc\n */\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 70);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar store = __webpack_require__(16)('wks');\nvar uid = __webpack_require__(18);\nvar Symbol = __webpack_require__(1).Symbol;\nvar USE_SYMBOL = typeof Symbol == 'function';\n\nvar $exports = module.exports = function (name) {\n return store[name] || (store[name] =\n USE_SYMBOL && Symbol[name] || (USE_SYMBOL ? Symbol : uid)('Symbol.' + name));\n};\n\n$exports.store = store;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports) {\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self\n // eslint-disable-next-line no-new-func\n : Function('return this')();\nif (typeof __g == 'number') __g = global; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.6\n * Copyright (C) 2019 Oliver Nightingale\n * @license MIT\n */\n\n;(function(){\n\n/**\n * A convenience function for configuring and constructing\n * a new lunr Index.\n *\n * A lunr.Builder instance is created and the pipeline setup\n * with a trimmer, stop word filter and stemmer.\n *\n * This builder object is yielded to the configuration function\n * that is passed as a parameter, allowing the list of fields\n * and other builder parameters to be customised.\n *\n * All documents _must_ be added within the passed config function.\n *\n * @example\n * var idx = lunr(function () {\n * this.field('title')\n * this.field('body')\n * this.ref('id')\n *\n * documents.forEach(function (doc) {\n * this.add(doc)\n * }, this)\n * })\n *\n * @see {@link lunr.Builder}\n * @see {@link lunr.Pipeline}\n * @see {@link lunr.trimmer}\n * @see {@link lunr.stopWordFilter}\n * @see {@link lunr.stemmer}\n * @namespace {function} lunr\n */\nvar lunr = function (config) {\n var builder = new lunr.Builder\n\n builder.pipeline.add(\n lunr.trimmer,\n lunr.stopWordFilter,\n lunr.stemmer\n )\n\n builder.searchPipeline.add(\n lunr.stemmer\n )\n\n config.call(builder, builder)\n return builder.build()\n}\n\nlunr.version = \"2.3.6\"\n/*!\n * lunr.utils\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A namespace containing utils for the rest of the lunr library\n * @namespace lunr.utils\n */\nlunr.utils = {}\n\n/**\n * Print a warning message to the console.\n *\n * @param {String} message The message to be printed.\n * @memberOf lunr.utils\n * @function\n */\nlunr.utils.warn = (function (global) {\n /* eslint-disable no-console */\n return function (message) {\n if (global.console && console.warn) {\n console.warn(message)\n }\n }\n /* eslint-enable no-console */\n})(this)\n\n/**\n * Convert an object to a string.\n *\n * In the case of `null` and `undefined` the function returns\n * the empty string, in all other cases the result of calling\n * `toString` on the passed object is returned.\n *\n * @param {Any} obj The object to convert to a string.\n * @return {String} string representation of the passed object.\n * @memberOf lunr.utils\n */\nlunr.utils.asString = function (obj) {\n if (obj === void 0 || obj === null) {\n return \"\"\n } else {\n return obj.toString()\n }\n}\n\n/**\n * Clones an object.\n *\n * Will create a copy of an existing object such that any mutations\n * on the copy cannot affect the original.\n *\n * Only shallow objects are supported, passing a nested object to this\n * function will cause a TypeError.\n *\n * Objects with primitives, and arrays of primitives are supported.\n *\n * @param {Object} obj The object to clone.\n * @return {Object} a clone of the passed object.\n * @throws {TypeError} when a nested object is passed.\n * @memberOf Utils\n */\nlunr.utils.clone = function (obj) {\n if (obj === null || obj === undefined) {\n return obj\n }\n\n var clone = Object.create(null),\n keys = Object.keys(obj)\n\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i],\n val = obj[key]\n\n if (Array.isArray(val)) {\n clone[key] = val.slice()\n continue\n }\n\n if (typeof val === 'string' ||\n typeof val === 'number' ||\n typeof val === 'boolean') {\n clone[key] = val\n continue\n }\n\n throw new TypeError(\"clone is not deep and does not support nested objects\")\n }\n\n return clone\n}\nlunr.FieldRef = function (docRef, fieldName, stringValue) {\n this.docRef = docRef\n this.fieldName = fieldName\n this._stringValue = stringValue\n}\n\nlunr.FieldRef.joiner = \"/\"\n\nlunr.FieldRef.fromString = function (s) {\n var n = s.indexOf(lunr.FieldRef.joiner)\n\n if (n === -1) {\n throw \"malformed field ref string\"\n }\n\n var fieldRef = s.slice(0, n),\n docRef = s.slice(n + 1)\n\n return new lunr.FieldRef (docRef, fieldRef, s)\n}\n\nlunr.FieldRef.prototype.toString = function () {\n if (this._stringValue == undefined) {\n this._stringValue = this.fieldName + lunr.FieldRef.joiner + this.docRef\n }\n\n return this._stringValue\n}\n/*!\n * lunr.Set\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A lunr set.\n *\n * @constructor\n */\nlunr.Set = function (elements) {\n this.elements = Object.create(null)\n\n if (elements) {\n this.length = elements.length\n\n for (var i = 0; i < this.length; i++) {\n this.elements[elements[i]] = true\n }\n } else {\n this.length = 0\n }\n}\n\n/**\n * A complete set that contains all elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.complete = {\n intersect: function (other) {\n return other\n },\n\n union: function (other) {\n return other\n },\n\n contains: function () {\n return true\n }\n}\n\n/**\n * An empty set that contains no elements.\n *\n * @static\n * @readonly\n * @type {lunr.Set}\n */\nlunr.Set.empty = {\n intersect: function () {\n return this\n },\n\n union: function (other) {\n return other\n },\n\n contains: function () {\n return false\n }\n}\n\n/**\n * Returns true if this set contains the specified object.\n *\n * @param {object} object - Object whose presence in this set is to be tested.\n * @returns {boolean} - True if this set contains the specified object.\n */\nlunr.Set.prototype.contains = function (object) {\n return !!this.elements[object]\n}\n\n/**\n * Returns a new set containing only the elements that are present in both\n * this set and the specified set.\n *\n * @param {lunr.Set} other - set to intersect with this set.\n * @returns {lunr.Set} a new set that is the intersection of this and the specified set.\n */\n\nlunr.Set.prototype.intersect = function (other) {\n var a, b, elements, intersection = []\n\n if (other === lunr.Set.complete) {\n return this\n }\n\n if (other === lunr.Set.empty) {\n return other\n }\n\n if (this.length < other.length) {\n a = this\n b = other\n } else {\n a = other\n b = this\n }\n\n elements = Object.keys(a.elements)\n\n for (var i = 0; i < elements.length; i++) {\n var element = elements[i]\n if (element in b.elements) {\n intersection.push(element)\n }\n }\n\n return new lunr.Set (intersection)\n}\n\n/**\n * Returns a new set combining the elements of this and the specified set.\n *\n * @param {lunr.Set} other - set to union with this set.\n * @return {lunr.Set} a new set that is the union of this and the specified set.\n */\n\nlunr.Set.prototype.union = function (other) {\n if (other === lunr.Set.complete) {\n return lunr.Set.complete\n }\n\n if (other === lunr.Set.empty) {\n return this\n }\n\n return new lunr.Set(Object.keys(this.elements).concat(Object.keys(other.elements)))\n}\n/**\n * A function to calculate the inverse document frequency for\n * a posting. This is shared between the builder and the index\n *\n * @private\n * @param {object} posting - The posting for a given term\n * @param {number} documentCount - The total number of documents.\n */\nlunr.idf = function (posting, documentCount) {\n var documentsWithTerm = 0\n\n for (var fieldName in posting) {\n if (fieldName == '_index') continue // Ignore the term index, its not a field\n documentsWithTerm += Object.keys(posting[fieldName]).length\n }\n\n var x = (documentCount - documentsWithTerm + 0.5) / (documentsWithTerm + 0.5)\n\n return Math.log(1 + Math.abs(x))\n}\n\n/**\n * A token wraps a string representation of a token\n * as it is passed through the text processing pipeline.\n *\n * @constructor\n * @param {string} [str=''] - The string token being wrapped.\n * @param {object} [metadata={}] - Metadata associated with this token.\n */\nlunr.Token = function (str, metadata) {\n this.str = str || \"\"\n this.metadata = metadata || {}\n}\n\n/**\n * Returns the token string that is being wrapped by this object.\n *\n * @returns {string}\n */\nlunr.Token.prototype.toString = function () {\n return this.str\n}\n\n/**\n * A token update function is used when updating or optionally\n * when cloning a token.\n *\n * @callback lunr.Token~updateFunction\n * @param {string} str - The string representation of the token.\n * @param {Object} metadata - All metadata associated with this token.\n */\n\n/**\n * Applies the given function to the wrapped string token.\n *\n * @example\n * token.update(function (str, metadata) {\n * return str.toUpperCase()\n * })\n *\n * @param {lunr.Token~updateFunction} fn - A function to apply to the token string.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.update = function (fn) {\n this.str = fn(this.str, this.metadata)\n return this\n}\n\n/**\n * Creates a clone of this token. Optionally a function can be\n * applied to the cloned token.\n *\n * @param {lunr.Token~updateFunction} [fn] - An optional function to apply to the cloned token.\n * @returns {lunr.Token}\n */\nlunr.Token.prototype.clone = function (fn) {\n fn = fn || function (s) { return s }\n return new lunr.Token (fn(this.str, this.metadata), this.metadata)\n}\n/*!\n * lunr.tokenizer\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A function for splitting a string into tokens ready to be inserted into\n * the search index. Uses `lunr.tokenizer.separator` to split strings, change\n * the value of this property to change how strings are split into tokens.\n *\n * This tokenizer will convert its parameter to a string by calling `toString` and\n * then will split this string on the character in `lunr.tokenizer.separator`.\n * Arrays will have their elements converted to strings and wrapped in a lunr.Token.\n *\n * Optional metadata can be passed to the tokenizer, this metadata will be cloned and\n * added as metadata to every token that is created from the object to be tokenized.\n *\n * @static\n * @param {?(string|object|object[])} obj - The object to convert into tokens\n * @param {?object} metadata - Optional metadata to associate with every token\n * @returns {lunr.Token[]}\n * @see {@link lunr.Pipeline}\n */\nlunr.tokenizer = function (obj, metadata) {\n if (obj == null || obj == undefined) {\n return []\n }\n\n if (Array.isArray(obj)) {\n return obj.map(function (t) {\n return new lunr.Token(\n lunr.utils.asString(t).toLowerCase(),\n lunr.utils.clone(metadata)\n )\n })\n }\n\n var str = obj.toString().trim().toLowerCase(),\n len = str.length,\n tokens = []\n\n for (var sliceEnd = 0, sliceStart = 0; sliceEnd <= len; sliceEnd++) {\n var char = str.charAt(sliceEnd),\n sliceLength = sliceEnd - sliceStart\n\n if ((char.match(lunr.tokenizer.separator) || sliceEnd == len)) {\n\n if (sliceLength > 0) {\n var tokenMetadata = lunr.utils.clone(metadata) || {}\n tokenMetadata[\"position\"] = [sliceStart, sliceLength]\n tokenMetadata[\"index\"] = tokens.length\n\n tokens.push(\n new lunr.Token (\n str.slice(sliceStart, sliceEnd),\n tokenMetadata\n )\n )\n }\n\n sliceStart = sliceEnd + 1\n }\n\n }\n\n return tokens\n}\n\n/**\n * The separator used to split a string into tokens. Override this property to change the behaviour of\n * `lunr.tokenizer` behaviour when tokenizing strings. By default this splits on whitespace and hyphens.\n *\n * @static\n * @see lunr.tokenizer\n */\nlunr.tokenizer.separator = /[\\s\\-]+/\n/*!\n * lunr.Pipeline\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.Pipelines maintain an ordered list of functions to be applied to all\n * tokens in documents entering the search index and queries being ran against\n * the index.\n *\n * An instance of lunr.Index created with the lunr shortcut will contain a\n * pipeline with a stop word filter and an English language stemmer. Extra\n * functions can be added before or after either of these functions or these\n * default functions can be removed.\n *\n * When run the pipeline will call each function in turn, passing a token, the\n * index of that token in the original list of all tokens and finally a list of\n * all the original tokens.\n *\n * The output of functions in the pipeline will be passed to the next function\n * in the pipeline. To exclude a token from entering the index the function\n * should return undefined, the rest of the pipeline will not be called with\n * this token.\n *\n * For serialisation of pipelines to work, all functions used in an instance of\n * a pipeline should be registered with lunr.Pipeline. Registered functions can\n * then be loaded. If trying to load a serialised pipeline that uses functions\n * that are not registered an error will be thrown.\n *\n * If not planning on serialising the pipeline then registering pipeline functions\n * is not necessary.\n *\n * @constructor\n */\nlunr.Pipeline = function () {\n this._stack = []\n}\n\nlunr.Pipeline.registeredFunctions = Object.create(null)\n\n/**\n * A pipeline function maps lunr.Token to lunr.Token. A lunr.Token contains the token\n * string as well as all known metadata. A pipeline function can mutate the token string\n * or mutate (or add) metadata for a given token.\n *\n * A pipeline function can indicate that the passed token should be discarded by returning\n * null. This token will not be passed to any downstream pipeline functions and will not be\n * added to the index.\n *\n * Multiple tokens can be returned by returning an array of tokens. Each token will be passed\n * to any downstream pipeline functions and all will returned tokens will be added to the index.\n *\n * Any number of pipeline functions may be chained together using a lunr.Pipeline.\n *\n * @interface lunr.PipelineFunction\n * @param {lunr.Token} token - A token from the document being processed.\n * @param {number} i - The index of this token in the complete list of tokens for this document/field.\n * @param {lunr.Token[]} tokens - All tokens for this document/field.\n * @returns {(?lunr.Token|lunr.Token[])}\n */\n\n/**\n * Register a function with the pipeline.\n *\n * Functions that are used in the pipeline should be registered if the pipeline\n * needs to be serialised, or a serialised pipeline needs to be loaded.\n *\n * Registering a function does not add it to a pipeline, functions must still be\n * added to instances of the pipeline for them to be used when running a pipeline.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @param {String} label - The label to register this function with\n */\nlunr.Pipeline.registerFunction = function (fn, label) {\n if (label in this.registeredFunctions) {\n lunr.utils.warn('Overwriting existing registered function: ' + label)\n }\n\n fn.label = label\n lunr.Pipeline.registeredFunctions[fn.label] = fn\n}\n\n/**\n * Warns if the function is not registered as a Pipeline function.\n *\n * @param {lunr.PipelineFunction} fn - The function to check for.\n * @private\n */\nlunr.Pipeline.warnIfFunctionNotRegistered = function (fn) {\n var isRegistered = fn.label && (fn.label in this.registeredFunctions)\n\n if (!isRegistered) {\n lunr.utils.warn('Function is not registered with pipeline. This may cause problems when serialising the index.\\n', fn)\n }\n}\n\n/**\n * Loads a previously serialised pipeline.\n *\n * All functions to be loaded must already be registered with lunr.Pipeline.\n * If any function from the serialised data has not been registered then an\n * error will be thrown.\n *\n * @param {Object} serialised - The serialised pipeline to load.\n * @returns {lunr.Pipeline}\n */\nlunr.Pipeline.load = function (serialised) {\n var pipeline = new lunr.Pipeline\n\n serialised.forEach(function (fnName) {\n var fn = lunr.Pipeline.registeredFunctions[fnName]\n\n if (fn) {\n pipeline.add(fn)\n } else {\n throw new Error('Cannot load unregistered function: ' + fnName)\n }\n })\n\n return pipeline\n}\n\n/**\n * Adds new functions to the end of the pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction[]} functions - Any number of functions to add to the pipeline.\n */\nlunr.Pipeline.prototype.add = function () {\n var fns = Array.prototype.slice.call(arguments)\n\n fns.forEach(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n this._stack.push(fn)\n }, this)\n}\n\n/**\n * Adds a single function after a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.after = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n pos = pos + 1\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Adds a single function before a function that already exists in the\n * pipeline.\n *\n * Logs a warning if the function has not been registered.\n *\n * @param {lunr.PipelineFunction} existingFn - A function that already exists in the pipeline.\n * @param {lunr.PipelineFunction} newFn - The new function to add to the pipeline.\n */\nlunr.Pipeline.prototype.before = function (existingFn, newFn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(newFn)\n\n var pos = this._stack.indexOf(existingFn)\n if (pos == -1) {\n throw new Error('Cannot find existingFn')\n }\n\n this._stack.splice(pos, 0, newFn)\n}\n\n/**\n * Removes a function from the pipeline.\n *\n * @param {lunr.PipelineFunction} fn The function to remove from the pipeline.\n */\nlunr.Pipeline.prototype.remove = function (fn) {\n var pos = this._stack.indexOf(fn)\n if (pos == -1) {\n return\n }\n\n this._stack.splice(pos, 1)\n}\n\n/**\n * Runs the current list of functions that make up the pipeline against the\n * passed tokens.\n *\n * @param {Array} tokens The tokens to run through the pipeline.\n * @returns {Array}\n */\nlunr.Pipeline.prototype.run = function (tokens) {\n var stackLength = this._stack.length\n\n for (var i = 0; i < stackLength; i++) {\n var fn = this._stack[i]\n var memo = []\n\n for (var j = 0; j < tokens.length; j++) {\n var result = fn(tokens[j], j, tokens)\n\n if (result === void 0 || result === '') continue\n\n if (Array.isArray(result)) {\n for (var k = 0; k < result.length; k++) {\n memo.push(result[k])\n }\n } else {\n memo.push(result)\n }\n }\n\n tokens = memo\n }\n\n return tokens\n}\n\n/**\n * Convenience method for passing a string through a pipeline and getting\n * strings out. This method takes care of wrapping the passed string in a\n * token and mapping the resulting tokens back to strings.\n *\n * @param {string} str - The string to pass through the pipeline.\n * @param {?object} metadata - Optional metadata to associate with the token\n * passed to the pipeline.\n * @returns {string[]}\n */\nlunr.Pipeline.prototype.runString = function (str, metadata) {\n var token = new lunr.Token (str, metadata)\n\n return this.run([token]).map(function (t) {\n return t.toString()\n })\n}\n\n/**\n * Resets the pipeline by removing any existing processors.\n *\n */\nlunr.Pipeline.prototype.reset = function () {\n this._stack = []\n}\n\n/**\n * Returns a representation of the pipeline ready for serialisation.\n *\n * Logs a warning if the function has not been registered.\n *\n * @returns {Array}\n */\nlunr.Pipeline.prototype.toJSON = function () {\n return this._stack.map(function (fn) {\n lunr.Pipeline.warnIfFunctionNotRegistered(fn)\n\n return fn.label\n })\n}\n/*!\n * lunr.Vector\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A vector is used to construct the vector space of documents and queries. These\n * vectors support operations to determine the similarity between two documents or\n * a document and a query.\n *\n * Normally no parameters are required for initializing a vector, but in the case of\n * loading a previously dumped vector the raw elements can be provided to the constructor.\n *\n * For performance reasons vectors are implemented with a flat array, where an elements\n * index is immediately followed by its value. E.g. [index, value, index, value]. This\n * allows the underlying array to be as sparse as possible and still offer decent\n * performance when being used for vector calculations.\n *\n * @constructor\n * @param {Number[]} [elements] - The flat list of element index and element value pairs.\n */\nlunr.Vector = function (elements) {\n this._magnitude = 0\n this.elements = elements || []\n}\n\n\n/**\n * Calculates the position within the vector to insert a given index.\n *\n * This is used internally by insert and upsert. If there are duplicate indexes then\n * the position is returned as if the value for that index were to be updated, but it\n * is the callers responsibility to check whether there is a duplicate at that index\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @returns {Number}\n */\nlunr.Vector.prototype.positionForIndex = function (index) {\n // For an empty vector the tuple can be inserted at the beginning\n if (this.elements.length == 0) {\n return 0\n }\n\n var start = 0,\n end = this.elements.length / 2,\n sliceLength = end - start,\n pivotPoint = Math.floor(sliceLength / 2),\n pivotIndex = this.elements[pivotPoint * 2]\n\n while (sliceLength > 1) {\n if (pivotIndex < index) {\n start = pivotPoint\n }\n\n if (pivotIndex > index) {\n end = pivotPoint\n }\n\n if (pivotIndex == index) {\n break\n }\n\n sliceLength = end - start\n pivotPoint = start + Math.floor(sliceLength / 2)\n pivotIndex = this.elements[pivotPoint * 2]\n }\n\n if (pivotIndex == index) {\n return pivotPoint * 2\n }\n\n if (pivotIndex > index) {\n return pivotPoint * 2\n }\n\n if (pivotIndex < index) {\n return (pivotPoint + 1) * 2\n }\n}\n\n/**\n * Inserts an element at an index within the vector.\n *\n * Does not allow duplicates, will throw an error if there is already an entry\n * for this index.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n */\nlunr.Vector.prototype.insert = function (insertIdx, val) {\n this.upsert(insertIdx, val, function () {\n throw \"duplicate index\"\n })\n}\n\n/**\n * Inserts or updates an existing index within the vector.\n *\n * @param {Number} insertIdx - The index at which the element should be inserted.\n * @param {Number} val - The value to be inserted into the vector.\n * @param {function} fn - A function that is called for updates, the existing value and the\n * requested value are passed as arguments\n */\nlunr.Vector.prototype.upsert = function (insertIdx, val, fn) {\n this._magnitude = 0\n var position = this.positionForIndex(insertIdx)\n\n if (this.elements[position] == insertIdx) {\n this.elements[position + 1] = fn(this.elements[position + 1], val)\n } else {\n this.elements.splice(position, 0, insertIdx, val)\n }\n}\n\n/**\n * Calculates the magnitude of this vector.\n *\n * @returns {Number}\n */\nlunr.Vector.prototype.magnitude = function () {\n if (this._magnitude) return this._magnitude\n\n var sumOfSquares = 0,\n elementsLength = this.elements.length\n\n for (var i = 1; i < elementsLength; i += 2) {\n var val = this.elements[i]\n sumOfSquares += val * val\n }\n\n return this._magnitude = Math.sqrt(sumOfSquares)\n}\n\n/**\n * Calculates the dot product of this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The vector to compute the dot product with.\n * @returns {Number}\n */\nlunr.Vector.prototype.dot = function (otherVector) {\n var dotProduct = 0,\n a = this.elements, b = otherVector.elements,\n aLen = a.length, bLen = b.length,\n aVal = 0, bVal = 0,\n i = 0, j = 0\n\n while (i < aLen && j < bLen) {\n aVal = a[i], bVal = b[j]\n if (aVal < bVal) {\n i += 2\n } else if (aVal > bVal) {\n j += 2\n } else if (aVal == bVal) {\n dotProduct += a[i + 1] * b[j + 1]\n i += 2\n j += 2\n }\n }\n\n return dotProduct\n}\n\n/**\n * Calculates the similarity between this vector and another vector.\n *\n * @param {lunr.Vector} otherVector - The other vector to calculate the\n * similarity with.\n * @returns {Number}\n */\nlunr.Vector.prototype.similarity = function (otherVector) {\n return this.dot(otherVector) / this.magnitude() || 0\n}\n\n/**\n * Converts the vector to an array of the elements within the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toArray = function () {\n var output = new Array (this.elements.length / 2)\n\n for (var i = 1, j = 0; i < this.elements.length; i += 2, j++) {\n output[j] = this.elements[i]\n }\n\n return output\n}\n\n/**\n * A JSON serializable representation of the vector.\n *\n * @returns {Number[]}\n */\nlunr.Vector.prototype.toJSON = function () {\n return this.elements\n}\n/* eslint-disable */\n/*!\n * lunr.stemmer\n * Copyright (C) 2019 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */\n\n/**\n * lunr.stemmer is an english language stemmer, this is a JavaScript\n * implementation of the PorterStemmer taken from http://tartarus.org/~martin\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token - The string to stem\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n * @function\n */\nlunr.stemmer = (function(){\n var step2list = {\n \"ational\" : \"ate\",\n \"tional\" : \"tion\",\n \"enci\" : \"ence\",\n \"anci\" : \"ance\",\n \"izer\" : \"ize\",\n \"bli\" : \"ble\",\n \"alli\" : \"al\",\n \"entli\" : \"ent\",\n \"eli\" : \"e\",\n \"ousli\" : \"ous\",\n \"ization\" : \"ize\",\n \"ation\" : \"ate\",\n \"ator\" : \"ate\",\n \"alism\" : \"al\",\n \"iveness\" : \"ive\",\n \"fulness\" : \"ful\",\n \"ousness\" : \"ous\",\n \"aliti\" : \"al\",\n \"iviti\" : \"ive\",\n \"biliti\" : \"ble\",\n \"logi\" : \"log\"\n },\n\n step3list = {\n \"icate\" : \"ic\",\n \"ative\" : \"\",\n \"alize\" : \"al\",\n \"iciti\" : \"ic\",\n \"ical\" : \"ic\",\n \"ful\" : \"\",\n \"ness\" : \"\"\n },\n\n c = \"[^aeiou]\", // consonant\n v = \"[aeiouy]\", // vowel\n C = c + \"[^aeiouy]*\", // consonant sequence\n V = v + \"[aeiou]*\", // vowel sequence\n\n mgr0 = \"^(\" + C + \")?\" + V + C, // [C]VC... is m>0\n meq1 = \"^(\" + C + \")?\" + V + C + \"(\" + V + \")?$\", // [C]VC[V] is m=1\n mgr1 = \"^(\" + C + \")?\" + V + C + V + C, // [C]VCVC... is m>1\n s_v = \"^(\" + C + \")?\" + v; // vowel in stem\n\n var re_mgr0 = new RegExp(mgr0);\n var re_mgr1 = new RegExp(mgr1);\n var re_meq1 = new RegExp(meq1);\n var re_s_v = new RegExp(s_v);\n\n var re_1a = /^(.+?)(ss|i)es$/;\n var re2_1a = /^(.+?)([^s])s$/;\n var re_1b = /^(.+?)eed$/;\n var re2_1b = /^(.+?)(ed|ing)$/;\n var re_1b_2 = /.$/;\n var re2_1b_2 = /(at|bl|iz)$/;\n var re3_1b_2 = new RegExp(\"([^aeiouylsz])\\\\1$\");\n var re4_1b_2 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var re_1c = /^(.+?[^aeiou])y$/;\n var re_2 = /^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/;\n\n var re_3 = /^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/;\n\n var re_4 = /^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/;\n var re2_4 = /^(.+?)(s|t)(ion)$/;\n\n var re_5 = /^(.+?)e$/;\n var re_5_1 = /ll$/;\n var re3_5 = new RegExp(\"^\" + C + v + \"[^aeiouwxy]$\");\n\n var porterStemmer = function porterStemmer(w) {\n var stem,\n suffix,\n firstch,\n re,\n re2,\n re3,\n re4;\n\n if (w.length < 3) { return w; }\n\n firstch = w.substr(0,1);\n if (firstch == \"y\") {\n w = firstch.toUpperCase() + w.substr(1);\n }\n\n // Step 1a\n re = re_1a\n re2 = re2_1a;\n\n if (re.test(w)) { w = w.replace(re,\"$1$2\"); }\n else if (re2.test(w)) { w = w.replace(re2,\"$1$2\"); }\n\n // Step 1b\n re = re_1b;\n re2 = re2_1b;\n if (re.test(w)) {\n var fp = re.exec(w);\n re = re_mgr0;\n if (re.test(fp[1])) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1];\n re2 = re_s_v;\n if (re2.test(stem)) {\n w = stem;\n re2 = re2_1b_2;\n re3 = re3_1b_2;\n re4 = re4_1b_2;\n if (re2.test(w)) { w = w + \"e\"; }\n else if (re3.test(w)) { re = re_1b_2; w = w.replace(re,\"\"); }\n else if (re4.test(w)) { w = w + \"e\"; }\n }\n }\n\n // Step 1c - replace suffix y or Y by i if preceded by a non-vowel which is not the first letter of the word (so cry -> cri, by -> by, say -> say)\n re = re_1c;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n w = stem + \"i\";\n }\n\n // Step 2\n re = re_2;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step2list[suffix];\n }\n }\n\n // Step 3\n re = re_3;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n suffix = fp[2];\n re = re_mgr0;\n if (re.test(stem)) {\n w = stem + step3list[suffix];\n }\n }\n\n // Step 4\n re = re_4;\n re2 = re2_4;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n if (re.test(stem)) {\n w = stem;\n }\n } else if (re2.test(w)) {\n var fp = re2.exec(w);\n stem = fp[1] + fp[2];\n re2 = re_mgr1;\n if (re2.test(stem)) {\n w = stem;\n }\n }\n\n // Step 5\n re = re_5;\n if (re.test(w)) {\n var fp = re.exec(w);\n stem = fp[1];\n re = re_mgr1;\n re2 = re_meq1;\n re3 = re3_5;\n if (re.test(stem) || (re2.test(stem) && !(re3.test(stem)))) {\n w = stem;\n }\n }\n\n re = re_5_1;\n re2 = re_mgr1;\n if (re.test(w) && re2.test(w)) {\n re = re_1b_2;\n w = w.replace(re,\"\");\n }\n\n // and turn initial Y back to y\n\n if (firstch == \"y\") {\n w = firstch.toLowerCase() + w.substr(1);\n }\n\n return w;\n };\n\n return function (token) {\n return token.update(porterStemmer);\n }\n})();\n\nlunr.Pipeline.registerFunction(lunr.stemmer, 'stemmer')\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.generateStopWordFilter builds a stopWordFilter function from the provided\n * list of stop words.\n *\n * The built in lunr.stopWordFilter is built using this generator and can be used\n * to generate custom stopWordFilters for applications or non English languages.\n *\n * @function\n * @param {Array} token The token to pass through the filter\n * @returns {lunr.PipelineFunction}\n * @see lunr.Pipeline\n * @see lunr.stopWordFilter\n */\nlunr.generateStopWordFilter = function (stopWords) {\n var words = stopWords.reduce(function (memo, stopWord) {\n memo[stopWord] = stopWord\n return memo\n }, {})\n\n return function (token) {\n if (token && words[token.toString()] !== token.toString()) return token\n }\n}\n\n/**\n * lunr.stopWordFilter is an English language stop word list filter, any words\n * contained in the list will not be passed through the filter.\n *\n * This is intended to be used in the Pipeline. If the token does not pass the\n * filter then undefined will be returned.\n *\n * @function\n * @implements {lunr.PipelineFunction}\n * @params {lunr.Token} token - A token to check for being a stop word.\n * @returns {lunr.Token}\n * @see {@link lunr.Pipeline}\n */\nlunr.stopWordFilter = lunr.generateStopWordFilter([\n 'a',\n 'able',\n 'about',\n 'across',\n 'after',\n 'all',\n 'almost',\n 'also',\n 'am',\n 'among',\n 'an',\n 'and',\n 'any',\n 'are',\n 'as',\n 'at',\n 'be',\n 'because',\n 'been',\n 'but',\n 'by',\n 'can',\n 'cannot',\n 'could',\n 'dear',\n 'did',\n 'do',\n 'does',\n 'either',\n 'else',\n 'ever',\n 'every',\n 'for',\n 'from',\n 'get',\n 'got',\n 'had',\n 'has',\n 'have',\n 'he',\n 'her',\n 'hers',\n 'him',\n 'his',\n 'how',\n 'however',\n 'i',\n 'if',\n 'in',\n 'into',\n 'is',\n 'it',\n 'its',\n 'just',\n 'least',\n 'let',\n 'like',\n 'likely',\n 'may',\n 'me',\n 'might',\n 'most',\n 'must',\n 'my',\n 'neither',\n 'no',\n 'nor',\n 'not',\n 'of',\n 'off',\n 'often',\n 'on',\n 'only',\n 'or',\n 'other',\n 'our',\n 'own',\n 'rather',\n 'said',\n 'say',\n 'says',\n 'she',\n 'should',\n 'since',\n 'so',\n 'some',\n 'than',\n 'that',\n 'the',\n 'their',\n 'them',\n 'then',\n 'there',\n 'these',\n 'they',\n 'this',\n 'tis',\n 'to',\n 'too',\n 'twas',\n 'us',\n 'wants',\n 'was',\n 'we',\n 'were',\n 'what',\n 'when',\n 'where',\n 'which',\n 'while',\n 'who',\n 'whom',\n 'why',\n 'will',\n 'with',\n 'would',\n 'yet',\n 'you',\n 'your'\n])\n\nlunr.Pipeline.registerFunction(lunr.stopWordFilter, 'stopWordFilter')\n/*!\n * lunr.trimmer\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.trimmer is a pipeline function for trimming non word\n * characters from the beginning and end of tokens before they\n * enter the index.\n *\n * This implementation may not work correctly for non latin\n * characters and should either be removed or adapted for use\n * with languages with non-latin characters.\n *\n * @static\n * @implements {lunr.PipelineFunction}\n * @param {lunr.Token} token The token to pass through the filter\n * @returns {lunr.Token}\n * @see lunr.Pipeline\n */\nlunr.trimmer = function (token) {\n return token.update(function (s) {\n return s.replace(/^\\W+/, '').replace(/\\W+$/, '')\n })\n}\n\nlunr.Pipeline.registerFunction(lunr.trimmer, 'trimmer')\n/*!\n * lunr.TokenSet\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * A token set is used to store the unique list of all tokens\n * within an index. Token sets are also used to represent an\n * incoming query to the index, this query token set and index\n * token set are then intersected to find which tokens to look\n * up in the inverted index.\n *\n * A token set can hold multiple tokens, as in the case of the\n * index token set, or it can hold a single token as in the\n * case of a simple query token set.\n *\n * Additionally token sets are used to perform wildcard matching.\n * Leading, contained and trailing wildcards are supported, and\n * from this edit distance matching can also be provided.\n *\n * Token sets are implemented as a minimal finite state automata,\n * where both common prefixes and suffixes are shared between tokens.\n * This helps to reduce the space used for storing the token set.\n *\n * @constructor\n */\nlunr.TokenSet = function () {\n this.final = false\n this.edges = {}\n this.id = lunr.TokenSet._nextId\n lunr.TokenSet._nextId += 1\n}\n\n/**\n * Keeps track of the next, auto increment, identifier to assign\n * to a new tokenSet.\n *\n * TokenSets require a unique identifier to be correctly minimised.\n *\n * @private\n */\nlunr.TokenSet._nextId = 1\n\n/**\n * Creates a TokenSet instance from the given sorted array of words.\n *\n * @param {String[]} arr - A sorted array of strings to create the set from.\n * @returns {lunr.TokenSet}\n * @throws Will throw an error if the input array is not sorted.\n */\nlunr.TokenSet.fromArray = function (arr) {\n var builder = new lunr.TokenSet.Builder\n\n for (var i = 0, len = arr.length; i < len; i++) {\n builder.insert(arr[i])\n }\n\n builder.finish()\n return builder.root\n}\n\n/**\n * Creates a token set from a query clause.\n *\n * @private\n * @param {Object} clause - A single clause from lunr.Query.\n * @param {string} clause.term - The query clause term.\n * @param {number} [clause.editDistance] - The optional edit distance for the term.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromClause = function (clause) {\n if ('editDistance' in clause) {\n return lunr.TokenSet.fromFuzzyString(clause.term, clause.editDistance)\n } else {\n return lunr.TokenSet.fromString(clause.term)\n }\n}\n\n/**\n * Creates a token set representing a single string with a specified\n * edit distance.\n *\n * Insertions, deletions, substitutions and transpositions are each\n * treated as an edit distance of 1.\n *\n * Increasing the allowed edit distance will have a dramatic impact\n * on the performance of both creating and intersecting these TokenSets.\n * It is advised to keep the edit distance less than 3.\n *\n * @param {string} str - The string to create the token set from.\n * @param {number} editDistance - The allowed edit distance to match.\n * @returns {lunr.Vector}\n */\nlunr.TokenSet.fromFuzzyString = function (str, editDistance) {\n var root = new lunr.TokenSet\n\n var stack = [{\n node: root,\n editsRemaining: editDistance,\n str: str\n }]\n\n while (stack.length) {\n var frame = stack.pop()\n\n // no edit\n if (frame.str.length > 0) {\n var char = frame.str.charAt(0),\n noEditNode\n\n if (char in frame.node.edges) {\n noEditNode = frame.node.edges[char]\n } else {\n noEditNode = new lunr.TokenSet\n frame.node.edges[char] = noEditNode\n }\n\n if (frame.str.length == 1) {\n noEditNode.final = true\n }\n\n stack.push({\n node: noEditNode,\n editsRemaining: frame.editsRemaining,\n str: frame.str.slice(1)\n })\n }\n\n if (frame.editsRemaining == 0) {\n continue\n }\n\n // insertion\n if (\"*\" in frame.node.edges) {\n var insertionNode = frame.node.edges[\"*\"]\n } else {\n var insertionNode = new lunr.TokenSet\n frame.node.edges[\"*\"] = insertionNode\n }\n\n if (frame.str.length == 0) {\n insertionNode.final = true\n }\n\n stack.push({\n node: insertionNode,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str\n })\n\n // deletion\n // can only do a deletion if we have enough edits remaining\n // and if there are characters left to delete in the string\n if (frame.str.length > 1) {\n stack.push({\n node: frame.node,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str.slice(1)\n })\n }\n\n // deletion\n // just removing the last character from the str\n if (frame.str.length == 1) {\n frame.node.final = true\n }\n\n // substitution\n // can only do a substitution if we have enough edits remaining\n // and if there are characters left to substitute\n if (frame.str.length >= 1) {\n if (\"*\" in frame.node.edges) {\n var substitutionNode = frame.node.edges[\"*\"]\n } else {\n var substitutionNode = new lunr.TokenSet\n frame.node.edges[\"*\"] = substitutionNode\n }\n\n if (frame.str.length == 1) {\n substitutionNode.final = true\n }\n\n stack.push({\n node: substitutionNode,\n editsRemaining: frame.editsRemaining - 1,\n str: frame.str.slice(1)\n })\n }\n\n // transposition\n // can only do a transposition if there are edits remaining\n // and there are enough characters to transpose\n if (frame.str.length > 1) {\n var charA = frame.str.charAt(0),\n charB = frame.str.charAt(1),\n transposeNode\n\n if (charB in frame.node.edges) {\n transposeNode = frame.node.edges[charB]\n } else {\n transposeNode = new lunr.TokenSet\n frame.node.edges[charB] = transposeNode\n }\n\n if (frame.str.length == 1) {\n transposeNode.final = true\n }\n\n stack.push({\n node: transposeNode,\n editsRemaining: frame.editsRemaining - 1,\n str: charA + frame.str.slice(2)\n })\n }\n }\n\n return root\n}\n\n/**\n * Creates a TokenSet from a string.\n *\n * The string may contain one or more wildcard characters (*)\n * that will allow wildcard matching when intersecting with\n * another TokenSet.\n *\n * @param {string} str - The string to create a TokenSet from.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.fromString = function (str) {\n var node = new lunr.TokenSet,\n root = node\n\n /*\n * Iterates through all characters within the passed string\n * appending a node for each character.\n *\n * When a wildcard character is found then a self\n * referencing edge is introduced to continually match\n * any number of any characters.\n */\n for (var i = 0, len = str.length; i < len; i++) {\n var char = str[i],\n final = (i == len - 1)\n\n if (char == \"*\") {\n node.edges[char] = node\n node.final = final\n\n } else {\n var next = new lunr.TokenSet\n next.final = final\n\n node.edges[char] = next\n node = next\n }\n }\n\n return root\n}\n\n/**\n * Converts this TokenSet into an array of strings\n * contained within the TokenSet.\n *\n * @returns {string[]}\n */\nlunr.TokenSet.prototype.toArray = function () {\n var words = []\n\n var stack = [{\n prefix: \"\",\n node: this\n }]\n\n while (stack.length) {\n var frame = stack.pop(),\n edges = Object.keys(frame.node.edges),\n len = edges.length\n\n if (frame.node.final) {\n /* In Safari, at this point the prefix is sometimes corrupted, see:\n * https://github.com/olivernn/lunr.js/issues/279 Calling any\n * String.prototype method forces Safari to \"cast\" this string to what\n * it's supposed to be, fixing the bug. */\n frame.prefix.charAt(0)\n words.push(frame.prefix)\n }\n\n for (var i = 0; i < len; i++) {\n var edge = edges[i]\n\n stack.push({\n prefix: frame.prefix.concat(edge),\n node: frame.node.edges[edge]\n })\n }\n }\n\n return words\n}\n\n/**\n * Generates a string representation of a TokenSet.\n *\n * This is intended to allow TokenSets to be used as keys\n * in objects, largely to aid the construction and minimisation\n * of a TokenSet. As such it is not designed to be a human\n * friendly representation of the TokenSet.\n *\n * @returns {string}\n */\nlunr.TokenSet.prototype.toString = function () {\n // NOTE: Using Object.keys here as this.edges is very likely\n // to enter 'hash-mode' with many keys being added\n //\n // avoiding a for-in loop here as it leads to the function\n // being de-optimised (at least in V8). From some simple\n // benchmarks the performance is comparable, but allowing\n // V8 to optimize may mean easy performance wins in the future.\n\n if (this._str) {\n return this._str\n }\n\n var str = this.final ? '1' : '0',\n labels = Object.keys(this.edges).sort(),\n len = labels.length\n\n for (var i = 0; i < len; i++) {\n var label = labels[i],\n node = this.edges[label]\n\n str = str + label + node.id\n }\n\n return str\n}\n\n/**\n * Returns a new TokenSet that is the intersection of\n * this TokenSet and the passed TokenSet.\n *\n * This intersection will take into account any wildcards\n * contained within the TokenSet.\n *\n * @param {lunr.TokenSet} b - An other TokenSet to intersect with.\n * @returns {lunr.TokenSet}\n */\nlunr.TokenSet.prototype.intersect = function (b) {\n var output = new lunr.TokenSet,\n frame = undefined\n\n var stack = [{\n qNode: b,\n output: output,\n node: this\n }]\n\n while (stack.length) {\n frame = stack.pop()\n\n // NOTE: As with the #toString method, we are using\n // Object.keys and a for loop instead of a for-in loop\n // as both of these objects enter 'hash' mode, causing\n // the function to be de-optimised in V8\n var qEdges = Object.keys(frame.qNode.edges),\n qLen = qEdges.length,\n nEdges = Object.keys(frame.node.edges),\n nLen = nEdges.length\n\n for (var q = 0; q < qLen; q++) {\n var qEdge = qEdges[q]\n\n for (var n = 0; n < nLen; n++) {\n var nEdge = nEdges[n]\n\n if (nEdge == qEdge || qEdge == '*') {\n var node = frame.node.edges[nEdge],\n qNode = frame.qNode.edges[qEdge],\n final = node.final && qNode.final,\n next = undefined\n\n if (nEdge in frame.output.edges) {\n // an edge already exists for this character\n // no need to create a new node, just set the finality\n // bit unless this node is already final\n next = frame.output.edges[nEdge]\n next.final = next.final || final\n\n } else {\n // no edge exists yet, must create one\n // set the finality bit and insert it\n // into the output\n next = new lunr.TokenSet\n next.final = final\n frame.output.edges[nEdge] = next\n }\n\n stack.push({\n qNode: qNode,\n output: next,\n node: node\n })\n }\n }\n }\n }\n\n return output\n}\nlunr.TokenSet.Builder = function () {\n this.previousWord = \"\"\n this.root = new lunr.TokenSet\n this.uncheckedNodes = []\n this.minimizedNodes = {}\n}\n\nlunr.TokenSet.Builder.prototype.insert = function (word) {\n var node,\n commonPrefix = 0\n\n if (word < this.previousWord) {\n throw new Error (\"Out of order word insertion\")\n }\n\n for (var i = 0; i < word.length && i < this.previousWord.length; i++) {\n if (word[i] != this.previousWord[i]) break\n commonPrefix++\n }\n\n this.minimize(commonPrefix)\n\n if (this.uncheckedNodes.length == 0) {\n node = this.root\n } else {\n node = this.uncheckedNodes[this.uncheckedNodes.length - 1].child\n }\n\n for (var i = commonPrefix; i < word.length; i++) {\n var nextNode = new lunr.TokenSet,\n char = word[i]\n\n node.edges[char] = nextNode\n\n this.uncheckedNodes.push({\n parent: node,\n char: char,\n child: nextNode\n })\n\n node = nextNode\n }\n\n node.final = true\n this.previousWord = word\n}\n\nlunr.TokenSet.Builder.prototype.finish = function () {\n this.minimize(0)\n}\n\nlunr.TokenSet.Builder.prototype.minimize = function (downTo) {\n for (var i = this.uncheckedNodes.length - 1; i >= downTo; i--) {\n var node = this.uncheckedNodes[i],\n childKey = node.child.toString()\n\n if (childKey in this.minimizedNodes) {\n node.parent.edges[node.char] = this.minimizedNodes[childKey]\n } else {\n // Cache the key for this node since\n // we know it can't change anymore\n node.child._str = childKey\n\n this.minimizedNodes[childKey] = node.child\n }\n\n this.uncheckedNodes.pop()\n }\n}\n/*!\n * lunr.Index\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * An index contains the built index of all documents and provides a query interface\n * to the index.\n *\n * Usually instances of lunr.Index will not be created using this constructor, instead\n * lunr.Builder should be used to construct new indexes, or lunr.Index.load should be\n * used to load previously built and serialized indexes.\n *\n * @constructor\n * @param {Object} attrs - The attributes of the built search index.\n * @param {Object} attrs.invertedIndex - An index of term/field to document reference.\n * @param {Object} attrs.fieldVectors - Field vectors\n * @param {lunr.TokenSet} attrs.tokenSet - An set of all corpus tokens.\n * @param {string[]} attrs.fields - The names of indexed document fields.\n * @param {lunr.Pipeline} attrs.pipeline - The pipeline to use for search terms.\n */\nlunr.Index = function (attrs) {\n this.invertedIndex = attrs.invertedIndex\n this.fieldVectors = attrs.fieldVectors\n this.tokenSet = attrs.tokenSet\n this.fields = attrs.fields\n this.pipeline = attrs.pipeline\n}\n\n/**\n * A result contains details of a document matching a search query.\n * @typedef {Object} lunr.Index~Result\n * @property {string} ref - The reference of the document this result represents.\n * @property {number} score - A number between 0 and 1 representing how similar this document is to the query.\n * @property {lunr.MatchData} matchData - Contains metadata about this match including which term(s) caused the match.\n */\n\n/**\n * Although lunr provides the ability to create queries using lunr.Query, it also provides a simple\n * query language which itself is parsed into an instance of lunr.Query.\n *\n * For programmatically building queries it is advised to directly use lunr.Query, the query language\n * is best used for human entered text rather than program generated text.\n *\n * At its simplest queries can just be a single term, e.g. `hello`, multiple terms are also supported\n * and will be combined with OR, e.g `hello world` will match documents that contain either 'hello'\n * or 'world', though those that contain both will rank higher in the results.\n *\n * Wildcards can be included in terms to match one or more unspecified characters, these wildcards can\n * be inserted anywhere within the term, and more than one wildcard can exist in a single term. Adding\n * wildcards will increase the number of documents that will be found but can also have a negative\n * impact on query performance, especially with wildcards at the beginning of a term.\n *\n * Terms can be restricted to specific fields, e.g. `title:hello`, only documents with the term\n * hello in the title field will match this query. Using a field not present in the index will lead\n * to an error being thrown.\n *\n * Modifiers can also be added to terms, lunr supports edit distance and boost modifiers on terms. A term\n * boost will make documents matching that term score higher, e.g. `foo^5`. Edit distance is also supported\n * to provide fuzzy matching, e.g. 'hello~2' will match documents with hello with an edit distance of 2.\n * Avoid large values for edit distance to improve query performance.\n *\n * Each term also supports a presence modifier. By default a term's presence in document is optional, however\n * this can be changed to either required or prohibited. For a term's presence to be required in a document the\n * term should be prefixed with a '+', e.g. `+foo bar` is a search for documents that must contain 'foo' and\n * optionally contain 'bar'. Conversely a leading '-' sets the terms presence to prohibited, i.e. it must not\n * appear in a document, e.g. `-foo bar` is a search for documents that do not contain 'foo' but may contain 'bar'.\n *\n * To escape special characters the backslash character '\\' can be used, this allows searches to include\n * characters that would normally be considered modifiers, e.g. `foo\\~2` will search for a term \"foo~2\" instead\n * of attempting to apply a boost of 2 to the search term \"foo\".\n *\n * @typedef {string} lunr.Index~QueryString\n * @example Simple single term query\n * hello\n * @example Multiple term query\n * hello world\n * @example term scoped to a field\n * title:hello\n * @example term with a boost of 10\n * hello^10\n * @example term with an edit distance of 2\n * hello~2\n * @example terms with presence modifiers\n * -foo +bar baz\n */\n\n/**\n * Performs a search against the index using lunr query syntax.\n *\n * Results will be returned sorted by their score, the most relevant results\n * will be returned first. For details on how the score is calculated, please see\n * the {@link https://lunrjs.com/guides/searching.html#scoring|guide}.\n *\n * For more programmatic querying use lunr.Index#query.\n *\n * @param {lunr.Index~QueryString} queryString - A string containing a lunr query.\n * @throws {lunr.QueryParseError} If the passed query string cannot be parsed.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.search = function (queryString) {\n return this.query(function (query) {\n var parser = new lunr.QueryParser(queryString, query)\n parser.parse()\n })\n}\n\n/**\n * A query builder callback provides a query object to be used to express\n * the query to perform on the index.\n *\n * @callback lunr.Index~queryBuilder\n * @param {lunr.Query} query - The query object to build up.\n * @this lunr.Query\n */\n\n/**\n * Performs a query against the index using the yielded lunr.Query object.\n *\n * If performing programmatic queries against the index, this method is preferred\n * over lunr.Index#search so as to avoid the additional query parsing overhead.\n *\n * A query object is yielded to the supplied function which should be used to\n * express the query to be run against the index.\n *\n * Note that although this function takes a callback parameter it is _not_ an\n * asynchronous operation, the callback is just yielded a query object to be\n * customized.\n *\n * @param {lunr.Index~queryBuilder} fn - A function that is used to build the query.\n * @returns {lunr.Index~Result[]}\n */\nlunr.Index.prototype.query = function (fn) {\n // for each query clause\n // * process terms\n // * expand terms from token set\n // * find matching documents and metadata\n // * get document vectors\n // * score documents\n\n var query = new lunr.Query(this.fields),\n matchingFields = Object.create(null),\n queryVectors = Object.create(null),\n termFieldCache = Object.create(null),\n requiredMatches = Object.create(null),\n prohibitedMatches = Object.create(null)\n\n /*\n * To support field level boosts a query vector is created per\n * field. An empty vector is eagerly created to support negated\n * queries.\n */\n for (var i = 0; i < this.fields.length; i++) {\n queryVectors[this.fields[i]] = new lunr.Vector\n }\n\n fn.call(query, query)\n\n for (var i = 0; i < query.clauses.length; i++) {\n /*\n * Unless the pipeline has been disabled for this term, which is\n * the case for terms with wildcards, we need to pass the clause\n * term through the search pipeline. A pipeline returns an array\n * of processed terms. Pipeline functions may expand the passed\n * term, which means we may end up performing multiple index lookups\n * for a single query term.\n */\n var clause = query.clauses[i],\n terms = null,\n clauseMatches = lunr.Set.complete\n\n if (clause.usePipeline) {\n terms = this.pipeline.runString(clause.term, {\n fields: clause.fields\n })\n } else {\n terms = [clause.term]\n }\n\n for (var m = 0; m < terms.length; m++) {\n var term = terms[m]\n\n /*\n * Each term returned from the pipeline needs to use the same query\n * clause object, e.g. the same boost and or edit distance. The\n * simplest way to do this is to re-use the clause object but mutate\n * its term property.\n */\n clause.term = term\n\n /*\n * From the term in the clause we create a token set which will then\n * be used to intersect the indexes token set to get a list of terms\n * to lookup in the inverted index\n */\n var termTokenSet = lunr.TokenSet.fromClause(clause),\n expandedTerms = this.tokenSet.intersect(termTokenSet).toArray()\n\n /*\n * If a term marked as required does not exist in the tokenSet it is\n * impossible for the search to return any matches. We set all the field\n * scoped required matches set to empty and stop examining any further\n * clauses.\n */\n if (expandedTerms.length === 0 && clause.presence === lunr.Query.presence.REQUIRED) {\n for (var k = 0; k < clause.fields.length; k++) {\n var field = clause.fields[k]\n requiredMatches[field] = lunr.Set.empty\n }\n\n break\n }\n\n for (var j = 0; j < expandedTerms.length; j++) {\n /*\n * For each term get the posting and termIndex, this is required for\n * building the query vector.\n */\n var expandedTerm = expandedTerms[j],\n posting = this.invertedIndex[expandedTerm],\n termIndex = posting._index\n\n for (var k = 0; k < clause.fields.length; k++) {\n /*\n * For each field that this query term is scoped by (by default\n * all fields are in scope) we need to get all the document refs\n * that have this term in that field.\n *\n * The posting is the entry in the invertedIndex for the matching\n * term from above.\n */\n var field = clause.fields[k],\n fieldPosting = posting[field],\n matchingDocumentRefs = Object.keys(fieldPosting),\n termField = expandedTerm + \"/\" + field,\n matchingDocumentsSet = new lunr.Set(matchingDocumentRefs)\n\n /*\n * if the presence of this term is required ensure that the matching\n * documents are added to the set of required matches for this clause.\n *\n */\n if (clause.presence == lunr.Query.presence.REQUIRED) {\n clauseMatches = clauseMatches.union(matchingDocumentsSet)\n\n if (requiredMatches[field] === undefined) {\n requiredMatches[field] = lunr.Set.complete\n }\n }\n\n /*\n * if the presence of this term is prohibited ensure that the matching\n * documents are added to the set of prohibited matches for this field,\n * creating that set if it does not yet exist.\n */\n if (clause.presence == lunr.Query.presence.PROHIBITED) {\n if (prohibitedMatches[field] === undefined) {\n prohibitedMatches[field] = lunr.Set.empty\n }\n\n prohibitedMatches[field] = prohibitedMatches[field].union(matchingDocumentsSet)\n\n /*\n * Prohibited matches should not be part of the query vector used for\n * similarity scoring and no metadata should be extracted so we continue\n * to the next field\n */\n continue\n }\n\n /*\n * The query field vector is populated using the termIndex found for\n * the term and a unit value with the appropriate boost applied.\n * Using upsert because there could already be an entry in the vector\n * for the term we are working with. In that case we just add the scores\n * together.\n */\n queryVectors[field].upsert(termIndex, clause.boost, function (a, b) { return a + b })\n\n /**\n * If we've already seen this term, field combo then we've already collected\n * the matching documents and metadata, no need to go through all that again\n */\n if (termFieldCache[termField]) {\n continue\n }\n\n for (var l = 0; l < matchingDocumentRefs.length; l++) {\n /*\n * All metadata for this term/field/document triple\n * are then extracted and collected into an instance\n * of lunr.MatchData ready to be returned in the query\n * results\n */\n var matchingDocumentRef = matchingDocumentRefs[l],\n matchingFieldRef = new lunr.FieldRef (matchingDocumentRef, field),\n metadata = fieldPosting[matchingDocumentRef],\n fieldMatch\n\n if ((fieldMatch = matchingFields[matchingFieldRef]) === undefined) {\n matchingFields[matchingFieldRef] = new lunr.MatchData (expandedTerm, field, metadata)\n } else {\n fieldMatch.add(expandedTerm, field, metadata)\n }\n\n }\n\n termFieldCache[termField] = true\n }\n }\n }\n\n /**\n * If the presence was required we need to update the requiredMatches field sets.\n * We do this after all fields for the term have collected their matches because\n * the clause terms presence is required in _any_ of the fields not _all_ of the\n * fields.\n */\n if (clause.presence === lunr.Query.presence.REQUIRED) {\n for (var k = 0; k < clause.fields.length; k++) {\n var field = clause.fields[k]\n requiredMatches[field] = requiredMatches[field].intersect(clauseMatches)\n }\n }\n }\n\n /**\n * Need to combine the field scoped required and prohibited\n * matching documents into a global set of required and prohibited\n * matches\n */\n var allRequiredMatches = lunr.Set.complete,\n allProhibitedMatches = lunr.Set.empty\n\n for (var i = 0; i < this.fields.length; i++) {\n var field = this.fields[i]\n\n if (requiredMatches[field]) {\n allRequiredMatches = allRequiredMatches.intersect(requiredMatches[field])\n }\n\n if (prohibitedMatches[field]) {\n allProhibitedMatches = allProhibitedMatches.union(prohibitedMatches[field])\n }\n }\n\n var matchingFieldRefs = Object.keys(matchingFields),\n results = [],\n matches = Object.create(null)\n\n /*\n * If the query is negated (contains only prohibited terms)\n * we need to get _all_ fieldRefs currently existing in the\n * index. This is only done when we know that the query is\n * entirely prohibited terms to avoid any cost of getting all\n * fieldRefs unnecessarily.\n *\n * Additionally, blank MatchData must be created to correctly\n * populate the results.\n */\n if (query.isNegated()) {\n matchingFieldRefs = Object.keys(this.fieldVectors)\n\n for (var i = 0; i < matchingFieldRefs.length; i++) {\n var matchingFieldRef = matchingFieldRefs[i]\n var fieldRef = lunr.FieldRef.fromString(matchingFieldRef)\n matchingFields[matchingFieldRef] = new lunr.MatchData\n }\n }\n\n for (var i = 0; i < matchingFieldRefs.length; i++) {\n /*\n * Currently we have document fields that match the query, but we\n * need to return documents. The matchData and scores are combined\n * from multiple fields belonging to the same document.\n *\n * Scores are calculated by field, using the query vectors created\n * above, and combined into a final document score using addition.\n */\n var fieldRef = lunr.FieldRef.fromString(matchingFieldRefs[i]),\n docRef = fieldRef.docRef\n\n if (!allRequiredMatches.contains(docRef)) {\n continue\n }\n\n if (allProhibitedMatches.contains(docRef)) {\n continue\n }\n\n var fieldVector = this.fieldVectors[fieldRef],\n score = queryVectors[fieldRef.fieldName].similarity(fieldVector),\n docMatch\n\n if ((docMatch = matches[docRef]) !== undefined) {\n docMatch.score += score\n docMatch.matchData.combine(matchingFields[fieldRef])\n } else {\n var match = {\n ref: docRef,\n score: score,\n matchData: matchingFields[fieldRef]\n }\n matches[docRef] = match\n results.push(match)\n }\n }\n\n /*\n * Sort the results objects by score, highest first.\n */\n return results.sort(function (a, b) {\n return b.score - a.score\n })\n}\n\n/**\n * Prepares the index for JSON serialization.\n *\n * The schema for this JSON blob will be described in a\n * separate JSON schema file.\n *\n * @returns {Object}\n */\nlunr.Index.prototype.toJSON = function () {\n var invertedIndex = Object.keys(this.invertedIndex)\n .sort()\n .map(function (term) {\n return [term, this.invertedIndex[term]]\n }, this)\n\n var fieldVectors = Object.keys(this.fieldVectors)\n .map(function (ref) {\n return [ref, this.fieldVectors[ref].toJSON()]\n }, this)\n\n return {\n version: lunr.version,\n fields: this.fields,\n fieldVectors: fieldVectors,\n invertedIndex: invertedIndex,\n pipeline: this.pipeline.toJSON()\n }\n}\n\n/**\n * Loads a previously serialized lunr.Index\n *\n * @param {Object} serializedIndex - A previously serialized lunr.Index\n * @returns {lunr.Index}\n */\nlunr.Index.load = function (serializedIndex) {\n var attrs = {},\n fieldVectors = {},\n serializedVectors = serializedIndex.fieldVectors,\n invertedIndex = Object.create(null),\n serializedInvertedIndex = serializedIndex.invertedIndex,\n tokenSetBuilder = new lunr.TokenSet.Builder,\n pipeline = lunr.Pipeline.load(serializedIndex.pipeline)\n\n if (serializedIndex.version != lunr.version) {\n lunr.utils.warn(\"Version mismatch when loading serialised index. Current version of lunr '\" + lunr.version + \"' does not match serialized index '\" + serializedIndex.version + \"'\")\n }\n\n for (var i = 0; i < serializedVectors.length; i++) {\n var tuple = serializedVectors[i],\n ref = tuple[0],\n elements = tuple[1]\n\n fieldVectors[ref] = new lunr.Vector(elements)\n }\n\n for (var i = 0; i < serializedInvertedIndex.length; i++) {\n var tuple = serializedInvertedIndex[i],\n term = tuple[0],\n posting = tuple[1]\n\n tokenSetBuilder.insert(term)\n invertedIndex[term] = posting\n }\n\n tokenSetBuilder.finish()\n\n attrs.fields = serializedIndex.fields\n\n attrs.fieldVectors = fieldVectors\n attrs.invertedIndex = invertedIndex\n attrs.tokenSet = tokenSetBuilder.root\n attrs.pipeline = pipeline\n\n return new lunr.Index(attrs)\n}\n/*!\n * lunr.Builder\n * Copyright (C) 2019 Oliver Nightingale\n */\n\n/**\n * lunr.Builder performs indexing on a set of documents and\n * returns instances of lunr.Index ready for querying.\n *\n * All configuration of the index is done via the builder, the\n * fields to index, the document reference, the text processing\n * pipeline and document scoring parameters are all set on the\n * builder before indexing.\n *\n * @constructor\n * @property {string} _ref - Internal reference to the document reference field.\n * @property {string[]} _fields - Internal reference to the document fields to index.\n * @property {object} invertedIndex - The inverted index maps terms to document fields.\n * @property {object} documentTermFrequencies - Keeps track of document term frequencies.\n * @property {object} documentLengths - Keeps track of the length of documents added to the index.\n * @property {lunr.tokenizer} tokenizer - Function for splitting strings into tokens for indexing.\n * @property {lunr.Pipeline} pipeline - The pipeline performs text processing on tokens before indexing.\n * @property {lunr.Pipeline} searchPipeline - A pipeline for processing search terms before querying the index.\n * @property {number} documentCount - Keeps track of the total number of documents indexed.\n * @property {number} _b - A parameter to control field length normalization, setting this to 0 disabled normalization, 1 fully normalizes field lengths, the default value is 0.75.\n * @property {number} _k1 - A parameter to control how quickly an increase in term frequency results in term frequency saturation, the default value is 1.2.\n * @property {number} termIndex - A counter incremented for each unique term, used to identify a terms position in the vector space.\n * @property {array} metadataWhitelist - A list of metadata keys that have been whitelisted for entry in the index.\n */\nlunr.Builder = function () {\n this._ref = \"id\"\n this._fields = Object.create(null)\n this._documents = Object.create(null)\n this.invertedIndex = Object.create(null)\n this.fieldTermFrequencies = {}\n this.fieldLengths = {}\n this.tokenizer = lunr.tokenizer\n this.pipeline = new lunr.Pipeline\n this.searchPipeline = new lunr.Pipeline\n this.documentCount = 0\n this._b = 0.75\n this._k1 = 1.2\n this.termIndex = 0\n this.metadataWhitelist = []\n}\n\n/**\n * Sets the document field used as the document reference. Every document must have this field.\n * The type of this field in the document should be a string, if it is not a string it will be\n * coerced into a string by calling toString.\n *\n * The default ref is 'id'.\n *\n * The ref should _not_ be changed during indexing, it should be set before any documents are\n * added to the index. Changing it during indexing can lead to inconsistent results.\n *\n * @param {string} ref - The name of the reference field in the document.\n */\nlunr.Builder.prototype.ref = function (ref) {\n this._ref = ref\n}\n\n/**\n * A function that is used to extract a field from a document.\n *\n * Lunr expects a field to be at the top level of a document, if however the field\n * is deeply nested within a document an extractor function can be used to extract\n * the right field for indexing.\n *\n * @callback fieldExtractor\n * @param {object} doc - The document being added to the index.\n * @returns {?(string|object|object[])} obj - The object that will be indexed for this field.\n * @example Extracting a nested field\n * function (doc) { return doc.nested.field }\n */\n\n/**\n * Adds a field to the list of document fields that will be indexed. Every document being\n * indexed should have this field. Null values for this field in indexed documents will\n * not cause errors but will limit the chance of that document being retrieved by searches.\n *\n * All fields should be added before adding documents to the index. Adding fields after\n * a document has been indexed will have no effect on already indexed documents.\n *\n * Fields can be boosted at build time. This allows terms within that field to have more\n * importance when ranking search results. Use a field boost to specify that matches within\n * one field are more important than other fields.\n *\n * @param {string} fieldName - The name of a field to index in all documents.\n * @param {object} attributes - Optional attributes associated with this field.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this field.\n * @param {fieldExtractor} [attributes.extractor] - Function to extract a field from a document.\n * @throws {RangeError} fieldName cannot contain unsupported characters '/'\n */\nlunr.Builder.prototype.field = function (fieldName, attributes) {\n if (/\\//.test(fieldName)) {\n throw new RangeError (\"Field '\" + fieldName + \"' contains illegal character '/'\")\n }\n\n this._fields[fieldName] = attributes || {}\n}\n\n/**\n * A parameter to tune the amount of field length normalisation that is applied when\n * calculating relevance scores. A value of 0 will completely disable any normalisation\n * and a value of 1 will fully normalise field lengths. The default is 0.75. Values of b\n * will be clamped to the range 0 - 1.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.b = function (number) {\n if (number < 0) {\n this._b = 0\n } else if (number > 1) {\n this._b = 1\n } else {\n this._b = number\n }\n}\n\n/**\n * A parameter that controls the speed at which a rise in term frequency results in term\n * frequency saturation. The default value is 1.2. Setting this to a higher value will give\n * slower saturation levels, a lower value will result in quicker saturation.\n *\n * @param {number} number - The value to set for this tuning parameter.\n */\nlunr.Builder.prototype.k1 = function (number) {\n this._k1 = number\n}\n\n/**\n * Adds a document to the index.\n *\n * Before adding fields to the index the index should have been fully setup, with the document\n * ref and all fields to index already having been specified.\n *\n * The document must have a field name as specified by the ref (by default this is 'id') and\n * it should have all fields defined for indexing, though null or undefined values will not\n * cause errors.\n *\n * Entire documents can be boosted at build time. Applying a boost to a document indicates that\n * this document should rank higher in search results than other documents.\n *\n * @param {object} doc - The document to add to the index.\n * @param {object} attributes - Optional attributes associated with this document.\n * @param {number} [attributes.boost=1] - Boost applied to all terms within this document.\n */\nlunr.Builder.prototype.add = function (doc, attributes) {\n var docRef = doc[this._ref],\n fields = Object.keys(this._fields)\n\n this._documents[docRef] = attributes || {}\n this.documentCount += 1\n\n for (var i = 0; i < fields.length; i++) {\n var fieldName = fields[i],\n extractor = this._fields[fieldName].extractor,\n field = extractor ? extractor(doc) : doc[fieldName],\n tokens = this.tokenizer(field, {\n fields: [fieldName]\n }),\n terms = this.pipeline.run(tokens),\n fieldRef = new lunr.FieldRef (docRef, fieldName),\n fieldTerms = Object.create(null)\n\n this.fieldTermFrequencies[fieldRef] = fieldTerms\n this.fieldLengths[fieldRef] = 0\n\n // store the length of this field for this document\n this.fieldLengths[fieldRef] += terms.length\n\n // calculate term frequencies for this field\n for (var j = 0; j < terms.length; j++) {\n var term = terms[j]\n\n if (fieldTerms[term] == undefined) {\n fieldTerms[term] = 0\n }\n\n fieldTerms[term] += 1\n\n // add to inverted index\n // create an initial posting if one doesn't exist\n if (this.invertedIndex[term] == undefined) {\n var posting = Object.create(null)\n posting[\"_index\"] = this.termIndex\n this.termIndex += 1\n\n for (var k = 0; k < fields.length; k++) {\n posting[fields[k]] = Object.create(null)\n }\n\n this.invertedIndex[term] = posting\n }\n\n // add an entry for this term/fieldName/docRef to the invertedIndex\n if (this.invertedIndex[term][fieldName][docRef] == undefined) {\n this.invertedIndex[term][fieldName][docRef] = Object.create(null)\n }\n\n // store all whitelisted metadata about this token in the\n // inverted index\n for (var l = 0; l < this.metadataWhitelist.length; l++) {\n var metadataKey = this.metadataWhitelist[l],\n metadata = term.metadata[metadataKey]\n\n if (this.invertedIndex[term][fieldName][docRef][metadataKey] == undefined) {\n this.invertedIndex[term][fieldName][docRef][metadataKey] = []\n }\n\n this.invertedIndex[term][fieldName][docRef][metadataKey].push(metadata)\n }\n }\n\n }\n}\n\n/**\n * Calculates the average document length for this index\n *\n * @private\n */\nlunr.Builder.prototype.calculateAverageFieldLengths = function () {\n\n var fieldRefs = Object.keys(this.fieldLengths),\n numberOfFields = fieldRefs.length,\n accumulator = {},\n documentsWithField = {}\n\n for (var i = 0; i < numberOfFields; i++) {\n var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n field = fieldRef.fieldName\n\n documentsWithField[field] || (documentsWithField[field] = 0)\n documentsWithField[field] += 1\n\n accumulator[field] || (accumulator[field] = 0)\n accumulator[field] += this.fieldLengths[fieldRef]\n }\n\n var fields = Object.keys(this._fields)\n\n for (var i = 0; i < fields.length; i++) {\n var fieldName = fields[i]\n accumulator[fieldName] = accumulator[fieldName] / documentsWithField[fieldName]\n }\n\n this.averageFieldLength = accumulator\n}\n\n/**\n * Builds a vector space model of every document using lunr.Vector\n *\n * @private\n */\nlunr.Builder.prototype.createFieldVectors = function () {\n var fieldVectors = {},\n fieldRefs = Object.keys(this.fieldTermFrequencies),\n fieldRefsLength = fieldRefs.length,\n termIdfCache = Object.create(null)\n\n for (var i = 0; i < fieldRefsLength; i++) {\n var fieldRef = lunr.FieldRef.fromString(fieldRefs[i]),\n fieldName = fieldRef.fieldName,\n fieldLength = this.fieldLengths[fieldRef],\n fieldVector = new lunr.Vector,\n termFrequencies = this.fieldTermFrequencies[fieldRef],\n terms = Object.keys(termFrequencies),\n termsLength = terms.length\n\n\n var fieldBoost = this._fields[fieldName].boost || 1,\n docBoost = this._documents[fieldRef.docRef].boost || 1\n\n for (var j = 0; j < termsLength; j++) {\n var term = terms[j],\n tf = termFrequencies[term],\n termIndex = this.invertedIndex[term]._index,\n idf, score, scoreWithPrecision\n\n if (termIdfCache[term] === undefined) {\n idf = lunr.idf(this.invertedIndex[term], this.documentCount)\n termIdfCache[term] = idf\n } else {\n idf = termIdfCache[term]\n }\n\n score = idf * ((this._k1 + 1) * tf) / (this._k1 * (1 - this._b + this._b * (fieldLength / this.averageFieldLength[fieldName])) + tf)\n score *= fieldBoost\n score *= docBoost\n scoreWithPrecision = Math.round(score * 1000) / 1000\n // Converts 1.23456789 to 1.234.\n // Reducing the precision so that the vectors take up less\n // space when serialised. Doing it now so that they behave\n // the same before and after serialisation. Also, this is\n // the fastest approach to reducing a number's precision in\n // JavaScript.\n\n fieldVector.insert(termIndex, scoreWithPrecision)\n }\n\n fieldVectors[fieldRef] = fieldVector\n }\n\n this.fieldVectors = fieldVectors\n}\n\n/**\n * Creates a token set of all tokens in the index using lunr.TokenSet\n *\n * @private\n */\nlunr.Builder.prototype.createTokenSet = function () {\n this.tokenSet = lunr.TokenSet.fromArray(\n Object.keys(this.invertedIndex).sort()\n )\n}\n\n/**\n * Builds the index, creating an instance of lunr.Index.\n *\n * This completes the indexing process and should only be called\n * once all documents have been added to the index.\n *\n * @returns {lunr.Index}\n */\nlunr.Builder.prototype.build = function () {\n this.calculateAverageFieldLengths()\n this.createFieldVectors()\n this.createTokenSet()\n\n return new lunr.Index({\n invertedIndex: this.invertedIndex,\n fieldVectors: this.fieldVectors,\n tokenSet: this.tokenSet,\n fields: Object.keys(this._fields),\n pipeline: this.searchPipeline\n })\n}\n\n/**\n * Applies a plugin to the index builder.\n *\n * A plugin is a function that is called with the index builder as its context.\n * Plugins can be used to customise or extend the behaviour of the index\n * in some way. A plugin is just a function, that encapsulated the custom\n * behaviour that should be applied when building the index.\n *\n * The plugin function will be called with the index builder as its argument, additional\n * arguments can also be passed when calling use. The function will be called\n * with the index builder as its context.\n *\n * @param {Function} plugin The plugin to apply.\n */\nlunr.Builder.prototype.use = function (fn) {\n var args = Array.prototype.slice.call(arguments, 1)\n args.unshift(this)\n fn.apply(this, args)\n}\n/**\n * Contains and collects metadata about a matching document.\n * A single instance of lunr.MatchData is returned as part of every\n * lunr.Index~Result.\n *\n * @constructor\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n * @property {object} metadata - A cloned collection of metadata associated with this document.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData = function (term, field, metadata) {\n var clonedMetadata = Object.create(null),\n metadataKeys = Object.keys(metadata || {})\n\n // Cloning the metadata to prevent the original\n // being mutated during match data combination.\n // Metadata is kept in an array within the inverted\n // index so cloning the data can be done with\n // Array#slice\n for (var i = 0; i < metadataKeys.length; i++) {\n var key = metadataKeys[i]\n clonedMetadata[key] = metadata[key].slice()\n }\n\n this.metadata = Object.create(null)\n\n if (term !== undefined) {\n this.metadata[term] = Object.create(null)\n this.metadata[term][field] = clonedMetadata\n }\n}\n\n/**\n * An instance of lunr.MatchData will be created for every term that matches a\n * document. However only one instance is required in a lunr.Index~Result. This\n * method combines metadata from another instance of lunr.MatchData with this\n * objects metadata.\n *\n * @param {lunr.MatchData} otherMatchData - Another instance of match data to merge with this one.\n * @see {@link lunr.Index~Result}\n */\nlunr.MatchData.prototype.combine = function (otherMatchData) {\n var terms = Object.keys(otherMatchData.metadata)\n\n for (var i = 0; i < terms.length; i++) {\n var term = terms[i],\n fields = Object.keys(otherMatchData.metadata[term])\n\n if (this.metadata[term] == undefined) {\n this.metadata[term] = Object.create(null)\n }\n\n for (var j = 0; j < fields.length; j++) {\n var field = fields[j],\n keys = Object.keys(otherMatchData.metadata[term][field])\n\n if (this.metadata[term][field] == undefined) {\n this.metadata[term][field] = Object.create(null)\n }\n\n for (var k = 0; k < keys.length; k++) {\n var key = keys[k]\n\n if (this.metadata[term][field][key] == undefined) {\n this.metadata[term][field][key] = otherMatchData.metadata[term][field][key]\n } else {\n this.metadata[term][field][key] = this.metadata[term][field][key].concat(otherMatchData.metadata[term][field][key])\n }\n\n }\n }\n }\n}\n\n/**\n * Add metadata for a term/field pair to this instance of match data.\n *\n * @param {string} term - The term this match data is associated with\n * @param {string} field - The field in which the term was found\n * @param {object} metadata - The metadata recorded about this term in this field\n */\nlunr.MatchData.prototype.add = function (term, field, metadata) {\n if (!(term in this.metadata)) {\n this.metadata[term] = Object.create(null)\n this.metadata[term][field] = metadata\n return\n }\n\n if (!(field in this.metadata[term])) {\n this.metadata[term][field] = metadata\n return\n }\n\n var metadataKeys = Object.keys(metadata)\n\n for (var i = 0; i < metadataKeys.length; i++) {\n var key = metadataKeys[i]\n\n if (key in this.metadata[term][field]) {\n this.metadata[term][field][key] = this.metadata[term][field][key].concat(metadata[key])\n } else {\n this.metadata[term][field][key] = metadata[key]\n }\n }\n}\n/**\n * A lunr.Query provides a programmatic way of defining queries to be performed\n * against a {@link lunr.Index}.\n *\n * Prefer constructing a lunr.Query using the {@link lunr.Index#query} method\n * so the query object is pre-initialized with the right index fields.\n *\n * @constructor\n * @property {lunr.Query~Clause[]} clauses - An array of query clauses.\n * @property {string[]} allFields - An array of all available fields in a lunr.Index.\n */\nlunr.Query = function (allFields) {\n this.clauses = []\n this.allFields = allFields\n}\n\n/**\n * Constants for indicating what kind of automatic wildcard insertion will be used when constructing a query clause.\n *\n * This allows wildcards to be added to the beginning and end of a term without having to manually do any string\n * concatenation.\n *\n * The wildcard constants can be bitwise combined to select both leading and trailing wildcards.\n *\n * @constant\n * @default\n * @property {number} wildcard.NONE - The term will have no wildcards inserted, this is the default behaviour\n * @property {number} wildcard.LEADING - Prepend the term with a wildcard, unless a leading wildcard already exists\n * @property {number} wildcard.TRAILING - Append a wildcard to the term, unless a trailing wildcard already exists\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example query term with trailing wildcard\n * query.term('foo', { wildcard: lunr.Query.wildcard.TRAILING })\n * @example query term with leading and trailing wildcard\n * query.term('foo', {\n * wildcard: lunr.Query.wildcard.LEADING | lunr.Query.wildcard.TRAILING\n * })\n */\n\nlunr.Query.wildcard = new String (\"*\")\nlunr.Query.wildcard.NONE = 0\nlunr.Query.wildcard.LEADING = 1\nlunr.Query.wildcard.TRAILING = 2\n\n/**\n * Constants for indicating what kind of presence a term must have in matching documents.\n *\n * @constant\n * @enum {number}\n * @see lunr.Query~Clause\n * @see lunr.Query#clause\n * @see lunr.Query#term\n * @example query term with required presence\n * query.term('foo', { presence: lunr.Query.presence.REQUIRED })\n */\nlunr.Query.presence = {\n /**\n * Term's presence in a document is optional, this is the default value.\n */\n OPTIONAL: 1,\n\n /**\n * Term's presence in a document is required, documents that do not contain\n * this term will not be returned.\n */\n REQUIRED: 2,\n\n /**\n * Term's presence in a document is prohibited, documents that do contain\n * this term will not be returned.\n */\n PROHIBITED: 3\n}\n\n/**\n * A single clause in a {@link lunr.Query} contains a term and details on how to\n * match that term against a {@link lunr.Index}.\n *\n * @typedef {Object} lunr.Query~Clause\n * @property {string[]} fields - The fields in an index this clause should be matched against.\n * @property {number} [boost=1] - Any boost that should be applied when matching this clause.\n * @property {number} [editDistance] - Whether the term should have fuzzy matching applied, and how fuzzy the match should be.\n * @property {boolean} [usePipeline] - Whether the term should be passed through the search pipeline.\n * @property {number} [wildcard=lunr.Query.wildcard.NONE] - Whether the term should have wildcards appended or prepended.\n * @property {number} [presence=lunr.Query.presence.OPTIONAL] - The terms presence in any matching documents.\n */\n\n/**\n * Adds a {@link lunr.Query~Clause} to this query.\n *\n * Unless the clause contains the fields to be matched all fields will be matched. In addition\n * a default boost of 1 is applied to the clause.\n *\n * @param {lunr.Query~Clause} clause - The clause to add to this query.\n * @see lunr.Query~Clause\n * @returns {lunr.Query}\n */\nlunr.Query.prototype.clause = function (clause) {\n if (!('fields' in clause)) {\n clause.fields = this.allFields\n }\n\n if (!('boost' in clause)) {\n clause.boost = 1\n }\n\n if (!('usePipeline' in clause)) {\n clause.usePipeline = true\n }\n\n if (!('wildcard' in clause)) {\n clause.wildcard = lunr.Query.wildcard.NONE\n }\n\n if ((clause.wildcard & lunr.Query.wildcard.LEADING) && (clause.term.charAt(0) != lunr.Query.wildcard)) {\n clause.term = \"*\" + clause.term\n }\n\n if ((clause.wildcard & lunr.Query.wildcard.TRAILING) && (clause.term.slice(-1) != lunr.Query.wildcard)) {\n clause.term = \"\" + clause.term + \"*\"\n }\n\n if (!('presence' in clause)) {\n clause.presence = lunr.Query.presence.OPTIONAL\n }\n\n this.clauses.push(clause)\n\n return this\n}\n\n/**\n * A negated query is one in which every clause has a presence of\n * prohibited. These queries require some special processing to return\n * the expected results.\n *\n * @returns boolean\n */\nlunr.Query.prototype.isNegated = function () {\n for (var i = 0; i < this.clauses.length; i++) {\n if (this.clauses[i].presence != lunr.Query.presence.PROHIBITED) {\n return false\n }\n }\n\n return true\n}\n\n/**\n * Adds a term to the current query, under the covers this will create a {@link lunr.Query~Clause}\n * to the list of clauses that make up this query.\n *\n * The term is used as is, i.e. no tokenization will be performed by this method. Instead conversion\n * to a token or token-like string should be done before calling this method.\n *\n * The term will be converted to a string by calling `toString`. Multiple terms can be passed as an\n * array, each term in the array will share the same options.\n *\n * @param {object|object[]} term - The term(s) to add to the query.\n * @param {object} [options] - Any additional properties to add to the query clause.\n * @returns {lunr.Query}\n * @see lunr.Query#clause\n * @see lunr.Query~Clause\n * @example adding a single term to a query\n * query.term(\"foo\")\n * @example adding a single term to a query and specifying search fields, term boost and automatic trailing wildcard\n * query.term(\"foo\", {\n * fields: [\"title\"],\n * boost: 10,\n * wildcard: lunr.Query.wildcard.TRAILING\n * })\n * @example using lunr.tokenizer to convert a string to tokens before using them as terms\n * query.term(lunr.tokenizer(\"foo bar\"))\n */\nlunr.Query.prototype.term = function (term, options) {\n if (Array.isArray(term)) {\n term.forEach(function (t) { this.term(t, lunr.utils.clone(options)) }, this)\n return this\n }\n\n var clause = options || {}\n clause.term = term.toString()\n\n this.clause(clause)\n\n return this\n}\nlunr.QueryParseError = function (message, start, end) {\n this.name = \"QueryParseError\"\n this.message = message\n this.start = start\n this.end = end\n}\n\nlunr.QueryParseError.prototype = new Error\nlunr.QueryLexer = function (str) {\n this.lexemes = []\n this.str = str\n this.length = str.length\n this.pos = 0\n this.start = 0\n this.escapeCharPositions = []\n}\n\nlunr.QueryLexer.prototype.run = function () {\n var state = lunr.QueryLexer.lexText\n\n while (state) {\n state = state(this)\n }\n}\n\nlunr.QueryLexer.prototype.sliceString = function () {\n var subSlices = [],\n sliceStart = this.start,\n sliceEnd = this.pos\n\n for (var i = 0; i < this.escapeCharPositions.length; i++) {\n sliceEnd = this.escapeCharPositions[i]\n subSlices.push(this.str.slice(sliceStart, sliceEnd))\n sliceStart = sliceEnd + 1\n }\n\n subSlices.push(this.str.slice(sliceStart, this.pos))\n this.escapeCharPositions.length = 0\n\n return subSlices.join('')\n}\n\nlunr.QueryLexer.prototype.emit = function (type) {\n this.lexemes.push({\n type: type,\n str: this.sliceString(),\n start: this.start,\n end: this.pos\n })\n\n this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.escapeCharacter = function () {\n this.escapeCharPositions.push(this.pos - 1)\n this.pos += 1\n}\n\nlunr.QueryLexer.prototype.next = function () {\n if (this.pos >= this.length) {\n return lunr.QueryLexer.EOS\n }\n\n var char = this.str.charAt(this.pos)\n this.pos += 1\n return char\n}\n\nlunr.QueryLexer.prototype.width = function () {\n return this.pos - this.start\n}\n\nlunr.QueryLexer.prototype.ignore = function () {\n if (this.start == this.pos) {\n this.pos += 1\n }\n\n this.start = this.pos\n}\n\nlunr.QueryLexer.prototype.backup = function () {\n this.pos -= 1\n}\n\nlunr.QueryLexer.prototype.acceptDigitRun = function () {\n var char, charCode\n\n do {\n char = this.next()\n charCode = char.charCodeAt(0)\n } while (charCode > 47 && charCode < 58)\n\n if (char != lunr.QueryLexer.EOS) {\n this.backup()\n }\n}\n\nlunr.QueryLexer.prototype.more = function () {\n return this.pos < this.length\n}\n\nlunr.QueryLexer.EOS = 'EOS'\nlunr.QueryLexer.FIELD = 'FIELD'\nlunr.QueryLexer.TERM = 'TERM'\nlunr.QueryLexer.EDIT_DISTANCE = 'EDIT_DISTANCE'\nlunr.QueryLexer.BOOST = 'BOOST'\nlunr.QueryLexer.PRESENCE = 'PRESENCE'\n\nlunr.QueryLexer.lexField = function (lexer) {\n lexer.backup()\n lexer.emit(lunr.QueryLexer.FIELD)\n lexer.ignore()\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexTerm = function (lexer) {\n if (lexer.width() > 1) {\n lexer.backup()\n lexer.emit(lunr.QueryLexer.TERM)\n }\n\n lexer.ignore()\n\n if (lexer.more()) {\n return lunr.QueryLexer.lexText\n }\n}\n\nlunr.QueryLexer.lexEditDistance = function (lexer) {\n lexer.ignore()\n lexer.acceptDigitRun()\n lexer.emit(lunr.QueryLexer.EDIT_DISTANCE)\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexBoost = function (lexer) {\n lexer.ignore()\n lexer.acceptDigitRun()\n lexer.emit(lunr.QueryLexer.BOOST)\n return lunr.QueryLexer.lexText\n}\n\nlunr.QueryLexer.lexEOS = function (lexer) {\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n}\n\n// This matches the separator used when tokenising fields\n// within a document. These should match otherwise it is\n// not possible to search for some tokens within a document.\n//\n// It is possible for the user to change the separator on the\n// tokenizer so it _might_ clash with any other of the special\n// characters already used within the search string, e.g. :.\n//\n// This means that it is possible to change the separator in\n// such a way that makes some words unsearchable using a search\n// string.\nlunr.QueryLexer.termSeparator = lunr.tokenizer.separator\n\nlunr.QueryLexer.lexText = function (lexer) {\n while (true) {\n var char = lexer.next()\n\n if (char == lunr.QueryLexer.EOS) {\n return lunr.QueryLexer.lexEOS\n }\n\n // Escape character is '\\'\n if (char.charCodeAt(0) == 92) {\n lexer.escapeCharacter()\n continue\n }\n\n if (char == \":\") {\n return lunr.QueryLexer.lexField\n }\n\n if (char == \"~\") {\n lexer.backup()\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n return lunr.QueryLexer.lexEditDistance\n }\n\n if (char == \"^\") {\n lexer.backup()\n if (lexer.width() > 0) {\n lexer.emit(lunr.QueryLexer.TERM)\n }\n return lunr.QueryLexer.lexBoost\n }\n\n // \"+\" indicates term presence is required\n // checking for length to ensure that only\n // leading \"+\" are considered\n if (char == \"+\" && lexer.width() === 1) {\n lexer.emit(lunr.QueryLexer.PRESENCE)\n return lunr.QueryLexer.lexText\n }\n\n // \"-\" indicates term presence is prohibited\n // checking for length to ensure that only\n // leading \"-\" are considered\n if (char == \"-\" && lexer.width() === 1) {\n lexer.emit(lunr.QueryLexer.PRESENCE)\n return lunr.QueryLexer.lexText\n }\n\n if (char.match(lunr.QueryLexer.termSeparator)) {\n return lunr.QueryLexer.lexTerm\n }\n }\n}\n\nlunr.QueryParser = function (str, query) {\n this.lexer = new lunr.QueryLexer (str)\n this.query = query\n this.currentClause = {}\n this.lexemeIdx = 0\n}\n\nlunr.QueryParser.prototype.parse = function () {\n this.lexer.run()\n this.lexemes = this.lexer.lexemes\n\n var state = lunr.QueryParser.parseClause\n\n while (state) {\n state = state(this)\n }\n\n return this.query\n}\n\nlunr.QueryParser.prototype.peekLexeme = function () {\n return this.lexemes[this.lexemeIdx]\n}\n\nlunr.QueryParser.prototype.consumeLexeme = function () {\n var lexeme = this.peekLexeme()\n this.lexemeIdx += 1\n return lexeme\n}\n\nlunr.QueryParser.prototype.nextClause = function () {\n var completedClause = this.currentClause\n this.query.clause(completedClause)\n this.currentClause = {}\n}\n\nlunr.QueryParser.parseClause = function (parser) {\n var lexeme = parser.peekLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n switch (lexeme.type) {\n case lunr.QueryLexer.PRESENCE:\n return lunr.QueryParser.parsePresence\n case lunr.QueryLexer.FIELD:\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expected either a field or a term, found \" + lexeme.type\n\n if (lexeme.str.length >= 1) {\n errorMessage += \" with value '\" + lexeme.str + \"'\"\n }\n\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n}\n\nlunr.QueryParser.parsePresence = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n switch (lexeme.str) {\n case \"-\":\n parser.currentClause.presence = lunr.Query.presence.PROHIBITED\n break\n case \"+\":\n parser.currentClause.presence = lunr.Query.presence.REQUIRED\n break\n default:\n var errorMessage = \"unrecognised presence operator'\" + lexeme.str + \"'\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n var errorMessage = \"expecting term or field, found nothing\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.FIELD:\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expecting term or field, found '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseField = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n if (parser.query.allFields.indexOf(lexeme.str) == -1) {\n var possibleFields = parser.query.allFields.map(function (f) { return \"'\" + f + \"'\" }).join(', '),\n errorMessage = \"unrecognised field '\" + lexeme.str + \"', possible fields: \" + possibleFields\n\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.fields = [lexeme.str]\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n var errorMessage = \"expecting term, found nothing\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n return lunr.QueryParser.parseTerm\n default:\n var errorMessage = \"expecting term, found '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseTerm = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n parser.currentClause.term = lexeme.str.toLowerCase()\n\n if (lexeme.str.indexOf(\"*\") != -1) {\n parser.currentClause.usePipeline = false\n }\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseEditDistance = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n var editDistance = parseInt(lexeme.str, 10)\n\n if (isNaN(editDistance)) {\n var errorMessage = \"edit distance must be numeric\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.editDistance = editDistance\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\nlunr.QueryParser.parseBoost = function (parser) {\n var lexeme = parser.consumeLexeme()\n\n if (lexeme == undefined) {\n return\n }\n\n var boost = parseInt(lexeme.str, 10)\n\n if (isNaN(boost)) {\n var errorMessage = \"boost must be numeric\"\n throw new lunr.QueryParseError (errorMessage, lexeme.start, lexeme.end)\n }\n\n parser.currentClause.boost = boost\n\n var nextLexeme = parser.peekLexeme()\n\n if (nextLexeme == undefined) {\n parser.nextClause()\n return\n }\n\n switch (nextLexeme.type) {\n case lunr.QueryLexer.TERM:\n parser.nextClause()\n return lunr.QueryParser.parseTerm\n case lunr.QueryLexer.FIELD:\n parser.nextClause()\n return lunr.QueryParser.parseField\n case lunr.QueryLexer.EDIT_DISTANCE:\n return lunr.QueryParser.parseEditDistance\n case lunr.QueryLexer.BOOST:\n return lunr.QueryParser.parseBoost\n case lunr.QueryLexer.PRESENCE:\n parser.nextClause()\n return lunr.QueryParser.parsePresence\n default:\n var errorMessage = \"Unexpected lexeme type '\" + nextLexeme.type + \"'\"\n throw new lunr.QueryParseError (errorMessage, nextLexeme.start, nextLexeme.end)\n }\n}\n\n /**\n * export the module via AMD, CommonJS or as a browser global\n * Export code from https://github.com/umdjs/umd/blob/master/returnExports.js\n */\n ;(function (root, factory) {\n if (true) {\n // AMD. Register as an anonymous module.\n !(__WEBPACK_AMD_DEFINE_FACTORY__ = (factory),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?\n\t\t\t\t(__WEBPACK_AMD_DEFINE_FACTORY__.call(exports, __webpack_require__, exports, module)) :\n\t\t\t\t__WEBPACK_AMD_DEFINE_FACTORY__),\n\t\t\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__))\n } else {}\n }(this, function () {\n /**\n * Just return a value to define the module export.\n * This example returns an object, but the module\n * can return a function as the exported value.\n */\n return lunr\n }))\n})();\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(7);\nmodule.exports = function (it) {\n if (!isObject(it)) throw TypeError(it + ' is not an object!');\n return it;\n};\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports) {\n\nvar core = module.exports = { version: '2.6.9' };\nif (typeof __e == 'number') __e = core; // eslint-disable-line no-undef\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(11);\nvar createDesc = __webpack_require__(26);\nmodule.exports = __webpack_require__(8) ? function (object, key, value) {\n return dP.f(object, key, createDesc(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n\n\n/***/ }),\n/* 6 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar hide = __webpack_require__(5);\nvar has = __webpack_require__(12);\nvar SRC = __webpack_require__(18)('src');\nvar $toString = __webpack_require__(39);\nvar TO_STRING = 'toString';\nvar TPL = ('' + $toString).split(TO_STRING);\n\n__webpack_require__(4).inspectSource = function (it) {\n return $toString.call(it);\n};\n\n(module.exports = function (O, key, val, safe) {\n var isFunction = typeof val == 'function';\n if (isFunction) has(val, 'name') || hide(val, 'name', key);\n if (O[key] === val) return;\n if (isFunction) has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));\n if (O === global) {\n O[key] = val;\n } else if (!safe) {\n delete O[key];\n hide(O, key, val);\n } else if (O[key]) {\n O[key] = val;\n } else {\n hide(O, key, val);\n }\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, TO_STRING, function toString() {\n return typeof this == 'function' && this[SRC] || $toString.call(this);\n});\n\n\n/***/ }),\n/* 7 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n\n/***/ }),\n/* 8 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(25)(function () {\n return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 9 */\n/***/ (function(module, exports) {\n\nmodule.exports = {};\n\n\n/***/ }),\n/* 10 */\n/***/ (function(module, exports) {\n\nvar toString = {}.toString;\n\nmodule.exports = function (it) {\n return toString.call(it).slice(8, -1);\n};\n\n\n/***/ }),\n/* 11 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(3);\nvar IE8_DOM_DEFINE = __webpack_require__(37);\nvar toPrimitive = __webpack_require__(38);\nvar dP = Object.defineProperty;\n\nexports.f = __webpack_require__(8) ? Object.defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPrimitive(P, true);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return dP(O, P, Attributes);\n } catch (e) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported!');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n\n\n/***/ }),\n/* 12 */\n/***/ (function(module, exports) {\n\nvar hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function (it, key) {\n return hasOwnProperty.call(it, key);\n};\n\n\n/***/ }),\n/* 13 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// optional / simple context binding\nvar aFunction = __webpack_require__(14);\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n\n\n/***/ }),\n/* 14 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it) {\n if (typeof it != 'function') throw TypeError(it + ' is not a function!');\n return it;\n};\n\n\n/***/ }),\n/* 15 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = __webpack_require__(10);\nvar TAG = __webpack_require__(0)('toStringTag');\n// ES3 wrong here\nvar ARG = cof(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (e) { /* empty */ }\n};\n\nmodule.exports = function (it) {\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = tryGet(O = Object(it), TAG)) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n\n/***/ }),\n/* 16 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar core = __webpack_require__(4);\nvar global = __webpack_require__(1);\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || (global[SHARED] = {});\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: core.version,\n mode: __webpack_require__(17) ? 'pure' : 'global',\n copyright: '\xa9 2019 Denis Pushkarev (zloirock.ru)'\n});\n\n\n/***/ }),\n/* 17 */\n/***/ (function(module, exports) {\n\nmodule.exports = false;\n\n\n/***/ }),\n/* 18 */\n/***/ (function(module, exports) {\n\nvar id = 0;\nvar px = Math.random();\nmodule.exports = function (key) {\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n\n/***/ }),\n/* 19 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(7);\nvar document = __webpack_require__(1).document;\n// typeof document.createElement is 'object' in old IE\nvar is = isObject(document) && isObject(document.createElement);\nmodule.exports = function (it) {\n return is ? document.createElement(it) : {};\n};\n\n\n/***/ }),\n/* 20 */\n/***/ (function(module, exports) {\n\n// 7.1.4 ToInteger\nvar ceil = Math.ceil;\nvar floor = Math.floor;\nmodule.exports = function (it) {\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n\n/***/ }),\n/* 21 */\n/***/ (function(module, exports) {\n\n// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n\n/***/ }),\n/* 22 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(46);\nvar defined = __webpack_require__(21);\nmodule.exports = function (it) {\n return IObject(defined(it));\n};\n\n\n/***/ }),\n/* 23 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar shared = __webpack_require__(16)('keys');\nvar uid = __webpack_require__(18);\nmodule.exports = function (key) {\n return shared[key] || (shared[key] = uid(key));\n};\n\n\n/***/ }),\n/* 24 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar def = __webpack_require__(11).f;\nvar has = __webpack_require__(12);\nvar TAG = __webpack_require__(0)('toStringTag');\n\nmodule.exports = function (it, tag, stat) {\n if (it && !has(it = stat ? it : it.prototype, TAG)) def(it, TAG, { configurable: true, value: tag });\n};\n\n\n/***/ }),\n/* 25 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return !!exec();\n } catch (e) {\n return true;\n }\n};\n\n\n/***/ }),\n/* 26 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n\n\n/***/ }),\n/* 27 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(17);\nvar $export = __webpack_require__(28);\nvar redefine = __webpack_require__(6);\nvar hide = __webpack_require__(5);\nvar Iterators = __webpack_require__(9);\nvar $iterCreate = __webpack_require__(42);\nvar setToStringTag = __webpack_require__(24);\nvar getPrototypeOf = __webpack_require__(49);\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar BUGGY = !([].keys && 'next' in [].keys()); // Safari has buggy iterators w/o `next`\nvar FF_ITERATOR = '@@iterator';\nvar KEYS = 'keys';\nvar VALUES = 'values';\n\nvar returnThis = function () { return this; };\n\nmodule.exports = function (Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED) {\n $iterCreate(Constructor, NAME, next);\n var getMethod = function (kind) {\n if (!BUGGY && kind in proto) return proto[kind];\n switch (kind) {\n case KEYS: return function keys() { return new Constructor(this, kind); };\n case VALUES: return function values() { return new Constructor(this, kind); };\n } return function entries() { return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator';\n var DEF_VALUES = DEFAULT == VALUES;\n var VALUES_BUG = false;\n var proto = Base.prototype;\n var $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT];\n var $default = $native || getMethod(DEFAULT);\n var $entries = DEFAULT ? !DEF_VALUES ? $default : getMethod('entries') : undefined;\n var $anyNative = NAME == 'Array' ? proto.entries || $native : $native;\n var methods, key, IteratorPrototype;\n // Fix native\n if ($anyNative) {\n IteratorPrototype = getPrototypeOf($anyNative.call(new Base()));\n if (IteratorPrototype !== Object.prototype && IteratorPrototype.next) {\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // fix for some old engines\n if (!LIBRARY && typeof IteratorPrototype[ITERATOR] != 'function') hide(IteratorPrototype, ITERATOR, returnThis);\n }\n }\n // fix Array#{values, @@iterator}.name in V8 / FF\n if (DEF_VALUES && $native && $native.name !== VALUES) {\n VALUES_BUG = true;\n $default = function values() { return $native.call(this); };\n }\n // Define iterator\n if ((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])) {\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if (DEFAULT) {\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: $entries\n };\n if (FORCED) for (key in methods) {\n if (!(key in proto)) redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n\n/***/ }),\n/* 28 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar core = __webpack_require__(4);\nvar hide = __webpack_require__(5);\nvar redefine = __webpack_require__(6);\nvar ctx = __webpack_require__(13);\nvar PROTOTYPE = 'prototype';\n\nvar $export = function (type, name, source) {\n var IS_FORCED = type & $export.F;\n var IS_GLOBAL = type & $export.G;\n var IS_STATIC = type & $export.S;\n var IS_PROTO = type & $export.P;\n var IS_BIND = type & $export.B;\n var target = IS_GLOBAL ? global : IS_STATIC ? global[name] || (global[name] = {}) : (global[name] || {})[PROTOTYPE];\n var exports = IS_GLOBAL ? core : core[name] || (core[name] = {});\n var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});\n var key, own, out, exp;\n if (IS_GLOBAL) source = name;\n for (key in source) {\n // contains in native\n own = !IS_FORCED && target && target[key] !== undefined;\n // export native or passed\n out = (own ? target : source)[key];\n // bind timers to global for call from export context\n exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n // extend global\n if (target) redefine(target, key, out, type & $export.U);\n // export\n if (exports[key] != out) hide(exports, key, exp);\n if (IS_PROTO && expProto[key] != out) expProto[key] = out;\n }\n};\nglobal.core = core;\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\n$export.U = 64; // safe\n$export.R = 128; // real proto method for `library`\nmodule.exports = $export;\n\n\n/***/ }),\n/* 29 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.14 / 15.2.3.14 Object.keys(O)\nvar $keys = __webpack_require__(45);\nvar enumBugKeys = __webpack_require__(31);\n\nmodule.exports = Object.keys || function keys(O) {\n return $keys(O, enumBugKeys);\n};\n\n\n/***/ }),\n/* 30 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.15 ToLength\nvar toInteger = __webpack_require__(20);\nvar min = Math.min;\nmodule.exports = function (it) {\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n\n/***/ }),\n/* 31 */\n/***/ (function(module, exports) {\n\n// IE 8- don't enum bug keys\nmodule.exports = (\n 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'\n).split(',');\n\n\n/***/ }),\n/* 32 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar document = __webpack_require__(1).document;\nmodule.exports = document && document.documentElement;\n\n\n/***/ }),\n/* 33 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ctx = __webpack_require__(13);\nvar invoke = __webpack_require__(62);\nvar html = __webpack_require__(32);\nvar cel = __webpack_require__(19);\nvar global = __webpack_require__(1);\nvar process = global.process;\nvar setTask = global.setImmediate;\nvar clearTask = global.clearImmediate;\nvar MessageChannel = global.MessageChannel;\nvar Dispatch = global.Dispatch;\nvar counter = 0;\nvar queue = {};\nvar ONREADYSTATECHANGE = 'onreadystatechange';\nvar defer, channel, port;\nvar run = function () {\n var id = +this;\n // eslint-disable-next-line no-prototype-builtins\n if (queue.hasOwnProperty(id)) {\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listener = function (event) {\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif (!setTask || !clearTask) {\n setTask = function setImmediate(fn) {\n var args = [];\n var i = 1;\n while (arguments.length > i) args.push(arguments[i++]);\n queue[++counter] = function () {\n // eslint-disable-next-line no-new-func\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id) {\n delete queue[id];\n };\n // Node.js 0.8-\n if (__webpack_require__(10)(process) == 'process') {\n defer = function (id) {\n process.nextTick(ctx(run, id, 1));\n };\n // Sphere (JS game engine) Dispatch API\n } else if (Dispatch && Dispatch.now) {\n defer = function (id) {\n Dispatch.now(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if (MessageChannel) {\n channel = new MessageChannel();\n port = channel.port2;\n channel.port1.onmessage = listener;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if (global.addEventListener && typeof postMessage == 'function' && !global.importScripts) {\n defer = function (id) {\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listener, false);\n // IE8-\n } else if (ONREADYSTATECHANGE in cel('script')) {\n defer = function (id) {\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function () {\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function (id) {\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n\n/***/ }),\n/* 34 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 25.4.1.5 NewPromiseCapability(C)\nvar aFunction = __webpack_require__(14);\n\nfunction PromiseCapability(C) {\n var resolve, reject;\n this.promise = new C(function ($$resolve, $$reject) {\n if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve);\n this.reject = aFunction(reject);\n}\n\nmodule.exports.f = function (C) {\n return new PromiseCapability(C);\n};\n\n\n/***/ }),\n/* 35 */\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(36);\n__webpack_require__(40);\n__webpack_require__(51);\n__webpack_require__(55);\nmodule.exports = __webpack_require__(4).Promise;\n\n\n/***/ }),\n/* 36 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n// 19.1.3.6 Object.prototype.toString()\nvar classof = __webpack_require__(15);\nvar test = {};\ntest[__webpack_require__(0)('toStringTag')] = 'z';\nif (test + '' != '[object z]') {\n __webpack_require__(6)(Object.prototype, 'toString', function toString() {\n return '[object ' + classof(this) + ']';\n }, true);\n}\n\n\n/***/ }),\n/* 37 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = !__webpack_require__(8) && !__webpack_require__(25)(function () {\n return Object.defineProperty(__webpack_require__(19)('div'), 'a', { get: function () { return 7; } }).a != 7;\n});\n\n\n/***/ }),\n/* 38 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.1 ToPrimitive(input [, PreferredType])\nvar isObject = __webpack_require__(7);\n// instead of the ES6 spec version, we didn't implement @@toPrimitive case\n// and the second argument - flag - preferred type is a string\nmodule.exports = function (it, S) {\n if (!isObject(it)) return it;\n var fn, val;\n if (S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n if (typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it))) return val;\n if (!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n\n\n/***/ }),\n/* 39 */\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(16)('native-function-to-string', Function.toString);\n\n\n/***/ }),\n/* 40 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $at = __webpack_require__(41)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n__webpack_require__(27)(String, 'String', function (iterated) {\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var index = this._i;\n var point;\n if (index >= O.length) return { value: undefined, done: true };\n point = $at(O, index);\n this._i += point.length;\n return { value: point, done: false };\n});\n\n\n/***/ }),\n/* 41 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(20);\nvar defined = __webpack_require__(21);\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function (TO_STRING) {\n return function (that, pos) {\n var s = String(defined(that));\n var i = toInteger(pos);\n var l = s.length;\n var a, b;\n if (i < 0 || i >= l) return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n\n/***/ }),\n/* 42 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar create = __webpack_require__(43);\nvar descriptor = __webpack_require__(26);\nvar setToStringTag = __webpack_require__(24);\nvar IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n__webpack_require__(5)(IteratorPrototype, __webpack_require__(0)('iterator'), function () { return this; });\n\nmodule.exports = function (Constructor, NAME, next) {\n Constructor.prototype = create(IteratorPrototype, { next: descriptor(1, next) });\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n\n/***/ }),\n/* 43 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = __webpack_require__(3);\nvar dPs = __webpack_require__(44);\nvar enumBugKeys = __webpack_require__(31);\nvar IE_PROTO = __webpack_require__(23)('IE_PROTO');\nvar Empty = function () { /* empty */ };\nvar PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function () {\n // Thrash, waste and sodomy: IE GC bug\n var iframe = __webpack_require__(19)('iframe');\n var i = enumBugKeys.length;\n var lt = '<';\n var gt = '>';\n var iframeDocument;\n iframe.style.display = 'none';\n __webpack_require__(32).appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while (i--) delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties) {\n var result;\n if (O !== null) {\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty();\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n\n\n/***/ }),\n/* 44 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar dP = __webpack_require__(11);\nvar anObject = __webpack_require__(3);\nvar getKeys = __webpack_require__(29);\n\nmodule.exports = __webpack_require__(8) ? Object.defineProperties : function defineProperties(O, Properties) {\n anObject(O);\n var keys = getKeys(Properties);\n var length = keys.length;\n var i = 0;\n var P;\n while (length > i) dP.f(O, P = keys[i++], Properties[P]);\n return O;\n};\n\n\n/***/ }),\n/* 45 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar has = __webpack_require__(12);\nvar toIObject = __webpack_require__(22);\nvar arrayIndexOf = __webpack_require__(47)(false);\nvar IE_PROTO = __webpack_require__(23)('IE_PROTO');\n\nmodule.exports = function (object, names) {\n var O = toIObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) if (key != IE_PROTO) has(O, key) && result.push(key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (has(O, key = names[i++])) {\n ~arrayIndexOf(result, key) || result.push(key);\n }\n return result;\n};\n\n\n/***/ }),\n/* 46 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(10);\n// eslint-disable-next-line no-prototype-builtins\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function (it) {\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n\n/***/ }),\n/* 47 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// false -> Array#indexOf\n// true -> Array#includes\nvar toIObject = __webpack_require__(22);\nvar toLength = __webpack_require__(30);\nvar toAbsoluteIndex = __webpack_require__(48);\nmodule.exports = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIObject($this);\n var length = toLength(O.length);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) if (IS_INCLUDES || index in O) {\n if (O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\n\n/***/ }),\n/* 48 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toInteger = __webpack_require__(20);\nvar max = Math.max;\nvar min = Math.min;\nmodule.exports = function (index, length) {\n index = toInteger(index);\n return index < 0 ? max(index + length, 0) : min(index, length);\n};\n\n\n/***/ }),\n/* 49 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)\nvar has = __webpack_require__(12);\nvar toObject = __webpack_require__(50);\nvar IE_PROTO = __webpack_require__(23)('IE_PROTO');\nvar ObjectProto = Object.prototype;\n\nmodule.exports = Object.getPrototypeOf || function (O) {\n O = toObject(O);\n if (has(O, IE_PROTO)) return O[IE_PROTO];\n if (typeof O.constructor == 'function' && O instanceof O.constructor) {\n return O.constructor.prototype;\n } return O instanceof Object ? ObjectProto : null;\n};\n\n\n/***/ }),\n/* 50 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(21);\nmodule.exports = function (it) {\n return Object(defined(it));\n};\n\n\n/***/ }),\n/* 51 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar $iterators = __webpack_require__(52);\nvar getKeys = __webpack_require__(29);\nvar redefine = __webpack_require__(6);\nvar global = __webpack_require__(1);\nvar hide = __webpack_require__(5);\nvar Iterators = __webpack_require__(9);\nvar wks = __webpack_require__(0);\nvar ITERATOR = wks('iterator');\nvar TO_STRING_TAG = wks('toStringTag');\nvar ArrayValues = Iterators.Array;\n\nvar DOMIterables = {\n CSSRuleList: true, // TODO: Not spec compliant, should be false.\n CSSStyleDeclaration: false,\n CSSValueList: false,\n ClientRectList: false,\n DOMRectList: false,\n DOMStringList: false,\n DOMTokenList: true,\n DataTransferItemList: false,\n FileList: false,\n HTMLAllCollection: false,\n HTMLCollection: false,\n HTMLFormElement: false,\n HTMLSelectElement: false,\n MediaList: true, // TODO: Not spec compliant, should be false.\n MimeTypeArray: false,\n NamedNodeMap: false,\n NodeList: true,\n PaintRequestList: false,\n Plugin: false,\n PluginArray: false,\n SVGLengthList: false,\n SVGNumberList: false,\n SVGPathSegList: false,\n SVGPointList: false,\n SVGStringList: false,\n SVGTransformList: false,\n SourceBufferList: false,\n StyleSheetList: true, // TODO: Not spec compliant, should be false.\n TextTrackCueList: false,\n TextTrackList: false,\n TouchList: false\n};\n\nfor (var collections = getKeys(DOMIterables), i = 0; i < collections.length; i++) {\n var NAME = collections[i];\n var explicit = DOMIterables[NAME];\n var Collection = global[NAME];\n var proto = Collection && Collection.prototype;\n var key;\n if (proto) {\n if (!proto[ITERATOR]) hide(proto, ITERATOR, ArrayValues);\n if (!proto[TO_STRING_TAG]) hide(proto, TO_STRING_TAG, NAME);\n Iterators[NAME] = ArrayValues;\n if (explicit) for (key in $iterators) if (!proto[key]) redefine(proto, key, $iterators[key], true);\n }\n}\n\n\n/***/ }),\n/* 52 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar addToUnscopables = __webpack_require__(53);\nvar step = __webpack_require__(54);\nvar Iterators = __webpack_require__(9);\nvar toIObject = __webpack_require__(22);\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = __webpack_require__(27)(Array, 'Array', function (iterated, kind) {\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function () {\n var O = this._t;\n var kind = this._k;\n var index = this._i++;\n if (!O || index >= O.length) {\n this._t = undefined;\n return step(1);\n }\n if (kind == 'keys') return step(0, index);\n if (kind == 'values') return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n\n/***/ }),\n/* 53 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 22.1.3.31 Array.prototype[@@unscopables]\nvar UNSCOPABLES = __webpack_require__(0)('unscopables');\nvar ArrayProto = Array.prototype;\nif (ArrayProto[UNSCOPABLES] == undefined) __webpack_require__(5)(ArrayProto, UNSCOPABLES, {});\nmodule.exports = function (key) {\n ArrayProto[UNSCOPABLES][key] = true;\n};\n\n\n/***/ }),\n/* 54 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (done, value) {\n return { value: value, done: !!done };\n};\n\n\n/***/ }),\n/* 55 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar LIBRARY = __webpack_require__(17);\nvar global = __webpack_require__(1);\nvar ctx = __webpack_require__(13);\nvar classof = __webpack_require__(15);\nvar $export = __webpack_require__(28);\nvar isObject = __webpack_require__(7);\nvar aFunction = __webpack_require__(14);\nvar anInstance = __webpack_require__(56);\nvar forOf = __webpack_require__(57);\nvar speciesConstructor = __webpack_require__(61);\nvar task = __webpack_require__(33).set;\nvar microtask = __webpack_require__(63)();\nvar newPromiseCapabilityModule = __webpack_require__(34);\nvar perform = __webpack_require__(64);\nvar userAgent = __webpack_require__(65);\nvar promiseResolve = __webpack_require__(66);\nvar PROMISE = 'Promise';\nvar TypeError = global.TypeError;\nvar process = global.process;\nvar versions = process && process.versions;\nvar v8 = versions && versions.v8 || '';\nvar $Promise = global[PROMISE];\nvar isNode = classof(process) == 'process';\nvar empty = function () { /* empty */ };\nvar Internal, newGenericPromiseCapability, OwnPromiseCapability, Wrapper;\nvar newPromiseCapability = newGenericPromiseCapability = newPromiseCapabilityModule.f;\n\nvar USE_NATIVE = !!function () {\n try {\n // correct subclassing with @@species support\n var promise = $Promise.resolve(1);\n var FakePromise = (promise.constructor = {})[__webpack_require__(0)('species')] = function (exec) {\n exec(empty, empty);\n };\n // unhandled rejections tracking support, NodeJS Promise without it fails @@species test\n return (isNode || typeof PromiseRejectionEvent == 'function')\n && promise.then(empty) instanceof FakePromise\n // v8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables\n // https://bugs.chromium.org/p/chromium/issues/detail?id=830565\n // we can't detect it synchronously, so just check versions\n && v8.indexOf('6.6') !== 0\n && userAgent.indexOf('Chrome/66') === -1;\n } catch (e) { /* empty */ }\n}();\n\n// helpers\nvar isThenable = function (it) {\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar notify = function (promise, isReject) {\n if (promise._n) return;\n promise._n = true;\n var chain = promise._c;\n microtask(function () {\n var value = promise._v;\n var ok = promise._s == 1;\n var i = 0;\n var run = function (reaction) {\n var handler = ok ? reaction.ok : reaction.fail;\n var resolve = reaction.resolve;\n var reject = reaction.reject;\n var domain = reaction.domain;\n var result, then, exited;\n try {\n if (handler) {\n if (!ok) {\n if (promise._h == 2) onHandleUnhandled(promise);\n promise._h = 1;\n }\n if (handler === true) result = value;\n else {\n if (domain) domain.enter();\n result = handler(value); // may throw\n if (domain) {\n domain.exit();\n exited = true;\n }\n }\n if (result === reaction.promise) {\n reject(TypeError('Promise-chain cycle'));\n } else if (then = isThenable(result)) {\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch (e) {\n if (domain && !exited) domain.exit();\n reject(e);\n }\n };\n while (chain.length > i) run(chain[i++]); // variable length - can't use forEach\n promise._c = [];\n promise._n = false;\n if (isReject && !promise._h) onUnhandled(promise);\n });\n};\nvar onUnhandled = function (promise) {\n task.call(global, function () {\n var value = promise._v;\n var unhandled = isUnhandled(promise);\n var result, handler, console;\n if (unhandled) {\n result = perform(function () {\n if (isNode) {\n process.emit('unhandledRejection', value, promise);\n } else if (handler = global.onunhandledrejection) {\n handler({ promise: promise, reason: value });\n } else if ((console = global.console) && console.error) {\n console.error('Unhandled promise rejection', value);\n }\n });\n // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should\n promise._h = isNode || isUnhandled(promise) ? 2 : 1;\n } promise._a = undefined;\n if (unhandled && result.e) throw result.v;\n });\n};\nvar isUnhandled = function (promise) {\n return promise._h !== 1 && (promise._a || promise._c).length === 0;\n};\nvar onHandleUnhandled = function (promise) {\n task.call(global, function () {\n var handler;\n if (isNode) {\n process.emit('rejectionHandled', promise);\n } else if (handler = global.onrejectionhandled) {\n handler({ promise: promise, reason: promise._v });\n }\n });\n};\nvar $reject = function (value) {\n var promise = this;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n promise._v = value;\n promise._s = 2;\n if (!promise._a) promise._a = promise._c.slice();\n notify(promise, true);\n};\nvar $resolve = function (value) {\n var promise = this;\n var then;\n if (promise._d) return;\n promise._d = true;\n promise = promise._w || promise; // unwrap\n try {\n if (promise === value) throw TypeError(\"Promise can't be resolved itself\");\n if (then = isThenable(value)) {\n microtask(function () {\n var wrapper = { _w: promise, _d: false }; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch (e) {\n $reject.call(wrapper, e);\n }\n });\n } else {\n promise._v = value;\n promise._s = 1;\n notify(promise, false);\n }\n } catch (e) {\n $reject.call({ _w: promise, _d: false }, e); // wrap\n }\n};\n\n// constructor polyfill\nif (!USE_NATIVE) {\n // 25.4.3.1 Promise(executor)\n $Promise = function Promise(executor) {\n anInstance(this, $Promise, PROMISE, '_h');\n aFunction(executor);\n Internal.call(this);\n try {\n executor(ctx($resolve, this, 1), ctx($reject, this, 1));\n } catch (err) {\n $reject.call(this, err);\n }\n };\n // eslint-disable-next-line no-unused-vars\n Internal = function Promise(executor) {\n this._c = []; // <- awaiting reactions\n this._a = undefined; // <- checked in isUnhandled reactions\n this._s = 0; // <- state\n this._d = false; // <- done\n this._v = undefined; // <- value\n this._h = 0; // <- rejection state, 0 - default, 1 - handled, 2 - unhandled\n this._n = false; // <- notify\n };\n Internal.prototype = __webpack_require__(67)($Promise.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected) {\n var reaction = newPromiseCapability(speciesConstructor(this, $Promise));\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n reaction.domain = isNode ? process.domain : undefined;\n this._c.push(reaction);\n if (this._a) this._a.push(reaction);\n if (this._s) notify(this, false);\n return reaction.promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function (onRejected) {\n return this.then(undefined, onRejected);\n }\n });\n OwnPromiseCapability = function () {\n var promise = new Internal();\n this.promise = promise;\n this.resolve = ctx($resolve, promise, 1);\n this.reject = ctx($reject, promise, 1);\n };\n newPromiseCapabilityModule.f = newPromiseCapability = function (C) {\n return C === $Promise || C === Wrapper\n ? new OwnPromiseCapability(C)\n : newGenericPromiseCapability(C);\n };\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, { Promise: $Promise });\n__webpack_require__(24)($Promise, PROMISE);\n__webpack_require__(68)(PROMISE);\nWrapper = __webpack_require__(4)[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r) {\n var capability = newPromiseCapability(this);\n var $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (LIBRARY || !USE_NATIVE), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x) {\n return promiseResolve(LIBRARY && this === Wrapper ? $Promise : this, x);\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(69)(function (iter) {\n $Promise.all(iter)['catch'](empty);\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var resolve = capability.resolve;\n var reject = capability.reject;\n var result = perform(function () {\n var values = [];\n var index = 0;\n var remaining = 1;\n forOf(iterable, false, function (promise) {\n var $index = index++;\n var alreadyCalled = false;\n values.push(undefined);\n remaining++;\n C.resolve(promise).then(function (value) {\n if (alreadyCalled) return;\n alreadyCalled = true;\n values[$index] = value;\n --remaining || resolve(values);\n }, reject);\n });\n --remaining || resolve(values);\n });\n if (result.e) reject(result.v);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable) {\n var C = this;\n var capability = newPromiseCapability(C);\n var reject = capability.reject;\n var result = perform(function () {\n forOf(iterable, false, function (promise) {\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if (result.e) reject(result.v);\n return capability.promise;\n }\n});\n\n\n/***/ }),\n/* 56 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (it, Constructor, name, forbiddenField) {\n if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {\n throw TypeError(name + ': incorrect invocation!');\n } return it;\n};\n\n\n/***/ }),\n/* 57 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ctx = __webpack_require__(13);\nvar call = __webpack_require__(58);\nvar isArrayIter = __webpack_require__(59);\nvar anObject = __webpack_require__(3);\nvar toLength = __webpack_require__(30);\nvar getIterFn = __webpack_require__(60);\nvar BREAK = {};\nvar RETURN = {};\nvar exports = module.exports = function (iterable, entries, fn, that, ITERATOR) {\n var iterFn = ITERATOR ? function () { return iterable; } : getIterFn(iterable);\n var f = ctx(fn, that, entries ? 2 : 1);\n var index = 0;\n var length, step, iterator, result;\n if (typeof iterFn != 'function') throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if (isArrayIter(iterFn)) for (length = toLength(iterable.length); length > index; index++) {\n result = entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n if (result === BREAK || result === RETURN) return result;\n } else for (iterator = iterFn.call(iterable); !(step = iterator.next()).done;) {\n result = call(iterator, f, step.value, entries);\n if (result === BREAK || result === RETURN) return result;\n }\n};\nexports.BREAK = BREAK;\nexports.RETURN = RETURN;\n\n\n/***/ }),\n/* 58 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// call something on iterator step with safe closing on error\nvar anObject = __webpack_require__(3);\nmodule.exports = function (iterator, fn, value, entries) {\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch (e) {\n var ret = iterator['return'];\n if (ret !== undefined) anObject(ret.call(iterator));\n throw e;\n }\n};\n\n\n/***/ }),\n/* 59 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// check on default Array iterator\nvar Iterators = __webpack_require__(9);\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar ArrayProto = Array.prototype;\n\nmodule.exports = function (it) {\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n\n/***/ }),\n/* 60 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar classof = __webpack_require__(15);\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar Iterators = __webpack_require__(9);\nmodule.exports = __webpack_require__(4).getIteratorMethod = function (it) {\n if (it != undefined) return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n\n/***/ }),\n/* 61 */\n/***/ (function(module, exports, __webpack_require__) {\n\n// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = __webpack_require__(3);\nvar aFunction = __webpack_require__(14);\nvar SPECIES = __webpack_require__(0)('species');\nmodule.exports = function (O, D) {\n var C = anObject(O).constructor;\n var S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n\n/***/ }),\n/* 62 */\n/***/ (function(module, exports) {\n\n// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function (fn, args, that) {\n var un = that === undefined;\n switch (args.length) {\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n\n/***/ }),\n/* 63 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar macrotask = __webpack_require__(33).set;\nvar Observer = global.MutationObserver || global.WebKitMutationObserver;\nvar process = global.process;\nvar Promise = global.Promise;\nvar isNode = __webpack_require__(10)(process) == 'process';\n\nmodule.exports = function () {\n var head, last, notify;\n\n var flush = function () {\n var parent, fn;\n if (isNode && (parent = process.domain)) parent.exit();\n while (head) {\n fn = head.fn;\n head = head.next;\n try {\n fn();\n } catch (e) {\n if (head) notify();\n else last = undefined;\n throw e;\n }\n } last = undefined;\n if (parent) parent.enter();\n };\n\n // Node.js\n if (isNode) {\n notify = function () {\n process.nextTick(flush);\n };\n // browsers with MutationObserver, except iOS Safari - https://github.com/zloirock/core-js/issues/339\n } else if (Observer && !(global.navigator && global.navigator.standalone)) {\n var toggle = true;\n var node = document.createTextNode('');\n new Observer(flush).observe(node, { characterData: true }); // eslint-disable-line no-new\n notify = function () {\n node.data = toggle = !toggle;\n };\n // environments with maybe non-completely correct, but existent Promise\n } else if (Promise && Promise.resolve) {\n // Promise.resolve without an argument throws an error in LG WebOS 2\n var promise = Promise.resolve(undefined);\n notify = function () {\n promise.then(flush);\n };\n // for other environments - macrotask based on:\n // - setImmediate\n // - MessageChannel\n // - window.postMessag\n // - onreadystatechange\n // - setTimeout\n } else {\n notify = function () {\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n }\n\n return function (fn) {\n var task = { fn: fn, next: undefined };\n if (last) last.next = task;\n if (!head) {\n head = task;\n notify();\n } last = task;\n };\n};\n\n\n/***/ }),\n/* 64 */\n/***/ (function(module, exports) {\n\nmodule.exports = function (exec) {\n try {\n return { e: false, v: exec() };\n } catch (e) {\n return { e: true, v: e };\n }\n};\n\n\n/***/ }),\n/* 65 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar global = __webpack_require__(1);\nvar navigator = global.navigator;\n\nmodule.exports = navigator && navigator.userAgent || '';\n\n\n/***/ }),\n/* 66 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar anObject = __webpack_require__(3);\nvar isObject = __webpack_require__(7);\nvar newPromiseCapability = __webpack_require__(34);\n\nmodule.exports = function (C, x) {\n anObject(C);\n if (isObject(x) && x.constructor === C) return x;\n var promiseCapability = newPromiseCapability.f(C);\n var resolve = promiseCapability.resolve;\n resolve(x);\n return promiseCapability.promise;\n};\n\n\n/***/ }),\n/* 67 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar redefine = __webpack_require__(6);\nmodule.exports = function (target, src, safe) {\n for (var key in src) redefine(target, key, src[key], safe);\n return target;\n};\n\n\n/***/ }),\n/* 68 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar global = __webpack_require__(1);\nvar dP = __webpack_require__(11);\nvar DESCRIPTORS = __webpack_require__(8);\nvar SPECIES = __webpack_require__(0)('species');\n\nmodule.exports = function (KEY) {\n var C = global[KEY];\n if (DESCRIPTORS && C && !C[SPECIES]) dP.f(C, SPECIES, {\n configurable: true,\n get: function () { return this; }\n });\n};\n\n\n/***/ }),\n/* 69 */\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ITERATOR = __webpack_require__(0)('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function () { SAFE_CLOSING = true; };\n // eslint-disable-next-line no-throw-literal\n Array.from(riter, function () { throw 2; });\n} catch (e) { /* empty */ }\n\nmodule.exports = function (exec, skipClosing) {\n if (!skipClosing && !SAFE_CLOSING) return false;\n var safe = false;\n try {\n var arr = [7];\n var iter = arr[ITERATOR]();\n iter.next = function () { return { done: safe = true }; };\n arr[ITERATOR] = function () { return iter; };\n exec(arr);\n } catch (e) { /* empty */ }\n return safe;\n};\n\n\n/***/ }),\n/* 70 */\n/***/ (function(module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n\n// CONCATENATED MODULE: ./node_modules/tslib/tslib.es6.js\n/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation. All rights reserved.\r\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\r\nthis file except in compliance with the License. You may obtain a copy of the\r\nLicense at http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\r\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\r\nMERCHANTABLITY OR NON-INFRINGEMENT.\r\n\r\nSee the Apache Version 2.0 License for specific language governing permissions\r\nand limitations under the License.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nfunction __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nfunction __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nfunction __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nfunction __exportStar(m, exports) {\r\n for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\r\n}\r\n\r\nfunction __values(o) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator], i = 0;\r\n if (m) return m.call(o);\r\n return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n}\r\n\r\nfunction __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nfunction __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nfunction __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nfunction __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nfunction __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\r\n result.default = mod;\r\n return result;\r\n}\r\n\r\nfunction __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\n// EXTERNAL MODULE: ./node_modules/lunr/lunr.js\nvar lunr = __webpack_require__(2);\n\n// CONCATENATED MODULE: ./node_modules/workerize-loader/dist/rpc-worker-loader.js!./node_modules/ts-loader??ref--4-0!./node_modules/babel-loader/lib??ref--4-1!./src/services/SearchWorker.worker.ts\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"add\", function() { return add; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"done\", function() { return done; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toJS\", function() { return toJS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"load\", function() { return load; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"search\", function() { return search; });\n\n\ntry {\n // tslint:disable-next-line\n __webpack_require__(35); // bundle into worker\n}\ncatch (_) { } // nope\n/* just for better typings */\nvar Worker = /** @class */ (function () {\n function Worker() {\n this.add = add;\n this.done = done;\n this.search = search;\n this.toJS = toJS;\n this.load = load;\n }\n return Worker;\n}());\n/* harmony default export */ var SearchWorker_worker = __webpack_exports__[\"default\"] = (Worker);\nvar store = [];\nvar resolveIndex = function () {\n throw new Error('Should not be called');\n};\nvar index = new Promise(function (resolve) {\n resolveIndex = resolve;\n});\nlunr[\"tokenizer\"].separator = /\\s+/;\nvar builder = new lunr[\"Builder\"]();\nbuilder.field('title');\nbuilder.field('description');\nbuilder.ref('ref');\nbuilder.pipeline.add(lunr[\"trimmer\"], lunr[\"stopWordFilter\"], lunr[\"stemmer\"]);\nvar expandTerm = function (term) { return '*' + lunr[\"stemmer\"](new lunr[\"Token\"](term, {})) + '*'; };\nfunction add(title, description, meta) {\n var ref = store.push(meta) - 1;\n var item = {\n title: title.toLowerCase(),\n description: description.toLowerCase(),\n ref: ref\n };\n builder.add(item);\n}\nfunction done() {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n resolveIndex(builder.build());\n return [2 /*return*/];\n });\n });\n}\nfunction toJS() {\n return __awaiter(this, void 0, void 0, function () {\n var _a;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n _a = {\n store: store\n };\n return [4 /*yield*/, index];\n case 1: return [2 /*return*/, (_a.index = (_b.sent()).toJSON(),\n _a)];\n }\n });\n });\n}\nfunction load(state) {\n return __awaiter(this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n store = state.store;\n resolveIndex(lunr[\"Index\"].load(state.index));\n return [2 /*return*/];\n });\n });\n}\nfunction search(q, limit) {\n if (limit === void 0) { limit = 0; }\n return __awaiter(this, void 0, void 0, function () {\n var searchResults;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (q.trim().length === 0) {\n return [2 /*return*/, []];\n }\n return [4 /*yield*/, index];\n case 1:\n searchResults = (_a.sent()).query(function (t) {\n q.trim().toLowerCase().split(/\\s+/).forEach(function (term) {\n var exp = expandTerm(term);\n t.term(exp, {});\n });\n });\n if (limit > 0) {\n searchResults = searchResults.slice(0, limit);\n }\n return [2 /*return*/, searchResults.map(function (res) { return ({\n meta: store[res.ref],\n score: res.score\n }); })];\n }\n });\n });\n}\n\naddEventListener('message', function (e) {var ref = e.data;var type = ref.type;var method = ref.method;var id = ref.id;var params = ref.params;var f, p;if (type === 'RPC' && method) {if (f = __webpack_exports__[method]) {p = Promise.resolve().then(function () { return f.apply(__webpack_exports__, params); });} else {p = Promise.reject('No such method');}p.then(function (result) {postMessage({type: 'RPC',id: id,result: result});}).catch(function (e) {var error = {message: e};if (e.stack) {error.message = e.message;error.stack = e.stack;error.name = e.name;}postMessage({type: 'RPC',id: id,error: error});});}});postMessage({type: 'RPC',method: 'ready'});\n\n/***/ })\n/******/ ]);\n//# sourceMappingURL=04645253dcff0422e675.worker.js.map"])),{name:"[hash].worker.js"});return r(e,o),e}},function(e,n){e.exports=function(e,n){var t=0,r={};e.addEventListener("message",function(n){var t=n.data;if("RPC"===t.type)if(t.id){var o=r[t.id];o&&(delete r[t.id],t.error?o[1](Object.assign(Error(t.error.message),t.error)):o[0](t.result))}else{var i=document.createEvent("Event");i.initEvent(t.method,!1,!1),i.data=t.params,e.dispatchEvent(i)}}),n.forEach(function(n){e[n]=function(){for(var o=[],i=arguments.length;i--;)o[i]=arguments[i];return new Promise(function(i,a){var s=++t;r[s]=[i,a],e.postMessage({type:"RPC",id:s,method:n,params:o})})}})}},function(e,n){e.exports=t(251)},function(e,n,t){"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map(function(n){var t=function(e,n){var t=e[1]||"",r=e[3];if(!r)return t;if(n&&"function"===typeof btoa){var o=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[t].concat(i).concat([o]).join("\n")}var a;return[t].join("\n")}(n,e);return n[2]?"@media "+n[2]+"{"+t+"}":t}).join("")},n.i=function(e,t){"string"===typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o]+>/).map(function(e){return e.trim()}).filter(function(e){return e.length>0}).join(" ")}"undefined"===typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){e=0===arguments.length||!!e;var n=this.parentNode,t=window.getComputedStyle(n,void 0),r=parseInt(t.getPropertyValue("border-top-width"),10),o=parseInt(t.getPropertyValue("border-left-width"),10),i=this.offsetTop-n.offsetTopn.scrollTop+n.clientHeight,s=this.offsetLeft-n.offsetLeftn.scrollLeft+n.clientWidth,c=i&&!a;(i||a)&&e&&(n.scrollTop=this.offsetTop-n.offsetTop-n.clientHeight/2-r+this.clientHeight/2),(s||l)&&e&&(n.scrollLeft=this.offsetLeft-n.offsetLeft-n.clientWidth/2-o+this.clientWidth/2),(i||a||s||l)&&!e&&this.scrollIntoView(c)});var p=t(34),d=t.n(p),f=t(5);function h(e,n){for(var t=[],r=0;r1e3)throw new Error("Theme probably contains circular dependency at "+s+": "+l.toString());n[s]=l(e)}return n[s]},enumerable:!0}):"object"===typeof l&&r(l,s)})}(e,""),JSON.parse(JSON.stringify(e))}(_({},s,r.__assign({},n.theme,{extensionsHook:void 0}))),this.theme.extensionsHook=i,o=n.labels,Object.assign(I,o),this.scrollYOffset=e.normalizeScrollYOffset(n.scrollYOffset),this.hideHostname=e.normalizeHideHostname(n.hideHostname),this.expandResponses=e.normalizeExpandResponses(n.expandResponses),this.requiredPropsFirst=C(n.requiredPropsFirst),this.sortPropsAlphabetically=C(n.sortPropsAlphabetically),this.noAutoAuth=C(n.noAutoAuth),this.nativeScrollbars=C(n.nativeScrollbars),this.pathInMiddlePanel=C(n.pathInMiddlePanel),this.untrustedSpec=C(n.untrustedSpec),this.hideDownloadButton=C(n.hideDownloadButton),this.disableSearch=C(n.disableSearch),this.onlyRequiredInSamples=C(n.onlyRequiredInSamples),this.showExtensions=e.normalizeShowExtensions(n.showExtensions),this.hideSingleRequestSampleTab=C(n.hideSingleRequestSampleTab),this.unstable_ignoreMimeParameters=C(n.unstable_ignoreMimeParameters),this.allowedMdComponents=n.allowedMdComponents||{}}return e.normalizeExpandResponses=function(e){if("all"===e)return"all";if("string"===typeof e){var n={};return e.split(",").forEach(function(e){n[e.trim()]=!0}),n}return void 0!==e&&console.warn('expandResponses must be a string but received value "'+e+'" of type '+typeof e),{}},e.normalizeHideHostname=function(e){return!!e},e.normalizeScrollYOffset=function(e){if("string"===typeof e&&!b(e)){var n=c(e);n||console.warn("scrollYOffset value is a selector to non-existing element. Using offset 0 by default");var t=n&&n.getBoundingClientRect().bottom||0;return function(){return t}}return"number"===typeof e||b(e)?function(){return"number"===typeof e?e:parseFloat(e)}:"function"===typeof e?function(){var n=e();return"number"!==typeof n&&console.warn('scrollYOffset should return number but returned value "'+n+'" of type '+typeof n),n}:(void 0!==e&&console.warn("Wrong value for scrollYOffset ReDoc option: should be string, number or function"),function(){return 0})},e.normalizeShowExtensions=function(e){return"undefined"!==typeof e&&(""===e||("string"===typeof e?e.split(",").map(function(e){return e.trim()}):e))},e}(),M=t(35),N=M.default,D=M.css,F=M.createGlobalStyle,z=M.keyframes,B=M.ThemeProvider,U={lessThan:function(e,n){return function(){for(var t=[],o=0;o599)throw new Error("invalid HTTP code");var r="success";return t>=300&&t<400?r="redirect":t>=400?r="error":t<200&&(r="info"),r}var be={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0};function ve(e){return e in be}function _e(e){return e.summary||e.operationId||e.description&&e.description.substring(0,50)||""}var xe={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object"};function we(e){if(void 0!==e.type)return e.type;for(var n=0,t=Object.keys(xe);n= "+n+" "+e),r}function Ce(e){var n=[],t=Ae("characters",e.minLength,e.maxLength);void 0!==t&&n.push(t);var r,o=Ae("items",e.minItems,e.maxItems);return void 0!==o&&n.push(o),void 0!==e.minimum&&void 0!==e.maximum?(r=e.exclusiveMinimum?"( ":"[ ",r+=e.minimum,r+=" .. ",r+=e.maximum,r+=e.exclusiveMaximum?" )":" ]"):void 0!==e.maximum?(r=e.exclusiveMaximum?"< ":"<= ",r+=e.maximum):void 0!==e.minimum&&(r=e.exclusiveMinimum?"> ":">= ",r+=e.minimum),void 0!==r&&n.push(r),n}function Pe(e,n){void 0===n&&(n=[]),e.sort(function(e,t){return!e.required&&t.required?1:e.required&&!t.required?-1:e.required&&t.required?n.indexOf(e.name)-n.indexOf(t.name):0})}function Re(e,n){e.sort(function(e,t){return e[n].localeCompare(t[n])})}function qe(e,n,t){void 0===n&&(n=[]),void 0===t&&(t=[]);var r={};return t.forEach(function(n){n=e.shalowDeref(n),r[n.name+"_"+n.in]=!0}),(n=n.filter(function(n){return n=e.shalowDeref(n),!r[n.name+"_"+n.in]})).concat(t)}function Le(e){var n={};return Object.keys(e).forEach(function(t){var o=e[t],i=t.split(";")[0].trim();n[i]?n[i]=r.__assign({},n[i],o):n[i]=o}),n}function Me(e,n){var t=void 0===e?l?window.location.href:"":Object(he.dirname)(e);if(0===n.length)return[{url:t}];return n.map(function(e){return r.__assign({},e,{url:(n=e.url,o=e.variables,n=function(e,n){return void 0===n&&(n={}),e.replace(/(?:{)(\w+)(?:})/g,function(e,t){return n[t]&&n[t].default||e})}(n,o),O(t,n)),description:e.description||""});var n,o})}var Ne="section/Authentication/";function De(e){Ne=e}var Fe=function(e){return{delete:"del",options:"opts"}[e]||e};function ze(e){return e in{"x-circular-ref":!0,"x-code-samples":!0,"x-displayName":!0,"x-examples":!0,"x-ignoredHeaderParameters":!0,"x-logo":!0,"x-nullable":!0,"x-servers":!0,"x-tagGroups":!0,"x-traitTag":!0,"x-linkTo":!0}}function Be(e,n){return Object.keys(e).filter(function(e){return!0===n?e.startsWith("x-")&&!ze(e):e.startsWith("x-")&&n.indexOf(e)>-1}).reduce(function(n,t){return n[t]=e[t],n},{})}function Ue(e){return e.split(" or ").map(function(e){return e.replace(/^(string|object|number|integer|array|boolean)( ?.*)/,"$1s$2")}).join(" or ")}var $e=t(9),Ve=(t(56),t(57),t(58),t(59),t(60),t(61),t(62),t(63),t(64),t(65),t(66),t(67),t(68),t(69),t(70),t(71),t(72),t(73),t(74),"clike");function Qe(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim"}[e]||Ve}function We(e,n){void 0===n&&(n=Ve),n=n.toLowerCase();var t=$e.languages[n];return t||(t=$e.languages[Qe(n)]),$e.highlight(e,t,"")}function Ye(e){return function(n,t,r){r.value=function(e,n){var t,r,o,i=null,a=0,s=function(){a=(new Date).getTime(),i=null,o=e.apply(t,r),i||(t=r=null)};return function(){var l=(new Date).getTime(),c=n-(l-a);return t=this,r=arguments,c<=0||c>n?(i&&(clearTimeout(i),i=null),a=l,o=e.apply(t,r),i||(t=r=null)):i||(i=setTimeout(s,c)),o}}(r.value,e)}}function He(e){0}function Ge(e){0}$e.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),$e.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var Ke={};function Je(e,n,t){if("function"===typeof t.value)return function(e,n,t){if(!t.value||t.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");var o="_memoized_"+n,i=t.value;return e[o]=Ke,r.__assign({},t,{value:function(){return this[o]===Ke&&(this[o]=i.call(this)),this[o]}})}(e,n,t);if("function"===typeof t.get)return function(e,n,t){var o="_memoized_"+n,i=t.get;return e[o]=Ke,r.__assign({},t,{get:function(){return this[o]===Ke&&(this[o]=i.call(this)),this[o]}})}(e,n,t);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(t.value)+" instead")}var Xe="hashchange",Ze=function(){function e(){var e=this;this.emit=function(){e._emiter.emit(Xe,e.currentId)},this._emiter=new ue.EventEmitter,this.bind()}return Object.defineProperty(e.prototype,"currentId",{get:function(){return l?decodeURIComponent(window.location.hash.substring(1)):""},enumerable:!0,configurable:!0}),e.prototype.linkForId=function(e){return e?"#"+e:""},e.prototype.subscribe=function(e){var n=this._emiter.addListener(Xe,e);return function(){return n.removeListener(Xe,e)}},e.prototype.bind=function(){l&&window.addEventListener("hashchange",this.emit,!1)},e.prototype.dispose=function(){l&&window.removeEventListener("hashchange",this.emit)},e.prototype.replace=function(e,n){void 0===n&&(n=!1),l&&null!=e&&e!==this.currentId&&(n?window.history.replaceState(null,"",window.location.href.split("#")[0]+this.linkForId(e)):(window.history.pushState(null,"",window.location.href.split("#")[0]+this.linkForId(e)),this.emit()))},r.__decorate([ce.bind,ce.debounce],e.prototype,"replace",null),e}(),en=new Ze;var nn=t(22),tn=function(){function e(){this.map=new Map,this.prevTerm=""}return e.prototype.add=function(e){this.map.set(e,new nn(e))},e.prototype.delete=function(e){this.map.delete(e)},e.prototype.addOnly=function(e){var n=this;this.map.forEach(function(t,r){-1===e.indexOf(r)&&(t.unmark(),n.map.delete(r))});for(var t=0,r=e;t --\x3e"}var un=function(){function e(e){var n=this;this.options=e,this.headings=[],this.headingRule=function(e,t,r,o){return 1===t?n.currentTopHeading=n.saveHeading(e,t):2===t&&n.saveHeading(e,t,n.currentTopHeading&&n.currentTopHeading.items,n.currentTopHeading&&n.currentTopHeading.id),n.originalHeadingRule(e,t,r,o)},this.headingEnhanceRenderer=new rn.Renderer,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}return e.containsComponent=function(e,n){return new RegExp(ln.replace(/{component}/g,n),"gmi").test(e)},e.prototype.saveHeading=function(e,n,t,r){void 0===t&&(t=this.headings);var o={id:r?r+"/"+w(e):"section/"+w(e),name:e,level:n,items:[]};return t.push(o),o},e.prototype.flattenHeadings=function(e){if(void 0===e)return[];for(var n=[],t=0,r=e;t-1&&(this.description=this.description.substring(0,n)),this.downloadLink=this.getDownloadLink(),this.downloadFileName=this.getDownloadFileName()}return e.prototype.getDownloadLink=function(){if(this.parser.specUrl)return this.parser.specUrl;if(l&&window.Blob&&window.URL&&window.URL.createObjectURL){var e=new Blob([JSON.stringify(this.parser.spec,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}},e.prototype.getDownloadFileName=function(){if(!this.parser.specUrl)return"swagger.json"},e}(),fn=function(){return function(e,n,t){var r=e.deref(t);this.id=n,this.sectionId=Ne+n,this.type=r.type,this.description=r.description||"","apiKey"===r.type&&(this.apiKey={name:r.name,in:r.in}),"http"===r.type&&(this.http={scheme:r.scheme,bearerFormat:r.bearerFormat}),"openIdConnect"===r.type&&(this.openId={connectUrl:r.openIdConnectUrl}),"oauth2"===r.type&&r.flows&&(this.flows=r.flows)}}(),hn=function(){return function(e){var n=e.spec.components&&e.spec.components.securitySchemes||{};this.schemes=Object.keys(n).map(function(t){return new fn(e,t,n[t])})}}(),mn=function(){function e(){this._counter={}}return e.prototype.reset=function(){this._counter={}},e.prototype.visit=function(e){this._counter[e]=this._counter[e]?this._counter[e]+1:1},e.prototype.exit=function(e){this._counter[e]=this._counter[e]&&this._counter[e]-1},e.prototype.visited=function(e){return!!this._counter[e]},e}(),gn=function(){function e(e,n,t){var r=this;void 0===t&&(t=new L({})),this.options=t,this._refCounter=new mn,this.byRef=function(e){var n;if(r.spec){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{n=fe.get(r.spec,e)}catch(t){}return n||{}}},this.validate(e),this.preprocess(e),this.spec=e;var o=l?window.location.href:"";"string"===typeof n&&(this.specUrl=Object(f.resolve)(o,n))}return e.prototype.validate=function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")},e.prototype.preprocess=function(e){if(!this.options.noAutoAuth&&e.info&&e.components&&e.components.securitySchemes){var n=e.info.description||"";if(!un.containsComponent(n,"security-definitions")){var t=cn("security-definitions");e.info.description=v(n,"Authentication",t)}}},e.prototype.isRef=function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)},e.prototype.resetVisited=function(){this._refCounter=new mn},e.prototype.exitRef=function(e){this.isRef(e)&&this._refCounter.exit(e.$ref)},e.prototype.deref=function(e,n){if(void 0===n&&(n=!1),this.isRef(e)){var t=this.byRef(e.$ref),r=this._refCounter.visited(e.$ref);if(this._refCounter.visit(e.$ref),r&&!n)return Object.assign({},t,{"x-circular-ref":!0});if(this.isRef(t)){var o=this.deref(t);return this.exitRef(t),o}return t}return e},e.prototype.shalowDeref=function(e){return this.isRef(e)?this.byRef(e.$ref):e},e.prototype.mergeAllOf=function(e,n,t){var o=this;if(void 0===t&&(t=!1),void 0===(e=this.hoistOneOfs(e)).allOf)return e;var i=r.__assign({},e,{allOf:void 0,parentRefs:[],title:e.title||(Ie(n)?fe.baseName(n):void 0)});void 0!==i.properties&&"object"===typeof i.properties&&(i.properties=r.__assign({},i.properties)),void 0!==i.items&&"object"===typeof i.items&&(i.items=r.__assign({},i.items));for(var a=0,s=e.allOf.map(function(e){var n,r=o.deref(e,t),a=e.$ref||void 0,s=o.mergeAllOf(r,a,t);return(n=i.parentRefs).push.apply(n,s.parentRefs||[]),{$ref:a,schema:s}});a-1})&&(n["#/components/schemas/"+r]=o["x-discriminator-value"]||r)}return n},e.prototype.exitParents=function(e){for(var n=0,t=e.parentRefs||[];n-1;return new kn(e,{name:a,required:c,schema:r.__assign({},l,{default:void 0===l.default?s[a]:l.default})},t+"/properties/"+a,o)});o.sortPropsAlphabetically&&Re(l,"name");o.requiredPropsFirst&&Pe(l,o.sortPropsAlphabetically?void 0:n.required);"object"!==typeof a&&!0!==a||l.push(new kn(e,{name:"property name *",required:!1,schema:!0===a?{}:a,kind:"additionalProperties"},t+"/additionalProperties",o));return l}(n,o,this.pointer,this.options):"array"===this.type&&o.items&&(this.items=new e(n,o.items,this.pointer+"/items",this.options),this.displayType=Ue(this.items.displayType),this.displayFormat=this.items.format,this.typePrefix=this.items.typePrefix+A("arrayOf"),this.title=this.title||this.items.title,this.isPrimitive=this.items.isPrimitive,void 0===this.example&&void 0!==this.items.example&&(this.example=[this.items.example]),this.items.isPrimitive&&(this.enum=this.items.enum)));this.initDiscriminator(o,n)}},e.prototype.initOneOf=function(n,t){var o=this;this.oneOf=n.map(function(n,i){var a=t.deref(n),s=t.mergeAllOf(a,o.pointer+"/oneOf/"+i),l=Ie(n.$ref)&&!s.title?fe.baseName(n.$ref):s.title,c=new e(t,r.__assign({},s,{title:l,allOf:[r.__assign({},o.schema,{oneOf:void 0,anyOf:void 0})]}),o.pointer+"/oneOf/"+i,o.options);return t.exitRef(n),t.exitParents(s),c}),this.displayType=this.oneOf.map(function(e){var n=e.typePrefix+(e.title?e.title+" ("+e.displayType+")":e.displayType);return n.indexOf(" or ")>-1&&(n="("+n+")"),n}).join(" or ")},e.prototype.initDiscriminator=function(n,t){var r=this,o=xn(n);this.discriminatorProp=o.propertyName;var i=t.findDerived((n.parentRefs||[]).concat([this.pointer]));if(n.oneOf)for(var a=0,s=n.oneOf;a0},enumerable:!0,configurable:!0}),r.__decorate([oe.observable],e.prototype,"activeMimeIdx",void 0),r.__decorate([oe.action],e.prototype,"activate",null),r.__decorate([oe.computed],e.prototype,"active",null),e}(),In=function(){return function(e,n,t){var r=e.deref(n);this.description=r.description||"",this.required=!!r.required,e.exitRef(n),void 0!==r.content&&(this.content=new jn(e,r.content,!0,t))}}(),An=function(){function e(e,n,t,o,i){this.headers=[],this.expanded="all"===i.expandResponses||i.expandResponses[n];var a=e.deref(o);e.exitRef(o),this.code=n,void 0!==a.content&&(this.content=new jn(e,a.content,!1,i)),void 0!==a["x-summary"]?(this.summary=a["x-summary"],this.description=a.description||""):(this.summary=a.description||"",this.description=""),this.type=ye(n,t);var s=a.headers;void 0!==s&&(this.headers=Object.keys(s).map(function(n){var t=s[n];return new kn(e,r.__assign({},t,{name:n}),"",i)}))}return e.prototype.toggle=function(){this.expanded=!this.expanded},r.__decorate([oe.observable],e.prototype,"expanded",void 0),r.__decorate([oe.action],e.prototype,"toggle",null),e}(),Cn=function(){function e(e,n,t,r){this.parser=e,this.operationSpec=n,this.options=r,this.type="operation",this.items=[],this.ready=!0,this.active=!1,this.expanded=!1,this.pointer=fe.compile(["paths",n.pathName,n.httpVerb]),this.id=void 0!==n.operationId?"operation/"+n.operationId:void 0!==t?t.id+this.pointer:this.pointer,this.name=_e(n),this.description=n.description,this.parent=t,this.externalDocs=n.externalDocs,this.deprecated=!!n.deprecated,this.httpVerb=n.httpVerb,this.deprecated=!!n.deprecated,this.operationId=n.operationId,this.codeSamples=n["x-code-samples"]||[],this.path=n.pathName;var o=e.byRef(fe.compile(["paths",n.pathName]));this.servers=Me(e.specUrl,n.servers||o&&o.servers||e.spec.servers||[]),this.security=(n.security||e.spec.security||[]).map(function(n){return new vn(n,e)}),r.showExtensions&&(this.extensions=Be(n,r.showExtensions))}return e.prototype.activate=function(){this.active=!0},e.prototype.deactivate=function(){this.active=!1},e.prototype.expand=function(){this.parent&&this.parent.expand()},e.prototype.collapse=function(){},Object.defineProperty(e.prototype,"requestBody",{get:function(){return this.operationSpec.requestBody&&new In(this.parser,this.operationSpec.requestBody,this.options)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parameters",{get:function(){var e=this,n=qe(this.parser,this.operationSpec.pathParameters,this.operationSpec.parameters).map(function(n){return new kn(e.parser,n,e.pointer,e.options)});return this.options.sortPropsAlphabetically&&Re(n,"name"),this.options.requiredPropsFirst&&Pe(n),n},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"responses",{get:function(){var e=this,n=!1;return Object.keys(this.operationSpec.responses||[]).filter(function(e){return"default"===e||("success"===ye(e)&&(n=!0),ge(e))}).map(function(t){return new An(e.parser,t,n,e.operationSpec.responses[t],e.options)})},enumerable:!0,configurable:!0}),r.__decorate([oe.observable],e.prototype,"ready",void 0),r.__decorate([oe.observable],e.prototype,"active",void 0),r.__decorate([oe.observable],e.prototype,"expanded",void 0),r.__decorate([oe.action],e.prototype,"activate",null),r.__decorate([oe.action],e.prototype,"deactivate",null),r.__decorate([Je],e.prototype,"requestBody",null),r.__decorate([Je],e.prototype,"parameters",null),r.__decorate([Je],e.prototype,"responses",null),e}(),Pn=function(){function e(){}return e.buildStructure=function(n,t){var r=n.spec,o=[],i=e.getTagsWithOperations(r);return o.push.apply(o,e.addMarkdownItems(r.info.description||"",t)),r["x-tagGroups"]&&r["x-tagGroups"].length>0?o.push.apply(o,e.getTagGroupsItems(n,void 0,r["x-tagGroups"],i,t)):o.push.apply(o,e.getTagsItems(n,i,void 0,void 0,t)),o},e.addMarkdownItems=function(e,n){return function e(n,t,r){return void 0===r&&(r=1),t.map(function(t){var o=new bn("section",t,n);return o.depth=r,t.items&&(o.items=e(o,t.items,r+1)),un.containsComponent(o.description||"","security-definitions")&&De(o.id+"/"),o})}(void 0,new un(n).extractHeadings(e||""))},e.getTagGroupsItems=function(n,t,r,o,i){for(var a=[],s=0,l=r;s=r.flatItems.length-1&&e);){if(e){var o=r.getElementAt(t+1);if(r.scroll.isElementBellow(o))break}else{o=r.getElementAt(t);if(r.scroll.isElementAbove(o))break}t+=n}r.activate(r.flatItems[t],!0,!0)},this.updateOnHistory=function(e){var n;(void 0===e&&(e=r.history.currentId),e)&&((n=r.flatItems.find(function(n){return n.id===e}))?r.activateAndScroll(n,!1):(e.startsWith(Ne)&&(n=r.flatItems.find(function(e){return Ne.startsWith(e.id)}),r.activate(n)),r.scroll.scrollIntoViewBySelector("["+Rn+'="'+e+'"]')))},this.getItemById=function(e){return r.flatItems.find(function(n){return n.id===e})},this.items=e.contentItems,this.flatItems=g(this.items||[],"items"),this.flatItems.forEach(function(e,n){return e.absoluteIdx=n}),this.subscribe()}return e.updateOnHistory=function(e,n){void 0===e&&(e=en.currentId),e&&n.scrollIntoViewBySelector("["+Rn+'="'+e+'"]')},e.prototype.subscribe=function(){this._unsubscribe=this.scroll.subscribe(this.updateOnScroll),this._hashUnsubscribe=this.history.subscribe(this.updateOnHistory)},e.prototype.toggleSidebar=function(){this.sideBarOpened=!this.sideBarOpened},e.prototype.closeSidebar=function(){this.sideBarOpened=!1},e.prototype.getElementAt=function(e){var n=this.flatItems[e];return n&&c("["+Rn+'="'+n.id+'"]')||null},Object.defineProperty(e.prototype,"activeItem",{get:function(){return this.flatItems[this.activeItemIdx]||void 0},enumerable:!0,configurable:!0}),e.prototype.activate=function(e,n,t){void 0===n&&(n=!0),void 0===t&&(t=!1),(this.activeItem&&this.activeItem.id)!==(e&&e.id)&&(this.deactivate(this.activeItem),e?e.depth<=0||(this.activeItemIdx=e.absoluteIdx,n&&this.history.replace(e.id,t),e.activate(),e.expand()):this.history.replace("",t))},e.prototype.deactivate=function(e){if(void 0!==e){for(e.deactivate();void 0!==e;)e.collapse(),e=e.parent;this.activeItemIdx=-1}},e.prototype.activateAndScroll=function(e,n,t){var r=e&&this.getItemById(e.id)||e;this.activate(r,n,t),this.scrollToActive(),r&&r.items.length||this.closeSidebar()},e.prototype.scrollToActive=function(){this.scroll.scrollIntoView(this.getElementAt(this.activeItemIdx))},e.prototype.dispose=function(){this._unsubscribe(),this._hashUnsubscribe()},r.__decorate([oe.observable],e.prototype,"activeItemIdx",void 0),r.__decorate([oe.observable],e.prototype,"sideBarOpened",void 0),r.__decorate([oe.action],e.prototype,"toggleSidebar",null),r.__decorate([oe.action],e.prototype,"closeSidebar",null),r.__decorate([oe.action],e.prototype,"activate",null),r.__decorate([oe.action.bound],e.prototype,"activateAndScroll",null),e}(),Ln=function(){function e(e){this.options=e,this._prevOffsetY=0,this._scrollParent=l?window:void 0,this._emiter=new ue,this.bind()}return e.prototype.bind=function(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener("scroll",this.handleScroll)},e.prototype.dispose=function(){this._scrollParent&&this._scrollParent.removeEventListener("scroll",this.handleScroll),this._emiter.removeAllListeners("scroll")},e.prototype.scrollY=function(){return"undefined"!==typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0},e.prototype.isElementBellow=function(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()},e.prototype.isElementAbove=function(e){if(null!==e){var n=e.getBoundingClientRect().top;return(n>0?Math.floor(n):Math.ceil(n))<=this.options.scrollYOffset()}},e.prototype.subscribe=function(e){var n=this._emiter.addListener("scroll",e);return function(){return n.removeListener("scroll",e)}},e.prototype.scrollIntoView=function(e){null!==e&&(e.scrollIntoView(),this._scrollParent&&this._scrollParent.scrollBy&&this._scrollParent.scrollBy(0,1-this.options.scrollYOffset()))},e.prototype.scrollIntoViewBySelector=function(e){var n=c(e);this.scrollIntoView(n)},e.prototype.handleScroll=function(){var e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit("scroll",e)},r.__decorate([ce.bind,Ye(100)],e.prototype,"handleScroll",null),e}();if(l)try{wn=t(75)}catch(al){wn=t(33).default}else wn=t(33).default;var Mn,Nn,Dn,Fn,zn,Bn,Un,$n,Vn,Qn,Wn,Yn,Hn,Gn,Kn,Jn,Xn,Zn=function(){function e(){this.searchWorker=new wn}return e.prototype.indexItems=function(e){var n=this;!function e(t){t.forEach(function(t){"group"!==t.type&&n.add(t.name,t.description||"",t.id),e(t.items)})}(e),this.searchWorker.done()},e.prototype.add=function(e,n,t){this.searchWorker.add(e,n,t)},e.prototype.search=function(e){return this.searchWorker.search(e)},e.prototype.toJS=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){return[2,this.searchWorker.toJS()]})})},e.prototype.load=function(e){this.searchWorker.load(e)},e}(),et=$.div(Nn||(Nn=r.__makeTemplateObject(["\n width: calc(100% - ",");\n padding: 0 ","px;\n\n ",";\n"],["\n width: calc(100% - ",");\n padding: 0 ","px;\n\n ",";\n"])),function(e){return e.theme.rightPanel.width},function(e){return e.theme.spacing.sectionHorizontal},U.lessThan("medium",!0)(Mn||(Mn=r.__makeTemplateObject(["\n width: 100%;\n padding: ",";\n "],["\n width: 100%;\n padding: ",";\n "])),function(e){return e.theme.spacing.sectionVertical+"px "+e.theme.spacing.sectionHorizontal+"px"})),nt=$.div.attrs(function(e){var n;return(n={})[Rn]=e.id,n})(Fn||(Fn=r.__makeTemplateObject(["\n padding: ","px 0;\n\n &:last-child {\n min-height: calc(100vh + 1px);\n }\n\n & > &:last-child {\n min-height: initial;\n }\n\n ","\n ","\n"],["\n padding: ","px 0;\n\n &:last-child {\n min-height: calc(100vh + 1px);\n }\n\n & > &:last-child {\n min-height: initial;\n }\n\n ","\n ","\n"])),function(e){return e.theme.spacing.sectionVertical},U.lessThan("medium",!0)(Dn||(Dn=r.__makeTemplateObject(["\n padding: 0;\n "],["\n padding: 0;\n "]))),function(e){return e.underlined?"\n position: relative;\n\n &:not(:last-of-type):after {\n position: absolute;\n bottom: 0;\n width: 100%;\n display: block;\n content: '';\n border-bottom: 1px solid rgba(0, 0, 0, 0.2);\n }\n ":""}),tt=$.div(Bn||(Bn=r.__makeTemplateObject(["\n width: ",";\n color: ",";\n background-color: ",";\n padding: 0 ","px;\n\n ",";\n"],["\n width: ",";\n color: ",";\n background-color: ",";\n padding: 0 ","px;\n\n ",";\n"])),function(e){return e.theme.rightPanel.width},function(e){return e.theme.rightPanel.textColor},function(e){return e.theme.rightPanel.backgroundColor},function(e){return e.theme.spacing.sectionHorizontal},U.lessThan("medium",!0)(zn||(zn=r.__makeTemplateObject(["\n width: 100%;\n padding: ",";\n "],["\n width: 100%;\n padding: ",";\n "])),function(e){return e.theme.spacing.sectionVertical+"px "+e.theme.spacing.sectionHorizontal+"px"})),rt=$(tt)(Un||(Un=r.__makeTemplateObject(["\n background-color: ",";\n"],["\n background-color: ",";\n"])),function(e){return e.theme.rightPanel.backgroundColor}),ot=$.div(Vn||(Vn=r.__makeTemplateObject(["\n display: flex;\n width: 100%;\n padding: 0;\n\n ",";\n"],["\n display: flex;\n width: 100%;\n padding: 0;\n\n ",";\n"])),U.lessThan("medium",!0)($n||($n=r.__makeTemplateObject(["\n flex-direction: column;\n "],["\n flex-direction: column;\n "])))),it={1:"1.85714em",2:"1.57143em",3:"1.27em"},at=function(e){return D(Qn||(Qn=r.__makeTemplateObject(["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n"],["\n font-family: ",";\n font-weight: ",";\n font-size: ",";\n line-height: ",";\n"])),function(e){return e.theme.typography.headings.fontFamily},function(e){return e.theme.typography.headings.fontWeight},it[e],function(e){return e.theme.typography.headings.lineHeight})},st=$.h1(Wn||(Wn=r.__makeTemplateObject(["\n ",";\n color: ",";\n\n ",";\n"],["\n ",";\n color: ",";\n\n ",";\n"])),at(1),function(e){return e.theme.colors.primary.main},V("H1")),lt=$.h2(Yn||(Yn=r.__makeTemplateObject(["\n ",";\n color: black;\n\n ",";\n"],["\n ",";\n color: black;\n\n ",";\n"])),at(2),V("H2")),ct=($.h2(Hn||(Hn=r.__makeTemplateObject(["\n ",";\n color: black;\n\n ",";\n"],["\n ",";\n color: black;\n\n ",";\n"])),at(3),V("H3")),$.h3(Gn||(Gn=r.__makeTemplateObject(["\n color: ",";\n\n ",";\n"],["\n color: ",";\n\n ",";\n"])),function(e){return e.theme.rightPanel.textColor},V("RightPanelHeader"))),ut=$.h5(Kn||(Kn=r.__makeTemplateObject(["\n border-bottom: 1px solid rgba(38, 50, 56, 0.3);\n margin: 1em 0 1em 0;\n color: rgba(38, 50, 56, 0.5);\n font-weight: normal;\n text-transform: uppercase;\n font-size: 0.929em;\n line-height: 20px;\n\n ",";\n"],["\n border-bottom: 1px solid rgba(38, 50, 56, 0.3);\n margin: 1em 0 1em 0;\n color: rgba(38, 50, 56, 0.5);\n font-weight: normal;\n text-transform: uppercase;\n font-size: 0.929em;\n line-height: 20px;\n\n ",";\n"])),V("UnderlinedHeader")),pt=t(38),dt=t.n(pt),ft=Object(i.createContext)(void 0),ht=ft.Provider,mt=ft.Consumer,gt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.state={loading:!0,resolvedSpec:null},n}return r.__extends(n,e),n.getDerivedStateFromProps=function(e,n){return e.specUrl!==n.prevSpecUrl||e.spec!==n.prevSpec?{loading:!0,resolvedSpec:null,prevSpec:e.spec,prevSpecUrl:e.specUrl}:null},n.prototype.makeStore=function(e,n,t){if(e)try{return new yo(e,n,t)}catch(al){throw this.props.onLoaded&&this.props.onLoaded(al),al}},n.prototype.componentDidMount=function(){this.load()},n.prototype.componentDidUpdate=function(){null===this.state.resolvedSpec?this.load():!this.state.loading&&this.props.onLoaded&&this.props.onLoaded()},n.prototype.load=function(){return r.__awaiter(this,void 0,void 0,function(){var e,n,t,o,i;return r.__generator(this,function(r){switch(r.label){case 0:e=this.props,n=e.specUrl,t=e.spec,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,se(t||n)];case 2:return o=r.sent(),this.setState({resolvedSpec:o,loading:!1}),[3,4];case 3:return i=r.sent(),this.props.onLoaded&&this.props.onLoaded(i),this.setState({error:i}),[3,4];case 4:return[2]}})})},n.prototype.render=function(){if(this.state.error)throw this.state.error;var e=this.props,n=e.specUrl,t=e.options,r=this.state,o=r.loading,i=r.resolvedSpec;return this.props.children({loading:o,store:this.makeStore(i,n,t)})},r.__decorate([dt.a],n.prototype,"makeStore",null),n}(i.Component),yt=function(e){return D(Jn||(Jn=r.__makeTemplateObject(["\n "," {\n cursor: pointer;\n margin-left: -20px;\n padding: 0;\n line-height: 1;\n width: 20px;\n display: inline-block;\n }\n ",":before {\n content: '';\n width: 15px;\n height: 15px;\n background-size: contain;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');\n opacity: 0.5;\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n }\n\n h1:hover > ","::before, h2:hover > ","::before, ",":hover::before {\n visibility: visible;\n }\n"],["\n "," {\n cursor: pointer;\n margin-left: -20px;\n padding: 0;\n line-height: 1;\n width: 20px;\n display: inline-block;\n }\n ",":before {\n content: '';\n width: 15px;\n height: 15px;\n background-size: contain;\n background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgeD0iMCIgeT0iMCIgd2lkdGg9IjUxMiIgaGVpZ2h0PSI1MTIiIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA1MTIgNTEyIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBmaWxsPSIjMDEwMTAxIiBkPSJNNDU5LjcgMjMzLjRsLTkwLjUgOTAuNWMtNTAgNTAtMTMxIDUwLTE4MSAwIC03LjktNy44LTE0LTE2LjctMTkuNC0yNS44bDQyLjEtNDIuMWMyLTIgNC41LTMuMiA2LjgtNC41IDIuOSA5LjkgOCAxOS4zIDE1LjggMjcuMiAyNSAyNSA2NS42IDI0LjkgOTAuNSAwbDkwLjUtOTAuNWMyNS0yNSAyNS02NS42IDAtOTAuNSAtMjQuOS0yNS02NS41LTI1LTkwLjUgMGwtMzIuMiAzMi4yYy0yNi4xLTEwLjItNTQuMi0xMi45LTgxLjYtOC45bDY4LjYtNjguNmM1MC01MCAxMzEtNTAgMTgxIDBDNTA5LjYgMTAyLjMgNTA5LjYgMTgzLjQgNDU5LjcgMjMzLjR6TTIyMC4zIDM4Mi4ybC0zMi4yIDMyLjJjLTI1IDI0LjktNjUuNiAyNC45LTkwLjUgMCAtMjUtMjUtMjUtNjUuNiAwLTkwLjVsOTAuNS05MC41YzI1LTI1IDY1LjUtMjUgOTAuNSAwIDcuOCA3LjggMTIuOSAxNy4yIDE1LjggMjcuMSAyLjQtMS40IDQuOC0yLjUgNi44LTQuNWw0Mi4xLTQyYy01LjQtOS4yLTExLjYtMTgtMTkuNC0yNS44IC01MC01MC0xMzEtNTAtMTgxIDBsLTkwLjUgOTAuNWMtNTAgNTAtNTAgMTMxIDAgMTgxIDUwIDUwIDEzMSA1MCAxODEgMGw2OC42LTY4LjZDMjc0LjYgMzk1LjEgMjQ2LjQgMzkyLjMgMjIwLjMgMzgyLjJ6Ii8+PC9zdmc+Cg==');\n opacity: 0.5;\n visibility: hidden;\n display: inline-block;\n vertical-align: middle;\n }\n\n h1:hover > ","::before, h2:hover > ","::before, ",":hover::before {\n visibility: visible;\n }\n"])),e,e,e,e,e)},bt=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},vt=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.navigate=function(e,t){t.defaultPrevented||0!==t.button||bt(t)||(t.preventDefault(),e.replace(n.props.to))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this;return i.createElement(mt,null,function(n){return i.createElement("a",{className:e.props.className,href:n.menu.history.linkForId(e.props.to),onClick:e.navigate.bind(e,n.menu.history)},e.props.children)})},n}(i.Component),_t=$(vt)(Xn||(Xn=r.__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),yt("&"));function xt(e){return i.createElement(_t,{to:e.to})}var wt,kt,Ot,Et,Tt,St,jt,It,At,Ct,Pt,Rt,qt,Lt,Mt,Nt,Dt,Ft,zt,Bt,Ut,$t,Vt,Qt,Wt,Yt,Ht,Gt={left:"90deg",right:"-90deg",up:"-180deg",down:"0"},Kt=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return i.createElement("svg",{className:this.props.className,style:this.props.style,version:"1.1",viewBox:"0 0 24 24",x:"0",xmlns:"http://www.w3.org/2000/svg",y:"0"},i.createElement("polygon",{points:"17.3 8.3 12 13.6 6.7 8.3 5.3 9.7 12 16.4 18.7 9.7 "}))},n}(i.PureComponent),Jt=$(Kt)(wt||(wt=r.__makeTemplateObject(["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n transform: rotateZ(",");\n\n polygon {\n fill: ",";\n }\n"],["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n transform: rotateZ(",");\n\n polygon {\n fill: ",";\n }\n"])),function(e){return e.size||"18px"},function(e){return e.size||"18px"},function(e){return e.float||""},function(e){return Gt[e.direction||"down"]},function(e){return e.color&&e.theme.colors[e.color]&&e.theme.colors[e.color].main||e.color}),Xt=$.span(kt||(kt=r.__makeTemplateObject(["\n display: inline-block;\n padding: 0 5px;\n margin: 0;\n background-color: ",";\n color: ",";\n font-size: ",";\n vertical-align: text-top;\n"],["\n display: inline-block;\n padding: 0 5px;\n margin: 0;\n background-color: ",";\n color: ",";\n font-size: ",";\n vertical-align: text-top;\n"])),function(e){return e.theme.colors[e.type].main},function(e){return e.theme.colors[e.type].contrastText},function(e){return e.theme.typography.code.fontSize}),Zt=D(Ot||(Ot=r.__makeTemplateObject(["\n text-decoration: line-through;\n color: #bdccd3;\n"],["\n text-decoration: line-through;\n color: #bdccd3;\n"]))),er=$.caption(Et||(Et=r.__makeTemplateObject(["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"],["\n text-align: right;\n font-size: 0.9em;\n font-weight: normal;\n color: ",";\n"])),function(e){return e.theme.colors.text.secondary}),nr=$.td(Tt||(Tt=r.__makeTemplateObject(["\n border-left: 1px solid ",";\n box-sizing: border-box;\n position: relative;\n padding: 10px 10px 10px 0;\n\n tr:first-of-type > &,\n tr.last > & {\n border-left-width: 0;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n }\n\n tr:first-of-type > & {\n background-image: linear-gradient(\n to bottom,\n transparent 0%,\n transparent 22px,\n "," 22px,\n "," 100%\n );\n }\n\n tr.last > & {\n background-image: linear-gradient(\n to bottom,\n "," 0%,\n "," 22px,\n transparent 22px,\n transparent 100%\n );\n }\n\n tr.last + tr > & {\n border-left-color: transparent;\n }\n\n tr.last:first-child > & {\n background: none;\n border-left-color: transparent;\n }\n"],["\n border-left: 1px solid ",";\n box-sizing: border-box;\n position: relative;\n padding: 10px 10px 10px 0;\n\n tr:first-of-type > &,\n tr.last > & {\n border-left-width: 0;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n }\n\n tr:first-of-type > & {\n background-image: linear-gradient(\n to bottom,\n transparent 0%,\n transparent 22px,\n "," 22px,\n "," 100%\n );\n }\n\n tr.last > & {\n background-image: linear-gradient(\n to bottom,\n "," 0%,\n "," 22px,\n transparent 22px,\n transparent 100%\n );\n }\n\n tr.last + tr > & {\n border-left-color: transparent;\n }\n\n tr.last:first-child > & {\n background: none;\n border-left-color: transparent;\n }\n"])),function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor}),tr=$(nr)(St||(St=r.__makeTemplateObject(["\n padding: 0;\n"],["\n padding: 0;\n"]))),rr=$(nr)(jt||(jt=r.__makeTemplateObject(["\n vertical-align: top;\n line-height: 20px;\n white-space: nowrap;\n font-size: 0.929em;\n font-family: ",";\n\n &.deprecated {\n ",";\n }\n\n ",";\n\n ",";\n"],["\n vertical-align: top;\n line-height: 20px;\n white-space: nowrap;\n font-size: 0.929em;\n font-family: ",";\n\n &.deprecated {\n ",";\n }\n\n ",";\n\n ",";\n"])),function(e){return e.theme.typography.headings.fontFamily},Zt,function(e){return"field"!==e.kind?"font-style: italic":""},V("PropertyNameCell")),or=$.td(It||(It=r.__makeTemplateObject(["\n border-bottom: 1px solid #9fb4be;\n padding: 10px 0;\n width: ",";\n box-sizing: border-box;\n\n tr.expanded & {\n border-bottom: none;\n }\n"],["\n border-bottom: 1px solid #9fb4be;\n padding: 10px 0;\n width: ",";\n box-sizing: border-box;\n\n tr.expanded & {\n border-bottom: none;\n }\n"])),function(e){return e.theme.schema.defaultDetailsWidth}),ir=$.span(At||(At=r.__makeTemplateObject(["\n color: ",";\n font-family: ",";\n margin-right: 10px;\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n &::after {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 1px;\n background: ",";\n height: 7px;\n }\n"],["\n color: ",";\n font-family: ",";\n margin-right: 10px;\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n &::after {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 1px;\n background: ",";\n height: 7px;\n }\n"])),function(e){return e.theme.schema.linesColor},function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.schema.linesColor},function(e){return e.theme.schema.linesColor}),ar=$.div(Ct||(Ct=r.__makeTemplateObject(["\n padding: ",";\n"],["\n padding: ",";\n"])),function(e){return e.theme.schema.nestingSpacing}),sr=$.table(Pt||(Pt=r.__makeTemplateObject(["\n border-collapse: separate;\n border-radius: 3px;\n font-size: ",";\n\n border-spacing: 0;\n width: 100%;\n\n > tr {\n vertical-align: middle;\n }\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin: ",";\n margin-right: 0;\n background: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: #ffffff;\n }\n"],["\n border-collapse: separate;\n border-radius: 3px;\n font-size: ",";\n\n border-spacing: 0;\n width: 100%;\n\n > tr {\n vertical-align: middle;\n }\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin: ",";\n margin-right: 0;\n background: ",";\n }\n\n &\n ","\n ",",\n &\n ","\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n ","\n "," {\n background: #ffffff;\n }\n"])),function(e){return e.theme.typography.fontSize},ar,ar,ar,ar,ar,ar,ar,ar,ar,function(e){return e.theme.schema.nestingSpacing},function(e){return e.theme.schema.nestedBackground},ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar,ar),lr=$.ul(Rt||(Rt=r.__makeTemplateObject(["\n margin: 0 0 3px 0;\n padding: 0;\n list-style: none;\n display: inline-block;\n"],["\n margin: 0 0 3px 0;\n padding: 0;\n list-style: none;\n display: inline-block;\n"]))),cr=$.span(qt||(qt=r.__makeTemplateObject(["\n font-size: 0.9em;\n margin-right: 10px;\n color: ",";\n font-family: Montserrat;\n}\n"],["\n font-size: 0.9em;\n margin-right: 10px;\n color: ",";\n font-family: Montserrat;\n}\n"])),function(e){return e.theme.colors.primary.main}),ur=$.li(Lt||(Lt=r.__makeTemplateObject(["\n display: inline-block;\n margin-right: 10px;\n font-size: 0.8em;\n cursor: pointer;\n border: 1px solid ",";\n padding: 2px 10px;\n\n ","\n"],["\n display: inline-block;\n margin-right: 10px;\n font-size: 0.8em;\n cursor: pointer;\n border: 1px solid ",";\n padding: 2px 10px;\n\n ","\n"])),function(e){return e.theme.colors.primary.main},function(e){return e.active?"\n color: white;\n background-color: "+e.theme.colors.primary.main+";\n ":"\n color: "+e.theme.colors.primary.main+";\n background-color: white;\n "}),pr=$.div(Mt||(Mt=r.__makeTemplateObject(["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ' [';\n }\n"],["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ' [';\n }\n"])),function(e){return e.theme.typography.code.fontFamily}),dr=$.div(Nt||(Nt=r.__makeTemplateObject(["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ']';\n }\n"],["\n font-size: 0.9em;\n font-family: ",";\n &::after {\n content: ']';\n }\n"])),function(e){return e.theme.typography.code.fontFamily}),fr=t(39),hr=$(t.n(fr).a)(Dt||(Dt=r.__makeTemplateObject(["\n min-width: 100px;\n display: inline-block;\n position: relative;\n width: auto;\n font-family: ",";\n\n .Dropdown-control {\n font-family: ",";\n position: relative;\n font-size: 0.929em;\n width: 100%;\n line-height: 1.5em;\n vertical-align: middle;\n cursor: pointer;\n border-color: rgba(38, 50, 56, 0.5);\n color: #263238;\n outline: none;\n padding: 0.15em 1.5em 0.2em 0.5em;\n border-radius: 2px;\n border-width: 1px;\n border-style: solid;\n margin-top: 5px;\n background: white;\n\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n color: ",";\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12);\n }\n }\n\n .Dropdown-arrow {\n border-color: "," transparent transparent;\n border-style: solid;\n border-width: 0.35em 0.35em 0;\n content: ' ';\n display: block;\n height: 0;\n position: absolute;\n right: 0.35em;\n top: 50%;\n margin-top: -0.125em;\n width: 0;\n }\n\n .Dropdown-menu {\n position: absolute;\n margin-top: 2px;\n left: 0;\n right: 0;\n\n z-index: 10;\n min-width: 100px;\n\n background: white;\n border: 1px solid rgba(38, 50, 56, 0.2);\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);\n\n max-height: 220px;\n overflow: auto;\n }\n\n .Dropdown-option {\n font-size: 0.9em;\n color: #263238;\n cursor: pointer;\n padding: 0.4em;\n\n &.is-selected {\n background-color: rgba(0, 0, 0, 0.05);\n }\n\n &:hover {\n background-color: rgba(38, 50, 56, 0.12);\n }\n }\n"],["\n min-width: 100px;\n display: inline-block;\n position: relative;\n width: auto;\n font-family: ",";\n\n .Dropdown-control {\n font-family: ",";\n position: relative;\n font-size: 0.929em;\n width: 100%;\n line-height: 1.5em;\n vertical-align: middle;\n cursor: pointer;\n border-color: rgba(38, 50, 56, 0.5);\n color: #263238;\n outline: none;\n padding: 0.15em 1.5em 0.2em 0.5em;\n border-radius: 2px;\n border-width: 1px;\n border-style: solid;\n margin-top: 5px;\n background: white;\n\n box-sizing: border-box;\n\n &:hover {\n border-color: ",";\n color: ",";\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12);\n }\n }\n\n .Dropdown-arrow {\n border-color: "," transparent transparent;\n border-style: solid;\n border-width: 0.35em 0.35em 0;\n content: ' ';\n display: block;\n height: 0;\n position: absolute;\n right: 0.35em;\n top: 50%;\n margin-top: -0.125em;\n width: 0;\n }\n\n .Dropdown-menu {\n position: absolute;\n margin-top: 2px;\n left: 0;\n right: 0;\n\n z-index: 10;\n min-width: 100px;\n\n background: white;\n border: 1px solid rgba(38, 50, 56, 0.2);\n box-shadow: 0px 2px 4px 0px rgba(34, 36, 38, 0.12), 0px 2px 10px 0px rgba(34, 36, 38, 0.08);\n\n max-height: 220px;\n overflow: auto;\n }\n\n .Dropdown-option {\n font-size: 0.9em;\n color: #263238;\n cursor: pointer;\n padding: 0.4em;\n\n &.is-selected {\n background-color: rgba(0, 0, 0, 0.05);\n }\n\n &:hover {\n background-color: rgba(38, 50, 56, 0.12);\n }\n }\n"])),function(e){return e.theme.typography.headings.fontFamily},function(e){return e.theme.typography.headings.fontFamily},function(e){return e.theme.colors.primary.main},function(e){return e.theme.colors.primary.main},function(e){return e.theme.colors.primary.main}),mr=$(hr)(Ft||(Ft=r.__makeTemplateObject(["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n\n .Dropdown-control {\n font-size: 1em;\n border: none;\n padding: 0 1.2em 0 0;\n background: transparent;\n\n &:hover {\n color: ",";\n box-shadow: none;\n }\n }\n"],["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n\n .Dropdown-control {\n font-size: 1em;\n border: none;\n padding: 0 1.2em 0 0;\n background: transparent;\n\n &:hover {\n color: ",";\n box-shadow: none;\n }\n }\n"])),function(e){return e.theme.colors.primary.main}),gr=$.span(zt||(zt=r.__makeTemplateObject(["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n color: black;\n"],["\n margin-left: 10px;\n text-transform: none;\n font-size: 0.929em;\n color: black;\n"]))),yr=t(8),br=$(yr.Tabs)(Bt||(Bt=r.__makeTemplateObject(["\n > ul {\n list-style: none;\n padding: 0;\n margin: 0;\n margin: 0 -5px;\n\n > li {\n padding: 5px 10px;\n display: inline-block;\n\n background-color: ",";\n border-bottom: 1px solid rgba(0, 0, 0, 0.5);\n cursor: pointer;\n text-align: center;\n outline: none;\n color: ",";\n margin: 0\n ",";\n border: 1px solid ",";\n border-radius: 5px;\n min-width: 60px;\n font-size: 0.9em;\n font-weight: bold;\n\n &.react-tabs__tab--selected {\n color: ",";\n background: ",";\n }\n\n &:only-child {\n flex: none;\n min-width: 100px;\n }\n\n &.tab-success {\n color: ",";\n }\n\n &.tab-redirect {\n color: ",";\n }\n\n &.tab-info {\n color: ",";\n }\n\n &.tab-error {\n color: ",";\n }\n }\n }\n > .react-tabs__tab-panel {\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n }\n"],["\n > ul {\n list-style: none;\n padding: 0;\n margin: 0;\n margin: 0 -5px;\n\n > li {\n padding: 5px 10px;\n display: inline-block;\n\n background-color: ",";\n border-bottom: 1px solid rgba(0, 0, 0, 0.5);\n cursor: pointer;\n text-align: center;\n outline: none;\n color: ",";\n margin: 0\n ",";\n border: 1px solid ",";\n border-radius: 5px;\n min-width: 60px;\n font-size: 0.9em;\n font-weight: bold;\n\n &.react-tabs__tab--selected {\n color: ",";\n background: ",";\n }\n\n &:only-child {\n flex: none;\n min-width: 100px;\n }\n\n &.tab-success {\n color: ",";\n }\n\n &.tab-redirect {\n color: ",";\n }\n\n &.tab-info {\n color: ",";\n }\n\n &.tab-error {\n color: ",";\n }\n }\n }\n > .react-tabs__tab-panel {\n background: ",";\n & > div,\n & > pre {\n padding: ","px;\n margin: 0;\n }\n\n & > div > pre {\n padding: 0;\n }\n }\n"])),function(e){return e.theme.codeSample.backgroundColor},function(e){var n=e.theme;return Object(a.darken)(n.colors.tonalOffset,n.rightPanel.textColor)},function(e){var n=e.theme;return n.spacing.unit+"px "+n.spacing.unit+"px "+n.spacing.unit+"px"},function(e){var n=e.theme;return Object(a.darken)(.05,n.codeSample.backgroundColor)},function(e){return e.theme.colors.text.primary},function(e){return e.theme.rightPanel.textColor},function(e){return e.theme.colors.responses.success.color},function(e){return e.theme.colors.responses.redirect.color},function(e){return e.theme.colors.responses.info.color},function(e){return e.theme.colors.responses.error.color},function(e){return e.theme.codeSample.backgroundColor},function(e){return 4*e.theme.spacing.unit}),vr=$(br)(Ut||(Ut=r.__makeTemplateObject(["\n > ul {\n display: block;\n > li {\n padding: 2px 5px;\n min-width: auto;\n margin: 0 15px 0 0;\n font-size: 13px;\n font-weight: normal;\n border-bottom: 1px dashed;\n color: ",";\n border-radius: 0;\n background: none;\n\n &:last-child {\n margin-right: 0;\n }\n\n &.react-tabs__tab--selected {\n color: ",";\n background: none;\n }\n }\n }\n > .react-tabs__tab-panel {\n & > div,\n & > pre {\n padding: "," 0;\n }\n }\n"],["\n > ul {\n display: block;\n > li {\n padding: 2px 5px;\n min-width: auto;\n margin: 0 15px 0 0;\n font-size: 13px;\n font-weight: normal;\n border-bottom: 1px dashed;\n color: ",";\n border-radius: 0;\n background: none;\n\n &:last-child {\n margin-right: 0;\n }\n\n &.react-tabs__tab--selected {\n color: ",";\n background: none;\n }\n }\n }\n > .react-tabs__tab-panel {\n & > div,\n & > pre {\n padding: "," 0;\n }\n }\n"])),function(e){var n=e.theme;return Object(a.darken)(n.colors.tonalOffset,n.rightPanel.textColor)},function(e){return e.theme.rightPanel.textColor},function(e){return 2*e.theme.spacing.unit}),_r=$.div($t||($t=r.__makeTemplateObject(["\n /**\n * Based on prism-dark.css\n */\n\n code[class*='language-'],\n pre[class*='language-'] {\n /* color: white;\n background: none; */\n text-shadow: 0 -0.1em 0.2em black;\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\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n @media print {\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: hsl(30, 20%, 50%);\n }\n\n .token.punctuation {\n opacity: 0.7;\n }\n\n .namespace {\n opacity: 0.7;\n }\n\n .token.property,\n .token.tag,\n .token.number,\n .token.constant,\n .token.symbol {\n color: #4a8bb3;\n }\n\n .token.boolean {\n color: firebrick;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: #a0fbaa;\n & + a,\n & + a:visited {\n color: #4ed2ba;\n text-decoration: underline;\n }\n }\n\n /* .property.token.string {\n color: white;\n } */\n\n .token.operator,\n .token.entity,\n .token.url,\n .token.variable {\n color: hsl(40, 90%, 60%);\n }\n\n .token.atrule,\n .token.attr-value,\n .token.keyword {\n color: hsl(350, 40%, 70%);\n }\n\n .token.regex,\n .token.important {\n color: #e90;\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.deleted {\n color: red;\n }\n\n ",";\n"],["\n /**\n * Based on prism-dark.css\n */\n\n code[class*='language-'],\n pre[class*='language-'] {\n /* color: white;\n background: none; */\n text-shadow: 0 -0.1em 0.2em black;\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\n -moz-tab-size: 4;\n -o-tab-size: 4;\n tab-size: 4;\n\n -webkit-hyphens: none;\n -moz-hyphens: none;\n -ms-hyphens: none;\n hyphens: none;\n }\n\n @media print {\n code[class*='language-'],\n pre[class*='language-'] {\n text-shadow: none;\n }\n }\n\n /* Code blocks */\n pre[class*='language-'] {\n padding: 1em;\n margin: 0.5em 0;\n overflow: auto;\n }\n\n .token.comment,\n .token.prolog,\n .token.doctype,\n .token.cdata {\n color: hsl(30, 20%, 50%);\n }\n\n .token.punctuation {\n opacity: 0.7;\n }\n\n .namespace {\n opacity: 0.7;\n }\n\n .token.property,\n .token.tag,\n .token.number,\n .token.constant,\n .token.symbol {\n color: #4a8bb3;\n }\n\n .token.boolean {\n color: firebrick;\n }\n\n .token.selector,\n .token.attr-name,\n .token.string,\n .token.char,\n .token.builtin,\n .token.inserted {\n color: #a0fbaa;\n & + a,\n & + a:visited {\n color: #4ed2ba;\n text-decoration: underline;\n }\n }\n\n /* .property.token.string {\n color: white;\n } */\n\n .token.operator,\n .token.entity,\n .token.url,\n .token.variable {\n color: hsl(40, 90%, 60%);\n }\n\n .token.atrule,\n .token.attr-value,\n .token.keyword {\n color: hsl(350, 40%, 70%);\n }\n\n .token.regex,\n .token.important {\n color: #e90;\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.deleted {\n color: red;\n }\n\n ",";\n"])),V("Prism")),xr=$.div(Vt||(Vt=r.__makeTemplateObject(["\n opacity: 0.4;\n transition: opacity 0.3s ease;\n text-align: right;\n\n > span {\n display: inline-block;\n padding: 2px 10px;\n cursor: pointer;\n\n :hover {\n background: rgba(255, 255, 255, 0.1);\n }\n }\n"],["\n opacity: 0.4;\n transition: opacity 0.3s ease;\n text-align: right;\n\n > span {\n display: inline-block;\n padding: 2px 10px;\n cursor: pointer;\n\n :hover {\n background: rgba(255, 255, 255, 0.1);\n }\n }\n"]))),wr=$.div(Qt||(Qt=r.__makeTemplateObject(["\n &:hover "," {\n opacity: 1;\n }\n"],["\n &:hover "," {\n opacity: 1;\n }\n"])),xr),kr=$(_r.withComponent("pre"))(Wt||(Wt=r.__makeTemplateObject(["\n font-family: ",";\n font-size: ",";\n overflow-x: auto;\n margin: 0;\n\n white-space: ",";\n"],["\n font-family: ",";\n font-size: ",";\n overflow-x: auto;\n margin: 0;\n\n white-space: ",";\n"])),function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"}),Or=t(24),Er=t.n(Or),Tr=t(25),Sr=t.n(Tr),jr=Er.a||Or,Ir=F(Yt||(Yt=r.__makeTemplateObject(["",""],["",""])),Sr.a&&Sr.a.toString()),Ar=$.div(Ht||(Ht=r.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),Cr=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleRef=function(e){n._container=e},n}return r.__extends(n,e),n.prototype.componentDidMount=function(){var e=this._container.parentElement&&this._container.parentElement.scrollTop||0;this.inst=new jr(this._container,this.props.options||{}),this._container.scrollTo&&this._container.scrollTo(0,e)},n.prototype.componentDidUpdate=function(){this.inst.update()},n.prototype.componentWillUnmount=function(){this.inst.destroy()},n.prototype.render=function(){var e=this.props,n=e.children,t=e.className,r=e.updateFn;return r&&r(this.componentDidUpdate.bind(this)),i.createElement(i.Fragment,null,i.createElement(Ir,null),i.createElement(Ar,{className:"scrollbar-container "+t,ref:this.handleRef},n))},n}(i.Component);function Pr(e){return i.createElement(ne.Consumer,null,function(n){return n.nativeScrollbars?i.createElement("div",{style:{overflow:"auto",msOverflowStyle:"-ms-autohiding-scrollbar"}},e.children):i.createElement(Cr,r.__assign({},e),e.children)})}var Rr,qr,Lr=t(40),Mr=D(Rr||(Rr=r.__makeTemplateObject(["\n a {\n text-decoration: none;\n color: ",";\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n }\n"],["\n a {\n text-decoration: none;\n color: ",";\n\n &:visited {\n color: ",";\n }\n\n &:hover {\n color: ",";\n }\n }\n"])),function(e){return e.theme.typography.links.color},function(e){return e.theme.typography.links.visited},function(e){return e.theme.typography.links.hover}),Nr=$(_r)(qr||(qr=r.__makeTemplateObject(["\n\n font-family: ",";\n font-weight: ",";\n line-height: ",";\n\n p {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ","\n\n ","\n\n h1 {\n ",";\n color: ",";\n margin-top: 0;\n }\n\n h2 {\n ",";\n color: ",";\n }\n\n code {\n color: ",";\n background-color: ",";\n\n font-family: ",";\n border-radius: 2px;\n border: 1px solid rgba(38, 50, 56, 0.1);\n padding: 0 ","px;\n font-size: ",";\n font-weight: ",";\n\n word-break: break-word;\n }\n\n pre {\n font-family: ",";\n white-space:",";\n background-color: #263238;\n color: white;\n padding: ","px;\n overflow-x: auto;\n line-height: normal;\n border-radius: 0px\n border: 1px solid rgba(38, 50, 56, 0.1);\n\n code {\n background-color: transparent;\n color: white;\n padding: 0;\n\n &:before,\n &:after {\n content: none;\n }\n }\n }\n\n blockquote {\n margin: 0;\n margin-bottom: 1em;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n img {\n max-width: 100%;\n box-sizing: content-box;\n }\n\n ul,\n ol {\n padding-left: 2em;\n margin: 0;\n margin-bottom: 1em;\n\n ul, ol {\n margin-bottom: 0;\n margin-top: 0;\n }\n }\n\n table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n }\n\n table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n\n &:nth-child(2n) {\n background-color: ",";\n }\n }\n\n table th,\n table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n table th {\n text-align: left;\n font-weight: bold;\n }\n\n ",";\n\n ","\n\n ",";\n"],["\n\n font-family: ",";\n font-weight: ",";\n line-height: ",";\n\n p {\n &:last-child {\n margin-bottom: 0;\n }\n }\n\n ","\n\n ","\n\n h1 {\n ",";\n color: ",";\n margin-top: 0;\n }\n\n h2 {\n ",";\n color: ",";\n }\n\n code {\n color: ",";\n background-color: ",";\n\n font-family: ",";\n border-radius: 2px;\n border: 1px solid rgba(38, 50, 56, 0.1);\n padding: 0 ","px;\n font-size: ",";\n font-weight: ",";\n\n word-break: break-word;\n }\n\n pre {\n font-family: ",";\n white-space:",";\n background-color: #263238;\n color: white;\n padding: ","px;\n overflow-x: auto;\n line-height: normal;\n border-radius: 0px\n border: 1px solid rgba(38, 50, 56, 0.1);\n\n code {\n background-color: transparent;\n color: white;\n padding: 0;\n\n &:before,\n &:after {\n content: none;\n }\n }\n }\n\n blockquote {\n margin: 0;\n margin-bottom: 1em;\n padding: 0 15px;\n color: #777;\n border-left: 4px solid #ddd;\n }\n\n img {\n max-width: 100%;\n box-sizing: content-box;\n }\n\n ul,\n ol {\n padding-left: 2em;\n margin: 0;\n margin-bottom: 1em;\n\n ul, ol {\n margin-bottom: 0;\n margin-top: 0;\n }\n }\n\n table {\n display: block;\n width: 100%;\n overflow: auto;\n word-break: normal;\n word-break: keep-all;\n border-collapse: collapse;\n border-spacing: 0;\n margin-top: 1.5em;\n margin-bottom: 1.5em;\n }\n\n table tr {\n background-color: #fff;\n border-top: 1px solid #ccc;\n\n &:nth-child(2n) {\n background-color: ",";\n }\n }\n\n table th,\n table td {\n padding: 6px 13px;\n border: 1px solid #ddd;\n }\n\n table th {\n text-align: left;\n font-weight: bold;\n }\n\n ",";\n\n ","\n\n ",";\n"])),function(e){return e.theme.typography.fontFamily},function(e){return e.theme.typography.fontWeightRegular},function(e){return e.theme.typography.lineHeight},function(e){return e.compact&&"\n p:first-child {\n margin-top: 0;\n }\n p:last-child {\n margin-bottom: 0;\n }\n "},function(e){return e.inline&&" p {\n display: inline-block;\n }"},at(1),function(e){return e.theme.colors.primary.main},at(2),function(e){return e.theme.colors.text.primary},function(e){return e.theme.typography.code.color},function(e){return e.theme.typography.code.backgroundColor},function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.spacing.unit},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.fontWeight},function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"},function(e){return 4*e.theme.spacing.unit},function(e){return e.theme.schema.nestedBackground},yt(".share-link"),Mr,V("Markdown")),Dr=Nr.withComponent("span"),Fr=function(e,n){return e?Lr.sanitize(n):n};function zr(e){var n=e.inline?Dr:Nr;return i.createElement(re,null,function(t){return i.createElement(n,r.__assign({className:"redoc-markdown "+(e.className||""),dangerouslySetInnerHTML:{__html:Fr(t.untrustedSpec,e.html)}},e))})}var Br,Ur=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.source,t=e.inline,r=e.compact,o=e.className,a=new un;return i.createElement(zr,{html:a.renderMd(n),inline:t,compact:r,className:o})},n}(i.Component),$r={oauth2:"OAuth2",apiKey:"API Key",http:"HTTP",openIdConnect:"Open ID Connect"},Vr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.type,t=e.flow;return i.createElement("tr",null,i.createElement("th",null," ",n," OAuth Flow "),i.createElement("td",null,"implicit"===n||"authorizationCode"===n?i.createElement("div",null,i.createElement("strong",null," Authorization URL: "),t.authorizationUrl):null,"password"===n||"clientCredentials"===n||"authorizationCode"===n?i.createElement("div",null,i.createElement("strong",null," Token URL: "),t.tokenUrl):null,t.refreshUrl&&i.createElement("div",null,i.createElement("strong",null," Refresh URL: "),t.refreshUrl),i.createElement("div",null,i.createElement("strong",null," Scopes: ")),i.createElement("ul",null,Object.keys(t.scopes).map(function(e){return i.createElement("li",{key:e},i.createElement("code",null,e)," - ",i.createElement(Ur,{inline:!0,source:t.scopes[e]||""}))}))))},n}(i.PureComponent),Qr=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return this.props.securitySchemes.schemes.map(function(e){return i.createElement(nt,{id:e.sectionId,key:e.id},i.createElement(ot,null,i.createElement(et,null,i.createElement(lt,null,i.createElement(xt,{to:e.sectionId}),e.id),i.createElement(Ur,{source:e.description||""}),i.createElement(Nr,null,i.createElement("table",{className:"security-details"},i.createElement("tbody",null,i.createElement("tr",null,i.createElement("th",null," Security scheme type: "),i.createElement("td",null," ",$r[e.type]||e.type," ")),e.apiKey?i.createElement("tr",null,i.createElement("th",null," ",T(e.apiKey.in||"")," parameter name:"),i.createElement("td",null," ",e.apiKey.name," ")):e.http?[i.createElement("tr",{key:"scheme"},i.createElement("th",null," HTTP Authorization Scheme "),i.createElement("td",null," ",e.http.scheme," ")),"bearer"===e.http.scheme&&e.http.bearerFormat&&i.createElement("tr",{key:"bearer"},i.createElement("th",null," Bearer format "),i.createElement("td",null,' "',e.http.bearerFormat,'" '))]:e.openId?i.createElement("tr",null,i.createElement("th",null," Connect URL "),i.createElement("td",null,i.createElement("a",{target:"_blank",href:e.openId.connectUrl},e.openId.connectUrl))):e.flows?Object.keys(e.flows).map(function(n){return i.createElement(Vr,{key:n,type:n,flow:e.flows[n]})}):null))))))})},n}(i.PureComponent);function Wr(e,n,t){return void 0===t&&(t={}),r.__awaiter(this,void 0,void 0,function(){var o;return r.__generator(this,function(r){switch(r.label){case 0:return[4,se(e||n)];case 1:return o=r.sent(),[2,new yo(o,n,t)]}})})}var Yr,Hr,Gr,Kr,Jr,Xr,Zr,eo,no,to,ro,oo,io,ao,so,lo,co,uo,po,fo,ho,mo,go,yo=function(){function e(e,n,t,r){var o=this;void 0===t&&(t={}),void 0===r&&(r=!0),this.marker=new tn,this.disposer=null,this.rawOptions=t,this.options=new L(t,bo),this.scroll=new Ln(this.options),qn.updateOnHistory(en.currentId,this.scroll),this.spec=new yn(e,n,this.options),this.menu=new qn(this.spec,this.scroll,en),this.options.disableSearch||(this.search=new Zn,r&&this.search.indexItems(this.menu.items),this.disposer=Object(oe.observe)(this.menu,"activeItemIdx",function(e){o.updateMarkOnMenu(e.newValue)}))}return e.fromJS=function(n){var t=new e(n.spec.data,n.spec.url,n.options,!1);return t.menu.activeItemIdx=n.menu.activeItemIdx||0,t.menu.activate(t.menu.flatItems[t.menu.activeItemIdx]),t.options.disableSearch||t.search.load(n.searchIndex),t},e.prototype.onDidMount=function(){this.menu.updateOnHistory(),this.updateMarkOnMenu(this.menu.activeItemIdx)},e.prototype.dispose=function(){this.scroll.dispose(),this.menu.dispose(),null!=this.disposer&&this.disposer()},e.prototype.toJS=function(){return r.__awaiter(this,void 0,void 0,function(){var e,n;return r.__generator(this,function(t){switch(t.label){case 0:return e={menu:{activeItemIdx:this.menu.activeItemIdx},spec:{url:this.spec.parser.specUrl,data:this.spec.parser.spec}},this.search?[4,this.search.toJS()]:[3,2];case 1:return n=t.sent(),[3,3];case 2:n=void 0,t.label=3;case 3:return[2,(e.searchIndex=n,e.options=this.rawOptions,e)]}})})},e.prototype.updateMarkOnMenu=function(e){for(var n=Math.max(0,e),t=Math.min(this.menu.flatItems.length,n+5),r=[],o=n;o0&&" (",e.scopes.map(function(e){return i.createElement(Lo,{key:e},e)}),e.scopes.length>0&&") ")}))},n}(i.PureComponent),Fo=$.div(io||(io=r.__makeTemplateObject(["\n flex: 1;\n"],["\n flex: 1;\n"]))),zo=$.div(ao||(ao=r.__makeTemplateObject(["\n width: ",";\n"],["\n width: ",";\n"])),function(e){return e.theme.schema.defaultDetailsWidth}),Bo=$(ut)(so||(so=r.__makeTemplateObject(["\n display: inline-block;\n margin: 0;\n"],["\n display: inline-block;\n margin: 0;\n"]))),Uo=$.div(lo||(lo=r.__makeTemplateObject(["\n width: 100%;\n display: flex;\n margin: 1em 0;\n"],["\n width: 100%;\n display: flex;\n margin: 1em 0;\n"]))),$o=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.securities;return e.length?i.createElement(Uo,null,i.createElement(Fo,null,i.createElement(Bo,null,"Authorizations: ")),i.createElement(zo,null,e.map(function(e,n){return i.createElement(Do,{key:n,security:e})}))):null},n}(i.PureComponent),Vo=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.handleClick=function(){_o.selectElement(n.child)},n}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props.children;return i.createElement("div",{ref:function(n){return e.child=n},onClick:this.handleClick},n)},n}(i.PureComponent),Qo=$.div(co||(co=r.__makeTemplateObject(["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"],["\n cursor: pointer;\n position: relative;\n margin-bottom: 5px;\n"]))),Wo=$.span(uo||(uo=r.__makeTemplateObject(["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"],["\n font-family: ",";\n margin-left: 10px;\n flex: 1;\n overflow-x: hidden;\n text-overflow: ellipsis;\n"])),function(e){return e.theme.typography.code.fontFamily}),Yo=$.div(po||(po=r.__makeTemplateObject(["\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n"],["\n padding: 10px 30px 10px ",";\n border-radius: ",";\n background-color: ",";\n display: flex;\n white-space: nowrap;\n align-items: center;\n border: ",";\n border-bottom: ",";\n transition: border-color 0.25s ease;\n\n ","\n\n ."," {\n color: ","\n }\n"])),function(e){return e.inverted?"10px":"20px"},function(e){return e.inverted?"0":"4px 4px 0 0"},function(e){return e.inverted?"transparent":e.theme.codeSample.backgroundColor},function(e){return e.inverted?"0":"1px solid transparent"},function(e){return e.inverted?"1px solid #ccc":"0"},function(e){return e.expanded&&!e.inverted&&"border-color: "+e.theme.colors.border.dark+";"||""},Wo,function(e){return e.inverted?e.theme.colors.text.primary:"#ffffff"}),Ho=$.span.attrs(function(e){return{className:"http-verb "+e.type}})(fo||(fo=r.__makeTemplateObject(["\n font-size: 0.929em;\n line-height: 20px;\n background-color: ",";\n color: #ffffff;\n padding: 3px 10px;\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"],["\n font-size: 0.929em;\n line-height: 20px;\n background-color: ",";\n color: #ffffff;\n padding: 3px 10px;\n text-transform: uppercase;\n font-family: ",";\n margin: 0;\n"])),function(e){return e.theme.colors.http[e.type]||"#999999"},function(e){return e.theme.typography.headings.fontFamily}),Go=$.div(ho||(ho=r.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n\n ","\n"],["\n position: absolute;\n width: 100%;\n z-index: 100;\n background: #fafafa;\n color: #263238;\n box-sizing: border-box;\n box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.33);\n overflow: hidden;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n transition: all 0.25s ease;\n\n ","\n"])),function(e){return e.expanded?"":"transform: translateY(-50%) scaleY(0);"}),Ko=$.div(mo||(mo=r.__makeTemplateObject(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),Jo=$.div(go||(go=r.__makeTemplateObject(["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"],["\n padding: 5px;\n border: 1px solid #ccc;\n background: #fff;\n word-break: break-all;\n color: ",";\n > span {\n color: ",";\n }\n"])),function(e){return e.theme.colors.primary.main},function(e){return e.theme.colors.text.primary}),Xo=function(e){function n(n){var t=e.call(this,n)||this;return t.toggle=function(){t.setState({expanded:!t.state.expanded})},t.state={expanded:!1},t}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.operation,r=n.inverted,o=n.hideHostname,a=this.state.expanded;return i.createElement(ne.Consumer,null,function(n){return i.createElement(Qo,null,i.createElement(Yo,{onClick:e.toggle,expanded:a,inverted:r},i.createElement(Ho,{type:t.httpVerb}," ",t.httpVerb)," ",i.createElement(Wo,null,t.path),i.createElement(Jt,{float:"right",color:r?"black":"white",size:"20px",direction:a?"up":"down",style:{marginRight:"-25px"}})),i.createElement(Go,{expanded:a},t.servers.map(function(e){return i.createElement(Ko,{key:e.url},i.createElement(Ur,{source:e.description||"",compact:!0}),i.createElement(Vo,null,i.createElement(Jo,null,i.createElement("span",null,o||n.hideHostname?E(e.url):e.url),t.path)))})))})},n}(i.Component);function Zo(e){var n=e.Label,t=void 0===n?gr:n,o=e.Dropdown,a=void 0===o?mr:o;return 1===e.options.length?i.createElement(t,null,e.options[0].label):i.createElement(a,r.__assign({},e))}var ei,ni,ti,ri,oi,ii,ai,si,li,ci,ui,pi,di,fi,hi=$(rr)(ei||(ei=r.__makeTemplateObject(["\n cursor: pointer;\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n cursor: pointer;\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),Jt,function(e){return e.theme.schema.arrow.size},function(e){return e.theme.schema.arrow.size},function(e){return e.theme.schema.arrow.color}),mi=$.span(ni||(ni=r.__makeTemplateObject(["\n vertical-align: middle;\n font-size: ",";\n line-height: 20px;\n"],["\n vertical-align: middle;\n font-size: ",";\n line-height: 20px;\n"])),function(e){return e.theme.typography.code.fontSize}),gi=$(mi)(ti||(ti=r.__makeTemplateObject(["\n color: ",";\n"],["\n color: ",";\n"])),function(e){return Object(a.transparentize)(.2,e.theme.schema.typeNameColor)}),yi=$(mi)(ri||(ri=r.__makeTemplateObject(["\n color: ",";\n"],["\n color: ",";\n"])),function(e){return e.theme.schema.typeNameColor}),bi=$(mi)(oi||(oi=r.__makeTemplateObject(["\n color: ",";\n"],["\n color: ",";\n"])),function(e){return e.theme.schema.typeTitleColor}),vi=yi,_i=$(mi.withComponent("div"))(ii||(ii=r.__makeTemplateObject(["\n color: ",";\n font-size: ",";\n font-weight: normal;\n margin-left: 20px;\n line-height: 1;\n"],["\n color: ",";\n font-size: ",";\n font-weight: normal;\n margin-left: 20px;\n line-height: 1;\n"])),function(e){return e.theme.schema.requireLabelColor},function(e){return e.theme.schema.labelsTextSize}),xi=$(mi)(ai||(ai=r.__makeTemplateObject(["\n color: ",";\n font-size: 13px;\n"],["\n color: ",";\n font-size: 13px;\n"])),function(e){return e.theme.colors.warning.main}),wi=$(mi)(si||(si=r.__makeTemplateObject(["\n color: #3195a6;\n font-size: 13px;\n"],["\n color: #3195a6;\n font-size: 13px;\n"]))),ki=$(mi)(li||(li=r.__makeTemplateObject(["\n color: #3195a6;\n &::before,\n &::after {\n font-weight: bold;\n }\n\n &::before {\n content: ' /';\n }\n\n &::after {\n content: '/ ';\n }\n"],["\n color: #3195a6;\n &::before,\n &::after {\n font-weight: bold;\n }\n\n &::before {\n content: ' /';\n }\n\n &::after {\n content: '/ ';\n }\n"]))),Oi=$(mi)(ci||(ci=r.__makeTemplateObject(["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"],["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"])),function(e){var n=e.theme;return"\n background-color: "+Object(a.transparentize)(.95,n.colors.text.primary)+";\n color: "+Object(a.transparentize)(.1,n.colors.text.primary)+";\n\n margin: "+n.spacing.unit+"px;\n padding: 0 "+n.spacing.unit+"px;\n border: 1px solid "+Object(a.transparentize)(.9,n.colors.text.primary)+";\n font-family: "+n.typography.code.fontFamily+";\n color: "+n.typography.code.color+";\n}"},V("ExampleValue")),Ei=$(Oi)(ui||(ui=r.__makeTemplateObject([""],[""]))),Ti=$(mi)(pi||(pi=r.__makeTemplateObject(["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"],["\n border-radius: 2px;\n ",";\n & + & {\n margin-left: 0;\n }\n ",";\n"])),function(e){var n=e.theme;return"\n background-color: "+Object(a.transparentize)(.95,n.colors.primary.light)+";\n color: "+Object(a.transparentize)(.1,n.colors.primary.main)+";\n\n margin: 0 "+n.spacing.unit+"px;\n padding: 0 "+n.spacing.unit+"px;\n border: 1px solid "+Object(a.transparentize)(.9,n.colors.primary.main)+";\n}"},V("ConstraintItem")),Si=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.values,t=e.type;return n.length?i.createElement("div",null,i.createElement(mi,null,"array"===t?A("enumArray"):""," ",1===n.length?A("enumSingleValue"):A("enum"),":"),n.map(function(e,n){return i.createElement(i.Fragment,{key:n},i.createElement(Oi,null,JSON.stringify(e))," ")})):null},n}(i.PureComponent),ji=$(Nr)(di||(di=r.__makeTemplateObject(["\n margin: 2px 0;\n"],["\n margin: 2px 0;\n"]))),Ii=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.extensions;return i.createElement(ne.Consumer,null,function(n){return i.createElement(i.Fragment,null,n.showExtensions&&Object.keys(e).map(function(n){return i.createElement(ji,{key:n},i.createElement(mi,null," ",n.substring(2),": ")," ",i.createElement(Ei,null,"string"===typeof e[n]?e[n]:JSON.stringify(e[n])))}))})},n}(i.PureComponent),Ai=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return 0===this.props.constraints.length?null:i.createElement("span",null," ",this.props.constraints.map(function(e){return i.createElement(Ti,{key:e}," ",e," ")}))},n}(i.PureComponent),Ci=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return void 0===this.props.value?null:i.createElement("div",null,i.createElement(mi,null," ",this.props.label," ")," ",i.createElement(Oi,null,JSON.stringify(this.props.value)))},n}(i.PureComponent),Pi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.showExamples,t=e.field,o=e.renderDiscriminatorSwitch,a=t.schema,s=t.description,l=t.example,c=t.deprecated;return i.createElement("div",null,i.createElement("div",null,i.createElement(gi,null,a.typePrefix),i.createElement(yi,null,a.displayType),a.displayFormat&&i.createElement(vi,null," ","<",a.displayFormat,">"," "),a.title&&i.createElement(bi,null," (",a.title,") "),i.createElement(Ai,{constraints:a.constraints}),a.nullable&&i.createElement(wi,null," ",A("nullable")," "),a.pattern&&i.createElement(ki,null,a.pattern),a.isCircular&&i.createElement(xi,null," ",A("recursive")," ")),c&&i.createElement("div",null,i.createElement(Xt,{type:"warning"}," ",A("deprecated")," ")),i.createElement(Ci,{label:A("default")+":",value:a.default}),!o&&i.createElement(Si,{type:a.type,values:a.enum})," ",n&&i.createElement(Ci,{label:A("example")+":",value:l}),i.createElement(Ii,{extensions:r.__assign({},t.extensions,a.extensions)}),i.createElement("div",null,i.createElement(Ur,{compact:!0,source:s})),a.externalDocs&&i.createElement(ko,{externalDocs:a.externalDocs,compact:!0}),o&&o(this.props)||null)},n}(i.PureComponent),Ri=$.div(fi||(fi=r.__makeTemplateObject(["\n padding-left: ","px;\n"],["\n padding-left: ","px;\n"])),function(e){return 2*e.theme.spacing.unit}),qi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.schema.items;return i.createElement("div",null,i.createElement(pr,null," Array "),i.createElement(Ri,null,i.createElement(Fi,r.__assign({},this.props,{schema:e}))),i.createElement(dr,null))},n}(i.PureComponent),Li=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.changeActiveChild=function(e){var t=e.value,r=parseInt(t,10);n.props.parent.activateOneOf(r)},n}return r.__extends(n,e),n.prototype.sortOptions=function(e,n){if(0!==n.length){var t={};n.forEach(function(e,n){t[e]=n}),e.sort(function(e,n){return t[e.label]>t[n.label]?1:-1})}},n.prototype.render=function(){var e=this.props,n=e.parent,t=e.enumValues;if(void 0===n.oneOf)return null;var r=n.oneOf.map(function(e,n){return{value:n.toString(),label:e.title}}),o=r[n.activeOneOf];return this.sortOptions(r,t),i.createElement(hr,{value:o,options:r,onChange:this.changeActiveChild})},n=r.__decorate([xo.observer],n)}(i.Component),Mi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),Object.defineProperty(n.prototype,"parentSchema",{get:function(){return this.props.discriminator.parentSchema},enumerable:!0,configurable:!0}),n.prototype.render=function(){var e=this,n=this.props,t=n.schema.fields,r=void 0===t?[]:t,o=n.showTitle,a=n.discriminator,s=this.props.skipReadOnly||this.props.skipWriteOnly?r.filter(function(n){return e.props.skipReadOnly&&!n.schema.readOnly||e.props.skipWriteOnly&&!n.schema.writeOnly}):r;return i.createElement(sr,null,o&&i.createElement(er,null,this.props.schema.title),i.createElement("tbody",null,h(s,function(n,t){return i.createElement(zi,{key:n.name,isLast:t,field:n,renderDiscriminatorSwitch:a&&a.fieldName===n.name&&function(){return i.createElement(Li,{parent:e.parentSchema,enumValues:n.schema.enum})}||void 0,className:n.expanded?"expanded":void 0,showExamples:!1,skipReadOnly:e.props.skipReadOnly,skipWriteOnly:e.props.skipWriteOnly,showTitle:e.props.showTitle})})))},n=r.__decorate([xo.observer],n)}(i.Component),Ni=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.activateOneOf=function(){n.props.schema.activateOneOf(n.props.idx)},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.idx,t=e.schema,r=e.subSchema;return i.createElement(ur,{active:n===t.activeOneOf,onClick:this.activateOneOf},r.title||r.typePrefix+r.displayType)},n=r.__decorate([xo.observer],n)}(i.Component),Di=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.schema.oneOf,t=e.schema;return void 0===n?null:i.createElement("div",null,i.createElement(cr,null," ",t.oneOfType," "),i.createElement(lr,null,n.map(function(e,n){return i.createElement(Ni,{key:e.pointer,schema:t,subSchema:e,idx:n})})),i.createElement(Fi,r.__assign({},this.props,{schema:n[t.activeOneOf]})))},n=r.__decorate([xo.observer],n)}(i.Component),Fi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.schema;if(!e)return i.createElement("em",null," Schema not provided ");var n=e.type,t=e.oneOf,o=e.discriminatorProp;if(e.isCircular)return i.createElement("div",null,i.createElement(yi,null,e.displayType),e.title&&i.createElement(bi,null," ",e.title," "),i.createElement(xi,null," ",A("recursive")," "));if(void 0!==o){if(!t||!t.length)throw new Error("Looks like you are using discriminator wrong: you don't have any definition inherited from the "+e.title);return i.createElement(Mi,r.__assign({},r.__assign({},this.props,{schema:t[e.activeOneOf]}),{discriminator:{fieldName:o,parentSchema:e}}))}if(void 0!==t)return i.createElement(Di,r.__assign({schema:e},this.props));switch(n){case"object":return i.createElement(Mi,r.__assign({},this.props));case"array":return i.createElement(qi,r.__assign({},this.props))}var a={schema:e,name:"",required:!1,description:e.description,externalDocs:e.externalDocs,deprecated:!1,toggle:function(){return null},expanded:!1};return i.createElement("div",null,i.createElement(Pi,{field:a}))},n=r.__decorate([xo.observer],n)}(i.Component),zi=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggle=function(){n.props.field.toggle()},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.field,o=e.isLast,a=t.name,s=t.expanded,l=t.deprecated,c=t.required,u=t.kind,p=!t.schema.isPrimitive&&!t.schema.isCircular,d=p?i.createElement(hi,{onClick:this.toggle,className:l?"deprecated":"",kind:u,title:a},i.createElement(ir,null),a,i.createElement(Jt,{direction:s?"down":"right"}),c&&i.createElement(_i,null," required ")):i.createElement(rr,{className:l?"deprecated":void 0,kind:u,title:a},i.createElement(ir,null),a,c&&i.createElement(_i,null," required "));return i.createElement(i.Fragment,null,i.createElement("tr",{className:o?"last "+n:n},d,i.createElement(or,null,i.createElement(Pi,r.__assign({},this.props)))),t.expanded&&p&&i.createElement("tr",{key:t.name+"inner"},i.createElement(tr,{colSpan:2},i.createElement(ar,null,i.createElement(Fi,{schema:t.schema,skipReadOnly:this.props.skipReadOnly,skipWriteOnly:this.props.skipWriteOnly,showTitle:this.props.showTitle})))))},n=r.__decorate([xo.observer],n)}(i.Component),Bi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.place,t=e.parameters;return t&&t.length?i.createElement("div",{key:n},i.createElement(ut,null,n," Parameters"),i.createElement(sr,null,i.createElement("tbody",null,h(t,function(e,n){return i.createElement(zi,{key:e.name,isLast:n,field:e,showExamples:!0})})))):null},n}(i.PureComponent),Ui=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.switchMedia=function(e){var t=e.value;n.props.content&&n.props.content.activate(parseInt(t,10))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.content;if(!e||!e.mediaTypes||!e.mediaTypes.length)return null;var n=e.activeMimeIdx,t=e.mediaTypes.map(function(e,n){return{label:e.name,value:n.toString()}});return i.createElement(i.Fragment,null,this.props.renderDropdown({value:t[n],options:t,onChange:this.switchMedia}),this.props.children(e.active))},n=r.__decorate([xo.observer],n)}(i.Component);var $i=["path","query","cookie","header"],Vi=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.orderParams=function(e){var n={};return e.forEach(function(e){var t,r,o;t=n,r=e.in,o=e,t[r]||(t[r]=[]),t[r].push(o)}),n},n.prototype.render=function(){var e=this.props,n=e.body,t=e.parameters,r=void 0===t?[]:t;if(void 0===n&&void 0===r)return null;var o=this.orderParams(r),a=r.length>0?$i:[],s=n&&n.content,l=n&&n.description;return i.createElement(i.Fragment,null,a.map(function(e){return i.createElement(Bi,{key:e,place:e,parameters:o[e]})}),s&&i.createElement(Wi,{content:s,description:l}))},n}(i.PureComponent);function Qi(e){return i.createElement(ut,{key:"header"},"Request Body schema: ",i.createElement(Zo,r.__assign({},e)))}function Wi(e){var n=e.content,t=e.description;return i.createElement(Ui,{content:n,renderDropdown:Qi},function(e){var n=e.schema;return i.createElement(i.Fragment,null,void 0!==t&&i.createElement(Ur,{source:t}),i.createElement(Fi,{skipReadOnly:!0,key:"schema",schema:n}))})}var Yi,Hi,Gi,Ki,Ji,Xi=$.div(Yi||(Yi=r.__makeTemplateObject(["\n position: relative;\n"],["\n position: relative;\n"]))),Zi=$.div(Hi||(Hi=r.__makeTemplateObject(["\n position: absolute;\n min-width: 80px;\n max-width: 500px;\n background: #fff;\n bottom: 100%;\n left: 50%;\n margin-bottom: 10px;\n transform: translateX(-50%);\n\n border-radius: 4px;\n padding: 0.3em 0.6em;\n text-align: center;\n box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);\n"],["\n position: absolute;\n min-width: 80px;\n max-width: 500px;\n background: #fff;\n bottom: 100%;\n left: 50%;\n margin-bottom: 10px;\n transform: translateX(-50%);\n\n border-radius: 4px;\n padding: 0.3em 0.6em;\n text-align: center;\n box-shadow: 0px 0px 5px 0px rgba(204, 204, 204, 1);\n"]))),ea=$.div(Gi||(Gi=r.__makeTemplateObject(["\n background: #fff;\n color: #000;\n display: inline;\n font-size: 0.85em;\n white-space: nowrap;\n"],["\n background: #fff;\n color: #000;\n display: inline;\n font-size: 0.85em;\n white-space: nowrap;\n"]))),na=$.div(Ki||(Ki=r.__makeTemplateObject(["\n position: absolute;\n width: 0;\n height: 0;\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n border-left: solid transparent 5px;\n border-right: solid transparent 5px;\n border-top: solid #fff 5px;\n"],["\n position: absolute;\n width: 0;\n height: 0;\n bottom: -5px;\n left: 50%;\n margin-left: -5px;\n border-left: solid transparent 5px;\n border-right: solid transparent 5px;\n border-top: solid #fff 5px;\n"]))),ta=$.div(Ji||(Ji=r.__makeTemplateObject(["\n position: absolute;\n width: 100%;\n height: 20px;\n bottom: -20px;\n"],["\n position: absolute;\n width: 100%;\n height: 20px;\n bottom: -20px;\n"]))),ra=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.open,t=e.title,r=e.children;return i.createElement(Xi,null,r,n&&i.createElement(Zi,null,i.createElement(ea,null,t),i.createElement(na,null),i.createElement(ta,null)))},n}(i.Component),oa=function(e){function n(n){var t=e.call(this,n)||this;return t.copy=function(){var e="string"===typeof t.props.data?t.props.data:JSON.stringify(t.props.data,null,2);_o.copyCustom(e),t.showTooltip()},t.renderCopyButton=function(){return i.createElement("span",{onClick:t.copy},i.createElement(ra,{title:_o.isSupported()?"Copied":"Not supported in your browser",open:t.state.tooltipShown},"Copy"))},t.state={tooltipShown:!1},t}return r.__extends(n,e),n.prototype.render=function(){return this.props.children({renderCopyButton:this.renderCopyButton})},n.prototype.showTooltip=function(){var e=this;this.setState({tooltipShown:!0}),setTimeout(function(){e.setState({tooltipShown:!1})},1500)},n}(i.PureComponent),ia=1,aa=2;function sa(e){ia=1;var n="";return n+='
',n+=da(e),n+="
"}function la(e){return void 0!==e?e.toString().replace(/&/g,"&").replace(/"/g,""").replace(//g,">"):""}function ca(e){return e.replace(/([\\"])/g,"\\$1")}function ua(e,n){return''+la(e)+""}function pa(e){return''+e+""}function da(e){var n=typeof e,t="";return void 0===e||null===e?t+=ua("null","token keyword"):e&&e.constructor===Array?(ia++,t+=function(e){for(var n=ia>aa?"collapsed":"",t='
'+pa("[")+'
    ',r=!1,o=e.length,i=0;i
    ',t+=da(e[i]),i";t+="
"+pa("]"),r||(t=pa("[ ]"));return t}(e),ia--):e&&e.constructor===Date?t+=ua('"'+e.toISOString()+'"',"token string"):"object"===n?(ia++,t+=function(e){for(var n=ia>aa?"collapsed":"",t=Object.keys(e),r=t.length,o='
'+pa("{")+'
    ',i=!1,a=0;a
    ',o+='"'+la(s)+'": ',o+=da(e[s]),a"}o+="
"+pa("}"),i||(o=pa("{ }"));return o}(e),ia--):"number"===n?t+=ua(e,"token number"):"string"===n?/^(http|https):\/\/[^\s]+$/.test(e)?t+=ua('"',"token string")+''+la(ca(e))+""+ua('"',"token string"):t+=ua('"'+ca(e)+'"',"token string"):"boolean"===n&&(t+=ua(e,"token boolean")),t}var fa,ha,ma,ga=D(fa||(fa=r.__makeTemplateObject(["\n .redoc-json > .collapser {\n display: none;\n }\n\n font-family: ",";\n font-size: ",";\n\n white-space: ",";\n contain: content;\n overflow-x: auto;\n\n .callback-function {\n color: gray;\n }\n\n .collapser:after {\n content: '-';\n cursor: pointer;\n }\n\n .collapsed > .collapser:after {\n content: '+';\n cursor: pointer;\n }\n\n .ellipsis:after {\n content: ' \u2026 ';\n }\n\n .collapsible {\n margin-left: 2em;\n }\n\n .hoverable {\n padding-top: 1px;\n padding-bottom: 1px;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 2px;\n }\n\n .hovered {\n background-color: rgba(235, 238, 249, 1);\n }\n\n .collapser {\n padding-right: 6px;\n padding-left: 6px;\n }\n\n ul {\n list-style-type: none;\n padding: 0px;\n margin: 0px 0px 0px 26px;\n }\n\n li {\n position: relative;\n display: block;\n }\n\n .hoverable {\n display: inline-block;\n }\n\n .selected {\n outline-style: solid;\n outline-width: 1px;\n outline-style: dotted;\n }\n\n .collapsed > .collapsible {\n display: none;\n }\n\n .ellipsis {\n display: none;\n }\n\n .collapsed > .ellipsis {\n display: inherit;\n }\n\n .collapser {\n position: absolute;\n top: 1px;\n left: -1.5em;\n cursor: default;\n user-select: none;\n -webkit-user-select: none;\n }\n"],["\n .redoc-json > .collapser {\n display: none;\n }\n\n font-family: ",";\n font-size: ",";\n\n white-space: ",";\n contain: content;\n overflow-x: auto;\n\n .callback-function {\n color: gray;\n }\n\n .collapser:after {\n content: '-';\n cursor: pointer;\n }\n\n .collapsed > .collapser:after {\n content: '+';\n cursor: pointer;\n }\n\n .ellipsis:after {\n content: ' \u2026 ';\n }\n\n .collapsible {\n margin-left: 2em;\n }\n\n .hoverable {\n padding-top: 1px;\n padding-bottom: 1px;\n padding-left: 2px;\n padding-right: 2px;\n border-radius: 2px;\n }\n\n .hovered {\n background-color: rgba(235, 238, 249, 1);\n }\n\n .collapser {\n padding-right: 6px;\n padding-left: 6px;\n }\n\n ul {\n list-style-type: none;\n padding: 0px;\n margin: 0px 0px 0px 26px;\n }\n\n li {\n position: relative;\n display: block;\n }\n\n .hoverable {\n display: inline-block;\n }\n\n .selected {\n outline-style: solid;\n outline-width: 1px;\n outline-style: dotted;\n }\n\n .collapsed > .collapsible {\n display: none;\n }\n\n .ellipsis {\n display: none;\n }\n\n .collapsed > .ellipsis {\n display: inherit;\n }\n\n .collapser {\n position: absolute;\n top: 1px;\n left: -1.5em;\n cursor: default;\n user-select: none;\n -webkit-user-select: none;\n }\n"])),function(e){return e.theme.typography.code.fontFamily},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.wrap?"pre-wrap":"pre"}),ya=$.div(ha||(ha=r.__makeTemplateObject(["\n &:hover > "," {\n opacity: 1;\n }\n"],["\n &:hover > "," {\n opacity: 1;\n }\n"])),xr),ba=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderInner=function(e){var t=e.renderCopyButton;return i.createElement(ya,null,i.createElement(xr,null,t(),i.createElement("span",{onClick:n.expandAll}," Expand all "),i.createElement("span",{onClick:n.collapseAll}," Collapse all ")),i.createElement(_r,{className:n.props.className,ref:function(e){return n.node=e},dangerouslySetInnerHTML:{__html:sa(n.props.data)}}))},n.expandAll=function(){for(var e=n.node.getElementsByClassName("collapsible"),t=0,r=Array.prototype.slice.call(e);t1)return i.createElement(vr,{defaultIndex:0},i.createElement(yr.TabList,null,r.map(function(n){return i.createElement(yr.Tab,{key:n}," ",e[n].summary||n," ")})),r.map(function(t){return i.createElement(yr.TabPanel,{key:t},i.createElement(ka,{example:e[t],mimeType:n}))}));var o=r[0];return i.createElement("div",null,i.createElement(ka,{example:e[o],mimeType:n}))},n}(i.Component),Da=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderDropdown=function(e){return i.createElement(Zo,r.__assign({Label:qa,Dropdown:La},e))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.content;return void 0===e?null:i.createElement(Ui,{content:e,renderDropdown:this.renderDropdown},function(e){return i.createElement(Na,{key:"samples",mediaType:e})})},n=r.__decorate([xo.observer],n)}(i.Component),Fa=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.operation,n=e.requestBody&&e.requestBody.content,t=n&&n.hasSample,r=e.codeSamples,o=t||r.length>0,a=r.length+(t?1:0)===1&&this.context.hideSingleRequestSampleTab;return o&&i.createElement("div",null,i.createElement(ct,null," Request samples "),i.createElement(br,{defaultIndex:0},i.createElement(yr.TabList,{hidden:a},t&&i.createElement(yr.Tab,{key:"payload"}," Payload "),r.map(function(e){return i.createElement(yr.Tab,{key:e.lang+"_"+(e.label||"")},void 0!==e.label?e.label:e.lang)})),t&&i.createElement(yr.TabPanel,{key:"payload"},i.createElement("div",null,i.createElement(Da,{content:n}))),r.map(function(e){return i.createElement(yr.TabPanel,{key:e.lang},i.createElement(xa,{lang:e.lang,source:e.source}))})))||null},n.contextType=ne,n=r.__decorate([xo.observer],n)}(i.Component),za=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.title,t=e.type,r=e.empty,o=e.code,a=e.opened,s=e.className,l=e.onClick;return i.createElement("div",{className:s,onClick:!r&&l||void 0},!r&&i.createElement(Jt,{size:"1.5em",color:t,direction:a?"up":"down",float:"left"}),i.createElement("strong",null,o," "),i.createElement(Ur,{compact:!0,inline:!0,source:n}))},n}(i.PureComponent),Ba=$(za)(ja||(ja=r.__makeTemplateObject(["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n\n ",";\n"],["\n padding: 10px;\n border-radius: 2px;\n margin-bottom: 4px;\n line-height: 1.5em;\n background-color: #f2f2f2;\n cursor: pointer;\n\n color: ",";\n background-color: ",";\n\n ",";\n"])),function(e){return e.theme.colors.responses[e.type].color},function(e){return e.theme.colors.responses[e.type].backgroundColor},function(e){return e.empty?'\ncursor: default;\n&::before {\n content: "\u2014";\n font-weight: bold;\n width: 1.5em;\n text-align: center;\n display: inline-block;\n}\n':""}),Ua=$.div(Ia||(Ia=r.__makeTemplateObject(["\n padding: 10px;\n"],["\n padding: 10px;\n"]))),$a=$(ut.withComponent("caption"))(Aa||(Aa=r.__makeTemplateObject(["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"],["\n text-align: left;\n margin-top: 1em;\n caption-side: top;\n"]))),Va=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.headers;return void 0===e||0===e.length?null:i.createElement(sr,null,i.createElement($a,null," Response Headers "),i.createElement("tbody",null,h(e,function(e,n){return i.createElement(zi,{isLast:n,key:e.name,field:e,showExamples:!0})})))},n}(i.PureComponent),Qa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.renderDropdown=function(e){return i.createElement(ut,{key:"header"},"Response Schema: ",i.createElement(Zo,r.__assign({},e)))},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.response,n=e.description,t=e.headers,r=e.content;return i.createElement(i.Fragment,null,n&&i.createElement(Ur,{source:n}),i.createElement(Va,{headers:t}),i.createElement(Ui,{content:r,renderDropdown:this.renderDropdown},function(e){var n=e.schema;return i.createElement(Fi,{skipWriteOnly:!0,key:"schema",schema:n})}))},n}(i.PureComponent),Wa=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggle=function(){n.props.response.toggle()},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.response,n=e.headers,t=e.type,r=e.summary,o=e.description,a=e.code,s=e.expanded,l=e.content,c=void 0===l?[]:l.mediaTypes.filter(function(e){return void 0!==e.schema}),u=0===n.length&&0===c.length&&!o;return i.createElement("div",null,i.createElement(Ba,{onClick:this.toggle,type:t,empty:u,title:r||"",code:a,opened:s}),s&&!u&&i.createElement(Ua,null,i.createElement(Qa,{response:this.props.response})))},n=r.__decorate([xo.observer],n)}(i.Component),Ya=$.h3(Ca||(Ca=r.__makeTemplateObject(["\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: #253137;\n font-weight: normal;\n"],["\n font-size: 18px;\n padding: 0.2em 0;\n margin: 3em 0 1.1em;\n color: #253137;\n font-weight: normal;\n"]))),Ha=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.responses;return e&&0!==e.length?i.createElement("div",null,i.createElement(Ya,null," Responses "),e.map(function(e){return i.createElement(Wa,{key:e.code,response:e})})):null},n}(i.PureComponent),Ga=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.operation.responses.filter(function(e){return e.content&&e.content.hasSample});return e.length>0&&i.createElement("div",null,i.createElement(ct,null," Response samples "),i.createElement(br,{defaultIndex:0},i.createElement(yr.TabList,null,e.map(function(e){return i.createElement(yr.Tab,{className:"tab-"+e.type,key:e.code},e.code)})),e.map(function(e){return i.createElement(yr.TabPanel,{key:e.code},i.createElement("div",null,i.createElement(Da,{content:e.content})))})))||null},n=r.__decorate([xo.observer],n)}(i.Component),Ka=$(ot)(Pa||(Pa=r.__makeTemplateObject(["\n backface-visibility: hidden;\n contain: content;\n\n overflow: hidden;\n"],["\n backface-visibility: hidden;\n contain: content;\n\n overflow: hidden;\n"]))),Ja=$.div(Ra||(Ra=r.__makeTemplateObject(["\n margin-bottom: ","px;\n"],["\n margin-bottom: ","px;\n"])),function(e){return 6*e.theme.spacing.unit}),Xa=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.operation,n=e.name,t=e.description,r=e.deprecated,o=e.externalDocs,a=!(!t&&!o);return i.createElement(ne.Consumer,null,function(s){return i.createElement(Ka,null,i.createElement(et,null,i.createElement(lt,null,i.createElement(xt,{to:e.id}),n," ",r&&i.createElement(Xt,{type:"warning"}," Deprecated ")),s.pathInMiddlePanel&&i.createElement(Xo,{operation:e,inverted:!0}),a&&i.createElement(Ja,null,void 0!==t&&i.createElement(Ur,{source:t}),o&&i.createElement(ko,{externalDocs:o})),i.createElement(Ii,{extensions:e.extensions}),i.createElement($o,{securities:e.security}),i.createElement(Vi,{parameters:e.parameters,body:e.requestBody}),i.createElement(Ha,{responses:e.responses})),i.createElement(rt,null,!s.pathInMiddlePanel&&i.createElement(Xo,{operation:e}),i.createElement(Fa,{operation:e}),i.createElement(Ga,{operation:e})))})},n=r.__decorate([xo.observer],n)}(i.Component),Za=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.items;return 0===e.length?null:e.map(function(e){return i.createElement(es,{item:e,key:e.id})})},n=r.__decorate([xo.observer],n)}(i.Component),es=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e,n=this.props.item;switch(n.type){case"group":e=null;break;case"tag":case"section":e=i.createElement(ts,r.__assign({},this.props));break;case"operation":e=i.createElement(rs,{item:n});break;default:e=i.createElement(ts,r.__assign({},this.props))}return i.createElement(i.Fragment,null,e&&i.createElement(nt,{id:n.id,underlined:"operation"===n.type},e),n.items&&i.createElement(Za,{items:n.items}))},n=r.__decorate([xo.observer],n)}(i.Component),ns=function(e){return i.createElement(et,null,e)},ts=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.item,n=e.name,t=e.description,r=e.externalDocs,o=2===e.level?lt:st;return i.createElement(i.Fragment,null,i.createElement(ot,null,i.createElement(et,null,i.createElement(o,null,i.createElement(xt,{to:this.props.item.id}),n))),i.createElement(qo,{source:t||"",htmlWrap:ns}),r&&i.createElement(ot,null,i.createElement(et,null,i.createElement(ko,{externalDocs:r}))))},n=r.__decorate([xo.observer],n)}(i.Component),rs=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){return i.createElement(Xa,{operation:this.props.item})},n=r.__decorate([xo.observer],n)}(i.Component),os=t(41),is=$.span.attrs(function(e){return{className:"operation-type "+e.type}})(ss||(ss=r.__makeTemplateObject(["\n width: 32px;\n display: inline-block;\n height: ",";\n line-height: ",";\n background-color: #333;\n border-radius: 3px;\n background-repeat: no-repeat;\n background-position: 6px 4px;\n font-size: 7px;\n font-family: Verdana; // web-safe\n color: white;\n text-transform: uppercase;\n text-align: center;\n font-weight: bold;\n vertical-align: middle;\n margin-right: 6px;\n margin-top: 2px;\n\n &.get {\n background-color: ",";\n }\n\n &.post {\n background-color: ",";\n }\n\n &.put {\n background-color: ",";\n }\n\n &.options {\n background-color: ",";\n }\n\n &.patch {\n background-color: ",";\n }\n\n &.delete {\n background-color: ",";\n }\n\n &.basic {\n background-color: ",";\n }\n\n &.link {\n background-color: ",";\n }\n\n &.head {\n background-color: ",";\n }\n"],["\n width: 32px;\n display: inline-block;\n height: ",";\n line-height: ",";\n background-color: #333;\n border-radius: 3px;\n background-repeat: no-repeat;\n background-position: 6px 4px;\n font-size: 7px;\n font-family: Verdana; // web-safe\n color: white;\n text-transform: uppercase;\n text-align: center;\n font-weight: bold;\n vertical-align: middle;\n margin-right: 6px;\n margin-top: 2px;\n\n &.get {\n background-color: ",";\n }\n\n &.post {\n background-color: ",";\n }\n\n &.put {\n background-color: ",";\n }\n\n &.options {\n background-color: ",";\n }\n\n &.patch {\n background-color: ",";\n }\n\n &.delete {\n background-color: ",";\n }\n\n &.basic {\n background-color: ",";\n }\n\n &.link {\n background-color: ",";\n }\n\n &.head {\n background-color: ",";\n }\n"])),function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.typography.code.fontSize},function(e){return e.theme.colors.http.get},function(e){return e.theme.colors.http.post},function(e){return e.theme.colors.http.put},function(e){return e.theme.colors.http.options},function(e){return e.theme.colors.http.patch},function(e){return e.theme.colors.http.delete},function(e){return e.theme.colors.http.basic},function(e){return e.theme.colors.http.link},function(e){return e.theme.colors.http.head});function as(e,n){var t=n.theme;return e>1?Object(a.darken)(.1,t.menu.backgroundColor):1===e?Object(a.darken)(.05,t.menu.backgroundColor):""}var ss,ls,cs,us,ps,ds,fs,hs,ms,gs,ys,bs=$.ul(ls||(ls=r.__makeTemplateObject(["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"],["\n margin: 0;\n padding: 0;\n\n & & {\n font-size: 0.929em;\n }\n\n ",";\n"])),function(e){return e.expanded?"":"display: none;"}),vs=$.li(cs||(cs=r.__makeTemplateObject(["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"],["\n list-style: none inside none;\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 0;\n ",";\n"])),function(e){return 0===e.depth?"margin-top: 15px":""}),_s={0:D(us||(us=r.__makeTemplateObject(["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "],["\n opacity: 0.7;\n text-transform: ",";\n font-size: 0.8em;\n padding-bottom: 0;\n cursor: default;\n color: ",";\n "])),function(e){return e.theme.menu.groupItems.textTransform},function(e){return e.theme.menu.textColor}),1:D(ps||(ps=r.__makeTemplateObject(["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "],["\n font-size: 0.929em;\n text-transform: ",";\n &:hover {\n color: ",";\n }\n "])),function(e){return e.theme.menu.level1Items.textTransform},function(e){return e.theme.colors.primary.main}),2:D(ds||(ds=r.__makeTemplateObject(["\n color: ",";\n "],["\n color: ",";\n "])),function(e){return e.theme.menu.textColor})},xs=$.label.attrs(function(e){return{role:"menuitem",className:os("-depth"+e.depth,{active:e.active})}})(fs||(fs=r.__makeTemplateObject(["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"],["\n cursor: pointer;\n color: ",";\n margin: 0;\n padding: 12.5px ","px;\n ","\n display: flex;\n justify-content: space-between;\n font-family: ",";\n ",";\n background-color: ",";\n\n ",";\n\n &:hover {\n background-color: ",";\n }\n\n "," {\n height: ",";\n width: ",";\n polygon {\n fill: ",";\n }\n }\n"])),function(e){return e.active?e.theme.colors.primary.main:e.theme.menu.textColor},function(e){return 4*e.theme.spacing.unit},function(e){var n=e.depth,t=e.type,r=e.theme;return"section"===t&&n>1&&"padding-left: "+8*r.spacing.unit+"px;"||""},function(e){return e.theme.typography.headings.fontFamily},function(e){return _s[e.depth]},function(e){return e.active?as(e.depth,e):""},function(e){return e.deprecated&&Zt||""},function(e){return as(e.depth,e)},Jt,function(e){return e.theme.menu.arrow.size},function(e){return e.theme.menu.arrow.size},function(e){return e.theme.menu.arrow.color}),ws=$.span(hs||(hs=r.__makeTemplateObject(["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n display: inline-block;\n vertical-align: middle;\n width: ",";\n overflow: hidden;\n text-overflow: ellipsis;\n"])),function(e){return e.width?e.width:"auto"}),ks=$.div(ms||(ms=r.__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),function(e){var n=e.theme;return"\n font-size: 0.8em;\n margin-top: "+2*n.spacing.unit+"px;\n padding: 0 "+4*n.spacing.unit+"px;\n text-align: left;\n\n opacity: 0.7;\n\n a,\n a:visited,\n a:hover {\n color: "+n.menu.textColor+" !important;\n border-top: 1px solid "+Object(a.darken)(.1,n.menu.backgroundColor)+";\n padding: "+n.spacing.unit+"px 0;\n display: block;\n }\n"}),Os=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.activate=function(e){var t=n.props.item.active;n.props.onActivate(t?void 0:n.props.item),e.stopPropagation()},n.saveRef=function(e){n.ref=e},n}return r.__extends(n,e),n.prototype.componentDidMount=function(){this.scrollIntoViewIfActive()},n.prototype.componentDidUpdate=function(){this.scrollIntoViewIfActive()},n.prototype.scrollIntoViewIfActive=function(){this.props.item.active&&this.ref&&this.ref.scrollIntoViewIfNeeded()},n.prototype.render=function(){var e=this.props,n=e.item,t=e.withoutChildren;return i.createElement(vs,{onClick:this.activate,depth:n.depth,ref:this.saveRef,"data-item-id":n.id},"operation"===n.type?i.createElement(Es,r.__assign({},this.props,{item:n})):i.createElement(xs,{depth:n.depth,active:n.active,type:n.type},i.createElement(ws,{title:n.name},n.name,this.props.children),n.depth>0&&n.items.length>0&&i.createElement(Jt,{float:"right",direction:n.expanded?"down":"right"})||null),!t&&n.items&&n.items.length>0&&i.createElement(Ts,{expanded:n.expanded,items:n.items,onActivate:this.props.onActivate}))},n=r.__decorate([xo.observer],n)}(i.Component),Es=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.item;return i.createElement(xs,{depth:e.depth,active:e.active,deprecated:e.deprecated},i.createElement(is,{type:e.httpVerb},Fe(e.httpVerb)),i.createElement(ws,{width:"calc(100% - 38px)"},e.name,this.props.children))},n=r.__decorate([xo.observer],n)}(i.Component),Ts=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this,n=this.props,t=n.items,o=n.root,a=n.className,s=null==this.props.expanded||this.props.expanded;return i.createElement(bs,r.__assign({className:a,style:this.props.style,expanded:s},o?{role:"navigation"}:{}),t.map(function(n,t){return i.createElement(Os,{key:t,item:n,onActivate:e.props.onActivate})}))},n=r.__decorate([xo.observer],n)}(i.Component),Ss=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.activate=function(e){n.props.menu.activateAndScroll(e,!0),setTimeout(function(){n._updateScroll&&n._updateScroll()})},n.saveScrollUpdate=function(e){n._updateScroll=e},n}return r.__extends(n,e),n.prototype.render=function(){var e=this.props.menu;return i.createElement(Pr,{updateFn:this.saveScrollUpdate,className:this.props.className,options:{wheelPropagation:!1}},i.createElement(Ts,{items:e.items,onActivate:this.activate,root:!0}),i.createElement(ks,null,i.createElement("a",{target:"_blank",href:"https://github.com/Rebilly/ReDoc"},"Documentation Powered by ReDoc")))},n=r.__decorate([xo.observer],n)}(i.Component),js=function(e){var n=e.open?8:-4;return i.createElement(As,null,i.createElement(Is,{size:15,style:{transform:"translate(2px, "+n+"px) rotate(180deg)",transition:"transform 0.2s ease"}}),i.createElement(Is,{size:15,style:{transform:"translate(2px, "+(0-n)+"px)",transition:"transform 0.2s ease"}}))},Is=function(e){var n=e.size,t=void 0===n?10:n,r=e.className,o=void 0===r?"":r,a=e.style;return i.createElement("svg",{className:o,style:a||{},viewBox:"0 0 926.23699 573.74994",version:"1.1",x:"0px",y:"0px",width:t,height:t},i.createElement("g",{transform:"translate(904.92214,-879.1482)"},i.createElement("path",{d:"\n m -673.67664,1221.6502 -231.2455,-231.24803 55.6165,\n -55.627 c 30.5891,-30.59485 56.1806,-55.627 56.8701,-55.627 0.6894,\n 0 79.8637,78.60862 175.9427,174.68583 l 174.6892,174.6858 174.6892,\n -174.6858 c 96.079,-96.07721 175.253196,-174.68583 175.942696,\n -174.68583 0.6895,0 26.281,25.03215 56.8701,\n 55.627 l 55.6165,55.627 -231.245496,231.24803 c -127.185,127.1864\n -231.5279,231.248 -231.873,231.248 -0.3451,0 -104.688,\n -104.0616 -231.873,-231.248 z\n ",fill:"currentColor"})))},As=$.div(gs||(gs=r.__makeTemplateObject(["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"],["\n user-select: none;\n width: 20px;\n height: 20px;\n align-self: center;\n display: flex;\n flex-direction: column;\n color: ",";\n"])),function(e){return e.theme.colors.primary.main});l&&(ys=t(79));var Cs,Ps,Rs,qs,Ls,Ms,Ns,Ds,Fs,zs,Bs,Us,$s,Vs,Qs=ys&&ys(),Ws=$.div(Ps||(Ps=r.__makeTemplateObject(["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n contain: strict;\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"],["\n width: ",";\n background-color: ",";\n overflow: hidden;\n display: flex;\n flex-direction: column;\n\n backface-visibility: hidden;\n contain: strict;\n\n height: 100vh;\n position: sticky;\n position: -webkit-sticky;\n top: 0;\n\n ",";\n\n @media print {\n display: none;\n }\n"])),function(e){return e.theme.menu.width},function(e){return e.theme.menu.backgroundColor},U.lessThan("small")(Cs||(Cs=r.__makeTemplateObject(["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: #ffffff;\n display: ",";\n "],["\n position: fixed;\n z-index: 20;\n width: 100%;\n background: #ffffff;\n display: ",";\n "])),function(e){return e.open?"flex":"none"})),Ys=$.div(qs||(qs=r.__makeTemplateObject(["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"],["\n outline: none;\n user-select: none;\n background-color: #f2f2f2;\n color: ",";\n display: none;\n cursor: pointer;\n position: fixed;\n right: 20px;\n z-index: 100;\n border-radius: 50%;\n box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);\n ",";\n\n bottom: 44px;\n\n width: 60px;\n height: 60px;\n padding: 0 20px;\n\n @media print {\n display: none;\n }\n"])),function(e){return e.theme.colors.primary.main},U.lessThan("small")(Rs||(Rs=r.__makeTemplateObject(["\n display: flex;\n "],["\n display: flex;\n "])))),Hs=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.toggleNavMenu=function(){n.props.menu.toggleSidebar()},n}return r.__extends(n,e),n.prototype.componentDidMount=function(){Qs&&Qs.add(this.stickyElement)},n.prototype.componentWillUnmount=function(){Qs&&Qs.remove(this.stickyElement)},n.prototype.getScrollYOffset=function(e){return(void 0!==this.props.scrollYOffset?L.normalizeScrollYOffset(this.props.scrollYOffset)():e.scrollYOffset())+"px"},n.prototype.render=function(){var e=this,n=this.props.menu.sideBarOpened,t=function(n){var t=e.getScrollYOffset(n);return{top:t,height:"calc(100vh - "+t+")"}};return i.createElement(ne.Consumer,null,function(r){return i.createElement(i.Fragment,null,i.createElement(Ws,{open:n,className:e.props.className,style:t(r),ref:function(n){e.stickyElement=n}},e.props.children),i.createElement(Ys,{onClick:e.toggleNavMenu},i.createElement(js,{open:n})))})},n=r.__decorate([xo.observer],n)}(i.Component),Gs=$.div(Ls||(Ls=r.__makeTemplateObject(["\n ",";\n"],["\n ",";\n"])),function(e){var n=e.theme;return"\n font-family: "+n.typography.fontFamily+";\n font-size: "+n.typography.fontSize+";\n font-weight: "+n.typography.fontWeightRegular+";\n line-height: "+n.typography.lineHeight+";\n color: "+n.colors.text.primary+";\n display: flex;\n position: relative;\n text-align: left;\n\n -webkit-font-smoothing: "+n.typography.smoothing+";\n font-smoothing: "+n.typography.smoothing+";\n "+(n.typography.optimizeSpeed?"text-rendering: optimizeSpeed !important":"")+";\n\n tap-highlight-color: rgba(0, 0, 0, 0);\n text-size-adjust: 100%;\n\n * {\n box-sizing: border-box;\n -webkit-tap-highlight-color: rgba(255, 255, 255, 0);\n }\n"}),Ks=$.div(Ns||(Ns=r.__makeTemplateObject(["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"],["\n z-index: 1;\n position: relative;\n overflow: hidden;\n width: calc(100% - ",");\n ",";\n\n contain: layout;\n"])),function(e){return e.theme.menu.width},U.lessThan("small",!0)(Ms||(Ms=r.__makeTemplateObject(["\n width: 100%;\n "],["\n width: 100%;\n "])))),Js=$.div(Fs||(Fs=r.__makeTemplateObject(["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"],["\n background: ",";\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n width: ",";\n ",";\n"])),function(e){return e.theme.rightPanel.backgroundColor},function(e){var n=e.theme;if(n.rightPanel.width.endsWith("%")){var t=parseInt(n.rightPanel.width,10);return"calc((100% - "+n.menu.width+") * "+t/100+")"}return n.rightPanel.width},U.lessThan("medium",!0)(Ds||(Ds=r.__makeTemplateObject(["\n display: none;\n "],["\n display: none;\n "])))),Xs=$.div(zs||(zs=r.__makeTemplateObject(["\n padding: 5px 0;\n"],["\n padding: 5px 0;\n"]))),Zs=$.input.attrs(function(){return{className:"search-input"}})(Bs||(Bs=r.__makeTemplateObject(["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"],["\n width: calc(100% - ","px);\n box-sizing: border-box;\n margin: 0 ","px;\n padding: 5px ","px 5px\n ","px;\n border: 0;\n border-bottom: 1px solid ",";\n font-family: ",";\n font-weight: bold;\n font-size: 13px;\n color: ",";\n background-color: transparent;\n outline: none;\n"])),function(e){return 8*e.theme.spacing.unit},function(e){return 4*e.theme.spacing.unit},function(e){return 2*e.theme.spacing.unit},function(e){return 4*e.theme.spacing.unit},function(e){var n=e.theme;return Object(a.darken)(.1,n.menu.backgroundColor)},function(e){return e.theme.typography.fontFamily},function(e){return e.theme.menu.textColor}),el=$(function(e){return i.createElement("svg",{className:e.className,version:"1.1",viewBox:"0 0 1000 1000",x:"0px",xmlns:"http://www.w3.org/2000/svg",y:"0px"},i.createElement("path",{d:"M968.2,849.4L667.3,549c83.9-136.5,66.7-317.4-51.7-435.6C477.1-25,252.5-25,113.9,113.4c-138.5,138.3-138.5,362.6,0,501C219.2,730.1,413.2,743,547.6,666.5l301.9,301.4c43.6,43.6,76.9,14.9,104.2-12.4C981,928.3,1011.8,893,968.2,849.4z M524.5,522c-88.9,88.7-233,88.7-321.8,0c-88.9-88.7-88.9-232.6,0-321.3c88.9-88.7,233-88.7,321.8,0C613.4,289.4,613.4,433.3,524.5,522z"}))}).attrs({className:"search-icon"})(Us||(Us=r.__makeTemplateObject(["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"],["\n position: absolute;\n left: ","px;\n height: 1.8em;\n width: 0.9em;\n\n path {\n fill: ",";\n }\n"])),function(e){return 4*e.theme.spacing.unit},function(e){return e.theme.menu.textColor}),nl=$.div($s||($s=r.__makeTemplateObject(["\n padding: ","px 0;\n background-color: #ededed;\n min-height: 150px;\n max-height: 250px;\n border-top: 1px solid #e1e1e1;\n border-bottom: 1px solid #e1e1e1;\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover {\n background-color: #e1e1e1;\n }\n\n > svg {\n display: none;\n }\n\n &.active {\n background-color: #e1e1e1;\n }\n }\n"],["\n padding: ","px 0;\n background-color: #ededed;\n min-height: 150px;\n max-height: 250px;\n border-top: 1px solid #e1e1e1;\n border-bottom: 1px solid #e1e1e1;\n margin-top: 10px;\n line-height: 1.4;\n font-size: 0.9em;\n\n "," {\n padding-top: 6px;\n padding-bottom: 6px;\n\n &:hover {\n background-color: #e1e1e1;\n }\n\n > svg {\n display: none;\n }\n\n &.active {\n background-color: #e1e1e1;\n }\n }\n"])),function(e){return e.theme.spacing.unit},xs),tl=$.i(Vs||(Vs=r.__makeTemplateObject(["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"],["\n position: absolute;\n display: inline-block;\n width: ","px;\n text-align: center;\n right: ","px;\n line-height: 2em;\n vertical-align: middle;\n margin-right: 2px;\n cursor: pointer;\n font-style: normal;\n color: '#666';\n"])),function(e){return 2*e.theme.spacing.unit},function(e){return 4*e.theme.spacing.unit}),rl=function(e){function n(n){var t=e.call(this,n)||this;return t.activeItemRef=null,t.clear=function(){t.setState({results:[],term:"",activeItemIdx:-1}),t.props.marker.unmark()},t.handleKeyDown=function(e){if(27===e.keyCode&&t.clear(),40===e.keyCode&&(t.setState({activeItemIdx:Math.min(t.state.activeItemIdx+1,t.state.results.length-1)}),e.preventDefault()),38===e.keyCode&&(t.setState({activeItemIdx:Math.max(0,t.state.activeItemIdx-1)}),e.preventDefault()),13===e.keyCode){var n=t.state.results[t.state.activeItemIdx];if(n){var r=t.props.getItemById(n.meta);r&&t.props.onActivate(r)}}},t.search=function(e){var n=e.target.value;n.length<3?t.clearResults(n):(t.setState({term:n}),t.props.search.search(e.target.value).then(function(e){t.setResults(e,n)}))},t.state={results:[],term:"",activeItemIdx:-1},t}return r.__extends(n,e),n.prototype.clearResults=function(e){this.setState({results:[],term:e}),this.props.marker.unmark()},n.prototype.setResults=function(e,n){this.setState({results:e,term:n}),this.props.marker.mark(n)},n.prototype.render=function(){var e=this,n=this.state.activeItemIdx,t=this.state.results.map(function(n){return{item:e.props.getItemById(n.meta),score:n.score}});return t.sort(function(e,n){return n.score-e.score}),i.createElement(Xs,{role:"search"},this.state.term&&i.createElement(tl,{onClick:this.clear},"\xd7"),i.createElement(el,null),i.createElement(Zs,{value:this.state.term,onKeyDown:this.handleKeyDown,placeholder:"Search...",type:"text",onChange:this.search}),t.length>0&&i.createElement(Pr,{options:{wheelPropagation:!1}},i.createElement(nl,{"data-role":"search:results"},t.map(function(t,r){return i.createElement(Os,{item:Object.create(t.item,{active:{value:r===n}}),onActivate:e.props.onActivate,withoutChildren:!0,key:t.item.id,"data-role":"search:result"})}))))},n}(i.PureComponent),ol=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.componentDidMount=function(){this.props.store.onDidMount()},n.prototype.componentWillUnmount=function(){this.props.store.dispose()},n.prototype.render=function(){var e=this.props.store,n=e.spec,t=e.menu,r=e.options,o=e.search,a=e.marker,s=this.props.store;return i.createElement(B,{theme:r.theme},i.createElement(ht,{value:this.props.store},i.createElement(te,{value:r},i.createElement(Gs,{className:"redoc-wrap"},i.createElement(Hs,{menu:t,className:"menu-content"},i.createElement(Ro,{info:n.info}),!r.disableSearch&&i.createElement(rl,{search:o,marker:a,getItemById:t.getItemById,onActivate:t.activateAndScroll})||null,i.createElement(Ss,{menu:t})),i.createElement(Ks,{className:"api-content"},i.createElement(Io,{store:s}),i.createElement(Za,{items:t.items})),i.createElement(Js,null)))))},n.propTypes={store:o.instanceOf(yo).isRequired},n}(i.Component),il=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(n,e),n.prototype.render=function(){var e=this.props,n=e.spec,t=e.specUrl,r=e.options,o=void 0===r?{}:r,a=e.onLoaded,s=void 0!==o.hideLoading,l=new L(o);return i.createElement(K,null,i.createElement(gt,{spec:n,specUrl:t,options:o,onLoaded:a},function(e){var n=e.loading,t=e.store;return n?s?null:i.createElement(ee,{color:l.theme.colors.primary.main}):i.createElement(ol,{store:t})}))},n.propTypes={spec:function(e,n,t){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+t+"'.")},specUrl:function(e,n,t){return e.spec||e.specUrl?null:new Error("One of props 'spec' or 'specUrl' was not specified in '"+t+"'.")},options:o.any,onLoaded:o.any},n}(i.PureComponent);t.d(n,"ApiContentWrap",function(){return Ks}),t.d(n,"BackgroundStub",function(){return Js}),t.d(n,"RedocWrap",function(){return Gs}),t.d(n,"StyledMarkdownBlock",function(){return Nr}),t.d(n,"RedocStandalone",function(){return il}),t.d(n,"Redoc",function(){return ol}),t.d(n,"ApiInfo",function(){return Io}),t.d(n,"ApiLogo",function(){return Ro}),t.d(n,"ContentItems",function(){return Za}),t.d(n,"ContentItem",function(){return es}),t.d(n,"SectionItem",function(){return ts}),t.d(n,"OperationItem",function(){return rs}),t.d(n,"SearchBox",function(){return rl}),t.d(n,"Operation",function(){return Xa}),t.d(n,"Loading",function(){return ee}),t.d(n,"Markdown",function(){return Ur}),t.d(n,"OAuthFlow",function(){return Vr}),t.d(n,"SecurityDefs",function(){return Qr}),t.d(n,"ResponseView",function(){return Wa}),t.d(n,"ResponseDetails",function(){return Qa}),t.d(n,"ResponseHeaders",function(){return Va}),t.d(n,"ResponsesList",function(){return Ha}),t.d(n,"ResponseTitle",function(){return za}),t.d(n,"ResponseSamples",function(){return Ga}),t.d(n,"PayloadSamples",function(){return Da}),t.d(n,"MediaTypesSwitch",function(){return Ui}),t.d(n,"ErrorBoundary",function(){return K}),t.d(n,"StoreProvider",function(){return ht}),t.d(n,"StoreConsumer",function(){return mt}),t.d(n,"StoreBuilder",function(){return gt}),t.d(n,"OptionsContext",function(){return ne}),t.d(n,"OptionsProvider",function(){return te}),t.d(n,"OptionsConsumer",function(){return re}),t.d(n,"StickyResponsiveSidebar",function(){return Hs}),t.d(n,"Schema",function(){return Fi}),t.d(n,"ObjectSchema",function(){return Mi}),t.d(n,"OneOfButton",function(){return Ni}),t.d(n,"OneOfSchema",function(){return Di}),t.d(n,"ArraySchema",function(){return qi}),t.d(n,"DiscriminatorDropdown",function(){return Li}),t.d(n,"JsonViewer",function(){return va}),t.d(n,"MenuItem",function(){return Os}),t.d(n,"MenuItems",function(){return Ts}),t.d(n,"SideMenu",function(){return Ss}),t.d(n,"OperationBadge",function(){return is}),t.d(n,"MenuItemUl",function(){return bs}),t.d(n,"MenuItemLi",function(){return vs}),t.d(n,"menuItemDepth",function(){return _s}),t.d(n,"MenuItemLabel",function(){return xs}),t.d(n,"MenuItemTitle",function(){return ws}),t.d(n,"RedocAttribution",function(){return ks}),t.d(n,"MiddlePanel",function(){return et}),t.d(n,"Row",function(){return ot}),t.d(n,"RightPanel",function(){return tt}),t.d(n,"Section",function(){return nt}),t.d(n,"createStore",function(){return Wr}),t.d(n,"AppStore",function(){return yo}),t.d(n,"OpenAPIParser",function(){return gn}),t.d(n,"LEGACY_REGEXP",function(){return an}),t.d(n,"MDX_COMPONENT_REGEXP",function(){return sn}),t.d(n,"COMPONENT_REGEXP",function(){return ln}),t.d(n,"buildComponentComment",function(){return cn}),t.d(n,"MarkdownRenderer",function(){return un}),t.d(n,"SECTION_ATTR",function(){return Rn}),t.d(n,"MenuStore",function(){return qn}),t.d(n,"ScrollService",function(){return Ln}),t.d(n,"SpecStore",function(){return yn}),t.d(n,"ClipboardService",function(){return _o}),t.d(n,"HistoryService",function(){return Ze}),t.d(n,"history",function(){return en}),t.d(n,"ApiInfoModel",function(){return dn}),t.d(n,"SecuritySchemeModel",function(){return fn}),t.d(n,"SecuritySchemesModel",function(){return hn}),t.d(n,"RedocNormalizedOptions",function(){return L}),t.d(n,"GROUP_DEPTH",function(){return 0}),t.d(n,"MenuBuilder",function(){return Pn}),t.d(n,"SearchStore",function(){return Zn}),t.d(n,"MarkerService",function(){return tn}),t.d(n,"GroupModel",function(){return bn}),t.d(n,"OperationModel",function(){return Cn}),t.d(n,"RequestBodyModel",function(){return In}),t.d(n,"ExampleModel",function(){return Tn}),t.d(n,"MediaContentModel",function(){return jn}),t.d(n,"MediaTypeModel",function(){return Sn}),t.d(n,"ResponseModel",function(){return An}),t.d(n,"SchemaModel",function(){return _n}),t.d(n,"FieldModel",function(){return kn}),t.d(n,"JsonPointer",function(){return fe}),t.d(n,"isStatusCode",function(){return ge}),t.d(n,"getStatusCodeType",function(){return ye}),t.d(n,"isOperationName",function(){return ve}),t.d(n,"getOperationSummary",function(){return _e}),t.d(n,"detectType",function(){return we}),t.d(n,"isPrimitiveType",function(){return ke}),t.d(n,"isJsonLike",function(){return Oe}),t.d(n,"isFormUrlEncoded",function(){return Ee}),t.d(n,"urlFormEncodePayload",function(){return Se}),t.d(n,"langFromMime",function(){return je}),t.d(n,"isNamedDefinition",function(){return Ie}),t.d(n,"humanizeConstraints",function(){return Ce}),t.d(n,"sortByRequired",function(){return Pe}),t.d(n,"sortByField",function(){return Re}),t.d(n,"mergeParams",function(){return qe}),t.d(n,"mergeSimilarMediaTypes",function(){return Le}),t.d(n,"normalizeServers",function(){return Me}),t.d(n,"SECURITY_DEFINITIONS_COMPONENT_NAME",function(){return"security-definitions"}),t.d(n,"SECURITY_SCHEMES_SECTION_PREFIX",function(){return Ne}),t.d(n,"setSecuritySchemePrefix",function(){return De}),t.d(n,"shortenHTTPVerb",function(){return Fe}),t.d(n,"isRedocExtension",function(){return ze}),t.d(n,"extractExtensions",function(){return Be}),t.d(n,"pluralizeType",function(){return Ue}),t.d(n,"mapWithLast",function(){return h}),t.d(n,"mapValues",function(){return m}),t.d(n,"flattenByProp",function(){return g}),t.d(n,"stripTrailingSlash",function(){return y}),t.d(n,"isNumeric",function(){return b}),t.d(n,"appendToMdHeading",function(){return v}),t.d(n,"mergeObjects",function(){return _}),t.d(n,"safeSlugify",function(){return w}),t.d(n,"isAbsoluteUrl",function(){return k}),t.d(n,"resolveUrl",function(){return O}),t.d(n,"getBasePath",function(){return E}),t.d(n,"titleize",function(){return T}),t.d(n,"removeQueryString",function(){return S}),t.d(n,"mapLang",function(){return Qe}),t.d(n,"highlight",function(){return We}),t.d(n,"loadAndBundleSpec",function(){return se}),t.d(n,"convertSwagger2OpenAPI",function(){return le}),t.d(n,"IS_BROWSER",function(){return l}),t.d(n,"querySelector",function(){return c}),t.d(n,"html2Str",function(){return u}),t.d(n,"Throttle",function(){return Ye}),t.d(n,"debugTime",function(){return He}),t.d(n,"debugTimeEnd",function(){return Ge}),t.d(n,"memoize",function(){return Je}),t.d(n,"media",function(){return U}),t.d(n,"css",function(){return D}),t.d(n,"createGlobalStyle",function(){return F}),t.d(n,"keyframes",function(){return z}),t.d(n,"ThemeProvider",function(){return B}),t.d(n,"extensionsHook",function(){return V}),t.d(n,"styled",function(){return $})}])},e.exports=r()}},[[155,1,2]]]); //# sourceMappingURL=main.ffea48a5.chunk.js.map \ No newline at end of file