@redocly/reference-docs 2.1.18 → 2.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@
3
3
  * Redocly Reference Docs CLI
4
4
  * (c) Copyright 2018 Redocly LLC, all rights reserved.
5
5
  * -------------------------------------------------------------
6
- * Version: "2.1.18"
6
+ * Version: "2.1.19"
7
7
  */!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.e=function(){return Promise.resolve()},n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n.oe=function(e){process.nextTick((function(){throw e}))},n(n.s=1127)}([function(e,t,n){"use strict";e.exports=n(609)},function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return u})),n.d(t,"f",(function(){return p}));
8
8
  /*! *****************************************************************************
9
9
  Copyright (c) Microsoft Corporation.
@@ -21,7 +21,7 @@ PERFORMANCE OF THIS SOFTWARE.
21
21
  ***************************************************************************** */
22
22
  var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function c(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function l(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}Object.create;function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||t)}function p(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}Object.create},function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"g",(function(){return l})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return p}));var r=n(49),i=n(94);n.d(t,"h",(function(){return i.b})),n.d(t,"i",(function(){return i.c})),n.d(t,"b",(function(){return i.a}));var o=r,a=o.default,s=o.css,c=o.createGlobalStyle,l=o.keyframes,u=o.ThemeProvider;function p(e){return function(t){if(t.theme.extensionsHook)return t.theme.extensionsHook(e,t)}}t.e=a},function(e,t,n){"use strict";var r=n(241);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"g",(function(){return r.g})),n.d(t,"h",(function(){return r.h})),n.d(t,"i",(function(){return r.i})),n.d(t,"j",(function(){return r.j})),n.d(t,"k",(function(){return r.k})),n.d(t,"l",(function(){return r.l})),n.d(t,"m",(function(){return r.m})),n.d(t,"n",(function(){return r.n})),n.d(t,"o",(function(){return r.o})),n.d(t,"p",(function(){return r.p})),n.d(t,"q",(function(){return r.q})),n.d(t,"r",(function(){return r.r})),n.d(t,"s",(function(){return r.s})),n.d(t,"t",(function(){return r.t})),n.d(t,"u",(function(){return r.u})),n.d(t,"v",(function(){return r.v})),n.d(t,"w",(function(){return r.w})),n.d(t,"x",(function(){return r.x})),n.d(t,"y",(function(){return r.y})),n.d(t,"z",(function(){return r.z})),n.d(t,"A",(function(){return r.A})),n.d(t,"B",(function(){return r.B})),n.d(t,"C",(function(){return r.C})),n.d(t,"D",(function(){return r.D})),n.d(t,"E",(function(){return r.E})),n.d(t,"F",(function(){return r.F})),n.d(t,"G",(function(){return r.G})),n.d(t,"H",(function(){return r.H})),n.d(t,"I",(function(){return r.I})),n.d(t,"J",(function(){return r.J})),n.d(t,"K",(function(){return r.K})),n.d(t,"L",(function(){return r.L})),n.d(t,"M",(function(){return r.M})),n.d(t,"N",(function(){return r.N})),n.d(t,"O",(function(){return r.O})),n.d(t,"P",(function(){return r.P})),n.d(t,"Q",(function(){return r.Q})),n.d(t,"R",(function(){return r.R})),n.d(t,"S",(function(){return r.S})),n.d(t,"T",(function(){return r.T})),n.d(t,"U",(function(){return r.U})),n.d(t,"V",(function(){return r.V})),n.d(t,"W",(function(){return r.W})),n.d(t,"X",(function(){return r.X})),n.d(t,"Y",(function(){return r.Y})),n.d(t,"Z",(function(){return r.Z})),n.d(t,"ab",(function(){return r.ab})),n.d(t,"bb",(function(){return r.bb})),n.d(t,"cb",(function(){return r.cb})),n.d(t,"db",(function(){return r.db})),n.d(t,"eb",(function(){return r.eb})),n.d(t,"fb",(function(){return r.fb})),n.d(t,"gb",(function(){return r.gb})),n.d(t,"hb",(function(){return r.ib})),n.d(t,"ib",(function(){return r.jb})),n.d(t,"jb",(function(){return r.kb})),n.d(t,"kb",(function(){return r.lb})),n.d(t,"lb",(function(){return r.mb})),n.d(t,"mb",(function(){return r.nb})),n.d(t,"nb",(function(){return r.ob}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return $})),n.d(t,"b",(function(){return dt})),n.d(t,"c",(function(){return Le})),n.d(t,"d",(function(){return et})),n.d(t,"e",(function(){return Ze})),n.d(t,"f",(function(){return kt})),n.d(t,"g",(function(){return Ce})),n.d(t,"h",(function(){return It})),n.d(t,"i",(function(){return H})),n.d(t,"j",(function(){return Lt})),n.d(t,"k",(function(){return gn})),n.d(t,"l",(function(){return kn})),n.d(t,"m",(function(){return Tn})),n.d(t,"n",(function(){return rn})),n.d(t,"o",(function(){return je})),n.d(t,"p",(function(){return Wt})),n.d(t,"q",(function(){return At})),n.d(t,"r",(function(){return Et})),n.d(t,"s",(function(){return Ge}));function r(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("number"==typeof e?"[MobX] minified error nr: "+e+(n.length?" "+n.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+e)}var i={};function o(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:i}var a=Object.assign,s=Object.getOwnPropertyDescriptor,c=Object.defineProperty,l=Object.prototype,u=[];Object.freeze(u);var p={};Object.freeze(p);var f="undefined"!=typeof Proxy,d=Object.toString();function h(){f||r("Proxy not available")}function m(e){var t=!1;return function(){if(!t)return t=!0,e.apply(this,arguments)}}var v=function(){};function g(e){return"function"==typeof e}function b(e){switch(typeof e){case"string":case"symbol":case"number":return!0}return!1}function y(e){return null!==e&&"object"==typeof e}function x(e){var t;if(!y(e))return!1;var n=Object.getPrototypeOf(e);return null==n||(null==(t=n.constructor)?void 0:t.toString())===d}function w(e){var t=null==e?void 0:e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName)}function O(e,t,n){c(e,t,{enumerable:!1,writable:!0,configurable:!0,value:n})}function k(e,t,n){c(e,t,{enumerable:!1,writable:!1,configurable:!0,value:n})}function j(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return y(e)&&!0===e[n]}}function E(e){return e instanceof Map}function S(e){return e instanceof Set}var C=void 0!==Object.getOwnPropertySymbols;var _="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:C?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function P(e){return null===e?null:"object"==typeof e?""+e:e}function A(e,t){return l.hasOwnProperty.call(e,t)}var D=Object.getOwnPropertyDescriptors||function(e){var t={};return _(e).forEach((function(n){t[n]=s(e,n)})),t};function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function I(e,t,n){return t&&T(e.prototype,t),n&&T(e,n),e}function R(){return(R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function L(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function M(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?F(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var B=Symbol("mobx-stored-annotations");function z(e){return Object.assign((function(t,n){U(t,n,e)}),e)}function U(e,t,n){A(e,B)||O(e,B,R({},e[B])),function(e){return"override"===e.annotationType_}(n)||(e[B][t]=n)}var $=Symbol("mobx administration"),V=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ze.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return pt(this)},t.reportChanged=function(){lt(),ft(this),ut()},t.toString=function(){return this.name_},e}(),q=j("Atom",V);function H(e,t,n){void 0===t&&(t=v),void 0===n&&(n=v);var r,i=new V(e);return t!==v&&Tt("onBO",i,t,r),n!==v&&Dt(i,n),i}var W={identity:function(e,t){return e===t},structural:function(e,t){return Qn(e,t)},default:function(e,t){return Object.is(e,t)},shallow:function(e,t){return Qn(e,t,1)}};function Q(e,t,n){return Ht(e)?e:Array.isArray(e)?je.array(e,{name:n}):x(e)?je.object(e,void 0,{name:n}):E(e)?je.map(e,{name:n}):S(e)?je.set(e,{name:n}):"function"!=typeof e||St(e)||Vt(e)?e:w(e)?Ut(e):jt(n,e)}function Y(e){return e}function K(e,t){return{annotationType_:e,options_:t,make_:G,extend_:J}}function G(e,t,n,r){var i;if(null==(i=this.options_)?void 0:i.bound)return null===this.extend_(e,t,n,!1)?0:1;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(St(n.value))return 1;var o=X(e,this,t,n,!1);return c(r,t,o),2}function J(e,t,n,r){var i=X(e,this,t,n);return e.defineProperty_(t,i,r)}function X(e,t,n,r,i){var o,a,s,c,l,u;void 0===i&&(i=ot.safeDescriptors),u=r,t.annotationType_,u.value;var p,f=r.value;(null==(o=t.options_)?void 0:o.bound)&&(f=f.bind(null!=(p=e.proxy_)?p:e.target_));return{value:Ie(null!=(a=null==(s=t.options_)?void 0:s.name)?a:n.toString(),f,null!=(c=null==(l=t.options_)?void 0:l.autoAction)&&c),configurable:!i||e.isPlainObject_,enumerable:!1,writable:!i}}function Z(e,t){return{annotationType_:e,options_:t,make_:ee,extend_:te}}function ee(e,t,n,r){var i;if(r===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if((null==(i=this.options_)?void 0:i.bound)&&!Vt(e.target_[t])&&null===this.extend_(e,t,n,!1))return 0;if(Vt(n.value))return 1;var o=ne(e,this,t,n,!1,!1);return c(r,t,o),2}function te(e,t,n,r){var i,o=ne(e,this,t,n,null==(i=this.options_)?void 0:i.bound);return e.defineProperty_(t,o,r)}function ne(e,t,n,r,i,o){var a;void 0===o&&(o=ot.safeDescriptors),a=r,t.annotationType_,a.value;var s,c=r.value;i&&(c=c.bind(null!=(s=e.proxy_)?s:e.target_));return{value:Ut(c),configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function re(e,t){return{annotationType_:e,options_:t,make_:ie,extend_:oe}}function ie(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function oe(e,t,n,r){return function(e,t,n,r){t.annotationType_,r.get;0}(0,this,0,n),e.defineComputedProperty_(t,R({},this.options_,{get:n.get,set:n.set}),r)}function ae(e,t){return{annotationType_:e,options_:t,make_:se,extend_:ce}}function se(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ce(e,t,n,r){var i,o;return function(e,t,n,r){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(i=null==(o=this.options_)?void 0:o.enhancer)?i:Q,r)}var le=ue();function ue(e){return{annotationType_:"true",options_:e,make_:pe,extend_:fe}}function pe(e,t,n,r){var i,o,a,s;if(n.get)return Ce.make_(e,t,n,r);if(n.set){var l=Ie(t.toString(),n.set);return r===e.target_?null===e.defineProperty_(t,{configurable:!ot.safeDescriptors||e.isPlainObject_,set:l})?0:2:(c(r,t,{configurable:!0,set:l}),2)}if(r!==e.target_&&"function"==typeof n.value)return w(n.value)?((null==(s=this.options_)?void 0:s.autoBind)?Ut.bound:Ut).make_(e,t,n,r):((null==(a=this.options_)?void 0:a.autoBind)?jt.bound:jt).make_(e,t,n,r);var u,p=!1===(null==(i=this.options_)?void 0:i.deep)?je.ref:je;"function"==typeof n.value&&(null==(o=this.options_)?void 0:o.autoBind)&&(n.value=n.value.bind(null!=(u=e.proxy_)?u:e.target_));return p.make_(e,t,n,r)}function fe(e,t,n,r){var i,o,a;if(n.get)return Ce.extend_(e,t,n,r);if(n.set)return e.defineProperty_(t,{configurable:!ot.safeDescriptors||e.isPlainObject_,set:Ie(t.toString(),n.set)},r);"function"==typeof n.value&&(null==(i=this.options_)?void 0:i.autoBind)&&(n.value=n.value.bind(null!=(a=e.proxy_)?a:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?je.ref:je).extend_(e,t,n,r)}var de={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function he(e){return e||de}Object.freeze(de);var me=ae("observable"),ve=ae("observable.ref",{enhancer:Y}),ge=ae("observable.shallow",{enhancer:function(e,t,n){return null==e||Tn(e)||gn(e)||kn(e)||Sn(e)?e:Array.isArray(e)?je.array(e,{name:n,deep:!1}):x(e)?je.object(e,void 0,{name:n,deep:!1}):E(e)?je.map(e,{name:n,deep:!1}):S(e)?je.set(e,{name:n,deep:!1}):void 0}}),be=ae("observable.struct",{enhancer:function(e,t){return Qn(e,t)?t:e}}),ye=z(me);function xe(e){return!0===e.deep?Q:!1===e.deep?Y:(t=e.defaultDecorator)&&null!=(n=null==(r=t.options_)?void 0:r.enhancer)?n:Q;var t,n,r}function we(e,t,n){if(!b(t))return Ht(e)?e:x(e)?je.object(e,t,n):Array.isArray(e)?je.array(e,t):E(e)?je.map(e,t):S(e)?je.set(e,t):"object"==typeof e&&null!==e?e:je.box(e,t);U(e,t,me)}Object.assign(we,ye);var Oe,ke,je=a(we,{box:function(e,t){var n=he(t);return new Be(e,xe(n),n.name,!0,n.equals)},array:function(e,t){var n=he(t);return(!1===ot.useProxies||!1===n.proxy?$n:cn)(e,xe(n),n.name)},map:function(e,t){var n=he(t);return new On(e,xe(n),n.name)},set:function(e,t){var n=he(t);return new En(e,xe(n),n.name)},object:function(e,t,n){return Rt(!1===ot.useProxies||!1===(null==n?void 0:n.proxy)?Pn({},n):function(e,t){var n,r;return h(),e=Pn(e,t),null!=(r=(n=e[$]).proxy_)?r:n.proxy_=new Proxy(e,Gt)}({},n),e,t)},ref:z(ve),shallow:z(ge),deep:ye,struct:z(be)}),Ee=re("computed"),Se=re("computed.struct",{equals:W.structural}),Ce=function(e,t){if(b(t))return U(e,t,Ee);if(x(e))return z(re("computed",e));var n=x(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new $e(n)};Object.assign(Ce,Ee),Ce.struct=z(Se);var _e,Pe=0,Ae=1,De=null!=(Oe=null==(ke=s((function(){}),"name"))?void 0:ke.configurable)&&Oe,Te={value:"action",configurable:!0,writable:!1,enumerable:!1};function Ie(e,t,n,r){function i(){return Re(e,n,t,r||this,arguments)}return void 0===n&&(n=!1),i.isMobxAction=!0,De&&(Te.value=e,Object.defineProperty(i,"name",Te)),i}function Re(e,t,n,i,o){var a=function(e,t,n,r){0;var i=ot.trackingDerivation,o=!t||!i;lt();var a=ot.allowStateChanges;o&&(Je(),a=Ne(!0));var s=Ze(!0),c={runAsAction_:o,prevDerivation_:i,prevAllowStateChanges_:a,prevAllowStateReads_:s,notifySpy_:!1,startTime_:0,actionId_:Ae++,parentActionId_:Pe};return Pe=c.actionId_,c}(0,t);try{return n.apply(i,o)}catch(e){throw a.error_=e,e}finally{!function(e){Pe!==e.actionId_&&r(30);Pe=e.parentActionId_,void 0!==e.error_&&(ot.suppressReactionErrors=!0);Fe(e.prevAllowStateChanges_),et(e.prevAllowStateReads_),ut(),e.runAsAction_&&Xe(e.prevDerivation_);0;ot.suppressReactionErrors=!1}(a)}}function Le(e,t){var n=Ne(e);try{return t()}finally{Fe(n)}}function Ne(e){var t=ot.allowStateChanges;return ot.allowStateChanges=e,t}function Fe(e){ot.allowStateChanges=e}_e=Symbol.toPrimitive;var Me,Be=function(e){function t(t,n,r,i,o){var a;return void 0===r&&(r="ObservableValue"),void 0===i&&(i=!0),void 0===o&&(o=W.default),(a=e.call(this,r)||this).enhancer=void 0,a.name_=void 0,a.equals=void 0,a.hasUnreportedChange_=!1,a.interceptors_=void 0,a.changeListeners_=void 0,a.value_=void 0,a.dehancer=void 0,a.enhancer=n,a.name_=r,a.equals=o,a.value_=n(t,void 0,r),a}L(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==ot.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(Qe(this),Jt(this)){var t=Zt(this,{object:this,type:on,newValue:e});if(!t)return ot.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?ot.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),en(this)&&nn(this,{type:on,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return Xt(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:on,newValue:this.value_,oldValue:void 0}),tn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return P(this.get())},n[_e]=function(){return this.valueOf()},t}(V);Me=Symbol.toPrimitive;var ze,Ue,$e=function(){function e(e){this.dependenciesState_=ze.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=ze.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new qe(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ue.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||r(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Ie("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?W.structural:W.default),this.scope_=e.context,this.requiresReaction_=!!e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==ze.UP_TO_DATE_)return;e.lowestObserverState_=ze.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ze.UP_TO_DATE_&&(e.dependenciesState_=ze.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&r(32,this.name_,this.derivation),0!==ot.inBatch||0!==this.observers_.size||this.keepAlive_){if(pt(this),We(this)){var e=ot.trackingContext;this.keepAlive_&&!e&&(ot.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===ze.STALE_)return;e.lowestObserverState_=ze.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===ze.POSSIBLY_STALE_?t.dependenciesState_=ze.STALE_:t.dependenciesState_===ze.UP_TO_DATE_&&(e.lowestObserverState_=ze.UP_TO_DATE_)}))}(this),ot.trackingContext=e}}else We(this)&&(this.warnAboutUntrackedRead_(),lt(),this.value_=this.computeValue_(!1),ut());var t=this.value_;if(He(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&r(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else r(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===ze.NOT_TRACKING_,n=this.computeValue_(!0);var r=t||He(e)||He(n)||!this.equals_(e,n);return r&&(this.value_=n),r},t.computeValue_=function(e){this.isComputing_=!0;var t,n=Ne(!1);if(e)t=Ye(this,this.derivation,this.scope_);else if(!0===ot.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(e){t=new qe(e)}return Fe(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Ke(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,r=!0,i=void 0;return Ct((function(){var o=n.get();if(!r||t){var a=Je();e({observableKind:"computed",debugObjectName:n.name_,type:on,object:n,newValue:o,oldValue:i}),Xe(a)}r=!1,i=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return P(this.get())},t[Me]=function(){return this.valueOf()},e}(),Ve=j("ComputedValue",$e);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(ze||(ze={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ue||(Ue={}));var qe=function(e){this.cause=void 0,this.cause=e};function He(e){return e instanceof qe}function We(e){switch(e.dependenciesState_){case ze.UP_TO_DATE_:return!1;case ze.NOT_TRACKING_:case ze.STALE_:return!0;case ze.POSSIBLY_STALE_:for(var t=Ze(!0),n=Je(),r=e.observing_,i=r.length,o=0;o<i;o++){var a=r[o];if(Ve(a)){if(ot.disableErrorBoundaries)a.get();else try{a.get()}catch(e){return Xe(n),et(t),!0}if(e.dependenciesState_===ze.STALE_)return Xe(n),et(t),!0}}return tt(e),Xe(n),et(t),!1}}function Qe(e){}function Ye(e,t,n){var r=Ze(!0);tt(e),e.newObserving_=new Array(e.observing_.length+100),e.unboundDepsCount_=0,e.runId_=++ot.runId;var i,o=ot.trackingDerivation;if(ot.trackingDerivation=e,ot.inBatch++,!0===ot.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new qe(e)}return ot.inBatch--,ot.trackingDerivation=o,function(e){for(var t=e.observing_,n=e.observing_=e.newObserving_,r=ze.UP_TO_DATE_,i=0,o=e.unboundDepsCount_,a=0;a<o;a++){var s=n[a];0===s.diffValue_&&(s.diffValue_=1,i!==a&&(n[i]=s),i++),s.dependenciesState_>r&&(r=s.dependenciesState_)}n.length=i,e.newObserving_=null,o=t.length;for(;o--;){var c=t[o];0===c.diffValue_&&st(c,e),c.diffValue_=0}for(;i--;){var l=n[i];1===l.diffValue_&&(l.diffValue_=0,at(l,e))}r!==ze.UP_TO_DATE_&&(e.dependenciesState_=r,e.onBecomeStale_())}(e),et(r),i}function Ke(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)st(t[n],e);e.dependenciesState_=ze.NOT_TRACKING_}function Ge(e){var t=Je();try{return e()}finally{Xe(t)}}function Je(){var e=ot.trackingDerivation;return ot.trackingDerivation=null,e}function Xe(e){ot.trackingDerivation=e}function Ze(e){var t=ot.allowStateReads;return ot.allowStateReads=e,t}function et(e){ot.allowStateReads=e}function tt(e){if(e.dependenciesState_!==ze.UP_TO_DATE_){e.dependenciesState_=ze.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=ze.UP_TO_DATE_}}var nt=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},rt=!0,it=!1,ot=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(rt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new nt).version&&(rt=!1),rt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new nt):(setTimeout((function(){it||r(35)}),1),new nt)}();function at(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function st(e,t){e.observers_.delete(t),0===e.observers_.size&&ct(e)}function ct(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,ot.pendingUnobservations.push(e))}function lt(){ot.inBatch++}function ut(){if(0==--ot.inBatch){mt();for(var e=ot.pendingUnobservations,t=0;t<e.length;t++){var n=e[t];n.isPendingUnobservation_=!1,0===n.observers_.size&&(n.isBeingObserved_&&(n.isBeingObserved_=!1,n.onBUO()),n instanceof $e&&n.suspend_())}ot.pendingUnobservations=[]}}function pt(e){var t=ot.trackingDerivation;return null!==t?(t.runId_!==e.lastAccessedBy_&&(e.lastAccessedBy_=t.runId_,t.newObserving_[t.unboundDepsCount_++]=e,!e.isBeingObserved_&&ot.trackingContext&&(e.isBeingObserved_=!0,e.onBO())),!0):(0===e.observers_.size&&ot.inBatch>0&&ct(e),!1)}function ft(e){e.lowestObserverState_!==ze.STALE_&&(e.lowestObserverState_=ze.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===ze.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=ze.STALE_})))}var dt=function(){function e(e,t,n,r){void 0===e&&(e="Reaction"),void 0===r&&(r=!1),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=ze.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ue.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=r}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,ot.pendingReactions.push(this),mt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){lt(),this.isScheduled_=!1;var e=ot.trackingContext;if(ot.trackingContext=this,We(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(e){this.reportExceptionInDerivation_(e)}}ot.trackingContext=e,ut()}},t.track=function(e){if(!this.isDisposed_){lt();0,this.isRunning_=!0;var t=ot.trackingContext;ot.trackingContext=this;var n=Ye(this,e,void 0);ot.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Ke(this),He(n)&&this.reportExceptionInDerivation_(n.cause),ut()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(ot.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";ot.suppressReactionErrors||console.error(n,e),ot.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(lt(),Ke(this),ut()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[$]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){r("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];"boolean"==typeof n[n.length-1]&&(e=n.pop());var o=Qt(n);if(!o)return r("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.isTracing_===Ue.NONE&&console.log("[mobx.trace] '"+o.name_+"' tracing enabled");o.isTracing_=e?Ue.BREAK:Ue.LOG}(this,e)},e}();var ht=function(e){return e()};function mt(){ot.inBatch>0||ot.isRunningReactions||ht(vt)}function vt(){ot.isRunningReactions=!0;for(var e=ot.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r<i;r++)n[r].runReaction_()}ot.isRunningReactions=!1}var gt=j("Reaction",dt);var bt=K("action"),yt=K("action.bound",{bound:!0}),xt=K("autoAction",{autoAction:!0}),wt=K("autoAction.bound",{autoAction:!0,bound:!0});function Ot(e){return function(t,n){return g(t)?Ie(t.name||"<unnamed action>",t,e):g(n)?Ie(t,n,e):b(n)?U(t,n,e?xt:bt):b(t)?z(K(e?"autoAction":"action",{name:t,autoAction:e})):void 0}}var kt=Ot(!1);Object.assign(kt,bt);var jt=Ot(!0);function Et(e){return Re(e.name,!1,e,this,void 0)}function St(e){return g(e)&&!0===e.isMobxAction}function Ct(e,t){var n,r;void 0===t&&(t=p);var i,o=null!=(n=null==(r=t)?void 0:r.name)?n:"Autorun";if(!t.scheduler&&!t.delay)i=new dt(o,(function(){this.track(c)}),t.onError,t.requiresObservable);else{var a=Pt(t),s=!1;i=new dt(o,(function(){s||(s=!0,a((function(){s=!1,i.isDisposed_||i.track(c)})))}),t.onError,t.requiresObservable)}function c(){e(i)}return i.schedule_(),i.getDisposer_()}Object.assign(jt,xt),kt.bound=z(yt),jt.bound=z(wt);var _t=function(e){return e()};function Pt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:_t}function At(e,t,n){var r;void 0===n&&(n=p);var i,o,a,s=null!=(r=n.name)?r:"Reaction",c=kt(s,n.onError?(i=n.onError,o=t,function(){try{return o.apply(this,arguments)}catch(e){i.call(this,e)}}):t),l=!n.scheduler&&!n.delay,u=Pt(n),f=!0,d=!1,h=void 0,m=n.compareStructural?W.structural:n.equals||W.default,v=new dt(s,(function(){f||l?g():d||(d=!0,u(g))}),n.onError,n.requiresObservable);function g(){if(d=!1,!v.isDisposed_){var t=!1;v.track((function(){var n=Le(!1,(function(){return e(v)}));t=f||!m(a,n),h=a,a=n})),(f&&n.fireImmediately||!f&&t)&&c(a,h,v),f=!1}}return v.schedule_(),v.getDisposer_()}function Dt(e,t,n){return Tt("onBUO",e,t,n)}function Tt(e,t,n,r){var i="function"==typeof r?Vn(t,n):Vn(t),o=g(r)?r:n,a=e+"L";return i[a]?i[a].add(o):i[a]=new Set([o]),function(){var e=i[a];e&&(e.delete(o),0===e.size&&delete i[a])}}function It(e){!0===e.isolateGlobalState&&function(){if((ot.pendingReactions.length||ot.inBatch||ot.isRunningReactions)&&r(36),it=!0,rt){var e=o();0==--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),ot=new nt}}();var t,n,i=e.useProxies,a=e.enforceActions;if(void 0!==i&&(ot.useProxies="always"===i||"never"!==i&&"undefined"!=typeof Proxy),"ifavailable"===i&&(ot.verifyProxies=!0),void 0!==a){var s="always"===a?"always":"observed"===a;ot.enforceActions=s,ot.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(ot[t]=!!e[t])})),ot.allowStateReads=!ot.observableRequiresReaction,e.reactionScheduler&&(t=e.reactionScheduler,n=ht,ht=function(e){return t((function(){return n(e)}))})}function Rt(e,t,n,r){var i=D(t),o=Pn(e,r)[$];lt();try{_(i).forEach((function(e){o.extend_(e,i[e],!n||(!(e in n)||n[e]))}))}finally{ut()}return e}function Lt(e,t){return Nt(Vn(e,t))}function Nt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(Nt)),n}var Ft=0;function Mt(){this.message="FLOW_CANCELLED"}Mt.prototype=Object.create(Error.prototype);var Bt=Z("flow"),zt=Z("flow.bound",{bound:!0}),Ut=Object.assign((function(e,t){if(b(t))return U(e,t,Bt);var n=e,r=n.name||"<unnamed flow>",i=function(){var e,t=this,i=arguments,o=++Ft,a=kt(r+" - runid: "+o+" - init",n).apply(t,i),s=void 0,c=new Promise((function(t,n){var i=0;function c(e){var t;s=void 0;try{t=kt(r+" - runid: "+o+" - yield "+i++,a.next).call(a,e)}catch(e){return n(e)}u(t)}function l(e){var t;s=void 0;try{t=kt(r+" - runid: "+o+" - yield "+i++,a.throw).call(a,e)}catch(e){return n(e)}u(t)}function u(e){if(!g(null==e?void 0:e.then))return e.done?t(e.value):(s=Promise.resolve(e.value)).then(c,l);e.then(u,n)}e=n,c(void 0)}));return c.cancel=kt(r+" - runid: "+o+" - cancel",(function(){try{s&&$t(s);var t=a.return(void 0),n=Promise.resolve(t.value);n.then(v,v),$t(n),e(new Mt)}catch(t){e(t)}})),c};return i.isMobXFlow=!0,i}),Bt);function $t(e){g(e.cancel)&&e.cancel()}function Vt(e){return!0===(null==e?void 0:e.isMobXFlow)}function qt(e,t){return!!e&&(void 0!==t?!!Tn(e)&&e[$].values_.has(t):Tn(e)||!!e[$]||q(e)||gt(e)||Ve(e))}function Ht(e){return qt(e)}function Wt(e,t,n,r){return g(n)?function(e,t,n,r){return qn(e,t).observe_(n,r)}(e,t,n,r):function(e,t,n){return qn(e).observe_(t,n)}(e,t,n)}function Qt(e){switch(e.length){case 0:return ot.trackingDerivation;case 1:return Vn(e[0]);case 2:return Vn(e[0],e[1])}}function Yt(e,t){void 0===t&&(t=void 0),lt();try{return e.apply(t)}finally{ut()}}function Kt(e){return e[$]}Ut.bound=z(zt);var Gt={has:function(e,t){return Kt(e).has_(t)},get:function(e,t){return Kt(e).get_(t)},set:function(e,t,n){var r;return!!b(t)&&(null==(r=Kt(e).set_(t,n,!0))||r)},deleteProperty:function(e,t){var n;return!!b(t)&&(null==(n=Kt(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var r;return null==(r=Kt(e).defineProperty_(t,n))||r},ownKeys:function(e){return Kt(e).ownKeys_()},preventExtensions:function(e){r(13)}};function Jt(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function Xt(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function Zt(e,t){var n=Je();try{for(var i=[].concat(e.interceptors_||[]),o=0,a=i.length;o<a&&((t=i[o](t))&&!t.type&&r(14),t);o++);return t}finally{Xe(n)}}function en(e){return void 0!==e.changeListeners_&&e.changeListeners_.length>0}function tn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function nn(e,t){var n=Je(),r=e.changeListeners_;if(r){for(var i=0,o=(r=r.slice()).length;i<o;i++)r[i](t);Xe(n)}}function rn(e,t,n){var r=Pn(e,n)[$];lt();try{null!=t||(t=function(e){return A(e,B)||O(e,B,R({},e[B])),e[B]}(e)),_(t).forEach((function(e){return r.make_(e,t[e])}))}finally{ut()}return e}var on="update",an={get:function(e,t){var n=e[$];return t===$?n:"length"===t?n.getArrayLength_():"string"!=typeof t||isNaN(t)?A(ln,t)?ln[t]:e[t]:n.get_(parseInt(t))},set:function(e,t,n){var r=e[$];return"length"===t&&r.setArrayLength_(n),"symbol"==typeof t||isNaN(t)?e[t]=n:r.set_(parseInt(t),n),!0},preventExtensions:function(){r(15)}},sn=function(){function e(e,t,n,r){void 0===e&&(e="ObservableArray"),this.owned_=void 0,this.legacyMode_=void 0,this.atom_=void 0,this.values_=[],this.interceptors_=void 0,this.changeListeners_=void 0,this.enhancer_=void 0,this.dehancer=void 0,this.proxy_=void 0,this.lastKnownLength_=0,this.owned_=n,this.legacyMode_=r,this.atom_=new V(e),this.enhancer_=function(e,n){return t(e,n,"ObservableArray[..]")}}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.dehanceValues_=function(e){return void 0!==this.dehancer&&e.length>0?e.map(this.dehancer):e},t.intercept_=function(e){return Xt(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),tn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!=typeof e||e<0)&&r("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),i=0;i<e-t;i++)n[i]=void 0;this.spliceWithArray_(t,0,n)}else this.spliceWithArray_(e,t-e)},t.updateArrayLength_=function(e,t){e!==this.lastKnownLength_&&r(16),this.lastKnownLength_+=t,this.legacyMode_&&t>0&&Un(e+t+1)},t.spliceWithArray_=function(e,t,n){var r=this;this.atom_;var i=this.values_.length;if(void 0===e?e=0:e>i?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=u),Jt(this)){var o=Zt(this,{object:this.proxy_,type:"splice",index:e,removedCount:t,added:n});if(!o)return u;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return r.enhancer_(e,void 0)})),this.legacyMode_){var a=n.length-t;this.updateArrayLength_(i,a)}var s=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,s),this.dehanceValues_(s)},t.spliceItemsIntoValues_=function(e,t,n){var r;if(n.length<1e4)return(r=this.values_).splice.apply(r,[e,t].concat(n));var i=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length=e+n.length-t;for(var a=0;a<n.length;a++)this.values_[e+a]=n[a];for(var s=0;s<o.length;s++)this.values_[e+n.length+s]=o[s];return i},t.notifyArrayChildUpdate_=function(e,t,n){var r=!this.owned_&&!1,i=en(this),o=i||r?{observableKind:"array",object:this.proxy_,type:on,debugObjectName:this.atom_.name_,index:e,newValue:t,oldValue:n}:null;this.atom_.reportChanged(),i&&nn(this,o)},t.notifyArraySplice_=function(e,t,n){var r=!this.owned_&&!1,i=en(this),o=i||r?{observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;this.atom_.reportChanged(),i&&nn(this,o)},t.get_=function(e){if(e<this.values_.length)return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx.array] Attempt to read an array index ("+e+") that is out of bounds ("+this.values_.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},t.set_=function(e,t){var n=this.values_;if(e<n.length){this.atom_;var i=n[e];if(Jt(this)){var o=Zt(this,{type:on,object:this.proxy_,index:e,newValue:t});if(!o)return;t=o.newValue}(t=this.enhancer_(t,i))!==i&&(n[e]=t,this.notifyArrayChildUpdate_(e,t,i))}else e===n.length?this.spliceWithArray_(e,0,[t]):r(17,e,n.length)},e}();function cn(e,t,n,r){void 0===n&&(n="ObservableArray"),void 0===r&&(r=!1),h();var i=new sn(n,t,r,!1);k(i.values_,$,i);var o=new Proxy(i.values_,an);if(i.proxy_=o,e&&e.length){var a=Ne(!0);i.spliceWithArray_(0,0,e),Fe(a)}return o}var ln={clear:function(){return this.splice(0)},replace:function(e){var t=this[$];return t.spliceWithArray_(0,t.values_.length,e)},toJSON:function(){return this.slice()},splice:function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=this[$];switch(arguments.length){case 0:return[];case 1:return o.spliceWithArray_(e);case 2:return o.spliceWithArray_(e,t)}return o.spliceWithArray_(e,t,r)},spliceWithArray:function(e,t,n){return this[$].spliceWithArray_(e,t,n)},push:function(){for(var e=this[$],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(e.values_.length,0,n),e.values_.length},pop:function(){return this.splice(Math.max(this[$].values_.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var e=this[$],t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.spliceWithArray_(0,0,n),e.values_.length},reverse:function(){return ot.trackingDerivation&&r(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){ot.trackingDerivation&&r(37,"sort");var e=this.slice();return e.sort.apply(e,arguments),this.replace(e),this},remove:function(e){var t=this[$],n=t.dehanceValues_(t.values_).indexOf(e);return n>-1&&(this.splice(n,1),!0)}};function un(e,t){"function"==typeof Array.prototype[e]&&(ln[e]=t(e))}function pn(e){return function(){var t=this[$];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function fn(e){return function(t,n){var r=this,i=this[$];return i.atom_.reportObserved(),i.dehanceValues_(i.values_)[e]((function(e,i){return t.call(n,e,i,r)}))}}function dn(e){return function(){var t=this,n=this[$];n.atom_.reportObserved();var r=n.dehanceValues_(n.values_),i=arguments[0];return arguments[0]=function(e,n,r){return i(e,n,r,t)},r[e].apply(r,arguments)}}un("concat",pn),un("flat",pn),un("includes",pn),un("indexOf",pn),un("join",pn),un("lastIndexOf",pn),un("slice",pn),un("toString",pn),un("toLocaleString",pn),un("every",fn),un("filter",fn),un("find",fn),un("findIndex",fn),un("flatMap",fn),un("forEach",fn),un("map",fn),un("some",fn),un("reduce",dn),un("reduceRight",dn);var hn,mn,vn=j("ObservableArrayAdministration",sn);function gn(e){return y(e)&&vn(e[$])}var bn={},yn="add";hn=Symbol.iterator,mn=Symbol.toStringTag;var xn,wn,On=function(){function e(e,t,n){void 0===t&&(t=Q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[$]=bn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,g(Map)||r(18),this.keysAtom_=H("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,this.merge(e)}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!ot.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var r=n=new Be(this.has_(e),Y,"ObservableMap.key?",!1);this.hasMap_.set(e,r),Dt(r,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(Jt(this)){var r=Zt(this,{type:n?on:yn,object:this,newValue:t,name:e});if(!r)return this;t=r.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,Jt(this))&&!Zt(this,{type:"delete",object:this,name:e}))return!1;if(this.has_(e)){var n=en(this),r=n?{observableKind:"map",debugObjectName:this.name_,type:"delete",object:this,oldValue:this.data_.get(e).value_,name:e}:null;return Yt((function(){t.keysAtom_.reportChanged(),t.updateHasMapEntry_(e,!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&nn(this,r),!0}return!1},t.updateHasMapEntry_=function(e,t){var n=this.hasMap_.get(e);n&&n.setNewValue_(t)},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==ot.UNCHANGED){var r=en(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:on,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),r&&nn(this,i)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,Yt((function(){var r=new Be(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,r),t=r.value_,n.updateHasMapEntry_(e,!0),n.keysAtom_.reportChanged()}));var r=en(this),i=r?{observableKind:"map",debugObjectName:this.name_,type:yn,object:this,name:e,newValue:t}:null;r&&nn(this,i)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return Kn({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:e.get(i)}}})},t.entries=function(){var e=this,t=this.keys();return Kn({next:function(){var n=t.next(),r=n.done,i=n.value;return{done:r,value:r?void 0:[i,e.get(i)]}}})},t[hn]=function(){return this.entries()},t.forEach=function(e,t){for(var n,r=M(this);!(n=r()).done;){var i=n.value,o=i[0],a=i[1];e.call(t,a,o,this)}},t.merge=function(e){var t=this;return kn(e)&&(e=new Map(e)),Yt((function(){x(e)?function(e){var t=Object.keys(e);if(!C)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return l.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];return t.set(n,r)})):E(e)?(e.constructor!==Map&&r(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!=e&&r(20,e)})),this},t.clear=function(){var e=this;Yt((function(){Ge((function(){for(var t,n=M(e.keys());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.replace=function(e){var t=this;return Yt((function(){for(var n,i=function(e){if(E(e)||kn(e))return e;if(Array.isArray(e))return new Map(e);if(x(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return r(21,e)}(e),o=new Map,a=!1,s=M(t.data_.keys());!(n=s()).done;){var c=n.value;if(!i.has(c))if(t.delete(c))a=!0;else{var l=t.data_.get(c);o.set(c,l)}}for(var u,p=M(i.entries());!(u=p()).done;){var f=u.value,d=f[0],h=f[1],m=t.data_.has(d);if(t.set(d,h),t.data_.has(d)){var v=t.data_.get(d);o.set(d,v),m||(a=!0)}}if(!a)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var g=t.data_.keys(),b=o.keys(),y=g.next(),w=b.next();!y.done;){if(y.value!==w.value){t.keysAtom_.reportChanged();break}y=g.next(),w=b.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return tn(this,e)},t.intercept_=function(e){return Xt(this,e)},I(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:mn,get:function(){return"Map"}}]),e}(),kn=j("ObservableMap",On);var jn={};xn=Symbol.iterator,wn=Symbol.toStringTag;var En=function(){function e(e,t,n){void 0===t&&(t=Q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[$]=jn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,g(Set)||r(22),this.atom_=H(this.name_),this.enhancer_=function(e,r){return t(e,r,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;Yt((function(){Ge((function(){for(var t,n=M(e.data_.values());!(t=n()).done;){var r=t.value;e.delete(r)}}))}))},t.forEach=function(e,t){for(var n,r=M(this);!(n=r()).done;){var i=n.value;e.call(t,i,i,this)}},t.add=function(e){var t=this;if((this.atom_,Jt(this))&&!Zt(this,{type:yn,object:this,newValue:e}))return this;if(!this.has(e)){Yt((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=en(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:yn,object:this,newValue:e}:null;0,n&&nn(this,r)}return this},t.delete=function(e){var t=this;if(Jt(this)&&!Zt(this,{type:"delete",object:this,oldValue:e}))return!1;if(this.has(e)){var n=en(this),r=n?{observableKind:"set",debugObjectName:this.name_,type:"delete",object:this,oldValue:e}:null;return Yt((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&nn(this,r),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return Kn({next:function(){var r=e;return e+=1,r<n.length?{value:[t[r],n[r]],done:!1}:{done:!0}}})},t.keys=function(){return this.values()},t.values=function(){this.atom_.reportObserved();var e=this,t=0,n=Array.from(this.data_.values());return Kn({next:function(){return t<n.length?{value:e.dehanceValue_(n[t++]),done:!1}:{done:!0}}})},t.replace=function(e){var t=this;return Sn(e)&&(e=new Set(e)),Yt((function(){Array.isArray(e)||S(e)?(t.clear(),e.forEach((function(e){return t.add(e)}))):null!=e&&r("Cannot initialize set from "+e)})),this},t.observe_=function(e,t){return tn(this,e)},t.intercept_=function(e){return Xt(this,e)},t.toJSON=function(){return Array.from(this)},t.toString=function(){return"[object ObservableSet]"},t[xn]=function(){return this.values()},I(e,[{key:"size",get:function(){return this.atom_.reportObserved(),this.data_.size}},{key:wn,get:function(){return"Set"}}]),e}(),Sn=j("ObservableSet",En),Cn=Object.create(null),_n=function(){function e(e,t,n,r){void 0===t&&(t=new Map),void 0===r&&(r=le),this.target_=void 0,this.values_=void 0,this.name_=void 0,this.defaultAnnotation_=void 0,this.keysAtom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.proxy_=void 0,this.isPlainObject_=void 0,this.appliedAnnotations_=void 0,this.pendingKeys_=void 0,this.target_=e,this.values_=t,this.name_=n,this.defaultAnnotation_=r,this.keysAtom_=new V("ObservableObject.keys"),this.isPlainObject_=x(this.target_)}var t=e.prototype;return t.getObservablePropValue_=function(e){return this.values_.get(e).get()},t.setObservablePropValue_=function(e,t){var n=this.values_.get(e);if(n instanceof $e)return n.set(t),!0;if(Jt(this)){var r=Zt(this,{type:on,object:this.proxy_||this.target_,name:e,newValue:t});if(!r)return null;t=r.newValue}if((t=n.prepareNewValue_(t))!==ot.UNCHANGED){var i=en(this),o=i?{type:on,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),i&&nn(this,o)}return!0},t.get_=function(e){return ot.trackingDerivation&&!A(this.target_,e)&&this.has_(e),this.target_[e]},t.set_=function(e,t,n){return void 0===n&&(n=!1),A(this.target_,e)?this.values_.has(e)?this.setObservablePropValue_(e,t):n?Reflect.set(this.target_,e,t):(this.target_[e]=t,!0):this.extend_(e,{value:t,enumerable:!0,writable:!0,configurable:!0},this.defaultAnnotation_,n)},t.has_=function(e){if(!ot.trackingDerivation)return e in this.target_;this.pendingKeys_||(this.pendingKeys_=new Map);var t=this.pendingKeys_.get(e);return t||(t=new Be(e in this.target_,Y,"ObservableObject.key?",!1),this.pendingKeys_.set(e,t)),t.get()},t.make_=function(e,t){if(!0===t&&(t=this.defaultAnnotation_),!1!==t){if(Rn(this,t,e),!(e in this.target_)){var n;if(null==(n=this.target_[B])?void 0:n[e])return;r(1,t.annotationType_,this.name_+"."+e.toString())}for(var i=this.target_;i&&i!==l;){var o=s(i,e);if(o){var a=t.make_(this,e,o,i);if(0===a)return;if(1===a)break}i=Object.getPrototypeOf(i)}In(this,t,e)}},t.extend_=function(e,t,n,r){if(void 0===r&&(r=!1),!0===n&&(n=this.defaultAnnotation_),!1===n)return this.defineProperty_(e,t,r);Rn(this,n,e);var i=n.extend_(this,e,t,r);return i&&In(this,n,e),i},t.defineProperty_=function(e,t,n){void 0===n&&(n=!1);try{lt();var r=this.delete_(e);if(!r)return r;if(Jt(this)){var i=Zt(this,{object:this.proxy_||this.target_,name:e,type:yn,newValue:t.value});if(!i)return null;var o=i.newValue;t.value!==o&&(t=R({},t,{value:o}))}if(n){if(!Reflect.defineProperty(this.target_,e,t))return!1}else c(this.target_,e,t);this.notifyPropertyAddition_(e,t.value)}finally{ut()}return!0},t.defineObservableProperty_=function(e,t,n,r){void 0===r&&(r=!1);try{lt();var i=this.delete_(e);if(!i)return i;if(Jt(this)){var o=Zt(this,{object:this.proxy_||this.target_,name:e,type:yn,newValue:t});if(!o)return null;t=o.newValue}var a=Dn(e),s={configurable:!ot.safeDescriptors||this.isPlainObject_,enumerable:!0,get:a.get,set:a.set};if(r){if(!Reflect.defineProperty(this.target_,e,s))return!1}else c(this.target_,e,s);var l=new Be(t,n,"ObservableObject.key",!1);this.values_.set(e,l),this.notifyPropertyAddition_(e,l.value_)}finally{ut()}return!0},t.defineComputedProperty_=function(e,t,n){void 0===n&&(n=!1);try{lt();var r=this.delete_(e);if(!r)return r;if(Jt(this))if(!Zt(this,{object:this.proxy_||this.target_,name:e,type:yn,newValue:void 0}))return null;t.name||(t.name="ObservableObject.key"),t.context=this.proxy_||this.target_;var i=Dn(e),o={configurable:!ot.safeDescriptors||this.isPlainObject_,enumerable:!1,get:i.get,set:i.set};if(n){if(!Reflect.defineProperty(this.target_,e,o))return!1}else c(this.target_,e,o);this.values_.set(e,new $e(t)),this.notifyPropertyAddition_(e,void 0)}finally{ut()}return!0},t.delete_=function(e,t){if(void 0===t&&(t=!1),!A(this.target_,e))return!0;if(Jt(this)&&!Zt(this,{object:this.proxy_||this.target_,name:e,type:"remove"}))return null;try{var n,r;lt();var i,o=en(this),a=this.values_.get(e),c=void 0;if(!a&&o)c=null==(i=s(this.target_,e))?void 0:i.value;if(t){if(!Reflect.deleteProperty(this.target_,e))return!1}else delete this.target_[e];if(a&&(this.values_.delete(e),a instanceof Be&&(c=a.value_),ft(a)),this.keysAtom_.reportChanged(),null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(e in this.target_),o){var l={type:"remove",observableKind:"object",object:this.proxy_||this.target_,debugObjectName:this.name_,oldValue:c,name:e};0,o&&nn(this,l)}}finally{ut()}return!0},t.observe_=function(e,t){return tn(this,e)},t.intercept_=function(e){return Xt(this,e)},t.notifyPropertyAddition_=function(e,t){var n,r,i=en(this);if(i){var o=i?{type:yn,observableKind:"object",debugObjectName:this.name_,object:this.proxy_||this.target_,name:e,newValue:t}:null;0,i&&nn(this,o)}null==(n=this.pendingKeys_)||null==(r=n.get(e))||r.set(!0),this.keysAtom_.reportChanged()},t.ownKeys_=function(){return this.keysAtom_.reportObserved(),_(this.target_)},t.keys_=function(){return this.keysAtom_.reportObserved(),Object.keys(this.target_)},e}();function Pn(e,t){var n;if(A(e,$))return e;var r=null!=(n=null==t?void 0:t.name)?n:"ObservableObject",i=new _n(e,new Map,String(r),function(e){var t;return e?null!=(t=e.defaultDecorator)?t:ue(e):void 0}(t));return O(e,$,i),e}var An=j("ObservableObjectAdministration",_n);function Dn(e){return Cn[e]||(Cn[e]={get:function(){return this[$].getObservablePropValue_(e)},set:function(t){return this[$].setObservablePropValue_(e,t)}})}function Tn(e){return!!y(e)&&An(e[$])}function In(e,t,n){var r;null==(r=e.target_[B])||delete r[n]}function Rn(e,t,n){}var Ln,Nn,Fn=0,Mn=function(){};Ln=Mn,Nn=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(Ln.prototype,Nn):void 0!==Ln.prototype.__proto__?Ln.prototype.__proto__=Nn:Ln.prototype=Nn;var Bn=function(e){function t(t,n,r,i){var o;void 0===r&&(r="ObservableArray"),void 0===i&&(i=!1),o=e.call(this)||this;var a=new sn(r,n,i,!0);if(a.proxy_=N(o),k(N(o),$,a),t&&t.length){var s=Ne(!0);o.spliceWithArray(0,0,t),Fe(s)}return o}L(t,e);var n=t.prototype;return n.concat=function(){this[$].atom_.reportObserved();for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.prototype.concat.apply(this.slice(),t.map((function(e){return gn(e)?e.slice():e})))},n[Symbol.iterator]=function(){var e=this,t=0;return Kn({next:function(){return t<e.length?{value:e[t++],done:!1}:{done:!0,value:void 0}}})},I(t,[{key:"length",get:function(){return this[$].getArrayLength_()},set:function(e){this[$].setArrayLength_(e)}},{key:Symbol.toStringTag,get:function(){return"Array"}}]),t}(Mn);function zn(e){c(Bn.prototype,""+e,function(e){return{enumerable:!1,configurable:!0,get:function(){return this[$].get_(e)},set:function(t){this[$].set_(e,t)}}}(e))}function Un(e){if(e>Fn){for(var t=Fn;t<e+100;t++)zn(t);Fn=e}}function $n(e,t,n){return new Bn(e,t,n)}function Vn(e,t){if("object"==typeof e&&null!==e){if(gn(e))return void 0!==t&&r(23),e[$].atom_;if(Sn(e))return e[$];if(kn(e)){if(void 0===t)return e.keysAtom_;var n=e.data_.get(t)||e.hasMap_.get(t);return n||r(25,t,Hn(e)),n}if(Tn(e)){if(!t)return r(26);var i=e[$].values_.get(t);return i||r(27,t,Hn(e)),i}if(q(e)||Ve(e)||gt(e))return e}else if(g(e)&&gt(e[$]))return e[$];r(28)}function qn(e,t){return e||r(29),void 0!==t?qn(Vn(e,t)):q(e)||Ve(e)||gt(e)||kn(e)||Sn(e)?e:e[$]?e[$]:void r(24,e)}function Hn(e,t){var n;if(void 0!==t)n=Vn(e,t);else{if(St(e))return e.name;n=Tn(e)||kn(e)||Sn(e)?qn(e):Vn(e)}return n.name_}Object.entries(ln).forEach((function(e){var t=e[0],n=e[1];"concat"!==t&&O(Bn.prototype,t,n)})),Un(1e3);var Wn=l.toString;function Qn(e,t,n){return void 0===n&&(n=-1),function e(t,n,r,i,o){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if(t!=t)return n!=n;var a=typeof t;if(!g(a)&&"object"!==a&&"object"!=typeof n)return!1;var s=Wn.call(t);if(s!==Wn.call(n))return!1;switch(s){case"[object RegExp]":case"[object String]":return""+t==""+n;case"[object Number]":return+t!=+t?+n!=+n:0==+t?1/+t==1/n:+t==+n;case"[object Date]":case"[object Boolean]":return+t==+n;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(t)===Symbol.valueOf.call(n);case"[object Map]":case"[object Set]":r>=0&&r++}t=Yn(t),n=Yn(n);var c="[object Array]"===s;if(!c){if("object"!=typeof t||"object"!=typeof n)return!1;var l=t.constructor,u=n.constructor;if(l!==u&&!(g(l)&&l instanceof l&&g(u)&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);o=o||[];var p=(i=i||[]).length;for(;p--;)if(i[p]===t)return o[p]===n;if(i.push(t),o.push(n),c){if((p=t.length)!==n.length)return!1;for(;p--;)if(!e(t[p],n[p],r-1,i,o))return!1}else{var f,d=Object.keys(t);if(p=d.length,Object.keys(n).length!==p)return!1;for(;p--;)if(f=d[p],!A(n,f)||!e(t[f],n[f],r-1,i,o))return!1}return i.pop(),o.pop(),!0}(e,t,n)}function Yn(e){return gn(e)?e.slice():E(e)||kn(e)||S(e)||Sn(e)?Array.from(e.entries()):e}function Kn(e){return e[Symbol.iterator]=Gn,e}function Gn(){return this}["Symbol","Map","Set","Symbol"].forEach((function(e){void 0===o()[e]&&r("MobX requires global '"+e+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:Hn},$mobx:$})},function(e,t,n){"use strict";n.d(t,"b",(function(){return r.a})),n.d(t,"B",(function(){return i.r})),n.d(t,"s",(function(){return i.k})),n.d(t,"z",(function(){return i.p})),n.d(t,"r",(function(){return i.j})),n.d(t,"k",(function(){return i.e})),n.d(t,"A",(function(){return i.q})),n.d(t,"w",(function(){return i.n})),n.d(t,"v",(function(){return i.m})),n.d(t,"U",(function(){return i.C})),n.d(t,"P",(function(){return i.x})),n.d(t,"C",(function(){return i.s})),n.d(t,"x",(function(){return i.o})),n.d(t,"q",(function(){return i.i})),n.d(t,"u",(function(){return i.l})),n.d(t,"S",(function(){return i.B})),n.d(t,"R",(function(){return i.A})),n.d(t,"I",(function(){return i.t})),n.d(t,"J",(function(){return i.u})),n.d(t,"l",(function(){return i.f})),n.d(t,"K",(function(){return i.v})),n.d(t,"d",(function(){return i.b})),n.d(t,"e",(function(){return i.c})),n.d(t,"c",(function(){return i.a})),n.d(t,"f",(function(){return i.d})),n.d(t,"Q",(function(){return i.y})),n.d(t,"m",(function(){return i.g})),n.d(t,"L",(function(){return i.w})),n.d(t,"p",(function(){return i.h})),n.d(t,"F",(function(){return o.f})),n.d(t,"E",(function(){return o.e})),n.d(t,"n",(function(){return o.b})),n.d(t,"y",(function(){return o.d})),n.d(t,"i",(function(){return o.a})),n.d(t,"H",(function(){return o.g})),n.d(t,"N",(function(){return o.j})),n.d(t,"o",(function(){return o.c})),n.d(t,"T",(function(){return o.m})),n.d(t,"O",(function(){return o.k})),n.d(t,"t",(function(){return s})),n.d(t,"D",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"a",(function(){return f.a})),n.d(t,"M",(function(){return f.b})),n.d(t,"g",(function(){return v})),n.d(t,"G",(function(){return b})),n.d(t,"h",(function(){return y}));var r=n(231),i=n(72),o=n(107),a=n(160);n(639),n(640),n(641),n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658);function s(e,t){void 0===t&&(t="clike"),t=t.toLowerCase();var n=a.languages[t];return n||(n=a.languages[function(e){return{json:"js","c++":"cpp","c#":"csharp","objective-c":"objectivec",shell:"bash",viml:"vim",curl:"bash","node.js":"js"}[e]||"clike"}(t)]),a.highlight(e.toString(),n,t)}a.languages.insertBefore("javascript","string",{"property string":{pattern:/([{,]\s*)"(?:\\.|[^\\"\r\n])*"(?=\s*:)/i,lookbehind:!0}},void 0),a.languages.insertBefore("javascript","punctuation",{property:{pattern:/([{,]\s*)[a-z]\w*(?=\s*:)/i,lookbehind:!0}},void 0);var c=n(1),l=n(336),u=n(232),p=n(510),f=n(95);function d(e){return Object(c.b)(this,void 0,void 0,(function(){var t,n,r;return Object(c.e)(this,(function(i){switch(i.label){case 0:return t=new u.Config({}),n={config:t,base:f.a?window.location.href:process.cwd()},f.a&&(t.resolve.http.customFetch=global.fetch),"object"==typeof e&&null!==e?n.doc=h(e):n.ref=e,[4,Object(l.bundle)(n)];case 1:return[2,void 0!==(r=i.sent().bundle.parsed).swagger?m(r):r]}}))}))}function h(e){return{source:{absoluteRef:""},parsed:e}}function m(e){return console.warn("[ReDoc Compatibility mode]: Converting OpenAPI 2.0 to OpenAPI 3.0"),e.paths||(e.paths={}),new Promise((function(t,n){return Object(p.convertObj)(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(function(e,r){if(e)return n(e);t(null==r?void 0:r.openapi)}))}))}function v(e){return function(t,n,r){var i,o,a,s,c,l,u,p;r.value=(i=r.value,o=e,l=null,u=0,p=function(){u=(new Date).getTime(),l=null,c=i.apply(a,s),l||(a=s=null)},function(){var e=(new Date).getTime(),t=o-(e-u);return a=this,s=arguments,t<=0||t>o?(l&&(clearTimeout(l),l=null),u=e,c=i.apply(a,s),l||(a=s=null)):l||(l=setTimeout(p,t)),c})}}var g={};function b(e,t,n){if("function"==typeof n.value)return function(e,t,n){if(!n.value||n.value.length>0)throw new Error("@memoize decorator can only be applied to methods of zero arguments");var r="_memoized_"+t,i=n.value;return e[r]=g,Object(c.a)(Object(c.a)({},n),{value:function(){return this[r]===g&&(this[r]=i.call(this)),this[r]}})}(e,t,n);if("function"==typeof n.get)return function(e,t,n){var r="_memoized_"+t,i=n.get;return e[r]=g,Object(c.a)(Object(c.a)({},n),{get:function(){return this[r]===g&&(this[r]=null==i?void 0:i.call(this)),this[r]}})}(e,t,n);throw new Error("@memoize decorator can be applied to methods or getters, got "+String(n.value)+" instead")}function y(e){var t=1;return"-"===e[0]&&(t=-1,e=e.substr(1)),function(n,r){return-1==t?r[e].localeCompare(n[e]):n[e].localeCompare(r[e])}}},function(e,t,n){"use strict";n.d(t,"k",(function(){return k})),n.d(t,"q",(function(){return j})),n.d(t,"l",(function(){return E})),n.d(t,"m",(function(){return S})),n.d(t,"w",(function(){return _})),n.d(t,"g",(function(){return P})),n.d(t,"h",(function(){return A})),n.d(t,"f",(function(){return D})),n.d(t,"x",(function(){return T.d})),n.d(t,"i",(function(){return T.a})),n.d(t,"r",(function(){return T.b})),n.d(t,"c",(function(){return I})),n.d(t,"b",(function(){return R.b})),n.d(t,"a",(function(){return R.a})),n.d(t,"e",(function(){return L.a})),n.d(t,"v",(function(){return N.a})),n.d(t,"p",(function(){return F.c})),n.d(t,"n",(function(){return F.a})),n.d(t,"o",(function(){return F.b})),n.d(t,"t",(function(){return F.d})),n.d(t,"s",(function(){return M.c})),n.d(t,"d",(function(){return M.a})),n.d(t,"j",(function(){return M.b})),n.d(t,"u",(function(){return B.a}));var r,i,o,a,s,c,l,u,p,f,d,h,m,v,g,b,y=n(1),x=n(60),w=n(2),O=n(25),k=w.e.div(i||(i=Object(y.f)(["\n ","}\n"],["\n ","}\n"])),(function(e){var t,n,i,o,a=e.theme,s=e.compact,c=e.isStacked,l=s?0:a.spacing.sectionVertical,u=a.layout.showDarkRightPanel?a.spacing.sectionHorizontal:a.spacing.sectionHorizontal/2;return Object(w.d)(r||(r=Object(y.f)(["\n ","\n "," {\n width: 100%;\n padding-top: ",";\n padding-bottom: ",";\n }\n "],["\n ","\n "," {\n width: 100%;\n padding-top: ",";\n padding-bottom: ",";\n }\n "])),Object(w.h)({width:Object(w.i)(a.breakpoints,[a.rightPanel.width],(t={},t[w.b]=function(){return"100%"},t[a.rightPanel.showAtBreakpoint]=function(e){return"calc(100% - "+e+")"},t)),paddingLeft:a.spacing.sectionHorizontal,paddingRight:(n={},n[w.b]=a.spacing.sectionHorizontal,n[a.rightPanel.showAtBreakpoint]=c?a.spacing.sectionHorizontal:u,n),paddingTop:(i={},i[w.b]=l,i[a.rightPanel.showAtBreakpoint]=0,i),paddingBottom:(o={},o[w.b]=l,o[a.rightPanel.showAtBreakpoint]=c?a.spacing.sectionVertical:0,o)}),a.mediaQueries.print,l,l)})),j=w.e.div.attrs((function(e){var t;return(t={})[x.a]=e.id,t}))(a||(a=Object(y.f)(["\n padding-left: 0;\n padding-right: 0;\n width: 100%;\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-left: 0;\n padding-right: 0;\n width: 100%;\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){var t,n,r=e.theme;return Object(w.d)(o||(o=Object(y.f)(["\n ","\n\n "," {\n padding: 0;\n }\n "],["\n ","\n\n "," {\n padding: 0;\n }\n "])),Object(w.h)({paddingTop:(t={},t[w.b]=0,t[r.rightPanel.showAtBreakpoint]=r.spacing.sectionVertical,t),paddingBottom:(n={},n[w.b]=0,n[r.rightPanel.showAtBreakpoint]=r.spacing.sectionVertical,n)}),r.mediaQueries.print)}),(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 "+e.theme.colors.border.light+"\n }\n "||""})),E=w.e.div(c||(c=Object(y.f)(["\n ","\n"],["\n ","\n"])),(function(e){var t,n,r,i,o=e.theme,a=o.layout.showDarkRightPanel?o.spacing.sectionHorizontal:o.spacing.sectionHorizontal/2;return Object(w.d)(s||(s=Object(y.f)(["\n ","\n "," {\n width: 100%;\n padding-top: ",";\n padding-bottom: ",";\n }\n "],["\n ","\n "," {\n width: 100%;\n padding-top: ",";\n padding-bottom: ",";\n }\n "])),Object(w.h)({color:o.rightPanel.textColor,width:Object(w.i)(o.breakpoints,[o.rightPanel.width],(t={},t[w.b]=function(){return"100%"},t[o.rightPanel.showAtBreakpoint]=function(e){return e},t)),paddingLeft:(n={},n[w.b]=o.spacing.sectionHorizontal,n[o.rightPanel.showAtBreakpoint]=a,n),paddingRight:o.spacing.sectionHorizontal,paddingTop:(r={},r[w.b]=o.spacing.sectionVertical,r[o.rightPanel.showAtBreakpoint]=0,r),paddingBottom:(i={},i[w.b]=o.spacing.sectionVertical,i[o.rightPanel.showAtBreakpoint]=0,i)}),o.mediaQueries.print,o.spacing.sectionVertical,o.spacing.sectionVertical)})),S=(Object(w.e)(E)(l||(l=Object(y.f)(["\n ","\n"],["\n ","\n"])),(function(e){var t=e.theme;return Object(w.h)({backgroundColor:t.rightPanel.panelBackgroundColor})})),w.e.div(p||(p=Object(y.f)(["\n display: flex;\n width: 100%;\n padding: 0;\n ","\n"],["\n display: flex;\n width: 100%;\n padding: 0;\n ","\n"])),(function(e){var t,n=e.theme,r=e.layout;return Object(w.d)(u||(u=Object(y.f)(["\n ","\n "," {\n flex-direction: column;\n }\n "],["\n ","\n "," {\n flex-direction: column;\n }\n "])),Object(w.h)({flexDirection:(t={},t[w.b]="column",t[n.rightPanel.showAtBreakpoint]=r===O.b.STACKED?"column":"row",t)}),n.mediaQueries.print)}))),C={1:"36px",2:"28px",3:"18px"},_=function(e){return Object(w.d)(f||(f=Object(y.f)(["\n ","\n"],["\n ","\n"])),(function(t){var n=t.theme;return Object(w.h)({fontSize:C[e],fontFamily:n.typography.headings.fontFamily,fontWeight:n.typography.headings.fontWeight,lineHeight:C[e]})}))},P=w.e.h1(d||(d=Object(y.f)(["\n ",";\n color: ",";\n margin: 0 0 25px;\n\n ",";\n"],["\n ",";\n color: ",";\n margin: 0 0 25px;\n\n ",";\n"])),_(1),(function(e){return e.theme.colors.text.primary}),Object(w.f)("H1")),A=w.e.h2(h||(h=Object(y.f)(["\n ",";\n color: ",";\n margin: 0 0 20px;\n\n ",";\n"],["\n ",";\n color: ",";\n margin: 0 0 20px;\n\n ",";\n"])),_(2),(function(e){return e.theme.colors.text.primary}),Object(w.f)("H2")),D=(w.e.h2(m||(m=Object(y.f)(["\n ",";\n color: ",";\n\n ",";\n"],["\n ",";\n color: ",";\n\n ",";\n"])),_(3),(function(e){return e.theme.colors.text.primary}),Object(w.f)("H3")),w.e.h3(v||(v=Object(y.f)(["\n ","\n\n ",";\n"],["\n ","\n\n ",";\n"])),(function(e){var t=e.theme;return Object(w.h)({color:t.rightPanel.textColor})}),Object(w.f)("RightPanelHeader")),w.e.h5(g||(g=Object(y.f)(["\n color: ",";\n font-weight: bold;\n text-transform: uppercase;\n font-size: 14px;\n line-height: 20px;\n\n ",";\n"],["\n color: ",";\n font-weight: bold;\n text-transform: uppercase;\n font-size: 14px;\n line-height: 20px;\n\n ",";\n"])),(function(e){return e.theme.colors.text.secondary}),Object(w.f)("FieldsGroupHeader"))),T=n(188),I=w.e.span(b||(b=Object(y.f)(["\n display: inline-block;\n padding: 2px 8px;\n vertical-align: middle;\n line-height: 1.6;\n border-radius: ",";\n font-size: 12px;\n margin: 0 0 0 0.5em;\n ","\n"],["\n display: inline-block;\n padding: 2px 8px;\n vertical-align: middle;\n line-height: 1.6;\n border-radius: ",";\n font-size: 12px;\n margin: 0 0 0 0.5em;\n ","\n"])),(function(e){return e.theme.shape.borderRadius}),(function(e){var t=e.theme,n=e.type;return Object(w.h)({backgroundColor:t.colors[n].main,color:t.colors[n].contrastText,fontSize:t.typography.code.fontSize,fontWeight:t.typography.fontWeightBold})})),R=(n(36),n(150)),L=n(45),N=n(233),F=n(147),M=(n(105),n(44)),B=n(234)},function(e,t,n){"use strict";n.d(t,"h",(function(){return o})),n.d(t,"g",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"d",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return p})),n.d(t,"j",(function(){return E})),n.d(t,"l",(function(){return S})),n.d(t,"k",(function(){return C})),n.d(t,"i",(function(){return _})),n.d(t,"c",(function(){return P}));var r=n(1),i=n(2),o=i.e.div(f||(f=Object(r.f)(["\n display: table;\n width: 100%;\n"],["\n display: table;\n width: 100%;\n"]))),a=i.e.div(d||(d=Object(r.f)(["\n color: #969a9a;\n font-size: 1em;\n font-weight: normal;\n text-align: left;\n position: absolute;\n"],["\n color: #969a9a;\n font-size: 1em;\n font-weight: normal;\n text-align: left;\n position: absolute;\n"]))),s=i.e.div(h||(h=Object(r.f)(["\n width: 100%;\n font-family: ",";\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"],["\n width: 100%;\n font-family: ",";\n display: flex;\n flex-direction: column;\n margin-bottom: 10px;\n\n &:last-child {\n margin-bottom: 0;\n }\n"])),(function(e){return e.theme.typography.code.fontFamily})),c=i.e.div(m||(m=Object(r.f)(["\n width: 100%;\n margin-bottom: 20px;\n"],["\n width: 100%;\n margin-bottom: 20px;\n"]))),l=i.e.label(g||(g=Object(r.f)(["\n padding-bottom: 6px;\n display: block;\n white-space: nowrap;\n line-height: 1em;\n\n ","\n"],["\n padding-bottom: 6px;\n display: block;\n white-space: nowrap;\n line-height: 1em;\n\n ","\n"])),(function(e){var t=e.required,n=e.theme;return t&&Object(i.d)(v||(v=Object(r.f)(["\n &:after {\n display: inline-block;\n content: '*';\n margin-left: 4px;\n color: ",";\n }\n "],["\n &:after {\n display: inline-block;\n content: '*';\n margin-left: 4px;\n color: ",";\n }\n "])),n.colors.error.main)})),u=i.e.div(b||(b=Object(r.f)(["\n color: ",";\n font-size: 0.9em;\n & pre {\n word-break: break-word;\n white-space: pre-wrap;\n }\n"],["\n color: ",";\n font-size: 0.9em;\n & pre {\n word-break: break-word;\n white-space: pre-wrap;\n }\n"])),(function(e){return e.theme.colors.error.main})),p=i.e.div(y||(y=Object(r.f)(["\n color: ",";\n font-size: 0.9em;\n"],["\n color: ",";\n font-size: 0.9em;\n"])),(function(e){return e.theme.colors.warning.main}));var f,d,h,m,v,g,b,y,x,w,O,k,j,E=i.e.div(x||(x=Object(r.f)(["\n position: relative;\n margin-bottom: 1em;\n display: flex;\n"],["\n position: relative;\n margin-bottom: 1em;\n display: flex;\n"]))),S=i.e.code(w||(w=Object(r.f)(["\n flex: 1;\n overflow-wrap: anywhere;\n ","\n"],["\n flex: 1;\n overflow-wrap: anywhere;\n ","\n"])),(function(e){var t=e.masked,n=e.length;return t&&"\n color: transparent;\n\n &:before {\n content: "+function(e,t){for(var n="",r=0;r<e;r++)n+=t;return'"'+n+'"'}(n,"*")+";\n color: white;\n position: absolute;\n right: 100px;\n }\n "||""})),C=i.e.span(O||(O=Object(r.f)(["\n padding: 0 5px;\n cursor: pointer;\n"],["\n padding: 0 5px;\n cursor: pointer;\n"]))),_=Object(i.e)(C)(k||(k=Object(r.f)(["\n color: ",";\n"],["\n color: ",";\n"])),(function(e){return e.theme.colors.error.main})),P=i.e.div(j||(j=Object(r.f)(["\n font-weight: bold;\n font-size: 1.2em;\n margin: 1em 0;\n"],["\n font-weight: bold;\n font-size: 1.2em;\n margin: 1em 0;\n"])))},function(e,t,n){e.exports=n(961)},function(e,t,n){"use strict";n.d(t,"j",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"n",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"k",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"m",(function(){return p})),n.d(t,"d",(function(){return f})),n.d(t,"p",(function(){return d})),n.d(t,"c",(function(){return h})),n.d(t,"o",(function(){return m})),n.d(t,"l",(function(){return v})),n.d(t,"h",(function(){return g})),n.d(t,"i",(function(){return b})),n.d(t,"f",(function(){return x})),n.d(t,"b",(function(){return O}));var r=n(0),i=n(3),o=function(e){return e};function a(e,t,n){var r,i=0;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];function s(){i>1&&e.apply(void 0,o),i=0,r=null}i++,r?clearTimeout(r):n&&e.apply(void 0,o),r=setTimeout(s,t)}}function s(e,t){window.sessionStorage.setItem("redoc."+e,t)}function c(e){return i.m&&window.sessionStorage.getItem("redoc."+e)||""}function l(e,t,n){s(e+"."+t,JSON.stringify(n))}function u(e,t){try{return JSON.parse(c(e+"."+t))}catch(e){return null}}function p(e,t){window.localStorage.setItem("redoc."+e,t)}function f(e){return i.m&&window.localStorage.getItem("redoc."+e)||""}function d(e){var t=r.useState(null),n=t[0],i=t[1];return r.useLayoutEffect((function(){if(e){var t=function(){return window.requestAnimationFrame((function(){return i(e.getBoundingClientRect())}))};return t(),window.addEventListener("resize",t),function(){window.removeEventListener("resize",t)}}}),[e]),[n]}function h(e){return e.replace(/\./g,"%2e")}function m(e){return e.replace(/%2e/g,".")}function v(e,t){e=h(e),"string"==typeof t?s("auth."+e,t):t&&(s("auth."+e+".password",t.password||""),s("auth."+e+".username",t.username||""),s("auth."+e+".token",t.token&&JSON.stringify(t.token)||""),s("auth."+e+".client_id",t.client_id||""),s("auth."+e+".client_secret",t.client_secret||""),s("auth."+e+".scopes",t.scopes&&JSON.stringify(t.scopes)||""))}function g(e){var t=c("auth."+(e=h(e))),n=c("auth."+e+".token");return{raw:t,password:c("auth."+e+".password"),username:c("auth."+e+".username"),token:n&&JSON.parse(n)||null,client_id:c("auth."+e+".client_id"),client_secret:c("auth."+e+".client_secret"),scopes:c("auth."+e+".scopes")}}function b(e,t){var n=c("auth."+(e=h(e))+".variants");if(!n)return null;var r=JSON.parse(n);return r&&Array.isArray(r)?r.map((function(e){return e.details?""===t&&e.details&&"string"==typeof e.details?{label:e.label,value:e.details}:"object"==typeof e.details?{label:e.label,value:e.details[t]}:null:null})).filter(y):null}function y(e){return null!==e}function x(e,t,n){return"string"==typeof t&&(t=t.split(".")),t.reduce((function(e,t){return e&&e[t]?e[t]:n}),e)}var w,O=(w=".",function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(w)})},function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n(4),i=n(0),o=n(43),a=0;var s={};function c(e){return s[e]||(s[e]=function(e){if("function"==typeof Symbol)return Symbol(e);var t="__$mobx-react "+e+" ("+a+")";return a++,t}(e)),s[e]}function l(e,t){if(u(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!Object.hasOwnProperty.call(t,n[i])||!u(e[n[i]],t[n[i]]))return!1;return!0}function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function p(e,t,n){Object.hasOwnProperty.call(e,t)?e[t]=n:Object.defineProperty(e,t,{enumerable:!1,configurable:!0,writable:!0,value:n})}var f=c("patchMixins"),d=c("patchedDefinition");function h(e,t){for(var n=this,r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o];t.locks++;try{var a;return null!=e&&(a=e.apply(this,i)),a}finally{t.locks--,0===t.locks&&t.methods.forEach((function(e){e.apply(n,i)}))}}function m(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];h.call.apply(h,[this,e,t].concat(r))}}function v(e,t,n){var r=function(e,t){var n=e[f]=e[f]||{},r=n[t]=n[t]||{};return r.locks=r.locks||0,r.methods=r.methods||[],r}(e,t);r.methods.indexOf(n)<0&&r.methods.push(n);var i=Object.getOwnPropertyDescriptor(e,t);if(!i||!i[d]){var o=e[t],a=function e(t,n,r,i,o){var a,s=m(o,i);return(a={})[d]=!0,a.get=function(){return s},a.set=function(o){if(this===t)s=m(o,i);else{var a=e(this,n,r,i,o);Object.defineProperty(this,n,a)}},a.configurable=!0,a.enumerable=r,a}(e,t,i?i.enumerable:void 0,r,o);Object.defineProperty(e,t,a)}}var g=r.a||"$mobx",b=c("isMobXReactObserver"),y=c("isUnmounted"),x=c("skipRender"),w=c("isForcingUpdate");function O(e){var t=e.prototype;if(e[b]){var n=k(t);console.warn("The provided component class ("+n+") \n has already been declared as an observer component.")}else e[b]=!0;if(t.componentWillReact)throw new Error("The componentWillReact life-cycle event is no longer supported");if(e.__proto__!==i.PureComponent)if(t.shouldComponentUpdate){if(t.shouldComponentUpdate!==E)throw new Error("It is not allowed to use shouldComponentUpdate in observer based components.")}else t.shouldComponentUpdate=E;S(t,"props"),S(t,"state");var r=t.render;return t.render=function(){return j.call(this,r)},v(t,"componentWillUnmount",(function(){var e;if(!0!==Object(o.c)()&&(null==(e=this.render[g])||e.dispose(),this[y]=!0,!this.render[g])){var t=k(this);console.warn("The reactive render of an observer class component ("+t+") \n was overriden after MobX attached. This may result in a memory leak if the \n overriden reactive render was not properly disposed.")}})),e}function k(e){return e.displayName||e.name||e.constructor&&(e.constructor.displayName||e.constructor.name)||"<component>"}function j(e){var t=this;if(!0===Object(o.c)())return e.call(this);p(this,x,!1),p(this,w,!1);var n=k(this),a=e.bind(this),s=!1,c=new r.b(n+".render()",(function(){if(!s&&(s=!0,!0!==t[y])){var e=!0;try{p(t,w,!0),t[x]||i.Component.prototype.forceUpdate.call(t),e=!1}finally{p(t,w,!1),e&&c.dispose()}}}));function l(){s=!1;var e=void 0,t=void 0;if(c.track((function(){try{t=Object(r.c)(!1,a)}catch(t){e=t}})),e)throw e;return t}return c.reactComponent=this,l[g]=c,this.render=l,l.call(this)}function E(e,t){return Object(o.c)()&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||!l(this.props,e)}function S(e,t){var n=c("reactProp_"+t+"_valueHolder"),i=c("reactProp_"+t+"_atomHolder");function o(){return this[i]||p(this,i,Object(r.i)("reactive "+t)),this[i]}Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var e=!1;return r.e&&r.d&&(e=Object(r.e)(!0)),o.call(this).reportObserved(),r.e&&r.d&&Object(r.d)(e),this[n]},set:function(e){this[w]||l(this[n],e)?p(this,n,e):(p(this,n,e),p(this,x,!0),o.call(this).reportChanged(),p(this,x,!1))}})}var C="function"==typeof Symbol&&Symbol.for,_=C?Symbol.for("react.forward_ref"):"function"==typeof i.forwardRef&&Object(i.forwardRef)((function(e){return null})).$$typeof,P=C?Symbol.for("react.memo"):"function"==typeof i.memo&&Object(i.memo)((function(e){return null})).$$typeof;function A(e){if(!0===e.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),P&&e.$$typeof===P)throw new Error("Mobx observer: You are trying to use 'observer' on a function component wrapped in either another observer or 'React.memo'. The observer already applies 'React.memo' for you.");if(_&&e.$$typeof===_){var t=e.render;if("function"!=typeof t)throw new Error("render property of ForwardRef was not a function");return Object(i.forwardRef)((function(){var e=arguments;return Object(i.createElement)(o.a,null,(function(){return t.apply(void 0,e)}))}))}return"function"!=typeof e||e.prototype&&e.prototype.render||e.isReactClass||Object.prototype.isPrototypeOf.call(i.Component,e)?O(e):Object(o.d)(e)}if(!i.Component)throw new Error("mobx-react requires React to be available");if(!r.o)throw new Error("mobx-react requires mobx to be available")},function(e,t){e.exports=require("path")},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function s(e,t,n){return(s=a()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&i(o,n.prototype),o}).apply(null,arguments)}function c(e){var t="function"==typeof Map?new Map:void 0;return(c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return s(e,arguments,o(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),i(r,e)})(e)}n.d(t,"a",(function(){return F})),n.d(t,"b",(function(){return M})),n.d(t,"c",(function(){return z})),n.d(t,"d",(function(){return $})),n.d(t,"e",(function(){return V})),n.d(t,"f",(function(){return H}));var l=function(e){var t,n;function r(t){return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+t+" for more information.")||this)}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,i(t,n),r}(c(Error));function u(e){return Math.round(255*e)}function p(e,t,n){return u(e)+","+u(t)+","+u(n)}function f(e,t,n,r){if(void 0===r&&(r=p),0===t)return r(n,n,n);var i=(e%360+360)%360/60,o=(1-Math.abs(2*n-1))*t,a=o*(1-Math.abs(i%2-1)),s=0,c=0,l=0;i>=0&&i<1?(s=o,c=a):i>=1&&i<2?(s=a,c=o):i>=2&&i<3?(c=o,l=a):i>=3&&i<4?(c=a,l=o):i>=4&&i<5?(s=a,l=o):i>=5&&i<6&&(s=o,l=a);var u=n-o/2;return r(s+u,c+u,l+u)}var d={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var h=/^#[a-fA-F0-9]{6}$/,m=/^#[a-fA-F0-9]{8}$/,v=/^#[a-fA-F0-9]{3}$/,g=/^#[a-fA-F0-9]{4}$/,b=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,y=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,x=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,w=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function O(e){if("string"!=typeof e)throw new l(3);var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return d[t]?"#"+d[t]:e}(e);if(t.match(h))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(m)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(v))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(g)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=b.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var o=y.exec(t.substring(0,50));if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10),alpha:parseFloat(""+o[4])};var a=x.exec(t);if(a){var s="rgb("+f(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",c=b.exec(s);if(!c)throw new l(4,t,s);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10)}}var u=w.exec(t.substring(0,50));if(u){var p="rgb("+f(parseInt(""+u[1],10),parseInt(""+u[2],10)/100,parseInt(""+u[3],10)/100)+")",O=b.exec(p);if(!O)throw new l(4,t,p);return{red:parseInt(""+O[1],10),green:parseInt(""+O[2],10),blue:parseInt(""+O[3],10),alpha:parseFloat(""+u[4])}}throw new l(5)}function k(e){return function(e){var t,n=e.red/255,r=e.green/255,i=e.blue/255,o=Math.max(n,r,i),a=Math.min(n,r,i),s=(o+a)/2;if(o===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var c=o-a,l=s>.5?c/(2-o-a):c/(o+a);switch(o){case n:t=(r-i)/c+(r<i?6:0);break;case r:t=(i-n)/c+2;break;default:t=(n-r)/c+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:s,alpha:e.alpha}:{hue:t,saturation:l,lightness:s}}(O(e))}var j=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function E(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function S(e){return E(Math.round(255*e))}function C(e,t,n){return j("#"+S(e)+S(t)+S(n))}function _(e,t,n){return f(e,t,n,C)}function P(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return _(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return _(e.hue,e.saturation,e.lightness);throw new l(1)}function A(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?_(e,t,n):"rgba("+f(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?_(e.hue,e.saturation,e.lightness):"rgba("+f(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new l(2)}function D(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return j("#"+E(e)+E(t)+E(n));if("object"==typeof e&&void 0===t&&void 0===n)return j("#"+E(e.red)+E(e.green)+E(e.blue));throw new l(6)}function T(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var i=O(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?D(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?D(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new l(7)}function I(e){if("object"!=typeof e)throw new l(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return T(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return D(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return A(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return P(e);throw new l(8)}function R(e){return function e(t,n,r){return function(){var i=r.concat(Array.prototype.slice.call(arguments));return i.length>=n?t.apply(this,i):e(t,n,i)}}(e,e.length,[])}function L(e,t,n){return Math.max(e,Math.min(t,n))}function N(e,t){if("transparent"===t)return t;var n=k(t);return I(r({},n,{lightness:L(0,1,n.lightness-parseFloat(e))}))}var F=R(N);function M(e){if("transparent"===e)return 0;var t=O(e),n=Object.keys(t).map((function(e){var n=t[e]/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)})),r=n[0],i=n[1],o=n[2];return parseFloat((.2126*r+.7152*i+.0722*o).toFixed(3))}function B(e,t){var n=M(e),r=M(t);return parseFloat((n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)).toFixed(2))}function z(e){if("transparent"===e)return e;var t=O(e);return I(r({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))}function U(e,t){if("transparent"===t)return t;var n=k(t);return I(r({},n,{lightness:L(0,1,n.lightness+parseFloat(e))}))}var $=R(U);function V(e,t,n,r){void 0===t&&(t="#000"),void 0===n&&(n="#fff"),void 0===r&&(r=!0);var i=M(e)>.179,o=i?t:n;return!r||B(e,o)>=4.5?o:i?"#000":"#fff"}function q(e,t){if("transparent"===t)return t;var n=O(t);return T(r({},n,{alpha:L(0,1,+(100*("number"==typeof n.alpha?n.alpha:1)-100*parseFloat(e)).toFixed(2)/100)}))}var H=R(q)},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r={enum:"Enum",enumSingleValue:"Value",enumArray:"Items",default:"Default",deprecated:"Deprecated",example:"Example",examples:"Examples",recursive:"Recursive",arrayOf:"Array of ",webhook:"Event",const:"Value",authorizations:"Security",tryItBody:"Body",tryItParameters:"Parameters",tryItAuth:"Security",tryItAuthBasicUsername:"Username",tryItAuthBasicPassword:"Password",download:"Download",downloadSpecification:"Download OpenAPI specification",request:"Request",responses:"Responses",callbackResponses:"Callback responses",callbacks:"Callbacks",requestSamples:"Request samples",responseSamples:"Response samples"};function i(e){Object.assign(r,e)}function o(e,t){var n=r[e];return void 0!==t?n[t]:n}},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n(66),i=n.n(r);function o(e){return e.startsWith("/")||(e="/"+e),e.endsWith("/")&&(e=e.slice(0,-1)),e}function a(e,t){return!(!e||!t)&&e.split(";")[0]===t.split(";")[0]}function s(e){if(e)return e.split(";")[0]}function c(e){var t=new RegExp("%7B","g"),n=new RegExp("%7D","g");return e.replace(t,"{").replace(n,"}").replace("///","//")}function l(e,t){if(e.length){var n=e.map((function(e,n){return i()(e,t[n]||{})}));return t.length>e.length?n.concat(t.slice(e.length)):n}return t}},function(e,t,n){"use strict";n.d(t,"g",(function(){return c.a})),n.d(t,"k",(function(){return l.a})),n.d(t,"f",(function(){return u.a})),n.d(t,"j",(function(){return p.a})),n.d(t,"d",(function(){return f.a})),n.d(t,"c",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"i",(function(){return x})),n.d(t,"h",(function(){return w})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return E}));var r,i,o,a,s,c=n(84),l=(n(236),n(104)),u=n(40),p=n(85),f=n(237),d=n(1),h=n(2),m=n(244),v=Object(h.e)(u.a)(r||(r=Object(d.f)(["\n ",";\n\n cursor: default;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n"],["\n ",";\n\n cursor: default;\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n"])),m.a),g=n(6),b=n(58),y=Object(h.e)(c.a)(i||(i=Object(d.f)(["\n border: 1px solid ",";\n background: #ffffff;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n > "," {\n padding: ","px;\n font-size: 18px;\n line-height: 18px;\n font-weight: ",";\n\n "," {\n margin-right: 8px;\n color: ",";\n }\n\n "," {\n fill: ",";\n }\n }\n\n "," {\n padding: ","px;\n }\n\n > "," + "," {\n padding-top: 1px; /* to prevent border overflow */\n }\n\n "," {\n > "," > div:first-child > & {\n margin-top: 0;\n }\n }\n"],["\n border: 1px solid ",";\n background: #ffffff;\n\n &:not(:last-child) {\n margin-bottom: 20px;\n }\n\n > "," {\n padding: ","px;\n font-size: 18px;\n line-height: 18px;\n font-weight: ",";\n\n "," {\n margin-right: 8px;\n color: ",";\n }\n\n "," {\n fill: ",";\n }\n }\n\n "," {\n padding: ","px;\n }\n\n > "," + "," {\n padding-top: 1px; /* to prevent border overflow */\n }\n\n "," {\n > "," > div:first-child > & {\n margin-top: 0;\n }\n }\n"])),(function(e){return e.theme.colors.border.light}),u.a,(function(e){return 4*e.theme.spacing.unit}),(function(e){return e.theme.typography.fontWeightBold}),p.a,(function(e){return e.theme.colors.text.primary}),g.s,(function(e){return e.theme.colors.text.primary}),b.a,(function(e){return 4*e.theme.spacing.unit}),u.a,b.a,g.f,b.a),x=Object(h.e)(y)(o||(o=Object(d.f)(["\n "," {\n overflow-x: auto;\n }\n"],["\n "," {\n overflow-x: auto;\n }\n"])),b.a),w=Object(h.e)(c.a)(a||(a=Object(d.f)(["\n border: 1px solid ",";\n background-color: ",";\n\n > "," {\n padding: 10px 20px;\n font-size: 14px;\n line-height: 20px;\n\n "," {\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n color: ",";\n\n span + span {\n margin-left: 4px;\n }\n }\n\n "," {\n flex: 1;\n max-width: 100%;\n justify-content: space-between;\n }\n\n "," {\n fill: ",";\n }\n }\n\n "," {\n &:first-child {\n margin-top: 0;\n }\n }\n"],["\n border: 1px solid ",";\n background-color: ",";\n\n > "," {\n padding: 10px 20px;\n font-size: 14px;\n line-height: 20px;\n\n "," {\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n color: ",";\n\n span + span {\n margin-left: 4px;\n }\n }\n\n "," {\n flex: 1;\n max-width: 100%;\n justify-content: space-between;\n }\n\n "," {\n fill: ",";\n }\n }\n\n "," {\n &:first-child {\n margin-top: 0;\n }\n }\n"])),(function(e){var t=e.theme,n=e.type;return t.colors.responses[n].borderColor}),(function(e){var t=e.theme,n=e.type;return t.colors.responses[n].backgroundColor}),u.a,p.a,(function(e){var t=e.theme,n=e.type;return t.colors.responses[n].color||t.colors.text.primary}),l.a,g.s,(function(e){return e.theme.colors.text.primary}),g.f),O=n(44),k=Object(h.e)(c.a)(s||(s=Object(d.f)(["\n background: ",";\n\n > "," {\n padding: 10px 20px;\n font-size: 14px;\n line-height: 20px;\n\n "," {\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ",";\n }\n\n "," {\n flex: 1;\n max-width: 100%;\n justify-content: space-between;\n }\n\n "," {\n fill: ",";\n }\n }\n"],["\n background: ",";\n\n > "," {\n padding: 10px 20px;\n font-size: 14px;\n line-height: 20px;\n\n "," {\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n color: ",";\n }\n\n "," {\n flex: 1;\n max-width: 100%;\n justify-content: space-between;\n }\n\n "," {\n fill: ",";\n }\n }\n"])),(function(e){return e.theme.colors.secondary.light}),u.a,p.a,(function(e){return e.theme.colors.text.primary}),l.a,O.c,(function(e){return e.theme.colors.text.primary})),j=n(0),E=function(e){var t=e.initialActiveIdx,n=e.children,r=Object(j.useState)(t),i=r[0],o=r[1],a=j.useState(!1),s=a[0],c=a[1];j.useEffect((function(){setTimeout((function(){c(!0)}),500)}),[]),j.useEffect((function(){s||o(t)}),[t,s]);var l=j.useCallback((function(e){o(e)}),[o]),u=j.Children.toArray(n).filter(j.isValidElement);return j.createElement(j.Fragment,null,j.Children.map(u,(function(e,t){return j.cloneElement(e,{key:t,collapsed:t!==i,onToggle:function(){return l(t)}})||null}))||null)}},function(e,t){e.exports=require("fs")},function(e,t,n){e.exports=n(960)},function(e,t,n){e.exports=n(956)},function(e,t){e.exports=require("url")},function(e,t,n){"use strict";var r=n(33),i=n(137).f,o=n(439),a=n(29),s=n(171),c=n(69),l=n(62),u=function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,p,f,d,h,m,v,g,b=e.target,y=e.global,x=e.stat,w=e.proto,O=y?r:x?r[b]:(r[b]||{}).prototype,k=y?a:a[b]||(a[b]={}),j=k.prototype;for(f in t)n=!o(y?f:b+(x?".":"#")+f,e.forced)&&O&&l(O,f),h=k[f],n&&(m=e.noTargetGet?(g=i(O,f))&&g.value:O[f]),d=n&&m?m:t[f],n&&typeof h==typeof d||(v=e.bind&&n?s(d,r):e.wrap&&n?u(d):w&&"function"==typeof d?s(Function.call,d):d,(e.sham||d&&d.sham||h&&h.sham)&&c(v,"sham",!0),k[f]=v,w&&(l(a,p=b+"Prototype")||c(a,p,{}),a[p][f]=d,e.real&&j&&!j[f]&&c(j,f,d)))}},function(e,t){e.exports=require("util")},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return s}));var r=n(0),i=n(106),o=r.createContext(new i.a({})),a=o.Provider,s=o.Consumer},function(e,t,n){var r=n(436),i=n(441),o=n(829),a=n(449),s=n(836),c=n(846),l=n(851),u=n(308),p=n(338);function f(e,t){var n=r(e);if(i){var s=i(e);t&&(s=o(s).call(s,(function(t){return a(e,t).enumerable}))),n.push.apply(n,s)}return n}e.exports=function(e){for(var t=1;t<arguments.length;t++){var n,r=null!=arguments[t]?arguments[t]:{};if(t%2)s(n=f(Object(r),!0)).call(n,(function(t){p(e,t,r[t])}));else if(c)l(e,c(r));else{var i;s(i=f(Object(r))).call(i,(function(t){u(e,t,a(r,t))}))}}return e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return l.a})),n.d(t,"f",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"g",(function(){return v})),n.d(t,"d",(function(){return g}));var r,i,o,a,s=n(1),c=n(0),l=n(56),u=function(e){var t=e.text,n=Object(c.useState)("Copy"),r=n[0],i=n[1];return c.createElement(c.Fragment,null,c.createElement(l.a,{onClick:function(){return Object(s.b)(void 0,void 0,void 0,(function(){return Object(s.e)(this,(function(e){switch(e.label){case 0:return[4,navigator.clipboard.writeText(t)];case 1:return e.sent(),i("Copied!"),setTimeout((function(){return i("Copy")}),1500),[2]}}))}))}},r))},p=n(2),f=p.e.span(r||(r=Object(s.f)(["\n display: inline-block;\n color: ",";\n text-transform: uppercase;\n text-align: center;\n font-family: ",";\n border-radius: ",";\n background-color: ",";\n min-width: 48px;\n padding: 0 8px;\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n"],["\n display: inline-block;\n color: ",";\n text-transform: uppercase;\n text-align: center;\n font-family: ",";\n border-radius: ",";\n background-color: ",";\n min-width: 48px;\n padding: 0 8px;\n font-size: ",";\n line-height: ",";\n font-weight: ",";\n"])),(function(e){return e.theme.components.httpBadges.color}),(function(e){return e.theme.components.httpBadges.fontFamily}),(function(e){return e.theme.components.httpBadges.borderRadius}),(function(e){var t=e.type;return e.theme.colors.http[t]||"#707070"}),(function(e){return e.theme.components.httpBadges.sizes.medium.fontSize}),(function(e){return e.theme.components.httpBadges.sizes.medium.lineHeight}),(function(e){return e.theme.components.httpBadges.fontWeight})),d=n(64),h=function(e){var t,n=e.children,r=function(){d.a.selectElement(t)};return c.createElement("div",{ref:function(e){return t=e},onClick:r,onFocus:r,tabIndex:0,role:"button"},n)},m=p.e.div(i||(i=Object(s.f)(["\n font-size: 12px;\n min-height: 100px;\n padding: 20px 0;\n ","\n"],["\n font-size: 12px;\n min-height: 100px;\n padding: 20px 0;\n ","\n"])),(function(e){var t=e.theme;return Object(p.h)({color:t.colors.error.main,fontFamily:t.typography.code.fontFamily})})),v=p.e.div(o||(o=Object(s.f)(["\n font-size: 12px;\n padding-bottom: 10px;\n ","\n"],["\n font-size: 12px;\n padding-bottom: 10px;\n ","\n"])),(function(e){var t=e.theme;return Object(p.h)({color:t.colors.warning.main,fontFamily:t.typography.code.fontFamily})})),g=p.e.div(a||(a=Object(s.f)(["\n background-color: ",";\n color: ",";\n font-family: ",";\n margin-bottom: 0;\n height: 30px;\n padding: 7px 10px;\n font-size: 14px;\n line-height: 16px;\n border-radius: ",";\n"],["\n background-color: ",";\n color: ",";\n font-family: ",";\n margin-bottom: 0;\n height: 30px;\n padding: 7px 10px;\n font-size: 14px;\n line-height: 16px;\n border-radius: ",";\n"])),(function(e){return e.theme.rightPanel.panelControlsBackgroundColor}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.shape.borderRadius}))},function(e,t,n){"use strict";var r,i;n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"}(r||(r={})),function(e){e.CodeSampleLanguageSwitched="CodeSampleLanguageSwitched",e.CodeSampleCopied="CodeSampleCopied",e.OperationServerExpanded="OperationServerExpanded",e.PanelToggle="PanelToggle",e.TryItOpen="TryItOpen",e.TryItSent="TryItSent"}(i||(i={}))},function(e,t,n){var r=n(223),i=n(920);function o(t){return"function"==typeof r&&"symbol"==typeof i?(e.exports=o=function(e){return typeof e},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e){return e&&"function"==typeof r&&e.constructor===r&&e!==r.prototype?"symbol":typeof e},e.exports.default=e.exports,e.exports.__esModule=!0),o(t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return O}));var r=n(1),i=n(0),o=n.n(i),a=n(51),s=n(2),c=n(7),l=n(3),u=Object(s.d)(g||(g=Object(r.f)(["\n border: none;\n outline: none;\n padding: 8px;\n border-radius: ",";\n background-color: ",";\n ","\n\n &::placeholder {\n opacity: 0.6;\n color: ",";\n }\n\n &:-webkit-autofill {\n background-color: ",";\n }\n"],["\n border: none;\n outline: none;\n padding: 8px;\n border-radius: ",";\n background-color: ",";\n ","\n\n &::placeholder {\n opacity: 0.6;\n color: ",";\n }\n\n &:-webkit-autofill {\n background-color: ",";\n }\n"])),(function(e){return e.theme.shape.borderRadius}),(function(e){return e.theme.rightPanel.panelControlsBackgroundColor}),(function(e){var t=e.theme;return Object(s.h)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.rightPanel.panelBackgroundColor})),p=s.e.div(b||(b=Object(r.f)(["\n display: ",";\n ","\n"],["\n display: ",";\n ","\n"])),(function(e){return"hidden"===e.type?"none":"inline-block"}),(function(e){return e.fullWidth?"width: 100%;":""})),f=s.e.div(y||(y=Object(r.f)(["\n position: relative;\n"],["\n position: relative;\n"]))),d=s.e.input(x||(x=Object(r.f)(["\n ","\n ",";\n ","\n"],["\n ","\n ",";\n ","\n"])),u,(function(e){return"password"===e.inputType?"padding-right: 40px;":""}),(function(e){return e.fullWidth?"width: 100%;":""})),h=s.e.span(w||(w=Object(r.f)(["\n position: absolute;\n right: 0;\n line-height: normal;\n\n font-size: 0.8em;\n padding: calc(8px / 0.8);\n cursor: pointer;\n text-align: center;\n ","\n"],["\n position: absolute;\n right: 0;\n line-height: normal;\n\n font-size: 0.8em;\n padding: calc(8px / 0.8);\n cursor: pointer;\n text-align: center;\n ","\n"])),(function(e){var t=e.theme;return Object(s.h)({color:t.rightPanel.textColor})}));var m=o.a.forwardRef((function(e,t){var n=e.fullWidth,i=e.errorMessage,a=e.type,s=o.a.useState("password"===a),l=s[0],u=s[1],m=o.a.useCallback((function(){u(!l)}),[l]);return o.a.createElement(p,{fullWidth:n,type:a},o.a.createElement(f,null,o.a.createElement(d,Object(r.a)({},e,{type:l?"password":"text",inputType:a,ref:t})),"password"===a&&o.a.createElement(h,{onClick:m}," ",l?"show":"hide"," ")),i?o.a.createElement(c.b,null,i):null)}));function v(e){var t=Object(a.c)(Object(r.a)({fieldType:"text"},e)),n=t.userProps,i=t.render,s=t.fieldState,c=t.informed;return i(o.a.createElement(m,Object(r.a)({},n,c,{errorMessage:s.error})))}var g,b,y,x,w,O=Object(a.b)((function(e){var t=e.initValue,n=e.options,r=e.fieldApi,i=e.fieldState,a=n.map((function(e,t){return{value:e.title||e.value,idx:t,origValue:e.value}})),s=a.find((function(e){return e.origValue===t})),u=o.a.useState(null==s?void 0:s.value),f=u[0],d=u[1];o.a.useEffect((function(){t&&r.setValue(t)}),[]);var h=o.a.useCallback((function(e){r.setValue(a[e.idx].origValue),d(a[e.idx].value)}),[a]);return o.a.createElement(p,{fullWidth:!0},o.a.createElement(l.f,{fullWidth:!0,variant:"dark",value:f,options:a,onChange:h}),i.error?o.a.createElement(c.b,null,i.error):null)}))},function(e,t,n){var r,i,o;i=[t],void 0===(o="function"==typeof(r=function(e){"use strict";e.__esModule=!0;var t={},n=Object.prototype.hasOwnProperty,r=function(e){var r=arguments.length<=1||void 0===arguments[1]?t:arguments[1],i=r.cache||{};return function(){for(var t=arguments.length,o=Array(t),a=0;a<t;a++)o[a]=arguments[a];var s=String(o[0]);return!1===r.caseSensitive&&(s=s.toLowerCase()),n.call(i,s)?i[s]:i[s]=e.apply(this,o)}},i=function(e,t){if("function"==typeof t){var n=e;e=t,t=n}var r=t&&t.delay||t||0,i=void 0,o=void 0,a=void 0;return function(){for(var t=arguments.length,n=Array(t),s=0;s<t;s++)n[s]=arguments[s];i=n,o=this,a||(a=setTimeout((function(){e.apply(o,i),i=o=a=null}),r))}},o=function(e,t,n){var r=n.value;return{configurable:!0,get:function(){var e=r.bind(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e}}},a=l(r),s=l(i),c=l((function(e,t){return e.bind(t)}),(function(){return o}));function l(e,t){var n,r=(t=t||e.decorate||(n=e,function(e){return"function"==typeof e?n(e):function(t,r,i){i.value=n(i.value,e,t,r,i)}}))();return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];var a=i.length;return(a<2?t:a>2?r:e).apply(void 0,i)}}e.memoize=a,e.debounce=s,e.bind=c,e.default={memoize:a,debounce:s,bind:c}})?r.apply(t,i):r)||(e.exports=o)},function(e,t){e.exports={}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(29),i=n(62),o=n(304),a=n(81).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},function(e,t,n){e.exports=n(968)},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t,n){var r=n(33),i=n(300),o=n(62),a=n(215),s=n(298),c=n(443),l=i("wks"),u=r.Symbol,p=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=p("Symbol."+e)),l[e]}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"c",(function(){return S})),n.d(t,"e",(function(){return P})),n.d(t,"g",(function(){return A})),n.d(t,"f",(function(){return D})),n.d(t,"a",(function(){return T})),n.d(t,"d",(function(){return I})),n.d(t,"b",(function(){return R}));var r,i,o,a,s,c,l,u,p,f,d,h,m,v,g,b,y,x,w,O,k=n(1),j=n(2),E=n(233),S=j.e.caption(d||(d=Object(k.f)(["\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})),C=Object(j.d)(h||(h=Object(k.f)(["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"],["\n repeating-linear-gradient(0deg,\n ",",\n "," 3px,\n transparent 3px,\n transparent 5px,\n "," 5px);\n"])),(function(e){return e.theme.schema.linesColor}),(function(e){return e.theme.schema.linesColor}),(function(e){return e.theme.schema.linesColor})),_=j.e.td(m||(m=Object(k.f)(["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 2px;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"],["\n box-sizing: border-box;\n position: relative;\n padding: 10px;\n background-image: ",";\n background-repeat: no-repeat;\n background-size: 1px 100%;\n\n ","\n\n tr:first-of-type > & {\n background-image: ",";\n background-position: 0 10px;\n padding-top: 2px;\n }\n\n tr.last > & {\n background-image: ",";\n padding-bottom: 0;\n ",";\n }\n\n tr.last + tr > & {\n background: none;\n }\n\n tr.last:first-child > & {\n background-image: ",";\n ",";\n }\n"])),C,Object(j.h)({display:(r={},r[j.b]="block",r.small="table-cell",r),overflow:(i={},i[j.b]="hidden",i.small="initial",i),padding:(o={},o[j.b]="0 20px",o.small="12px 10px",o),marginBottom:(a={},a[j.b]="2px",a.small=0,a)}),C,C,Object(j.h)({backgroundSize:(s={},s[j.b]="0.9px 100%",s.small="0.9px 22px",s)}),C,Object(j.h)({backgroundSize:(c={},c[j.b]="0.9px 100%",c.small="0.9px 20px",c),backgroundPosition:(l={},l[j.b]="0 20px",l.small="0 0",l)})),P=Object(j.e)(_)(v||(v=Object(k.f)(["\n padding: 0;\n"],["\n padding: 0;\n"]))),A=Object(j.e)(_)(g||(g=Object(k.f)(["\n vertical-align: top;\n line-height: 20px;\n white-space: nowrap;\n font-size: 14px;\n ","\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: 14px;\n ","\n\n &.deprecated {\n ",";\n }\n\n ",";\n\n ",";\n"])),(function(e){var t=e.theme;return Object(j.h)({fontFamily:t.typography.fieldName.fontFamily})}),E.a,(function(e){return"field"!==e.kind?"font-style: italic":""}),Object(j.f)("PropertyNameCell")),D=j.e.td(b||(b=Object(k.f)(["\n box-sizing: border-box;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"],["\n box-sizing: border-box;\n\n tr.expanded & {\n border-bottom: none;\n }\n\n tr.last > & {\n border: none;\n background-position: top left;\n background-repeat: no-repeat;\n background-size: 1px 100%;\n padding-bottom: 0;\n\n /* workaround for discriminator dropdown oveflowing scrolling container,\n fixes the issue for the last item in the schema only */\n & > div > div.dropdown > .dropdown-selector-content {\n position: relative;\n }\n }\n\n tr:first-of-type > & {\n padding-top: 0;\n }\n\n ","\n\n ",";\n"])),(function(e){var t,n,r,i=e.theme;return Object(j.h)({borderBottom:(t={},t[j.b]="none",t.small="1px solid "+i.colors.border.light,t),borderLeft:(n={},n[j.b]="1px solid "+i.schema.linesColor,n.small="none",n),padding:(r={},r[j.b]="0 20px",r.small="10px 0",r),width:i.schema.defaultDetailsWidth,minWidth:"200px"})}),Object(j.f)("PropertyDetailsCell")),T=(j.e.span(y||(y=Object(k.f)(["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"],["\n margin-right: 10px;\n ","\n\n &::before {\n content: '';\n display: inline-block;\n vertical-align: middle;\n width: 10px;\n height: 1px;\n background: ",";\n }\n\n ","\n\n ",";\n"])),(function(e){var t=e.theme;return Object(j.h)({color:t.schema.linesColor,fontFamily:t.typography.code.fontFamily})}),(function(e){return e.theme.schema.linesColor}),(function(e){var t,n,r=e.theme;return Object(j.h)({width:r.schema.defaultDetailsWidth,borderLeft:(t={},t[j.b]="1px dashed "+r.schema.linesColor,t.small="none",t),padding:(n={},n[j.b]="5px 10px",n.small="10px",n)})}),Object(j.f)("PropertyDetailsCell")),j.e.div(x||(x=Object(k.f)(["\n padding: ",";\n"],["\n padding: ",";\n"])),(function(e){return e.theme.schema.nestingSpacing}))),I=j.e.div(w||(w=Object(k.f)(["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"],["\n display: block;\n overflow-x: auto;\n padding: 5px; /* hack to show overflown anchor icons */\n margin: -5px;\n"]))),R=j.e.table(O||(O=Object(k.f)(["\n border-collapse: separate;\n border-radius: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\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: ",";\n width: 100%;\n ","\n > tr, > tbody > tr {\n ","\n }\n\n > tr {\n vertical-align: middle;\n }\n\n ","\n\n &\n ",",\n &\n ","\n ","\n ",",\n &\n ","\n ","\n ","\n ","\n "," {\n margin-left: ",";\n margin-bottom: ",";\n background: ",";\n border-radius: ",";\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.shape.borderRadius}),(function(e){var t,n=e.theme;return Object(j.h)({fontSize:n.typography.fontSize,display:(t={},t[j.b]="block",t.small="table",t)})}),Object(j.h)({display:(u={},u[j.b]="block",u.small="table-row",u),marginBottom:(p={},p[j.b]="2px",p.small=0,p),borderSpacing:(f={},f[j.b]=0,f.small="0 2px",f)}),(function(e){return"\n @media screen and (max-width: "+e.theme.breakpoints[0]+") and (-ms-high-contrast:none) {\n td {\n float: left;\n width: 100%;\n }\n }\n "}),T,T,T,T,T,T,T,T,T,(function(e){return e.theme.schema.nestingSpacing}),(function(e){return e.theme.schema.nestingSpacing}),(function(e){return e.theme.schema.nestedBackground}),(function(e){return e.theme.components.panels.borderRadius}),T,T,T,T,T,T,T,T,T,T,T,T)},function(e,t,n){"use strict";var r=n(161),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t){e.exports=require("stream")},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i=n(1),o=n(2).e.div(r||(r=Object(i.f)(["\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n white-space: nowrap;\n cursor: pointer;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n\n pointer-events: ",";\n\n a {\n pointer-events: all;\n }\n"],["\n position: relative;\n z-index: 1;\n display: flex;\n align-items: center;\n justify-content: space-between;\n white-space: nowrap;\n cursor: pointer;\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n\n pointer-events: ",";\n\n a {\n pointer-events: all;\n }\n"])),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){var t=e.theme;return e.isExpanded?"0":t.components.panels.borderRadius}),(function(e){var t=e.theme;return e.isExpanded?"0":t.components.panels.borderRadius}),(function(e){return e.disabled?"none":"auto"}))},function(e,t,n){e.exports=n(1052)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(168),i=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],o=["scalar","sequence","mapping"];var a=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===i.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===o.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};t.Type=a},function(e,t,n){"use strict";n.d(t,"c",(function(){return x})),n.d(t,"b",(function(){return y})),n.d(t,"d",(function(){return S})),n.d(t,"a",(function(){return _}));var r=n(4),i=n(0),o=n.n(i);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.n)throw new Error("mobx-react-lite@3 requires mobx at least version 6 to be available");var a=n(374);function s(e){e()}var c=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},l=[];function u(e){return Object(r.j)(e)}var p="undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry;function f(e){return{reaction:e,mounted:!1,changedBeforeMount:!1,cleanAt:Date.now()+d}}var d=1e4;var h=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var m=p?function(e){var t=new Map,n=1,r=new e((function(e){var n=t.get(e);n&&(n.reaction.dispose(),t.delete(e))}));return{addReactionToTrack:function(e,i,o){var a=n++;return r.register(o,a,e),e.current=f(i),e.current.finalizationRegistryCleanupToken=a,t.set(a,e.current),e.current},recordReactionAsCommitted:function(e){r.unregister(e),e.current&&e.current.finalizationRegistryCleanupToken&&t.delete(e.current.finalizationRegistryCleanupToken)},forceCleanupTimerToRunNowForTests:function(){},resetCleanupScheduleForTests:function(){}}}(p):function(){var e,t=new Set;function n(){void 0===e&&(e=setTimeout(r,1e4))}function r(){e=void 0;var r=Date.now();t.forEach((function(e){var n=e.current;n&&r>=n.cleanAt&&(n.reaction.dispose(),e.current=null,t.delete(e))})),t.size>0&&n()}return{addReactionToTrack:function(e,r,i){var o;return e.current=f(r),o=e,t.add(o),n(),e.current},recordReactionAsCommitted:function(e){t.delete(e)},forceCleanupTimerToRunNowForTests:function(){e&&(clearTimeout(e),r())},resetCleanupScheduleForTests:function(){var n,r;if(t.size>0){try{for(var i=h(t),o=i.next();!o.done;o=i.next()){var a=o.value,s=a.current;s&&(s.reaction.dispose(),a.current=null)}}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.clear()}e&&(clearTimeout(e),e=void 0)}}}(),v=m.addReactionToTrack,g=m.recordReactionAsCommitted,b=(m.resetCleanupScheduleForTests,m.forceCleanupTimerToRunNowForTests,!1);function y(e){b=e}function x(){return b}var w=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a};function O(e){return"observer"+e}var k=function(){};function j(e,t){if(void 0===t&&(t="observed"),x())return e();var n,a=w(o.a.useState(new k),1)[0],s=(n=c(Object(i.useState)(0),2)[1],Object(i.useCallback)((function(){n((function(e){return e+1}))}),l)),p=o.a.useRef(null);if(!p.current)var f=new r.b(O(t),(function(){d.mounted?s():d.changedBeforeMount=!0})),d=v(p,f,a);var h,m,b=p.current.reaction;if(o.a.useDebugValue(b,u),o.a.useEffect((function(){return g(p),p.current?(p.current.mounted=!0,p.current.changedBeforeMount&&(p.current.changedBeforeMount=!1,s())):(p.current={reaction:new r.b(O(t),(function(){s()})),mounted:!0,changedBeforeMount:!1,cleanAt:1/0},s()),function(){p.current.reaction.dispose(),p.current=null}}),[]),b.track((function(){try{h=e()}catch(e){m=e}})),m)throw m;return h}var E=function(){return(E=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function S(e,t){if(x())return e;var n,r,o,a=E({forwardRef:!1},t),s=e.displayName||e.name,c=function(t,n){return j((function(){return e(t,n)}),s)};return c.displayName=s,n=a.forwardRef?Object(i.memo)(Object(i.forwardRef)(c)):Object(i.memo)(c),r=e,o=n,Object.keys(r).forEach((function(e){C[e]||Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=s,n}var C={$$typeof:!0,render:!0,compare:!0,type:!0};function _(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:j(r)}_.displayName="Observer";var P;(P=a.unstable_batchedUpdates)||(P=s),Object(r.h)({reactionScheduler:P})},function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f}));var r=n(1),i=n(0),o=n(2),a={right:"0deg",down:"90deg",left:"180deg",up:"270deg"},s=Object(o.e)((function(e){var t=e.className,n=e.style;return i.createElement("svg",{className:t,style:n,viewBox:"0 0 4.25 7",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},i.createElement("path",{d:"M0.205025 1.19467L3.00503 3.99467C3.27839 4.26804 3.72161 4.26804 3.99497 3.99467C4.26834 3.7213 4.26834 3.27809 3.99497 3.00472L1.19497 0.20472C0.921608 -0.0686469 0.478392 -0.0686469 0.205025 0.20472C-0.0683418 0.478087 -0.0683417 0.921303 0.205025 1.19467Z"}),i.createElement("path",{d:"M3.00503 3.00501L0.205025 5.80501C-0.0683417 6.07838 -0.0683417 6.5216 0.205025 6.79496C0.478392 7.06833 0.921608 7.06833 1.19497 6.79496L3.99497 3.99496C4.26834 3.7216 4.26834 3.27838 3.99497 3.00501C3.72161 2.73165 3.27839 2.73165 3.00503 3.00501Z"}))}))(l||(l=Object(r.f)(["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n transform: rotateZ(",");\n fill: ",";\n"],["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n transform: rotateZ(",");\n fill: ",";\n"])),(function(e){return e.size||"9px"}),(function(e){return e.size||"9px"}),(function(e){return e.float||""}),(function(e){return a[e.direction||"down"]}),(function(e){var t=e.color,n=e.theme;return t&&n.colors.responses[t]&&n.colors.responses[t].color||t}));var c=Object(o.e)((function(e){var t=e.className;return i.createElement("svg",{className:t,version:"1.1",xmlns:"http://www.w3.org/2000/svg",width:"122.879px",height:"122.879px",viewBox:"0 0 122.879 122.879"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M61.44,0c33.933,0,61.439,27.507,61.439,61.439 s-27.506,61.439-61.439,61.439C27.507,122.879,0,95.372,0,61.439S27.507,0,61.44,0L61.44,0z M73.451,39.151 c2.75-2.793,7.221-2.805,9.986-0.027c2.764,2.776,2.775,7.292,0.027,10.083L71.4,61.445l12.076,12.249 c2.729,2.77,2.689,7.257-0.08,10.022c-2.773,2.765-7.23,2.758-9.955-0.013L61.446,71.54L49.428,83.728 c-2.75,2.793-7.22,2.805-9.986,0.027c-2.763-2.776-2.776-7.293-0.027-10.084L51.48,61.434L39.403,49.185 c-2.728-2.769-2.689-7.256,0.082-10.022c2.772-2.765,7.229-2.758,9.953,0.013l11.997,12.165L73.451,39.151L73.451,39.151z"}))}))(u||(u=Object(r.f)(["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n path {\n fill: ",";\n }\n"],["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n path {\n fill: ",";\n }\n"])),(function(e){return e.size||"9px"}),(function(e){return e.size||"9px"}),(function(e){return e.float||""}),(function(e){var t=e.color,n=e.theme;return t&&n.colors.responses[t]&&n.colors.responses[t].color||t}));var l,u,p,f=Object(o.e)((function(e){var t=e.className;return i.createElement("svg",{className:t,version:"1.1",viewBox:"0 0 100 100"},i.createElement("g",{display:"none"},i.createElement("path",{display:"inline",d:"M94.5 49.7c0-7.8-5-14.5-12-16.9C78 19.1 65.2 9.3 50 9.3c-15.1 0-27.9 9.9-32.4 23.5C10.6 35.1 5.5 41.8 5.5 49.7c0 9.9 8 17.9 17.9 17.9V34.9c3.6-11.3 14.2-19.4 26.6-19.4 12.4 0 22.9 8.1 26.6 19.2v30.7c-1.3 2.7-8.8 17.6-18.7 18 -0.8-2.1-2.8-3.6-5.1-3.6 -3 0-5.5 2.5-5.5 5.5 0 3 2.5 5.5 5.5 5.5 2.4 0 4.4-1.5 5.1-3.6 11.8-0.4 20-16 21.9-19.8C88.2 65.7 94.5 58.4 94.5 49.7z"})),i.createElement("g",{display:"none"},i.createElement("path",{display:"inline",d:"M63.3 12.4V8.7c0-1.2-1.2-2.2-2.7-2.2 -1.5 0-2.7 1-2.7 2.2v1.9c-0.8-0.1-1.5-0.2-2.3-0.2H44.4c-9.2 0-16.7 7.6-16.7 16.9v49.3c0 9.3 7.5 16.9 16.7 16.9h11.1c9.2 0 16.7-7.6 16.7-16.9V27.3C72.3 20.8 68.6 15.2 63.3 12.4zM56.6 84.9H43.3v-4.2h13.4V84.9zM65.2 67.4c-0.2 0.2-4.7 5.4-15.4 5.4 -10.5 0-16.4-5-16.7-5.2 -0.7-0.6-0.8-1.8-0.2-2.5 0.6-0.7 1.8-0.8 2.5-0.2 0 0 5.2 4.3 14.3 4.3 8.9 0 12.5-4 12.7-4.1 0.6-0.7 1.8-0.8 2.5-0.2C65.8 65.5 65.9 66.6 65.2 67.4zM66.4 51.6c0 3.1-2.4 5.6-5.3 5.6H39.2c-3 0-5.3-2.5-5.3-5.6v-25c0-3.1 2.4-5.6 5.3-5.6h21.9c3 0 5.3 2.5 5.3 5.6V51.6z"})),i.createElement("g",{display:"none"},i.createElement("path",{display:"inline",d:"M63.4 9.7H36.6c-5.4 0-9.8 4.5-9.8 10v60.7c0 5.5 4.4 10 9.8 10h26.8c5.4 0 9.8-4.5 9.8-10V19.7C73.2 14.2 68.8 9.7 63.4 9.7zM50 85c-2.6 0-4.8-2.1-4.8-4.8s2.1-4.8 4.8-4.8c2.6 0 4.8 2.1 4.8 4.8S52.6 85 50 85zM67.1 71.5H32.9V20.8h34.3V71.5z"})),i.createElement("path",{d:"M16.1 45.4V92.5h67.8V45.4H16.1zM53.9 70.9v12.4h-7.4V70.9c-3.2-1.4-5.4-4.6-5.4-8.2 0-5 4-9 9-9 5 0 9 4.1 9 9C59.3 66.3 57.1 69.5 53.9 70.9zM37.2 39.8c-0.3 0-1.4-2.9-1.4-2.9 -0.5-1.5-0.7-3-0.7-4.6 0-8.4 6.8-15.2 15.2-15.2 8.4 0 15.2 6.8 15.2 15.2 0 1.6-0.2 3.1-0.7 4.6l0 0 0 0c0 0-1.1 2.9-1.4 2.9 -0.3 0 10.4 0 10.6 0l0 0c0.8-2.4 1.2-4.9 1.2-7.5C75.1 18.6 64 7.5 50.3 7.5c-13.7 0-24.8 11.1-24.8 24.8 0 2.5 0.4 5.1 1.2 7.5C26.6 39.8 37.5 39.8 37.2 39.8z"}))}))(p||(p=Object(r.f)(["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n path {\n fill: ",";\n }\n"],["\n height: ",";\n width: ",";\n vertical-align: middle;\n float: ",";\n transition: transform 0.2s ease-out;\n path {\n fill: ",";\n }\n"])),(function(e){return e.size||"9px"}),(function(e){return e.size||"9px"}),(function(e){return e.float||""}),(function(e){var t=e.color,n=e.theme;return t&&n.colors.responses[t]&&n.colors.responses[t].color||t}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return X})),n.d(t,"a",(function(){return Z})),n.d(t,"c",(function(){return ee})),n.d(t,"b",(function(){return te}));var r,i,o,a=n(1),s=n(0),c=n(49),l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};(o=r||(r={})).Arrow="Arrow",o.DropdownSelector="DropdownSelector",o.DropdownWrapper="DropdownWrapper",o.SelectorSearch="SelectorSearch",o.SelectedValue="SelectedValue",o.Placeholder="Placeholder",o.GroupContainer="GroupContainer",o.GroupDivider="GroupDivider",o.GroupHeading="GroupHeading",o.OptionContainer="OptionContainer",o.OptionItem="OptionItem",function(e){e[e.DOWN_ARROW=40]="DOWN_ARROW",e[e.ENTER=13]="ENTER",e[e.ESCAPE=27]="ESCAPE",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.PAGE_UP=33]="PAGE_UP",e[e.TAB=9]="TAB",e[e.UP_ARROW=38]="UP_ARROW",e[e.SPACE=32]="SPACE"}(i||(i={}));var u=[i.ESCAPE,i.UP_ARROW,i.DOWN_ARROW,i.PAGE_UP,i.PAGE_DOWN],p="#808080",f="#7C7C7C",d="#6e6d6d",h="#CECECE",m="#e0e0e0",v="#f5f5f5",g="#ededed",b="#0080bc";function y(e){return void 0!==e.groupOptions}var x=function(e,t){return y(t)?e.concat(t.groupOptions):e.concat(t)},w=function(e,t){return l(l({},e),{groupOptions:e.groupOptions.filter((function(e){return e.value.toLowerCase().includes(t)}))})};function O(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).map((function(e){return"string"==typeof e?e:e?Object.keys(e).filter((function(t){return e[t]})).join(" "):""})).join(" ")}var k=c.default.div((function(e){var t=e.width,n=e.height,r=e.disabled,i=e.open,o=e.dropdownFocused;return{backgroundColor:r?h:v,border:"2px solid "+(i||o?b:f),borderRadius:"7",cursor:r?"not-allowed":"pointer",display:"flex",flexDirection:"column",fontSize:"1em",height:n,position:"relative",width:t,"&:hover":{border:"2px solid "+(i||o?b:d)},"&:disabled":{backgroundColor:g,cursor:"unset"}}})),j=c.default.div((function(e){var t=e.searchable;return{alignItems:"center",boxSizing:"border-box",cursor:e.open&&t?"text":"inherit",display:"flex",height:"32px",padding:"0 11px",position:"relative",width:"100%",input:{backgroundColor:"inherit",border:"none",fontSize:"inherit",height:"30px",outline:"none",width:"100%"}}})),E=c.default.span((function(){return{bottom:0,left:"11px",position:"absolute",right:"25px",top:0}})),S={bottom:0,left:"11px",lineHeight:"30px",overflow:"hidden",position:"absolute",right:"25px",textOverflow:"ellipsis",top:0,whiteSpace:"nowrap"},C=c.default.span((function(e){return l({textAlign:e.centerText?"center":"left",color:e.value&&!e.open?"black":p},S)})),_=c.default.span((function(e){var t=e.centerText;return l({color:p,textAlign:t?"center":"left"},S)})),P=c.default.div((function(){return{alignItems:"center",bottom:0,color:p,display:"flex",position:"absolute",right:"10px",top:0}})),A=c.default.span((function(e){var t=e.openUp,n=e.maxContentHeight,r=e.open;return{backgroundColor:"#ffffff",border:"2px solid "+d,borderRadius:"4px",bottom:t?"105%":void 0,boxShadow:"0px "+(t?"-4px":"4px")+" 4px rgba(0, 0, 0, 0.25)",boxSizing:"border-box",color:"black",display:r?"block":"none",left:"0",listStyleType:"none",margin:"0",maxHeight:n||"175px",overflowX:"hidden",overflowY:"auto",padding:"2px 0",position:"absolute",top:t?void 0:"100%",width:"100%",zIndex:9999,".dropdown-selector-content--empty":{alignItems:"center",color:p,display:"flex",flexDirection:"column",justifyContent:"center",padding:"4px 0"},"&::-webkit-scrollbar":{width:"5px"},"&::-webkit-scrollbar-track":{background:"#ddd"},"&::-webkit-scrollbar-thumb":{background:"#666"}}})),D=c.default.div((function(){return{padding:"1em 0 0 0"}})),T=c.default.div((function(){return{color:"grey",display:"flex",flexDirection:"row",fontSize:"0.9em",padding:"0 10px 3px 5px"}})),I=c.default.div((function(){return{borderBottom:"1px solid "+f,margin:"auto",paddingTop:10,width:"85%"}})),R=c.default.div((function(e){var t=e.selected,n=e.focused,r=v,i="inherit";return n&&t?(r=f,i=v):n?r=m:t&&(r=h),{backgroundColor:r,border:"none",color:i,cursor:"pointer",fontSize:"0.95em",overflow:"hidden",padding:"5px 10px",textOverflow:"ellipsis",whiteSpace:"nowrap",width:"100%",display:"flex",alignItems:"center","&:hover":{backgroundColor:t?f:h,color:t?v:void 0},".option-icon":{paddingRight:"5px"}}})),L=Object(s.memo)((function(e){var t=e.onOptionClicked,n=e.option,r=e.optionClass,i=e.itemRenderer,o=e.index,a=e.selected,c=e.focused,l=Object(s.useCallback)((function(e){e.stopPropagation(),t(n,!0)}),[t,n]),u=Object(s.createElement)(s.Fragment,null,n.iconClass&&Object(s.createElement)("i",{className:n.iconClass+" dropdown-option-icon"}),n.value);return i&&(u=i(e,o)),Object(s.createElement)(R,{"aria-label":n.ariaLabel,"aria-selected":a,className:O("dropdown-option",r,{selected:a,focused:c}),onClick:l,title:n.title,selected:a,focused:c},u)})),N=function(e){var t=e.children,n=e.className,r=e.dim,i=void 0===r?24:r;return Object(s.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:"feather "+n},t)},F=function(){return Object(s.createElement)(N,{className:"feather-inbox"},Object(s.createElement)("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),Object(s.createElement)("path",{d:"M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}))},M=function(){return Object(s.createElement)(N,{className:"feather-chevron-down",dim:16},Object(s.createElement)("polyline",{points:"6 9 12 15 18 9"}))},B=function(){return Object(s.createElement)(N,{className:"feather-search",dim:16},Object(s.createElement)("circle",{cx:"11",cy:"11",r:"8"}),Object(s.createElement)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"}))};function z(e){var t=e.selectedOption,n=e.options,r=e.focusedIndex,i=e.onOptionClicked,o=e.optionItemRenderer;if(e.empty)return Object(s.createElement)("div",{className:"dropdown-selector-content--empty"},Object(s.createElement)(F,null),"No data");var a=o?function(e,t){return o(e,t)}:void 0,c=0,l=n.map((function(e){if(y(e)){var n=e.groupOptions,o=e.label,l=n.map((function(e){var n=e.value===t,o=c===r;return c+=1,Object(s.createElement)(L,{key:e.value,optionClass:e.className,onOptionClicked:i,option:e,itemRenderer:a,index:c-1,selected:n,focused:o})}));return l.length?Object(s.createElement)(D,{key:e.label},Object(s.createElement)(T,null,Object(s.createElement)("span",null,o.toUpperCase()," |  "),Object(s.createElement)("span",null,n.length)),l,Object(s.createElement)(I,null)):null}var u=e.value,p=e.className,f=c===r;return Object(s.createElement)(L,{key:u,optionClass:p,onOptionClicked:i,option:e,itemRenderer:a,index:(c+=1)-1,selected:u===t,focused:f})}));return Object(s.createElement)(s.Fragment,null,l)}var U={height:0,width:0,overflow:"hidden"},$=function(e,t,n){var r=e.map((function(e,r){return Object(s.createElement)("div",{role:"option",id:n+"_list_"+r,key:n+"_list_"+r,"aria-selected":r===t,"aria-label":e.value})}));return Object(s.createElement)("div",{role:"listbox",id:n+"_list",style:U},r)},V=function(e,t){var n=e.options,r=e.searchable,i=e.onChange,o=e.disabled,a=e.ariaDescribedBy,c=e.ariaLabel,l=e.ariaLabelledBy,u=e.value,p=e.defaultOpen,f=Object(s.useState)(0),d=f[0],h=f[1],m=Object(s.useState)(p),v=m[0],g=m[1],b=Object(s.useRef)(null),O=Object(s.useRef)(null),k=Object(s.useRef)(null),j=Object(s.useState)(!1),E=j[0],S=j[1],C=function(e,t,n){var r=Object(s.useState)(""),i=r[0],o=r[1],a=Object(s.useMemo)((function(){return n&&i.trim()?function(e,t){for(var n=[],r=t.toLowerCase(),i=0,o=e;i<o.length;i++){var a=o[i];if(y(a)){var s=w(a,r);s.groupOptions.length>=0&&n.push(s)}else a.value.toLowerCase().includes(r)&&n.push(a)}return n}(t,i):t}),[t,i]),c=Object(s.useCallback)((function(t,n){void 0===n&&(n=!0),o(t),n&&e(0)}),[e,o]);return{searchTerm:i,setSearchTerm:c,filteredOptions:a}}(h,n,r),_=C.searchTerm,P=C.setSearchTerm,A=C.filteredOptions,D=Object(s.useMemo)((function(){return A.reduce(x,[])}),[A]),T=Object(s.useMemo)((function(){return D.map((function(e){return e.value})).indexOf(u)}),[D,u]),I=Object(s.useCallback)((function(e){void 0===e&&(e=!1),P("",!1),g(!1),e&&O.current&&O.current.focus()}),[O.current,P,g]),R=Object(s.useCallback)((function(){h(T>0?T:0),g(!0)}),[g,h,T]),L=Object(s.useCallback)((function(e,t){void 0===t&&(t=!1),e&&(i(e),P("",!1)),t&&I(!0)}),[i,I,P]);!function(e,t){var n=function(n){t.current&&!t.current.contains(n.target)&&e()};Object(s.useEffect)((function(){return document.addEventListener("mouseup",n,!1),document.addEventListener("touchend",n,!1),function(){document.removeEventListener("mouseup",n),document.removeEventListener("touchend",n)}}),[])}(I,b),function(e,t){Object(s.useEffect)((function(){if(t.current&&e>=0){var n=t.current.getElementsByClassName("dropdown-option"),r=n&&n.length?n[e]:null;if(r&&r.getBoundingClientRect){var i=r.getBoundingClientRect().height,o=t.current.getBoundingClientRect().height,a=t.current.scrollTop,s=r.offsetTop<=a;r.offsetTop>=a&&r.offsetTop+i<=a+o||(s?t.current.scrollTo({top:r.offsetTop}):t.current.scrollTo({top:r.offsetTop-o+i+8}))}}}),[e])}(d,k);var N=Object(s.useMemo)((function(){return{"aria-hidden":o,"aria-expanded":v,"aria-haspopup":"listbox","aria-activedescendant":t+"_list_"+d,"aria-controls":t+"_list","aria-label":c,"aria-labelledby":l,"aria-describedby":a}}),[o,v,t,d,c,l,a]);return{focusedIndex:d,setFocusedIndex:h,open:v,setOpen:g,searchTerm:_,setSearchTerm:P,dropdownFocused:E,setDropdownFocused:S,setValue:L,filteredOptions:A,openDropdown:R,closeDropdown:I,flattenedOptions:D,container:b,inputRef:O,listWrapper:k,ariaProps:N,ariaList:$(D,T,t)}},q=0,H=function(e){var t,n=e.arrowRenderer,r=e.contentClassName,o=e.className,a=e.disabled,c=e.hideArrow,p=e.id,f=e.optionItemRenderer,d=e.pageKeyTraverseSize,h=e.placeholder,m=e.searchable,v=e.value,g=e.selectedValueClassName,b=Object(s.useMemo)((function(){return t||(e=q,q+=1,"react_dropdown_aria_"+e);var e}),[t=p]),y=V(e,b),x=y.open,w=y.dropdownFocused,S=y.focusedIndex,D=y.setFocusedIndex,T=y.setDropdownFocused,I=y.setValue,R=y.openDropdown,L=y.closeDropdown,N=y.searchTerm,F=y.setSearchTerm,U=y.filteredOptions,$=y.flattenedOptions,H=y.container,W=y.inputRef,Q=y.listWrapper,Y=y.ariaProps,K=y.ariaList,G=Object(s.useCallback)((function(){W.current&&W.current.focus()}),[W.current]),J=Object(s.useCallback)((function(){G(),a||x&&m||(x?L(!0):R())}),[x,a,m,L,R]),X=Object(s.useCallback)((function(e){switch(e){case i.UP_ARROW:D((function(e){return 0===e?$.length-1:e-1}));break;case i.DOWN_ARROW:D((function(e){return(e+1)%$.length}));break;case i.PAGE_UP:D((function(e){return e-d<0&&0!==e?0:e-d<0?$.length-1:e-d}));break;case i.PAGE_DOWN:D((function(e){return e===$.length-1?0:e+d>$.length-1?$.length-1:(e+d)%$.length}));break;case i.ESCAPE:L(!0)}}),[D,$,d,L]),Z=Object(s.useCallback)((function(e){var t=e.keyCode;-1!==u.indexOf(t)?(e.preventDefault(),e.stopPropagation(),X(t)):t!==i.ENTER&&(t!==i.SPACE||m)||x?t!==i.TAB||m?(t===i.TAB||t===i.ENTER)&&$.length>0&&S>=0&&x&&(e.stopPropagation(),e.preventDefault(),I($[S],!0)):L():(e.preventDefault(),R())}),[$,I,S,x,X,R,m,L]),ee=Object(s.useCallback)((function(e){F(e.target.value)}),[F]),te=Object(s.useCallback)((function(){return T(!0)}),[T]),ne=Object(s.useCallback)((function(){return T(!1)}),[T]),re=Object(s.useMemo)((function(){if(c)return null;if(n)return Object(s.createElement)(P,{className:"dropdown-arrow"},n(x));var e=x&&m;return Object(s.createElement)(P,{className:"dropdown-arrow"},e&&Object(s.createElement)(B,null),!e&&Object(s.createElement)(M,null))}),[x,n,m,c]);return Object(s.createElement)(k,{ref:H,onFocus:G,onClick:J,role:"button",width:e.width,height:e.height,disabled:a,open:x,dropdownFocused:w,className:O("dropdown",o)},Object(s.createElement)(j,{className:"dropdown-selector",open:x,searchable:e.searchable},Object(s.createElement)(E,{className:"dropdown-selector-search"},Object(s.createElement)("input",l({id:b,ref:W,value:N,onChange:ee,onKeyDown:Z,onFocus:te,onBlur:ne,readOnly:!x||!m,disabled:a,autoComplete:"off",role:"combobox"},Y))),!v&&!N&&Object(s.createElement)(_,{className:"dropdown-selector-placeholder",centerText:e.centerText},h),v&&!N&&Object(s.createElement)(C,{className:O("dropdown-selector-value",g),centerText:e.centerText,value:v,open:x},v),re),K,Object(s.createElement)(A,{maxContentHeight:e.maxContentHeight,openUp:e.openUp,open:x,className:O("dropdown-selector-content",r),ref:Q},Object(s.createElement)(z,{selectedOption:v,options:U,focusedIndex:S,onOptionClicked:I,optionItemRenderer:f,empty:0===$.length})))};H.defaultProps={ariaDescribedBy:null,ariaLabel:null,ariaLabelledBy:null,arrowRenderer:void 0,centerText:!1,className:void 0,contentClassName:null,defaultOpen:!1,disabled:!1,height:null,hideArrow:!1,id:null,maxContentHeight:150,openUp:!1,optionItemRenderer:void 0,pageKeyTraverseSize:10,placeholder:"Select ...",searchable:!1,selectedValueClassName:null,style:{},value:void 0,width:null};var W,Q,Y,K,G=H,J=n(2),X=Object(J.d)(W||(W=Object(a.f)(["\n background-color: ",";\n border-color: ",";\n\n &,\n &:hover,\n &:focus-within {\n border: none;\n box-shadow: none;\n }\n\n .dropdown-arrow {\n color: ",";\n }\n\n .dropdown-selector-value {\n color: ",";\n left: 0;\n }\n\n .dropdown-selector-content {\n background: ",";\n border: 0;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n\n .dropdown-option {\n color: ",";\n background-color: transparent;\n\n &[aria-selected='true'] {\n background-color: transparent;\n }\n\n &:hover,\n &.focused {\n background-color: ",";\n }\n }\n }\n"],["\n background-color: ",";\n border-color: ",";\n\n &,\n &:hover,\n &:focus-within {\n border: none;\n box-shadow: none;\n }\n\n .dropdown-arrow {\n color: ",";\n }\n\n .dropdown-selector-value {\n color: ",";\n left: 0;\n }\n\n .dropdown-selector-content {\n background: ",";\n border: 0;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);\n\n .dropdown-option {\n color: ",";\n background-color: transparent;\n\n &[aria-selected='true'] {\n background-color: transparent;\n }\n\n &:hover,\n &.focused {\n background-color: ",";\n }\n }\n }\n"])),(function(e){return e.theme.rightPanel.panelControlsBackgroundColor}),(function(e){return e.theme.rightPanel.panelControlsBackgroundColor}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.colors.secondary.light}),(function(e){return e.theme.colors.text.primary}),(function(e){return e.theme.colors.secondary.main})),Z=Object(J.e)(G)(Q||(Q=Object(a.f)(["\n box-sizing: border-box;\n min-width: 100px;\n outline: none;\n display: inline-block;\n border-radius: ",";\n padding: ",";\n vertical-align: bottom;\n position: relative;\n width: ",";\n cursor: pointer;\n text-transform: none;\n\n line-height: normal;\n font-size: 14px;\n font-family: inherit;\n\n &,\n &:hover,\n &:focus-within {\n border: 1px solid ",";\n box-shadow: none;\n }\n\n .dropdown-selector {\n margin-bottom: 0;\n display: inline-flex;\n height: auto;\n padding: 0;\n position: relative;\n justify-content: flex-start;\n }\n\n .dropdown-selector-value {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n\n position: relative;\n line-height: normal;\n color: ",";\n /* font-family: ","; */\n vertical-align: middle;\n left: -1px;\n transition: color 0.25s ease, text-shadow 0.25s ease;\n\n &::before {\n content: '","';\n opacity: 0.8;\n }\n }\n\n .dropdown-arrow {\n position: unset;\n transition: transform 0.2s;\n transform: ",";\n color: ",";\n margin-left: auto;\n }\n\n &[open] .dropdown-arrow {\n transform: ",";\n }\n\n .dropdown-selector-placeholder {\n left: 0;\n line-height: normal;\n }\n\n .dropdown-selector-content {\n position: absolute;\n margin: ",";\n padding: 0;\n border-radius: ",";\n left: 0;\n width: auto;\n min-width: 100%;\n\n z-index: 10;\n\n background: white;\n border: 1px solid rgba(38, 50, 56, 0.2);\n box-shadow: 0 2px 4px 0 rgba(34, 36, 38, 0.12), 0 2px 10px 0 rgba(34, 36, 38, 0.08);\n\n max-height: 220px;\n overflow: auto;\n }\n\n .dropdown-option {\n font-size: 1em;\n color: ",";\n cursor: pointer;\n padding: ",";\n background-color: #ffffff;\n\n &[aria-selected='true'] {\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 input {\n cursor: pointer;\n height: 1px;\n background-color: transparent;\n }\n\n ",";\n"],["\n box-sizing: border-box;\n min-width: 100px;\n outline: none;\n display: inline-block;\n border-radius: ",";\n padding: ",";\n vertical-align: bottom;\n position: relative;\n width: ",";\n cursor: pointer;\n text-transform: none;\n\n line-height: normal;\n font-size: 14px;\n font-family: inherit;\n\n &,\n &:hover,\n &:focus-within {\n border: 1px solid ",";\n box-shadow: none;\n }\n\n .dropdown-selector {\n margin-bottom: 0;\n display: inline-flex;\n height: auto;\n padding: 0;\n position: relative;\n justify-content: flex-start;\n }\n\n .dropdown-selector-value {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n\n position: relative;\n line-height: normal;\n color: ",";\n /* font-family: ","; */\n vertical-align: middle;\n left: -1px;\n transition: color 0.25s ease, text-shadow 0.25s ease;\n\n &::before {\n content: '","';\n opacity: 0.8;\n }\n }\n\n .dropdown-arrow {\n position: unset;\n transition: transform 0.2s;\n transform: ",";\n color: ",";\n margin-left: auto;\n }\n\n &[open] .dropdown-arrow {\n transform: ",";\n }\n\n .dropdown-selector-placeholder {\n left: 0;\n line-height: normal;\n }\n\n .dropdown-selector-content {\n position: absolute;\n margin: ",";\n padding: 0;\n border-radius: ",";\n left: 0;\n width: auto;\n min-width: 100%;\n\n z-index: 10;\n\n background: white;\n border: 1px solid rgba(38, 50, 56, 0.2);\n box-shadow: 0 2px 4px 0 rgba(34, 36, 38, 0.12), 0 2px 10px 0 rgba(34, 36, 38, 0.08);\n\n max-height: 220px;\n overflow: auto;\n }\n\n .dropdown-option {\n font-size: 1em;\n color: ",";\n cursor: pointer;\n padding: ",";\n background-color: #ffffff;\n\n &[aria-selected='true'] {\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 input {\n cursor: pointer;\n height: 1px;\n background-color: transparent;\n }\n\n ",";\n"])),(function(e){return e.theme.shape.borderRadius}),(function(e){return e.dense?"2px 8px":"8px 10px"}),(function(e){return e.fullWidth?"100%":"auto"}),(function(e){return e.theme.colors.border.light}),(function(e){return e.theme.colors.text.primary}),(function(e){return e.theme.typography.headings.fontFamily}),(function(e){return e.prefix}),(function(e){return"rotate("+(e.openUp?"-180":"0")+"deg)"}),(function(e){return e.theme.colors.text.primary}),(function(e){return"rotate("+(e.openUp?"0":"-180")+"deg)"}),(function(e){return e.openUp?"0 0 2px 0":"2px 0 0 0"}),(function(e){return e.theme.shape.borderRadius}),(function(e){return e.theme.colors.text.primary}),(function(e){return e.dense?"0.4em 8px":"0.4em 10px"}),(function(e){return"dark"===e.variant?X:""})),ee=Object(J.e)(Z)(Y||(Y=Object(a.f)(["\n && {\n padding: 0 4px;\n border: none;\n background: transparent;\n font-size: 14px;\n font-weight: 400;\n\n &:hover,\n &:focus-within {\n border: none;\n box-shadow: none;\n }\n\n .dropdown-selector-value,\n .dropdown-arrow {\n color: ",";\n }\n\n .dropdown-selector-content {\n border: none;\n margin: 0;\n padding: 0;\n }\n }\n"],["\n && {\n padding: 0 4px;\n border: none;\n background: transparent;\n font-size: 14px;\n font-weight: 400;\n\n &:hover,\n &:focus-within {\n border: none;\n box-shadow: none;\n }\n\n .dropdown-selector-value,\n .dropdown-arrow {\n color: ",";\n }\n\n .dropdown-selector-content {\n border: none;\n margin: 0;\n padding: 0;\n }\n }\n"])),(function(e){return e.theme.colors.text.primary})),te=J.e.span(K||(K=Object(a.f)(["\n margin-left: 4px;\n font-size: 14px;\n text-transform: none;\n font-weight: 400;\n color: ",";\n"],["\n margin-left: 4px;\n font-size: 14px;\n text-transform: none;\n font-weight: 400;\n color: ",";\n"])),(function(e){return e.theme.colors.text.primary}))},function(e,t,n){var r=n(923),i=n(924),o=n(318),a=n(925);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){e.exports=n(1053)},function(e,t,n){"use strict";const r=n(682),i=n(683),o=n(684).default;e.exports=(e,t,n)=>{const a=[];return function e(t,n,s){let c;(n=n||{}).indent=n.indent||"\t",s=s||"",c=void 0===n.inlineCharacterLimit?{newLine:"\n",newLineOrSpace:"\n",pad:s,indent:s+n.indent}:{newLine:"@@__STRINGIFY_OBJECT_NEW_LINE__@@",newLineOrSpace:"@@__STRINGIFY_OBJECT_NEW_LINE_OR_SPACE__@@",pad:"@@__STRINGIFY_OBJECT_PAD__@@",indent:"@@__STRINGIFY_OBJECT_INDENT__@@"};const l=e=>{if(void 0===n.inlineCharacterLimit)return e;const t=e.replace(new RegExp(c.newLine,"g"),"").replace(new RegExp(c.newLineOrSpace,"g")," ").replace(new RegExp(c.pad+"|"+c.indent,"g"),"");return t.length<=n.inlineCharacterLimit?t:e.replace(new RegExp(c.newLine+"|"+c.newLineOrSpace,"g"),"\n").replace(new RegExp(c.pad,"g"),s).replace(new RegExp(c.indent,"g"),s+n.indent)};if(-1!==a.indexOf(t))return'"[Circular]"';if(null==t||"number"==typeof t||"boolean"==typeof t||"function"==typeof t||"symbol"==typeof t||r(t))return String(t);if(t instanceof Date)return`new Date('${t.toISOString()}')`;if(Array.isArray(t)){if(0===t.length)return"[]";a.push(t);const r="["+c.newLine+t.map((r,i)=>{const o=t.length-1===i?c.newLine:","+c.newLineOrSpace;let a=e(r,n,s+n.indent);return n.transform&&(a=n.transform(t,i,a)),c.indent+a+o}).join("")+c.pad+"]";return a.pop(),l(r)}if(i(t)){let r=Object.keys(t).concat(o(t));if(n.filter&&(r=r.filter(e=>n.filter(t,e))),0===r.length)return"{}";a.push(t);const i="{"+c.newLine+r.map((i,o)=>{const a=r.length-1===o?c.newLine:","+c.newLineOrSpace,l="symbol"==typeof i,u=!l&&/^[a-z$_][a-z$_0-9]*$/i.test(i),p=l||u?i:e(i,n);let f=e(t[i],n,s+n.indent);return n.transform&&(f=n.transform(t,i,f)),c.indent+String(p)+": "+f+a}).join("")+c.pad+"}";return a.pop(),l(i)}return t=String(t).replace(/[\r\n]/g,e=>"\n"===e?"\\n":"\\r"),!1===n.singleQuotes?`"${t=t.replace(/"/g,'\\"')}"`:`'${t=t.replace(/\\?'/g,"\\'")}'`}(e,t,n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ServerStyleSheet",(function(){return Ue})),n.d(t,"StyleSheetConsumer",(function(){return oe})),n.d(t,"StyleSheetContext",(function(){return ie})),n.d(t,"StyleSheetManager",(function(){return pe})),n.d(t,"ThemeConsumer",(function(){return Te})),n.d(t,"ThemeContext",(function(){return De})),n.d(t,"ThemeProvider",(function(){return Ie})),n.d(t,"__PRIVATE__",(function(){return qe})),n.d(t,"createGlobalStyle",(function(){return Me})),n.d(t,"css",(function(){return xe})),n.d(t,"isStyledComponent",(function(){return w})),n.d(t,"keyframes",(function(){return Be})),n.d(t,"useTheme",(function(){return Ve})),n.d(t,"version",(function(){return k})),n.d(t,"withTheme",(function(){return $e}));var r=n(340),i=n(0),o=n.n(i),a=n(509),s=n.n(a);var c=function(e){function t(e,t,r){var i=t.trim().split(h);t=i;var o=i.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<o;++s)t[s]=n(e,t[s],r).trim();break;default:var c=s=0;for(t=[];s<o;++s)for(var l=0;l<a;++l)t[c++]=n(e[l]+" ",i[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,o){var a=e+";",s=2*t+3*n+4*o;if(944===s){e=a.indexOf(":",9)+1;var c=a.substring(e,a.length-1).trim();return c=a.substring(0,e).trim()+c+";",1===P||2===P&&i(c,1)?"-webkit-"+c+c:c}if(0===P||2===P&&!i(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(E,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(c=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+c+a;case 1005:return f.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(c=a.substring(13).trim()).indexOf("-")+1,c.charCodeAt(0)+c.charCodeAt(t)){case 226:c=a.replace(y,"tb");break;case 232:c=a.replace(y,"tb-rl");break;case 220:c=a.replace(y,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+c+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(c=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|c.charCodeAt(7))){case 203:if(111>c.charCodeAt(8))break;case 115:a=a.replace(c,"-webkit-"+c)+";"+a;break;case 207:case 102:a=a.replace(c,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(c,"-webkit-"+c)+";"+a.replace(c,"-ms-"+c+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return c=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+c+"-ms-flex-"+c+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===j.test(e))return 115===(c=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):a.replace(c,"-webkit-"+c)+a.replace(c,"-moz-"+c.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+o&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(d,"$1-webkit-$2")+a}return a}function i(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),I(2!==t?r:r.replace(k,"$1"),n,t)}function o(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,i,o,a,s,l,u){for(var p,f=0,d=t;f<T;++f)switch(p=D[f].call(c,e,d,n,r,i,o,a,s,l,u)){case void 0:case!1:case!0:case null:break;default:d=p}if(d!==t)return d}function s(e){return void 0!==(e=e.prefix)&&(I=null,e?"function"!=typeof e?P=1:(P=2,I=e):P=0),s}function c(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<T){var c=a(-1,n,s,s,C,S,0,0,0,0);void 0!==c&&"string"==typeof c&&(n=c)}var p=function e(n,s,c,p,f){for(var d,h,m,y,w,O=0,k=0,j=0,E=0,D=0,I=0,L=m=d=0,N=0,F=0,M=0,B=0,z=c.length,U=z-1,$="",V="",q="",H="";N<z;){if(h=c.charCodeAt(N),N===U&&0!==k+E+j+O&&(0!==k&&(h=47===k?10:47),E=j=O=0,z++,U++),0===k+E+j+O){if(N===U&&(0<F&&($=$.replace(u,"")),0<$.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:$+=c.charAt(N)}h=59}switch(h){case 123:for(d=($=$.trim()).charCodeAt(0),m=1,B=++N;N<z;){switch(h=c.charCodeAt(N)){case 123:m++;break;case 125:m--;break;case 47:switch(h=c.charCodeAt(N+1)){case 42:case 47:e:{for(L=N+1;L<U;++L)switch(c.charCodeAt(L)){case 47:if(42===h&&42===c.charCodeAt(L-1)&&N+2!==L){N=L+1;break e}break;case 10:if(47===h){N=L+1;break e}}N=L}}break;case 91:h++;case 40:h++;case 34:case 39:for(;N++<U&&c.charCodeAt(N)!==h;);}if(0===m)break;N++}switch(m=c.substring(B,N),0===d&&(d=($=$.replace(l,"").trim()).charCodeAt(0)),d){case 64:switch(0<F&&($=$.replace(u,"")),h=$.charCodeAt(1)){case 100:case 109:case 115:case 45:F=s;break;default:F=A}if(B=(m=e(s,F,m,h,f+1)).length,0<T&&(w=a(3,m,F=t(A,$,M),s,C,S,B,h,f,p),$=F.join(""),void 0!==w&&0===(B=(m=w.trim()).length)&&(h=0,m="")),0<B)switch(h){case 115:$=$.replace(x,o);case 100:case 109:case 45:m=$+"{"+m+"}";break;case 107:m=($=$.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=$+m,112===p&&(V+=m,m="")}else m="";break;default:m=e(s,t(s,$,M),m,p,f+1)}q+=m,m=M=F=L=d=0,$="",h=c.charCodeAt(++N);break;case 125:case 59:if(1<(B=($=(0<F?$.replace(u,""):$).trim()).length))switch(0===L&&(d=$.charCodeAt(0),45===d||96<d&&123>d)&&(B=($=$.replace(" ",":")).length),0<T&&void 0!==(w=a(1,$,s,n,C,S,V.length,p,f,p))&&0===(B=($=w.trim()).length)&&($="\0\0"),d=$.charCodeAt(0),h=$.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){H+=$+c.charAt(N);break}default:58!==$.charCodeAt(B-1)&&(V+=r($,d,h,$.charCodeAt(2)))}M=F=L=d=0,$="",h=c.charCodeAt(++N)}}switch(h){case 13:case 10:47===k?k=0:0===1+d&&107!==p&&0<$.length&&(F=1,$+="\0"),0<T*R&&a(0,$,s,n,C,S,V.length,p,f,p),S=1,C++;break;case 59:case 125:if(0===k+E+j+O){S++;break}default:switch(S++,y=c.charAt(N),h){case 9:case 32:if(0===E+O+k)switch(D){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===E+k+O&&(F=M=1,y="\f"+y);break;case 108:if(0===E+k+O+_&&0<L)switch(N-L){case 2:112===D&&58===c.charCodeAt(N-3)&&(_=D);case 8:111===I&&(_=I)}break;case 58:0===E+k+O&&(L=N);break;case 44:0===k+j+E+O&&(F=1,y+="\r");break;case 34:case 39:0===k&&(E=E===h?0:0===E?h:E);break;case 91:0===E+k+j&&O++;break;case 93:0===E+k+j&&O--;break;case 41:0===E+k+O&&j--;break;case 40:if(0===E+k+O){if(0===d)switch(2*D+3*I){case 533:break;default:d=1}j++}break;case 64:0===k+j+E+O+L+m&&(m=1);break;case 42:case 47:if(!(0<E+O+j))switch(k){case 0:switch(2*h+3*c.charCodeAt(N+1)){case 235:k=47;break;case 220:B=N,k=42}break;case 42:47===h&&42===D&&B+2!==N&&(33===c.charCodeAt(B+2)&&(V+=c.substring(B,N+1)),y="",k=0)}}0===k&&($+=y)}I=D,D=h,N++}if(0<(B=V.length)){if(F=s,0<T&&(void 0!==(w=a(2,V,F,n,C,S,B,p,f,p))&&0===(V=w).length))return H+V+q;if(V=F.join(",")+"{"+V+"}",0!=P*_){switch(2!==P||i(V,2)||(_=0),_){case 111:V=V.replace(b,":-moz-$1")+V;break;case 112:V=V.replace(g,"::-webkit-input-$1")+V.replace(g,"::-moz-$1")+V.replace(g,":-ms-input-$1")+V}_=0}}return H+V+q}(A,s,n,0,0);return 0<T&&(void 0!==(c=a(-2,p,s,s,C,S,p.length,0,0,0))&&(p=c)),"",_=0,S=C=1,p}var l=/^\0+/g,u=/[\0\r\f]/g,p=/: */g,f=/zoo|gra/,d=/([,: ])(transform)/g,h=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,y=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,O=/-self|flex-/g,k=/[^]*?(:[rp][el]a[\w-]+)[^]*/,j=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,S=1,C=1,_=0,P=1,A=[],D=[],T=0,I=null,R=0;return c.use=function e(t){switch(t){case void 0:case null:T=D.length=0;break;default:if("function"==typeof t)D[T++]=t;else if("object"==typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else R=0|!!t}return e},c.set=s,void 0!==e&&s(e),c},l={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var u=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,p=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return u.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),f=n(341),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var m=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(r.typeOf)(e)},g=Object.freeze([]),b=Object.freeze({});function y(e){return"function"==typeof e}function x(e){return e.displayName||e.name||"Component"}function w(e){return e&&"string"==typeof e.styledComponentId}var O="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",k="5.3.0",j="undefined"!=typeof window&&"HTMLElement"in window,E=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&("false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),S={};function C(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var _=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&C(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=0,c=t.length;s<c;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+=this.tag.getRule(o)+"/*!sc*/\n";return t},e}(),P=new Map,A=new Map,D=1,T=function(e){if(P.has(e))return P.get(e);for(;A.has(D);)D++;var t=D++;return P.set(e,t),A.set(t,e),t},I=function(e){return A.get(e)},R=function(e,t){P.set(e,t),A.set(t,e)},L="style["+O+'][data-styled-version="5.3.0"]',N=new RegExp("^"+O+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},M=function(e,t){for(var n=t.innerHTML.split("/*!sc*/\n"),r=[],i=0,o=n.length;i<o;i++){var a=n[i].trim();if(a){var s=a.match(N);if(s){var c=0|parseInt(s[1],10),l=s[2];0!==c&&(R(l,c),F(e,l,s[3]),e.getTag().insertRules(c,r)),r.length=0}else r.push(a)}}},B=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},z=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(O))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(O,"active"),r.setAttribute("data-styled-version","5.3.0");var a=B();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},U=function(){function e(e){var t=this.element=z(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}C(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=z(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),V=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),q=j,H={isServer:!j,useCSSOMInjection:!E},W=function(){function e(e,t,n){void 0===e&&(e=b),void 0===t&&(t={}),this.options=h({},H,{},e),this.gs=t,this.names=new Map(n),!this.options.isServer&&j&&q&&(q=!1,function(e){for(var t=document.querySelectorAll(L),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(O)&&(M(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return T(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new V(i):r?new U(i):new $(i),new _(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(T(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(T(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(T(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var o=I(i);if(void 0!==o){var a=e.names.get(o),s=t.getGroup(i);if(void 0!==a&&0!==s.length){var c=O+".g"+i+'[id="'+o+'"]',l="";void 0!==a&&a.forEach((function(e){e.length>0&&(l+=e+",")})),r+=""+s+c+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),Q=/(a)(d)/gi,Y=function(e){return String.fromCharCode(e+(e>25?39:97))};function K(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Y(t%52)+n;return(Y(t%52)+n).replace(Q,"$1-$2")}var G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},J=function(e){return G(5381,e)};function X(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!w(n))return!1}return!0}var Z=J("5.3.0"),ee=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&X(e),this.componentId=t,this.baseHash=G(Z,t),this.baseStyle=n,W.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var o=ye(this.rules,e,t,n).join(""),a=K(G(this.baseHash,o.length)>>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var c=this.rules.length,l=G(this.baseHash,n.hash),u="",p=0;p<c;p++){var f=this.rules[p];if("string"==typeof f)u+=f;else if(f){var d=ye(f,e,t,n),h=Array.isArray(d)?d.join(""):d;l=G(l,h+p),u+=h}}if(u){var m=K(l>>>0);if(!t.hasNameForId(r,m)){var v=n(u,"."+m,void 0,r);t.insertRules(r,m,v)}i.push(m)}}return i.join(" ")},e}(),te=/^\s*\/\/.*$/gm,ne=[":","[",".","#"];function re(e){var t,n,r,i,o=void 0===e?b:e,a=o.options,s=void 0===a?b:a,l=o.plugins,u=void 0===l?g:l,p=new c(s),f=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,c,l,u,p){switch(n){case 1:if(0===u&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===p?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){f.push(e)})),h=function(e,r,o){return 0===r&&-1!==ne.indexOf(o[n.length])||o.match(i)?e:"."+t};function m(e,o,a,s){void 0===s&&(s="&");var c=e.replace(te,""),l=o&&a?a+" "+o+" { "+c+" }":c;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),p(a||!o?"":o,l)}return p.use([].concat(u,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,h))},d,function(e){if(-2===e){var t=f;return f=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||C(15),G(e,t.name)}),5381).toString():"",m}var ie=o.a.createContext(),oe=ie.Consumer,ae=o.a.createContext(),se=(ae.Consumer,new W),ce=re();function le(){return Object(i.useContext)(ie)||se}function ue(){return Object(i.useContext)(ae)||ce}function pe(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=le(),c=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),l=Object(i.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(ie.Provider,{value:c},o.a.createElement(ae.Provider,{value:l},e.children))}var fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ce);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return C(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ce),this.name+e.hash},e}(),de=/([A-Z])/,he=/([A-Z])/g,me=/^ms-/,ve=function(e){return"-"+e.toLowerCase()};function ge(e){return de.test(e)?e.replace(he,ve).replace(me,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function ye(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a<s;a+=1)""!==(i=ye(e[a],t,n,r))&&(Array.isArray(i)?o.push.apply(o,i):o.push(i));return o}return be(e)?"":w(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ye(e(t),t,n,r):e instanceof fe?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,i,o=[];for(var a in t)t.hasOwnProperty(a)&&!be(t[a])&&(v(t[a])?o.push.apply(o,e(t[a],a)):y(t[a])?o.push(ge(a)+":",t[a],";"):o.push(ge(a)+": "+(r=a,(null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in l?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(o,["}"]):o}(e):e.toString();var c}function xe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||v(e)?ye(m(g,[e].concat(n))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(m(e,n))}new Set;var we=function(e,t,n){return void 0===n&&(n=b),e.theme!==n.theme&&e.theme||t||n.theme},Oe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function je(e){return e.replace(Oe,"-").replace(ke,"")}var Ee=function(e){return K(J(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},_e=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pe(e,t,n){var r=e[n];Ce(t)&&Ce(r)?Ae(r,t):e[n]=t}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,o=n;i<o.length;i++){var a=o[i];if(Ce(a))for(var s in a)_e(s)&&Pe(e,a[s],s)}return e}var De=o.a.createContext(),Te=De.Consumer;function Ie(e){var t=Object(i.useContext)(De),n=Object(i.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?C(8):t?h({},t,{},e):e:C(14)}(e.theme,t)}),[e.theme,t]);return e.children?o.a.createElement(De.Provider,{value:n},e.children):null}var Re={};function Le(e,t,n){var r=w(e),a=!Se(e),s=t.attrs,c=void 0===s?g:s,l=t.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":je(e);Re[n]=(Re[n]||0)+1;var r=n+"-"+Ee("5.3.0"+n+Re[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):l,f=t.displayName,m=void 0===f?function(e){return Se(e)?"styled."+e:"Styled("+x(e)+")"}(e):f,v=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||u,O=r&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,k=t.shouldForwardProp;r&&e.shouldForwardProp&&(k=t.shouldForwardProp?function(n,r,i){return e.shouldForwardProp(n,r,i)&&t.shouldForwardProp(n,r,i)}:e.shouldForwardProp);var j,E=new ee(n,v,r?e.componentStyle:void 0),S=E.isStatic&&0===c.length,C=function(e,t){return function(e,t,n,r){var o=e.attrs,a=e.componentStyle,s=e.defaultProps,c=e.foldedComponentIds,l=e.shouldForwardProp,u=e.styledComponentId,f=e.target,d=function(e,t,n){void 0===e&&(e=b);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,o,a=e;for(t in y(a)&&(a=a(r)),a)r[t]=i[t]="className"===t?(n=i[t],o=a[t],n&&o?n+" "+o:n||o):a[t]})),[r,i]}(we(t,Object(i.useContext)(De),s)||b,t,o),m=d[0],v=d[1],g=function(e,t,n,r){var i=le(),o=ue();return t?e.generateAndInjectStyles(b,i,o):e.generateAndInjectStyles(n,i,o)}(a,r,m),x=n,w=v.$as||t.$as||v.as||t.as||f,O=Se(w),k=v!==t?h({},t,{},v):t,j={};for(var E in k)"$"!==E[0]&&"as"!==E&&("forwardedAs"===E?j.as=k[E]:(l?l(E,p,w):!O||p(E))&&(j[E]=k[E]));return t.style&&v.style!==t.style&&(j.style=h({},t.style,{},v.style)),j.className=Array.prototype.concat(c,u,g!==u?g:null,t.className,v.className).filter(Boolean).join(" "),j.ref=x,Object(i.createElement)(w,j)}(j,e,t,S)};return C.displayName=m,(j=o.a.forwardRef(C)).attrs=O,j.componentStyle=E,j.displayName=m,j.shouldForwardProp=k,j.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):g,j.styledComponentId=v,j.target=r?e.target:e,j.withComponent=function(e){var r=t.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Se(e)?e:je(x(e)));return Le(e,h({},i,{attrs:O,componentId:o}),n)},Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Ae({},e.defaultProps,t):t}}),j.toString=function(){return"."+j.styledComponentId},a&&d()(j,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),j}var Ne=function(e){return function e(t,n,i){if(void 0===i&&(i=b),!Object(r.isValidElementType)(n))return C(1,String(n));var o=function(){return t(n,i,xe.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,h({},i,{},r))},o.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Le,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ne[e]=Ne(e)}));var Fe=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=X(e),W.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(ye(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&W.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=xe.apply(void 0,[e].concat(n)),s="sc-global-"+Ee(JSON.stringify(a)),c=new Fe(a,s);function l(e){var t=le(),n=ue(),r=Object(i.useContext)(De);return u(Object(i.useRef)(t.allocateGSInstance(s)).current,e,t,r,n),null}function u(e,t,n,r,i){if(c.isStatic)c.renderStyles(e,S,n,i);else{var o=h({},t,{theme:we(t,r,l.defaultProps)});c.renderStyles(e,o,n,i)}}return o.a.memo(l)}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=xe.apply(void 0,[e].concat(n)).join(""),o=Ee(i);return new fe(o,i)}var ze=/^\s*<\/[a-z]/i,Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=B();return"<style "+[n&&'nonce="'+n+'"',O+'="true"','data-styled-version="5.3.0"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?C(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return C(2);var n=((t={})[O]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=B();return r&&(n.nonce=r),[o.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?C(2):o.a.createElement(pe,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){if(j)return C(3);if(this.sealed)return C(2);this.seal();var t=n(39),r=(t.Readable,t.Transform),i=e,o=this.instance,a=this._emitSheetCSS,s=new r({transform:function(e,t,n){var r=e.toString(),i=a();if(o.clearTag(),ze.test(r)){var s=r.indexOf(">")+1,c=r.slice(0,s),l=r.slice(s);this.push(c+i+l)}else this.push(i+r);n()}});return i.on("error",(function(e){s.emit("error",e)})),i.pipe(s)},e}(),$e=function(e){var t=o.a.forwardRef((function(t,n){var r=Object(i.useContext)(De),a=e.defaultProps,s=we(t,r,a);return o.a.createElement(e,h({},t,{theme:s,ref:n}))}));return d()(t,e),t.displayName="WithTheme("+x(e)+")",t},Ve=function(){return Object(i.useContext)(De)},qe={StyleSheet:W,masterSheet:se};t.default=Ne},function(e,t,n){var r=n(30);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return qe})),n.d(t,"b",(function(){return de})),n.d(t,"c",(function(){return pe}));var r=n(0),i=n.n(r);function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function m(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function g(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"==typeof e)return x(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var w=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){function t(e,t){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t[Math.abs(n)%t.length]}function n(e,t){var n=t.namespace;if(t.useColors){var r=t.color,i=" ".concat("[3"+(r<8?r:"8;5;"+r),";1m").concat(n," ");e[0]=i+e[0].split("\n").join("\n"+i)}else e[0]=n+" "+e[0]}function r(e,t){if(e[0]=(t.useColors?"%c":"")+t.namespace,t.useColors){var n="color: "+t.color,r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),e.splice(i,0,n)}}var i=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];e&&i.unshift(e);var a=n.namespaces.split(",").map((function(e){return"*"===e[e.length-1]?new RegExp("^"+e.slice(0,e.length-1)+".*$"):new RegExp("^"+e+"$")}));a.some((function(t){return t.test(e)})),t(e,n.colors),n.useColors}}"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=function(e){return o(e,function(){var e;try{e=localStorage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),{namespaces:e||"",colors:i,useColors:!0,formatArgs:r}}())}:e.exports=function(e){return o(e,{namespaces:process.env.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n})}})),O=w("informed:ObjMap\t"),k=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return String.prototype.replace.call(e,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,r=String.prototype.replace.call(t,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce((function(e,t){return null!=e?e[t]:e}),e);return void 0===r||r===e?n:r},E=function(e){return".".concat(e).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},S=function(e,t){var n=E(t),r=function(e){return e.replace(E(e),"").replace(/\./,"")}(t),i=n?j(e,n):e;return!(!i||!Object.hasOwnProperty.call(i,r.replace(/\[(.*)\]/,"$1")))},C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(t,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce((function(e,t,r,i){return r===i.length-1?(e[t]=n,e[t]):void 0===e[t]?(Number.isInteger(+i[r+1])?e[t]=[]:e[t]={},e[t]):(Number.isInteger(+i[r+1])&&!Array.isArray(e[t])&&(e[t]=[]),e[t])}),e)},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=!1;return String.prototype.replace.call(t,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce((function(e,t,r,i){return void 0===e?e:r===i.length-1?(delete e[t],n=!0,e[t]):e[t]}),e),n},P=function(e){var t=k(e);return Number.isInteger(+t[t.length-1])},A=function(){function e(){o(this,e)}return s(e,null,[{key:"empty",value:function(e){return 0===function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e);return t.map((function(t){return e[t]}))}(e).length}},{key:"get",value:function(e,t){return j(e,t)}},{key:"has",value:function(e,t){return S(e,t)}},{key:"set",value:function(t,n,r){if(void 0!==r)O("SETTING",n,r),C(t,n,r);else if(P(n)&&void 0!==e.get(t,n)){O("Special case SETTING",n,"to undefined"),C(t,n,void 0);var i=k(n);D(t,i=i.slice(0,i.length-1))}else P(n)||void 0===e.get(t,n)||(O("Special case REMOVING",n,"from object completley"),e.delete(t,n))}},{key:"delete",value:function(e,t){O("DELETE",t),P(t)?(O("ARRAY",t),this.pullOut(e,t)):_(e,t);var n=k(t);D(e,n=n.slice(0,n.length-1))}},{key:"pullOut",value:function(e,t){var n=k(t),r=n[n.length-1];n=n.slice(0,n.length-1),O("Pulling out:",n,"index",r);var i=j(e,n);O("Array",i),Array.isArray(i)&&function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce((function(e,n,r,i){return void 0===e?e:r===i.length-1&&Array.isArray(e)?(t=e.splice(n,1),e[n]):e[n]}),e)}(i,r),D(e,n)}}]),e}();function D(e,t){if(0!==t.length){var n=j(e,t);(Array.isArray(n)?n.every((function(e){return null==e})):"{}"===JSON.stringify(n))&&_(e,t),D(e,t.slice(0,t.length-1))}}var T=i.a.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),I=i.a.createContext({}),R=i.a.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),L=i.a.createContext(),N=i.a.createContext(),F=i.a.createContext(),M=i.a.createContext(),B=i.a.createContext(),z=i.a.createContext();function U(){return Object(r.useContext)(R)}function $(e){var t=Object(r.useRef)(),n=Object(r.useRef)(!0),i=g(Object(r.useState)(e),2),o=i[0],a=i[1];t.current=o;return Object(r.useEffect)((function(){return function(){n.current=!1}}),[]),[o,function(e){t.current=e,n.current&&a(e)},function(){return t.current}]}var V=function(e){return e.type&&e.type.name?e.type.name:e.displayName||e.name||"Component"},q=function(e){var t={};if(e.inner){if(0===e.inner.length)return void A.set(t,e.path,e.message);var n,r=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=y(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}(e.inner);try{for(r.s();!(n=r.n()).done;){var i=n.value;A.get(t,i.path)||A.set(t,i.path,i.message)}}catch(i){r.e(i)}finally{r.f()}}return t},H=function(e,t){try{e.validateSync(t,{abortEarly:!1})}catch(e){return q(e)}},W=function(e){if(e.inner){if(0===e.inner.length)return;return e.inner[0].message}},Q=function(e,t){try{e.validateSync(t,{abortEarly:!1})}catch(e){return W(e)}},Y=function(e,t){e(t);var n={};return e.errors&&e.errors.forEach((function(e){var t=e.message,r=e.dataPath,i=e.keyword,o=e.params,a=r;"required"===i&&(a="".concat(a,".").concat(o.missingProperty)),a=a.replace(".",""),A.set(n,a,t)})),n},K=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},G=function(e,t,n){var r=t["ui:control"],i=t["informed:props"],o=t["input:props"],a=t["ui:before"],s=t["ui:after"],c=t.oneOf,l=t.items,u=t.enum,f=t.title,d=t.minimum,h=t.maximum,m=t.minLength,v=t.maxLength,g=t.pattern,b=t.type,y=t.properties,x=K();o&&o.id&&(x=o.id);var w={componentType:r,field:n?"".concat(n,".").concat(e):e,type:b,uiBefore:a,uiAfter:s,properties:"object"===b?y:void 0,items:"array"===b?l:void 0,props:p(p({label:f,id:x,min:d,max:h,minLength:m,maxLength:v,pattern:g},i),o)};if(c){var O=t.oneOf.map((function(e){var t=e["input:props"],n=void 0===t?{}:t;return p({value:e.const,label:e.title},n)}));w.props.options=O}if(u){var k=t.enum.map((function(e){return{value:e,label:e}}));w.props.options=k}if(l&&l.oneOf){var j=l.oneOf.map((function(e){var t=e["input:props"],n=void 0===t?{}:t;return p({value:e.const,label:e.title},n)}));w.props.options=j}return w},J=function(e,t,n){if(!e||t)return[];var r=e.properties,i=void 0===r?{}:r,o=e.allOf,a=e.propertyOrder,s=void 0===a?[]:a;if(Object.keys(i).length>0){var c=Object.keys(i).sort((function(e,t){var n=s.indexOf(e),r=s.indexOf(t);return(n>-1?n:s.length+1)-(r>-1?r:s.length+1)})).map((function(e){var t=i[e];return G(e,t,n)}));return o&&c.push({componentType:"conditionals",allOf:o}),c}return[]},X=function(e,t){if(!e)return{val:e,offset:0};var n="".concat(e),r=function(e,t){if("string"==typeof e)return e.split("").map((function(e){return"#"===e?/\d/:"*"===e?/[\w]/:e}));if("function"==typeof e)return e(t);if(Array.isArray(e))return e;throw new Error("Formatter must be string, array, or function")}(t,n),i=r.findIndex((function(e){return"string"!=typeof e})),o=r.length-b(r).reverse().findIndex((function(e){return"string"!=typeof e})),a=[],s=n.split(""),c=0,l=0,u=function(e,t){for(var n=0,r=-1,i=!0;i&&n<e.length;)e[n]==t[n]?r=n:i=!1,n+=1;return r}(r.slice(0,i),s.slice(0,i));u>-1&&(c=u+1,a=a.concat(r.slice(0,u+1)),l=u+1),u<0&&(a=a.concat(r.slice(0,i)),l=i);for(var p=l;p<r.length;p++){var f=r[p];if(c!=s.length){var d=s[c];if("function"==typeof f)a.push(f(d)),c+=1;else{var h="string"==typeof f?f===d:f.test(d);h&&"string"==typeof f?(a.push(f),c+=1):h||"string"!=typeof f?h&&"string"!=typeof f?(a.push(d),c+=1):h||"string"==typeof f||(c+=1,p-=1):c!=s.length&&a.push(f)}}else{if(!("string"==typeof f&&p>=o))break;a.push(f)}}return{value:a.join(""),offset:n?a.length-n.length:0}},Z="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,ee=function(e){var t=e.value,n=e.inputRef,r=e.maintainCursor,i=void 0===r||r,o=g($(0),3),a=o[0],s=o[1],c=o[2],l=g($(0),3),u=l[0],p=l[1],f=l[2];return Z((function(){if(null!=n.current&&c()){var e=c()+f();0!=f()&&i?n.current.setSelectionRange(e+1,e+1):i&&n.current.setSelectionRange(e,e)}}),[t]),{setCursorOffset:p,setCursor:s,cursor:a,getCursor:c,cursorOffset:u}},te=function(e,t){var n=Object(r.useRef)(!0),i=n.current;Object(r.useEffect)((function(){if(!i)return e();n.current=!1}),t)},ne=w("informed:useField\t"),re=function(e,t,n,r,i){if(null!=e)return i?i(e):t?t(e):n&&!r?X(e,n).value:e},ie=function(e,t,n,r){return t&&n?t(e):r?X(e,r).value:e},oe=function(e,t,n){var r=n.required;return e||t?function(n,r){return t?Q(t,n):e?e(n,r):void 0}:r?function(e){return ue(e,r)}:void 0},ae=function(e){var t=e.fieldType,n=e.setValue,r=e.onChange,i=e.multiple,o=e.ref,a=function(e){return n(e)};return"text"!==t&&"textArea"!==t&&"number"!==t||(a=function(e){return n(e.target.value,e)}),"select"===t&&(a=function(){var e=Array.from(o.current).filter((function(e){return e.selected})).map((function(e){return e.value}));n(i?e:e[0]||"")}),"checkbox"===t&&(a=function(e){n(e.target.checked),r&&r(e)}),function(e){a(e)}},se=function(e){var t=e.setTouched,n=e.onBlur;return function(e){t(!0),n&&n(e)}},ce=function(e){var t=e.fieldType,n=e.maskedValue,r=e.multiple,i=e.value;switch(t){case"text":case"number":return n||0===n?n:"";case"textArea":return n||"";case"select":return i||(r?[]:"");case"checkbox":return!!i;default:return i}},le=function(e){switch(e){case"text":case"number":case"checkbox":return e;default:return}},ue=function(e,t){if(t&&(null==e||""===e))return"string"==typeof t?t:"This field is required"};function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=e.field,o=e.validate,a=e.asyncValidate,s=e.validationSchema,c=e.mask,l=e.maskWithCursorOffset,u=e.format,f=e.parse,d=e.formatter,m=e.parser,v=e.initialValue,y=e.validateOnChange,x=e.validateOnBlur,w=e.validateOnMount,O=e.asyncValidateOnBlur,k=e.maskOnBlur,j=e.allowEmptyString,E=e.onValueChange,S=e.notify,C=e.keepState,_=e.maintainCursor,P=e.debug,D=e.shadow,I=e.step,R=e.fieldType,L=e.multiple,N=e.onChange,F=e.onBlur,M=e.formController,B=e.relevant,V=e.required,q=e.keepStateIfRelevant,H=e.initialize,W=e.formatterDependencies,Q=void 0===W?[]:W,Y=h(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),G=Object(r.useState)(K()),J=g(G,1),ue=J[0],pe=Object(r.useContext)(T),fe=Object(r.useContext)(z),de=fe||q,he=U(),me=Object(r.useRef)(),ve=Object(r.useRef)(!0),ge=Object(r.useRef)(),be=Object(r.useRef)(!1),ye=function(){return!be.current},xe=function(){return be.current};M&&(pe=M.updater,he=M.getFormApi());var we,Oe,ke=oe(o,s,{required:V}),je=Object(r.useState)((function(){return pe.getInitialValue(n)})),Ee=g(je,1),Se=Ee[0],Ce=pe.getSavedValue(n);(C||de)&&Ce?(ne("Setting field ".concat(kt,"'s kept state"),Ce),we=Ce.value,Oe=Ce.touched,he.removeSavedState(kt)):we=null!=v?v:Se;var _e=$(re(we,c,d,m,H)),Pe=g(_e,3),Ae=Pe[0],De=Pe[1],Te=Pe[2],Ie=$(w?ke(Ae):void 0),Re=g(Ie,3),Le=Re[0],Ne=Re[1],Fe=Re[2],Me=$(Oe),Be=g(Me,3),ze=Be[0],Ue=Be[1],$e=Be[2],Ve=Object(r.useState)((function(){return ie(Ae,u,f,d)})),qe=g(Ve,2),He=qe[0],We=qe[1],Qe=Object(r.useRef)();Qe.current=He;var Ye=Object(r.useRef)(v),Ke=Object(r.useRef)(n),Ge=Object(r.useRef)();Ye.current=v,Ke.current=n;var Je=Object(r.useRef)(null),Xe=i.a.useMemo((function(){return t||Je}),[]),Ze=ee({value:Ae,inputRef:Xe,maintainCursor:!!_}),et=Ze.getCursor,tt=Ze.setCursor,nt=Ze.setCursorOffset,rt=function(){return!0},it=function(e){var t=B||rt,n=he.getFullField(Ke.current)||Ke.current,r={path:n,parentPath:n.replace(/(.*)[.[].*/,"$1"),get:function(e,t){return A.get(e,t)}};return fe&&fe.relevant?t(e,r)&&fe.relevant(e,r):t(e,r)},ot=$(it(he.getValues())),at=g(ot,3),st=at[0],ct=at[1],lt=at[2],ut=function(e){return!fe||!fe.relevant||fe.relevant(e)},pt=function(){var e=it(he.getValues());return e!=lt()&&ct(e),e};Object(r.useEffect)((function(){st||C||me.current.reset()}),[st]);var ft=function(){return D?he.getDerrivedValue(n):Te()},dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.preventUpdate;I&&he.getStep()<I?(ne("Setting ".concat(n,"'s error to undefined as we are not at that step")),Ne(void 0),pe.setError(ue,void 0,!r)):(ne("Setting ".concat(n,"'s error to ").concat(e)),Ne(e),pe.setError(ue,e,!r))},ht=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t;be.current=!0,ne("Setting ".concat(n," to ").concat(o)),H&&(o=H(o));var a=he.getOptions(),s=o;if(""!==o||j||i.allowEmptyString||a.allowEmptyStrings||(o=void 0),"number"!==e.type&&"number"!==R||void 0===o||(o=+o),r&&r.target&&r.target.selectionStart&&tt(r.target.selectionStart),c&&!k&&(s=c(o,et()),o=c(o,et())),l&&!k){var p=l(o,et());s=p.value,o=p.value,nt(p.offset)}if(u&&f&&(o=f(o),s=u(o)),d){var h=X(o,d);nt(h.offset),o=s=h.value}m&&(o=null!=o?m(o):o),ke&&y&&!i.initial&&(ne("Validating after change ".concat(n," ").concat(o)),dt(ke(o,he.getValues()))),De(o),We(s),E&&E(o),pe.setValue(ue,o,!i.preventUpdate)};te((function(){me.current.setValue(Qe.current)}),b(Q));var mt=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.preventUpdate;if(ne("Field ".concat(n," has been touched")),ke&&x&&!t&&e&&(ne("Validating after blur ".concat(n," ").concat(ft())),dt(ke(ft(),he.getValues()))),a&&O&&!t&&e&&(ne("Validating async after blur ".concat(n," ").concat(ft())),a(ft(),he.getValues())),c&&k){var o=c(ft());De(o),We(o),E&&E(o),pe.setValue(ue,o,!i)}if(l&&k){var s=l(ft());nt(s.offset),De(s.value),We(s.value),E&&E(s.value),pe.setValue(ue,s.value,!i)}Ue(e),pe.setTouched(ue,e,!i)},vt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.preventUpdate,n=re(Ye.current||pe.getInitialValue(Ke.current),c,d,m,H);ht(n,null,{initial:!0,preventUpdate:t}),dt(w?ke(n):void 0,{preventUpdate:t}),mt(void 0,!0,{preventUpdate:t}),be.current=!1},gt=function(e){ke&&(ne("Field validating ".concat(n," ").concat(ft())),dt(ke(ft(),e||he.getValues())))},bt=function(e){a&&(ne("Field async validating ".concat(n," ").concat(ft())),a(ft(),e||he.getValues()))},yt={setValue:ht,setTouched:mt,setError:dt,reset:vt,validate:gt,asyncValidate:bt,getValue:ft,getTouched:$e,getError:Fe,getIsRelevant:lt,getDirty:xe,getPristine:ye,getFieldState:function(){return{value:ft(),touched:$e(),dirty:xe(),pristine:ye()}},relevant:it,multistepRelevant:ut,checkRelevant:pt};me.current=yt;var xt={value:Ae,error:Le,touched:ze,maskedValue:He,isRelevant:st,dirty:be.current,pristine:!be.current};D&&(xt={error:Le,touched:ze}),ne("Render",he.getFullField(n),xt),Z((function(){var e=he.getFullField(Ke.current);return ne("Register",ue,Ke.current),ge.current={field:e,fieldId:ue,fieldApi:yt,fieldState:xt,notify:S,keepState:C,inMultistep:de,shadow:D},pe.register(ue,ge.current),function(){var e=he.getFullField(Ke.current);ne("Deregister",ue,e),pe.deregister(ue)}}),[]),Object(r.useEffect)((function(){var e=he.getFullField(n);return ve.current?ve.current=!1:(ne("Update",n,de),ge.current.field=e,pe.update(ue,ge.current,Ge.current)),function(){Ge.current=e}}),[n]),Z((function(){P&&Xe&&(Xe.current.style.border="5px solid orange",setTimeout((function(){Xe.current.style.borderWidth="2px",Xe.current.style.borderStyle="inset",Xe.current.style.borderColor="initial",Xe.current.style.borderImage="initial"}),500))}));var wt=[].concat(b(Object.values(xt)),b(Object.values(e)),b(Object.values(Y))),Ot=function(e){return Object(r.useMemo)((function(){return st?e:null}),b(wt))},kt=n,jt=ae({fieldType:R,setValue:ht,onChange:N,multiple:L,ref:Xe}),Et=se({setTouched:mt,onBlur:F}),St=ce({fieldType:R,maskedValue:He,multiple:L,value:Ae}),Ct=le(R);return{fieldState:xt,fieldApi:yt,render:Ot,ref:Xe,userProps:p(p({},Y),{},{multiple:L,onChange:N,onBlur:F,id:Y.id||ue}),informed:p({name:kt,multiple:L,onChange:jt,onBlur:Et,value:St,ref:Xe,type:Ct,id:Y.id||ue},Y)}}var fe,de=function(e){var t=i.a.forwardRef((function(t,n){var r=pe(t,n),o=r.fieldState,a=r.fieldApi,s=r.render,c=r.ref,u=r.userProps;return s(i.a.createElement(e,l({fieldApi:a,fieldState:o,field:t.field,forwardedRef:c,debug:t.debug,type:t.type},u)))}));return t.displayName="asField(".concat(V(e),")"),t},he=w("informed:Text\t"),me=de((function(e){var t=e.fieldApi,n=e.fieldState,r=h(e,["fieldApi","fieldState"]),o=n.maskedValue,a=t.setValue,s=t.setTouched,c=r.onChange,u=r.onBlur,p=r.field,f=(r.initialValue,r.forwardedRef),d=r.debug,m=r.label,v=(r.title,r.id),g=h(r,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return he("Render",p),Z((function(){d&&f&&(f.current.style.background="red",setTimeout((function(){f.current.style.background="white"}),500))})),i.a.createElement(i.a.Fragment,null,m?i.a.createElement("label",{htmlFor:v}," ",m," "):null,i.a.createElement("input",l({},g,{id:v,name:p,ref:f,value:o||0===o?o:"",onChange:function(e){a(e.target.value,e),c&&c(e)},onBlur:function(e){s(!0),u&&u(e)}})))})),ve=de((function(e){var t=e.fieldApi,n=e.fieldState,r=h(e,["fieldApi","fieldState"]),o=n.maskedValue,a=t.setValue,s=t.setTouched,c=r.onChange,u=r.onBlur,p=r.field,f=(r.initialValue,r.forwardedRef),d=r.debug,m=r.label,v=r.id,g=h(r,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return Z((function(){d&&f&&(f.current.style.background="red",setTimeout((function(){f.current.style.background="white"}),500))})),i.a.createElement(i.a.Fragment,null,m?i.a.createElement("label",{htmlFor:v}," ",m," "):null,i.a.createElement("textarea",l({},g,{id:v,name:p,ref:f,value:o||"",onChange:function(e){a(e.target.value,e),c&&c(e)},onBlur:function(e){s(!0),u&&u(e)}})))})),ge=w("informed:Select\t"),be=de((function(e){var t=e.fieldApi,n=e.fieldState,o=h(e,["fieldApi","fieldState"]),a=n.value,s=t.setTouched,c=o.onChange,u=o.onBlur,p=o.field,f=(o.initialValue,o.options),d=o.children,m=o.forwardedRef,v=o.debug,g=o.multiple,b=o.label,y=o.id,x=h(o,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),w=Object(r.useRef)();return Z((function(){v&&m&&(m.current.style.background="red",setTimeout((function(){m.current.style.background="white"}),500))})),ge("Render",p,a),i.a.createElement(i.a.Fragment,null,b?i.a.createElement("label",{htmlFor:y}," ",b," "):null,i.a.createElement("select",l({},x,{id:y,multiple:g,name:p,ref:m||w,value:a||(g?[]:""),onChange:function(e){var n=Array.from((m||w).current).filter((function(e){return e.selected})).map((function(e){return e.value}));t.setValue(g?n:n[0]||""),c&&e&&c(e)},onBlur:function(e){s(!0),u&&u(e)}}),f?f.map((function(e){return i.a.createElement("option",{key:e.value,value:e.value,disabled:e.disabled},e.label)})):d))})),ye=de((function(e){var t=e.fieldApi,n=e.fieldState,r=h(e,["fieldApi","fieldState"]),o=n.value,a=t.setValue,s=t.setTouched,c=r.onChange,u=r.onBlur,p=r.field,f=(r.initialValue,r.debug,r.forwardedRef),d=r.id,m=r.label,v=h(r,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return i.a.createElement(i.a.Fragment,null,m?i.a.createElement("label",{htmlFor:d}," ",m," "):null,i.a.createElement("input",l({},v,{id:d,name:p,ref:f,checked:!!o,onChange:function(e){a(e.target.checked),c&&c(e)},onBlur:function(e){s(!0),u&&u(e)},type:"checkbox"})))})),xe=(fe=function(e){var t=e.radioGroupApi,n=e.radioGroupState,r=h(e,["radioGroupApi","radioGroupState"]),o=n.value,a=t.setValue,s=t.setTouched,c=t.onChange,u=t.onBlur,p=r.value,f=r.onChange,d=r.onBlur,m=r.field,v=(r.initialValue,r.forwardedRef),g=h(r,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return i.a.createElement("input",l({},g,{name:m,ref:v,value:p,checked:o===p,onChange:function(e){e.target.checked&&(a(p),f&&f(e),c&&c(e))},onBlur:function(e){s(!0),d&&d(e),u&&u(e)},type:"radio"}))},i.a.forwardRef((function(e,t){return i.a.createElement(L.Consumer,null,(function(n){var r=n.radioGroupApi,o=n.radioGroupState;return i.a.createElement(fe,l({radioGroupApi:r,radioGroupState:o,ref:t},e))}))}))),we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(n,e);var t=v(n);function n(){return o(this,n),t.apply(this,arguments)}return s(n,[{key:"render",value:function(){var e=this.props,t=e.options,n=e.children;return i.a.createElement(L.Provider,{value:this.groupContext},t?t.map((function(e){return i.a.createElement("label",{key:e.value},e.label," ",i.a.createElement(xe,{value:e.value}))})):n)}},{key:"groupContext",get:function(){return{radioGroupApi:p(p({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(r.Component),Oe=de(we);var ke=w("informed:useArrayField\t"),je=function(e){var t=e.field,n=e.initialValue,o=e.validate,a=e.arrayFieldApiRef,s=h(e,["field","initialValue","validate","arrayFieldApiRef"]),c=U(),l=g(Object(r.useState)(new Map),1)[0],u=Object(r.useContext)(T),f=c.getFullField(t),d=u.getInitialValue(t)||n||[],m=g($(c.getSavedValue(f)&&c.getSavedValue(f).value||d),3),v=m[0],y=m[1],x=m[2],w=g($(v?v.map((function(){return K()})):[]),3),O=w[0],k=w[1],j=w[2],E=Object(r.useMemo)((function(){return function(e,t){var n=null==j()?0:j().length;return o?o(e,n,t):void 0}})),S=pe(p({field:t,validate:o?E:void 0,shadow:!0},s)).fieldApi;Z((function(){var e=function(e){e!==f&&(ke("".concat(f," changed")),RegExp("".concat(f,"\\[[0-9]+\\]")).test(e)&&S.validate())};return c.emitter.on("value",e),function(){c.emitter.removeListener("value",e)}}),[t]);var C=function(e,n){ke("Swapping","".concat(t,"[").concat(e,"] and ").concat(t,"[").concat(n,"]"));var r=b(O);O[e]&&O[n]?(r[e]=O[n],r[n]=O[e]):console.warn("Attempted to swap ".concat(e," with ").concat(n," but one of them does not exist :(")),k(r)},_=function(){O.push(K()),k(b(O))},P=function(e){O.push(K()),k(b(O));var t=b(x());t[O.length-1]=e,y(t)},D=O.map((function(e,n){var r={remove:function(){return function(e){ke("EXPECTING REMOVAL OF","".concat(t,"[").concat(e,"] and ").concat(t,"[").concat(O.length-1,"]")),u.expectRemoval("".concat(t,"[").concat(e,"]")),u.expectRemoval("".concat(t,"[").concat(O.length-1,"]"));var n=O.slice(0,e).concat(O.slice(e+1,O.length));k(n);var r=x(),i=r.slice(0,e).concat(r.slice(e+1,r.length));y(i)}(n)}},i={initialValue:v&&v[n],key:e,field:"".concat(t,"[").concat(n,"]"),index:n};return p(p({arrayFieldItemApi:r,arrayFieldItemState:i},r),i)})),I={add:_,swap:C,addWithInitialValue:P,reset:function(){var e=u.getInitialValue(t)||n||[];y(e);var r=e?e.map((function(){return K()})):[];k(r)}};a&&(a.current=I);var R={fields:D,field:t},L=p(p({},u),{},{register:function(e,t){l.set(e,t);for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];u.register.apply(u,[e,t].concat(r))},deregister:function(e){l.delete(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u.deregister.apply(u,[e].concat(n))},getInitialValue:function(e){if(RegExp("".concat(f,"\\[[0-9]+\\]")).test(e)){var n=e.replace(t,""),r=A.get(x(),n);return ke("Resetting ".concat(n," to ").concat(r)),r}return u.getInitialValue(e)}});return{render:function(e){return i.a.createElement(T.Provider,{value:L},i.a.createElement(F.Provider,{value:I},i.a.createElement(N.Provider,{value:R},e)))},add:_,swap:C,addWithInitialValue:P,fields:D,arrayFieldState:R,arrayFieldApi:I,field:t}};function Ee(e){var t=U();return Object(r.useMemo)((function(){return function(e,t){return p(p({},t),{},{getValue:function(n){return t.getValue("".concat(e,".").concat(n))},getTouched:function(n){return t.getTouched("".concat(e,".").concat(n))},getError:function(n){return t.getError("".concat(e,".").concat(n))},setValue:function(n,r){return t.setValue("".concat(e,".").concat(n),r)},setTouched:function(n,r){return t.setTouched("".concat(e,".").concat(n),r)},setError:function(n,r){return t.setError("".concat(e,".").concat(n),r)},getInitialValue:function(n){return t.getInitialValue("".concat(e,".").concat(n))},getSavedValue:function(n){return t.getSavedValue("".concat(e,".").concat(n))},getFullField:function(n){return"".concat(t.getFullField(e),".").concat(n)}})}(e,t)}),[e])}function Se(){return Object(r.useContext)(I)}var Ce=function(e){var t=e.when,n=e.children;return t(Se())?n:null},_e=function(e){var t=e.relevant,n=e.field,r=h(e,["relevant","field"]),o=U();if(t){var a=o.getFullField(n),s={path:a,parentPath:a.replace(/(.*)[.[].*/,"$1"),get:function(e,t){return A.get(e,t)}};return i.a.createElement(Ce,{when:function(e){var n=e.values;return t(n,s)}},i.a.createElement(Pe,l({field:n},r)))}return i.a.createElement(Pe,l({field:n},r))},Pe=function(e){var t=e.children,n=h(e,["children"]),r=je(n),i=r.render,o=r.arrayFieldState,a=r.arrayFieldApi,s=r.field;return i("function"==typeof t?t(p(p({field:s,arrayFieldApi:a,arrayFieldState:o},a),o)):t)},Ae=function(e){var t=e.arrayFieldItemState,n=e.arrayFieldItemApi,o=e.children,a=Object(r.useContext)(T),s=U(),c=g(Object(r.useState)(0),2),l=(c[0],c[1]),u=g(Object(r.useState)(new Map),1)[0],f=t.field,d=Ee(f);Object(r.useEffect)((function(){var e=function(e){e.slice(0,-1!=e.lastIndexOf("[")?e.lastIndexOf("]")+1:e.length)===f&&l(Math.random())};return s.emitter.on("value",e),function(){s.emitter.removeListener("value",e)}}),[f]);var h,m,v,b,y=(h=s.getState(),m=h.values,v=h.errors,b=h.touched,{values:A.get(m,f),errors:A.get(v,f),touched:A.get(b,f)}),x=p(p({},a),{},{register:function(e,t,n){u.set(e,t),a.register(e,t,n)},deregister:function(e){u.delete(e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.deregister.apply(a,[e].concat(n))}}),w=p(p(p({},n),d),{},{reset:function(){u.forEach((function(e){e.fieldApi.reset()}))}}),O=p(p({},t),y);return"function"==typeof o?i.a.createElement(T.Provider,{value:x},i.a.createElement(M.Provider,{value:w},i.a.createElement(B.Provider,{value:O},o(p(p({arrayFieldItemApi:w,arrayFieldItemState:O},w),O))))):i.a.createElement(T.Provider,{value:x},i.a.createElement(M.Provider,{value:w},i.a.createElement(B.Provider,{value:O},o)))};_e.Items=function(e){var t=e.children;return Object(r.useContext)(N).fields.map((function(e){var n=e.arrayFieldItemState,r=e.arrayFieldItemApi,o=n.key;return i.a.createElement(Ae,{key:o,arrayFieldItemApi:r,arrayFieldItemState:n},t)}))};var De=function(e){var t=e.components,n=Object(r.useContext)(T).fieldMap;return t?t.map((function(e,t){var r=e["ui:control"],o=n[r];return i.a.createElement(o,{key:"ui-comp-".concat(t)})})):null},Te=w("informed:FormFields\t"),Ie=function e(t){var n=t.schema,o=t.prefix,a=t.onlyValidateSchema,s=Object(r.useContext)(T).fieldMap;return Object(r.useMemo)((function(){return J(n,a,o).map((function(t,n){var r=t.field,o=t.props,a=t.type,c=t.properties,u=t.items,p=t.componentType,f=t.uiBefore,d=t.uiAfter,h=t.allOf,m=s[p];return Te("Rendering Field",r,t),!m&&"object"===a&&c?i.a.createElement(e,{schema:t,prefix:r,key:"ScheamField-".concat(n)}):!m&&"array"===a&&u?i.a.createElement(Re,l({key:"ScheamField-".concat(n),field:r,items:u,uiBefore:f,uiAfter:d},o)):m&&"array"===p&&u&&"array"===a?i.a.createElement(m,l({key:"ScheamField-".concat(n),field:r,items:u,uiBefore:f,uiAfter:d},o)):"conditionals"===p?h.map((function(t){var r=t.then,o=t.if.properties;return i.a.createElement(Ce,{key:"ScheamField-".concat(n),when:function(e){var t=e.values;return Object.keys(o).every((function(e){var n=o[e];return t[e]===n.const}))}},i.a.createElement(e,{schema:r}))})):m?i.a.createElement(m,l({key:"ScheamField-".concat(n),field:r},o)):null}))}),[n,o])},Re=function(e){var t=e.field,n=e.items,r=e.uiBefore,o=e.uiAfter,a=h(e,["field","items","uiBefore","uiAfter"]);return i.a.createElement(_e,l({field:t},a),i.a.createElement(De,{components:r}),i.a.createElement(_e.Items,null,(function(e){var t=e.field;return i.a.createElement(i.a.Fragment,null,i.a.createElement(De,{components:n["ui:before"]}),i.a.createElement(Ie,{schema:n,prefix:t}),i.a.createElement(De,{components:n["ui:after"]}))})),i.a.createElement(De,{components:o}))},Le={select:be,input:me,textarea:ve,checkbox:ye,radio:Oe,add:function(){var e=Object(r.useContext)(F).add;return i.a.createElement("button",{onClick:function(){e()},type:"button"},"Add")},remove:function(){var e=Object(r.useContext)(M).remove;return i.a.createElement("button",{onClick:function(){e()},type:"button"},"Remove")},array:Re},Ne=w("informed:Controller\t"),Fe=function(){},Me=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.options=n,this.subscriptions=new Map;var r=n.ajv,i=n.schema,a=n.fieldMap;this.ajv=r?new r({allErrors:!0}):null,this.ajvValidate=r?this.ajv.compile(i):null,this.fieldMap=a||Le,this.fieldsById=new Map,this.fieldsByName={get:function(e){var n;return t.fieldsById.forEach((function(t){t&&t.field===e&&(n=t)})),n}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:Fe,setTouched:Fe,setError:Fe,reset:Fe,validate:Fe,getValue:Fe,getTouched:Fe,getError:Fe,getFieldState:Fe,checkRelevant:Fe,getPristine:Fe,getDirty:Fe}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.fieldsById.get(e);i.shadow||A.set(t.state.values,i.field,i.fieldApi.getValue()),i.fieldApi.relevant(t.state.values)||A.delete(t.state.values,i.field),t.fieldsById.forEach((function(e){var n=e.fieldApi.checkRelevant();e.fieldApi.multistepRelevant(t.state.values)&&(n||e.keepState)||(A.delete(t.state.values,e.field),A.delete(t.state.touched,e.field),A.delete(t.state.errors,e.field))})),r&&(t.emit("change"),t.emit("field",i.field),t.emit("value",i.field,n))},setTouched:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.fieldsById.get(e);!i.shadow&&i.fieldApi.getIsRelevant()&&A.set(t.state.touched,i.field,i.fieldApi.getTouched()),i.shadow&&null!=i.fieldApi.getError()&&i.fieldApi.relevant(t.state.values)&&A.set(t.state.touched,i.field,i.fieldApi.getTouched()),r&&(t.emit("change"),t.emit("field",i.field))},setError:function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=t.fieldsById.get(e);!i.shadow&&i.fieldApi.getIsRelevant()&&A.set(t.state.errors,i.field,i.fieldApi.getError());var o=A.get(t.state.errors,i.field);(i.shadow&&null!=i.fieldApi.getError()&&i.fieldApi.relevant(t.state.values)||i.shadow&&void 0===i.fieldApi.getError()&&i.fieldApi.relevant(t.state.values)&&"string"==typeof o)&&A.set(t.state.errors,i.field,i.fieldApi.getError()),r&&(t.emit("change"),t.emit("field",i.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",(function(e){delete t.state.error,t.notify(e)}))}return s(e,[{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=this.subscriptions.get(e);i&&i.forEach((function(e){return e.apply(void 0,n)}))}},{key:"on",value:function(e,t){this.subscriptions.get(e)||this.subscriptions.set(e,new Set),this.subscriptions.get(e).add(t)}},{key:"removeListener",value:function(e,t){this.subscriptions.get(e).delete(t)}},{key:"setOptions",value:function(e){this.options=e}},{key:"setValue",value:function(e,t,n){this.getField(e).fieldApi.setValue(t,null,p({allowEmptyString:this.options.allowEmptyStrings},n))}},{key:"setTouched",value:function(e,t){this.getField(e).fieldApi.setTouched(t)}},{key:"setError",value:function(e,t){this.getField(e).fieldApi.setError(t)}},{key:"setFormError",value:function(e){this.state.error=e,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(e,t){this.state.validating=this.state.validating-1,this.getError(e)||this.setError(e,t),this.state.validating>0||this.state.submitting&&(this.valid()?(Ne("Submit",this.state),this.emit("submit")):(Ne("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(e){this.state.step=e,this.emit("change")}},{key:"setCurrent",value:function(e){this.state.Current=e,this.emit("change")}},{key:"back",value:function(e){this.state.step=this.state.step-1,this.state.Current=e,this.emit("change")}},{key:"next",value:function(e){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=e),this.emit("change")}},{key:"setInitialValue",value:function(e,t){A.set(this.options.initialValues,e,t)}},{key:"getFormState",value:function(){return Ne("Returning form state"),p(p({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(e){var t=this.getValues();return A.get(t,e)}},{key:"getValue",value:function(e){var t=this.getField(e).fieldApi.getValue();return Ne("Getting value for",e,t),t}},{key:"getTouched",value:function(e){var t=this.getField(e).fieldApi.getTouched();return Ne("Getting touched for",e,t),t}},{key:"getError",value:function(e){var t=this.getField(e).fieldApi.getError();return Ne("Getting error for",e,t),t}},{key:"getDirty",value:function(e){var t=this.getField(e).fieldApi.getDirty();return Ne("Getting dirty for",e,t),t}},{key:"getPristine",value:function(e){var t=this.getField(e).fieldApi.getPristine();return Ne("Getting pristine for",e,t),t}},{key:"getValues",value:function(){return Ne("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return Ne("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return Ne("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(e){var t=this.fieldsByName.get(e);return t&&t.shadow?A.get(this.savedValues,"shadow-".concat(e)):A.get(this.savedValues,e)}},{key:"removeSavedState",value:function(e){var t=this.fieldsByName.get(e);return t&&t.shadow?A.delete(this.savedValues,"shadow-".concat(e)):A.delete(this.savedValues,e)}},{key:"getFullField",value:function(e){return e}},{key:"getInitialValue",value:function(e){return A.get(this.options.initialValues,e)}},{key:"getField",value:function(e){Ne("Getting Field",e);var t=this.fieldsByName.get(e);return t||(console.warn("Attempting to get field ".concat(e," but it does not exist")),this.dummyField)}},{key:"notify",value:function(e){var t=this,n=this.getField(e);n&&n.notify&&n.notify.forEach((function(n){var r=".".concat(e),i="".concat(r.replace(/(.*)[.[].*/,"$1"),".").concat(n).slice(1),o=t.getField(i);o&&(Ne("Notifying",o.field),o.fieldApi.validate(),o.fieldApi.checkRelevant())}))}},{key:"validateField",value:function(e){this.getField(e).fieldApi.validate()}},{key:"resetField",value:function(e){this.getField(e).fieldApi.reset()}},{key:"fieldExists",value:function(e){return null!=this.fieldsByName.get(e)}},{key:"valid",value:function(){var e=this.getErrors();return!(!A.empty(e)||this.state.error)}},{key:"screenValid",value:function(){return!Object.entries(this.onScreen).some((function(e){return g(e,2)[1].fieldApi.getError()}))}},{key:"invalid",value:function(){var e=this.getErrors();return!(A.empty(e)&&!this.state.error)}},{key:"pristine",value:function(){var e=!0;return this.fieldsById.forEach((function(t){t.fieldApi.getPristine()||(e=!1)})),e}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){Ne("Resetting"),this.fieldsById.forEach((function(e){e.fieldApi.reset({preventUpdate:!0})})),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(e){Ne("Setting values"),this.fieldsById.forEach((function(t){var n=A.get(e,t.field);void 0!==n&&t.fieldApi.setValue(n,null,{preventUpdate:!0})})),this.emit("change")}},{key:"validate",value:function(){var e=this;Ne("Validating all fields");var t=this.getValues();if(this.options.validationSchema){var n=H(this.options.validationSchema,t);this.fieldsById.forEach((function(t){if(A.has(n,t.field)){var r=A.get(n,t.field);e.setError(t.field,r)}else e.setError(t.field,void 0)}))}if(this.options.schema&&this.options.ajv){var r=Y(this.ajvValidate,t);this.fieldsById.forEach((function(t){if(A.has(r,t.field)){var n=A.get(r,t.field);e.setError(t.field,n)}else e.setError(t.field,void 0)}))}if(this.fieldsById.forEach((function(e){e.fieldApi.validate(t),e.fieldApi.setTouched(!0,!0)})),this.options.validate){var i=this.options.validate(t);this.setFormError(i)}if(this.options.validateFields){var o=this.options.validateFields(t);this.fieldsById.forEach((function(t){if(A.has(o,t.field)){var n=A.get(o,t.field);e.setError(t.field,n)}}))}}},{key:"asyncValidate",value:function(){Ne("Async Validating all fields");var e=this.getValues();this.fieldsById.forEach((function(t){t.fieldApi.asyncValidate(e)}))}},{key:"keyDown",value:function(e){if(13==e.keyCode&&this.options.preventEnter)return e.preventDefault(e),!1}},{key:"submitForm",value:function(e){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&e&&e.preventDefault(e),this.validate(),this.emit("change"),this.asyncValidate(),this.state.validating>0||(this.valid()?(Ne("Submit",this.state),this.emit("submit")):(Ne("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var e=this;this.fieldsById.forEach((function(t){e.emit("field",t.field)}))}},{key:"register",value:function(e,t,n){var r=t.field,i=t.state;Ne("Register ID:",e,"Name:",r,i,"Initial",n);var o,a=r.slice(0,-1!=r.lastIndexOf("[")?r.lastIndexOf("]")+1:r.length);this.fieldsById.forEach((function(e,t){e&&e.field===r&&(o=t)})),//!this.expectedRemovals[magicValue] &&
23
23
  o&&(t.keepState||t.inMultistep)?(Ne("Already Registered",r),this.fieldsById.delete(o))://!this.expectedRemovals[magicValue] &&
24
- !o||t.keepState&&t.inMultistep||console.warn("Check to make sure you have not registered two fields with the fieldName",r),Ne("Fields Registered",this.fieldsById.size),this.onScreen[e]=t,this.fieldsById.set(e,t),Ne("clearing expected removal",a),delete this.expectedRemovals[a],delete this.pulledOut[a],t.shadow||(this.updater.setValue(e,t.fieldApi.getValue(),!1),this.updater.setError(e,t.fieldApi.getError(),!1),this.updater.setTouched(e,t.fieldApi.getTouched(),!1),n||this.emit("change"),this.emit("field",r))}},{key:"deregister",value:function(e){var t=this.fieldsById.get(e),n=t.field;Ne("Deregister",e,n),delete this.onScreen[e];var r=function(e,t){var n=Object.keys(t).find((function(t){return e.includes(t)}));if(n)return e.slice(0,n.length)===n}(n,this.expectedRemovals),i=n.slice(0,-1!=n.lastIndexOf("[")?n.lastIndexOf("]")+1:n.length);!t.keepState&&!t.inMultistep||r||(Ne("Saving field ".concat(n,"'s value"),t.fieldApi.getFieldState()),t.shadow?A.set(this.savedValues,"shadow-".concat(n),t.fieldApi.getFieldState()):A.set(this.savedValues,n,t.fieldApi.getFieldState())),(r||!t.keepState&&!t.inMultistep||!t.fieldApi.getIsRelevant()&&!t.keepState)&&(Ne("Removing field",n),this.fieldsById.delete(e),r||(A.delete(this.state.values,n),A.delete(this.state.touched,n),A.delete(this.state.errors,n),t.shadow?A.delete(this.savedValues,"shadow-".concat(n)):A.delete(this.savedValues,n)),r&&this.pulledOut[i]&&(Ne("Pulling out",n,"with magic value",i),A.pullOut(this.state.values,i),A.pullOut(this.state.touched,i),A.pullOut(this.state.errors,i),A.pullOut(this.savedValues,i),delete this.pulledOut[i])),this.emit("change")}},{key:"expectRemoval",value:function(e){Ne("Expecting removal of",e),this.expectedRemovals[e]=!0,this.pulledOut[e]=!0}},{key:"update",value:function(e,t,n){Ne("Update",e,t.field,n,t.fieldState.value);var r=t.fieldApi.getValue(),i=t.fieldApi.getError(),o=t.fieldApi.getTouched(),a=this.fieldsByName.get(n);n&&!a&&(A.set(this.state.values,n),A.set(this.state.errors,n),A.set(this.state.touched,n)),A.set(this.state.values,t.field,r),A.set(this.state.errors,t.field,i),A.set(this.state.touched,t.field,o),this.emit("change")}}]),e}(),Be=w("informed:FormProvider\t\t"),ze=function(e){var t=e.children,n=e.formApi,r=e.formController,o=e.formState,a=h(e,["children","formApi","formController","formState"]);if(Be("Render FormProvider"),n)return Be("Render FormProvider with given values"),i.a.createElement(T.Provider,{value:r.updater},i.a.createElement(R.Provider,{value:n},i.a.createElement(I.Provider,{value:o},t)));Be("Render FormProvider with generated values");var s=$e(a);return i.a.createElement(T.Provider,{value:s.formController.updater},i.a.createElement(R.Provider,{value:s.formApi},i.a.createElement(I.Provider,{value:s.formState},t)))},Ue=w("informed:useForm\t\t"),$e=function(e){var t=e.dontPreventDefault,n=e.initialValues,o=e.validate,a=e.validateFields,s=e.allowEmptyStrings,c=e.preventEnter,l=e.getApi,u=e.apiRef,p=e.onChange,f=e.onReset,d=e.onSubmit,m=e.onValueChange,v=e.onSubmitFailure,b=e.validationSchema,y=e.schema,x=e.ajv,w=e.fieldMap,O=e.onlyValidateSchema,k=h(e,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);Ue("Render useForm");var j=Object(r.useMemo)((function(){return{dontPreventDefault:t,initialValues:n,validate:o,validateFields:a,allowEmptyStrings:s,preventEnter:c,validationSchema:b,schema:y,ajv:x,fieldMap:w}}),[t,n,o,a,s,c,b,y,x,w]),E=g(Object(r.useState)((function(){return new Me(j)})),1)[0];Object(r.useEffect)((function(){E.setOptions(j)}),[j]),Z((function(){E.mount()}),[]);var S=g(Object(r.useState)((function(){return E.getFormState()})),2),C=S[0],_=S[1];Z((function(){var e=function(){return p&&p(E.getFormState())},t=function(){return f&&f()},n=function(){return d&&d(E.getFormState().values)},r=function(){return m&&m(E.getFormState().values)},i=function(){return v&&v(E.getFormState().errors)};return E.on("change",e),E.on("reset",t),E.on("submit",n),E.on("value",r),E.on("failure",i),function(){E.removeListener("change",e),E.removeListener("reset",t),E.removeListener("submit",n),E.removeListener("value",r),E.removeListener("failure",i)}}),[p,f,d,m,v]),Object(r.useState)((function(){E.on("change",(function(){Ue("Setting form state"),_(E.getFormState())})),l&&l(E.getFormApi()),u&&(u.current=E.getFormApi())}));var P=g(Object(r.useState)((function(){return E.getFormApi()})),1)[0];return{formApi:P,formState:C,formController:E,render:function(e){return i.a.createElement(ze,{formApi:P,formState:C,formController:E},i.a.createElement(i.a.Fragment,null,e||i.a.createElement(Ie,{schema:y,onlyValidateSchema:O})))},userProps:k}},Ve=w("informed:Form\t\t"),qe=function(e){var t=e.children,n=e.render,r=e.component,o=h(e,["children","render","component"]);Ve("Render FORM");var a,s=$e(o),c=s.formApi,u=s.formController,p=s.formState,f=s.render,d=s.userProps;return f(i.a.createElement("form",l({},d,{onReset:u.reset,onSubmit:u.submitForm,onKeyDown:u.keyDown}),(a={formState:p,formApi:c},r?i.a.createElement(r,a,t):n?n(a):"function"==typeof t?t(a):t)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(3),o=n(4);function a(e,t,n){e.forEach((function(e){if(e.items&&a(e.items,t,n),e.id=n+"/"+e.id,"operation"===e.type){e.specIdx=t;for(var r=0,i=e.security;r<i.length;r++)for(var o=0,s=i[r].schemes;o<s.length;o++){var c=s[o];c.sectionId=n+"/"+c.sectionId}}}))}var s=function(){function e(e,t,n){if(Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"versions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeVersionIdx",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object(o.n)(this),this.versions=[],e.versions){for(var r=0,s=0,c=0,l=e.versions||[];c<l.length;c++){var u=l[c];u.isDefault&&(s=r);var p=new i.V(u.spec,void 0,t);this.versions.push(p),a(p.contentItems,r,u.id);for(var f=0,d=p.securitySchemes.schemes;f<d.length;f++){var h=d[f];h.sectionId=u.id+"/"+h.sectionId}u.id===n&&(this.activeVersionIdx=r),r++,u._searchIndexName&&(p._searchIndexName=u._searchIndexName)}-1===this.activeVersionIdx&&(this.activeVersionIdx=s),e.versions[s].isDefault=!0}}return Object.defineProperty(e.prototype,"versionsInfo",{get:function(){return this.config.versions||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentVersionId",{get:function(){return this.versionsInfo[this.activeVersionIdx]&&this.versionsInfo[this.activeVersionIdx].id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentItems",{get:function(){return this.versions[this.activeVersionIdx].contentItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"securitySchemes",{get:function(){return this.versions[this.activeVersionIdx].securitySchemes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"externalDocs",{get:function(){return this.versions[this.activeVersionIdx].externalDocs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this.versions[this.activeVersionIdx].parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"info",{get:function(){return this.versions[this.activeVersionIdx].info},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeVersion",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeVersionIdx=e}}),Object.defineProperty(e.prototype,"toJS",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.config}}),Object(r.c)([o.o],e.prototype,"activeVersionIdx",void 0),Object(r.c)([o.f],e.prototype,"changeVersion",null),e}()},function(e,t,n){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!o.test(e))return e;return e.replace(i,a)},t.isEmpty=function(e){return!e&&0!==e||!(!u(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},i=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(e){return r[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var c=Object.prototype.toString;t.toString=c;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===c.call(e)}),t.isFunction=l;var u=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===c.call(e)};t.isArray=u},function(e,t,n){var r=n(35);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(1),i=n(12),o=n(2);function a(e,t){return e.colors[t||"secondary"]||e.colors.secondary}var s,c,l,u,p,f=Object(o.d)(c||(c=Object(r.f)(["\n outline: none;\n border: none;\n background-color: ",";\n color: ",";\n border-radius: ",";\n font-weight: ",";\n font-size: 14px;\n padding: 2px 20px;\n cursor: pointer;\n transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;\n line-height: 1;\n\n font-family: ",";\n box-shadow: ",";\n\n &:hover {\n background-color: ",";\n ",";\n box-shadow: ",";\n }\n\n &:active {\n background-color: ",";\n box-shadow: ",";\n }\n"],["\n outline: none;\n border: none;\n background-color: ",";\n color: ",";\n border-radius: ",";\n font-weight: ",";\n font-size: 14px;\n padding: 2px 20px;\n cursor: pointer;\n transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;\n line-height: 1;\n\n font-family: ",";\n box-shadow: ",";\n\n &:hover {\n background-color: ",";\n ",";\n box-shadow: ",";\n }\n\n &:active {\n background-color: ",";\n box-shadow: ",";\n }\n"])),(function(e){return e.theme.colors.secondary.main}),(function(e){return e.theme.colors.secondary.contrastText}),(function(e){return e.theme.components.buttons.borderRadius}),(function(e){return e.theme.components.buttons.fontWeight}),(function(e){return e.theme.components.buttons.fontFamily}),(function(e){return e.theme.components.buttons.boxShadow}),(function(e){var t=e.theme;return Object(i.a)(.05,t.colors.secondary.main)}),(function(e){return e.theme.components.buttons.hoverStyle}),(function(e){return e.theme.components.buttons.hoverBoxShadow}),(function(e){var t=e.theme;return Object(i.a)(.1,t.colors.secondary.main)}),(function(e){return e.theme.components.buttons.hoverBoxShadow})),d=o.e.button(p||(p=Object(r.f)(["\n text-decoration: none;\n text-align: center;\n\n width: ",";\n\n ","\n\n ","\n ","\n\n & + & {\n margin-left: 0.85em;\n }\n\n ","\n\n ","\n"],["\n text-decoration: none;\n text-align: center;\n\n width: ",";\n\n ","\n\n ","\n ","\n\n & + & {\n margin-left: 0.85em;\n }\n\n ","\n\n ","\n"])),(function(e){return e.fullWidth?"100%":"auto"}),f,(function(e){var t=e.color,n=e.theme,r=e.variant;return function(e,t){return"outlined"===t?"\n background-color: transparent;\n border: 2px solid "+e.main+";\n color: "+e.main+";\n &:hover {\n border: 2px solid "+Object(i.a)(.1,e.main)+";\n background-color: transparent;\n }\n\n &:active {\n border: 2px solid "+Object(i.a)(.15,e.main)+";\n }\n":"\n background-color: "+e.main+";\n color: "+e.contrastText+";\n &:hover {\n background-color: "+Object(i.a)(.05,e.main)+";\n }\n\n &:active {\n background-color: "+Object(i.a)(.1,e.main)+";\n }\n"}(a(n,t),r)}),(function(e){var t=e.size;return function(e){return"\n font-size: "+e.fontSize+";\n padding: "+e.padding+";\n min-width: "+e.minWidth+";\n"}(function(e,t){return e.components.buttons.sizes[t||"medium"]||e.components.buttons.sizes.normal}(e.theme,t))}),(function(e){var t=e.blinking,n=e.color,c=e.theme;return t&&Object(o.d)(l||(l=Object(r.f)(["\n pointer-events: none;\n animation: "," 1.2s infinite;\n "],["\n pointer-events: none;\n animation: "," 1.2s infinite;\n "])),function(e){return Object(o.g)(s||(s=Object(r.f)(["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: ",";\n }\n\n 100% {\n background-color: ",";\n }\n"],["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: ",";\n }\n\n 100% {\n background-color: ",";\n }\n"])),Object(i.a)(.1,e),e,Object(i.a)(.1,e))}(a(c,n).main))}),(function(e){return e.disabled&&Object(o.d)(u||(u=Object(r.f)(["\n &,\n &:hover {\n cursor: default;\n color: #999;\n pointer-events: none;\n }\n "],["\n &,\n &:hover {\n cursor: default;\n color: #999;\n pointer-events: none;\n }\n "])))}))},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),x=/win/i.test(t),w=p&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(p=!1,c=!0);var O=b&&(l||p&&(null==w||w<12.11)),k=n||a&&s>=9;function j(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,S=function(e,t){var n=e.className,r=j(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return C(e).appendChild(t)}function P(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=P(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function T(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function I(e,t){var n=e.className;j(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!j(n[r]).test(t)&&(t+=" "+n[r]);return t}E=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function N(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function F(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function M(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},V={origin:"*mouse"},q={origin:"+move"};function H(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var W=[""];function Q(e){for(;W.length<=e;)W.push(Y(W)+" ");return W[e]}function Y(e){return e[e.length-1]}function K(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function G(){}function J(e,t){var n;return Object.create?n=Object.create(e):(G.prototype=e,n=new G),t&&F(t,n),n}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var c="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var l,u=a.length,p=[],f=0;f<u;++f)p.push((l=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var d=0,h=c;d<u;++d){var m=p[d];"m"==m?p[d]=h:h=m}for(var v=0,g=c;v<u;++v){var b=p[v];"1"==b&&"r"==g?p[v]="n":n.test(b)&&(g=b,"r"==b&&(p[v]="R"))}for(var y=1,x=p[0];y<u-1;++y){var w=p[y];"+"==w&&"1"==x&&"1"==p[y+1]?p[y]="1":","!=w||x!=p[y+1]||"1"!=x&&"n"!=x||(p[y]=x),x=w}for(var O=0;O<u;++O){var k=p[O];if(","==k)p[O]="N";else if("%"==k){var j=void 0;for(j=O+1;j<u&&"%"==p[j];++j);for(var E=O&&"!"==p[O-1]||j<u&&"1"==p[j]?"1":"N",S=O;S<j;++S)p[S]=E;O=j-1}}for(var C=0,_=c;C<u;++C){var P=p[C];"L"==_&&"1"==P?p[C]="L":n.test(P)&&(_=P)}for(var A=0;A<u;++A)if(t.test(p[A])){var D=void 0;for(D=A+1;D<u&&t.test(p[D]);++D);for(var T="L"==(A?p[A-1]:c),I=T==("L"==(D<u?p[D]:c))?T?"L":"R":c,R=A;R<D;++R)p[R]=I;A=D-1}for(var L,N=[],F=0;F<u;)if(r.test(p[F])){var M=F;for(++F;F<u&&r.test(p[F]);++F);N.push(new o(0,M,F))}else{var B=F,z=N.length,U="rtl"==s?1:0;for(++F;F<u&&"L"!=p[F];++F);for(var $=B;$<F;)if(i.test(p[$])){B<$&&(N.splice(z,0,new o(1,B,$)),z+=U);var V=$;for(++$;$<F&&i.test(p[$]);++$);N.splice(z,0,new o(2,V,$)),z+=U,B=$}else++$;B<F&&N.splice(z,0,new o(1,B,F))}return"ltr"==s&&(1==N[0].level&&(L=a.match(/^\s+/))&&(N[0].from=L[0].length,N.unshift(new o(0,0,L[0].length))),1==Y(N).level&&(L=a.match(/\s+$/))&&(Y(N).to-=L[0].length,N.push(new o(0,u-L[0].length,u)))),"rtl"==s?N.reverse():N}}();function le(e,t){var n=e.order;return null==n&&(n=e.order=ce(e.text,t)),n}var ue=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ue).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||ue}function de(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=z(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),we(t)||t.codemirrorIgnore}function ve(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function ge(e,t){return fe(e,t).length>0}function be(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){ye(e),xe(e)}function ke(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ee,Se,Ce=function(){if(a&&s<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}();function _e(e){if(null==Ee){var t=P("span","​");_(e,P("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ee?P("span","​"):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Pe(e){if(null!=Se)return Se;var t=_(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Se=r.right-n.right<3)}var Ae,De=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Te=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ae=P("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),Re=null,Le={},Ne={};function Fe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Le[e]=t}function Me(e){if("string"==typeof e&&Ne.hasOwnProperty(e))e=Ne[e];else if(e&&"string"==typeof e.name&&Ne.hasOwnProperty(e.name)){var t=Ne[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Me("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Me("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Me(t);var n=Le[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ue(e,t){F(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function $e(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var He=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function We(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Qe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ye(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ke(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Ge(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Je(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Xe(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,We(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,We(e,t.line).text.length)}function ct(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}He.prototype.eol=function(){return this.pos>=this.string.length},He.prototype.sol=function(){return this.pos==this.lineStart},He.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},He.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},He.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},He.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},He.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},He.prototype.skipToEnd=function(){this.pos=this.string.length},He.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},He.prototype.backUp=function(e){this.pos-=e},He.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=M(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?M(this.string,this.lineStart,this.tabSize):0)},He.prototype.indentation=function(){return M(this.string,null,this.tabSize)-(this.lineStart?M(this.string,this.lineStart,this.tabSize):0)},He.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},He.prototype.current=function(){return this.string.slice(this.start,this.pos)},He.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},He.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},He.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,r){var i=[e.state.modeGen],o={};xt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,xt(e,t.text,s.mode,n,(function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;n<c;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=dt(e,Ge(t)),i=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=pt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ut(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=We(o,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof lt?l.lookAhead:0)<=o.modeFrontier))return s;var u=M(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&We(r,o-1).stateAfter,s=a?ut.fromSaved(r,a,o):new ut(r,qe(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new He(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)vt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ve(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function vt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ve(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof lt?new ut(e,$e(e.mode,t.state),n,t.lookAhead):new ut(e,$e(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function bt(e,t,n,r){var i,o,a=e.doc,s=a.mode,c=We(a,(t=st(a,t)).line),l=dt(e,t.line,n),u=new He(c.text,e.options.tabSize,l);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=vt(s,u,l.state),r&&o.push(new gt(u,i,$e(a.mode,l.state)));return r?o:new gt(u,i,l.state)}function yt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function xt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var c,l=0,u=null,p=new He(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&yt(mt(n,r.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,p.pos),p.pos=t.length,c=null):c=yt(vt(n,p,r.state,f),o),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;l<p.start;)i(l=Math.min(p.start,l+5e3),u);u=c}p.start=p.pos}for(;l<p.pos;){var h=Math.min(p.pos,l+5e3);i(h,u),l=h}}var wt=!1,Ot=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function jt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Et(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function St(e,t){if(t.full)return null;var n=Xe(e,t.from.line)&&We(e,t.from.line).markedSpans,r=Xe(e,t.to.line)&&We(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new kt(a,o.from,s?null:o.to))}}return r}(n,i,a),c=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),l=1==t.text.length,u=Y(t.text).length+(l?i:0);if(s)for(var p=0;p<s.length;++p){var f=s[p];if(null==f.to){var d=jt(c,f.marker);d?l&&(f.to=null==d.to?null:d.to+u):f.to=i}}if(c)for(var h=0;h<c.length;++h){var m=c[h];null!=m.to&&(m.to+=u),null==m.from?jt(s,m.marker)||(m.from=u,l&&(s||(s=[])).push(m)):(m.from+=u,l&&(s||(s=[])).push(m))}s&&(s=Ct(s)),c&&c!=s&&(c=Ct(c));var v=[s];if(!l){var g,b=t.text.length-2;if(b>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(g||(g=[])).push(new kt(s[y].marker,null,null));for(var x=0;x<b;++x)v.push(g);v.push(c)}return v}function Ct(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function _t(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Pt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function At(e){return e.inclusiveLeft?-1:0}function Dt(e){return e.inclusiveRight?1:0}function Tt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||At(e)-At(t);if(o)return-o;var a=tt(r.to,i.to)||Dt(e)-Dt(t);return a||t.id-e.id}function It(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Tt(n,i.marker)<0)&&(n=i.marker);return n}function Rt(e){return It(e,!0)}function Lt(e){return It(e,!1)}function Nt(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Tt(n,o.marker)<0)&&(n=o.marker)}return n}function Ft(e,t,n,r,i){var o=We(e,t),a=Ot&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];if(c.marker.collapsed){var l=c.marker.find(0),u=tt(l.from,n)||At(c.marker)-At(i),p=tt(l.to,r)||Dt(c.marker)-Dt(i);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.from,r)<=0:tt(l.from,r)<0)))return!0}}}function Mt(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=We(e,t),r=Mt(n);return n==r?t:Ge(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=We(e,t);if(!Ut(e,r))return t;for(;n=Lt(r);)r=n.find(1,!0).line;return Ge(r)+1}function Ut(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&$t(e,t,r))return!0}}function $t(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return $t(e,r.line,jt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&$t(e,t,i))return!0}function Vt(e){for(var t=0,n=(e=Mt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function qt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Rt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Lt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Ht(e){var t=e.display,n=e.doc;t.maxLine=We(n,n.first),t.maxLineLength=qt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=qt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Wt=function(e,t,n){this.text=e,Pt(this,t),this.height=n?n(this):1};function Qt(e){e.parent=null,_t(e)}Wt.prototype.lineNo=function(){return Ge(this)},be(Wt);var Yt={},Kt={};function Gt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Kt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=A("span",null,null,c?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Pe(e.display.measure)&&(a=le(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Ge(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=R(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=R(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(_e(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function Xt(e){var t=P("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,c){if(t){var l,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,p=e.cm.state.specialChars,f=!1;if(p.test(t)){l=document.createDocumentFragment();for(var d=0;;){p.lastIndex=d;var h=p.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(u.slice(d,d+m));a&&s<9?l.appendChild(P("span",[v])):l.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var g=void 0;if("\t"==h[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(g=l.appendChild(P("span",Q(y),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?((g=l.appendChild(P("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?l.appendChild(P("span",[g])):l.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,l=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,l),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o||c){var x=n||"";r&&(x+=r),i&&(x+=i);var w=P("span",[l],x,o);if(c)for(var O in c)c.hasOwnProperty(O)&&"style"!=O&&"class"!=O&&w.setAttribute(O,c[O]);return e.content.appendChild(w)}e.content.appendChild(l)}}function en(e,t){return function(n,r,i,o,a,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var p=void 0,f=0;f<t.length&&!((p=t[f]).to>l&&p.from<=l);f++);if(p.to>=u)return e(n,r,i,o,a,s,c);e(n,r.slice(0,p.to-l),i,o,null,s,c),o=null,r=r.slice(p.to-l),l=p.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,c,l,u,p,f,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){c=l=u=s="",f=null,p=null,g=1/0;for(var b=[],y=void 0,x=0;x<r.length;++x){var w=r[x],O=w.marker;if("bookmark"==O.type&&w.from==h&&O.widgetNode)b.push(O);else if(w.from<=h&&(null==w.to||w.to>h||O.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,l=""),O.className&&(c+=" "+O.className),O.css&&(s=(s?s+";":"")+O.css),O.startStyle&&w.from==h&&(u+=" "+O.startStyle),O.endStyle&&w.to==g&&(y||(y=[])).push(O.endStyle,w.to),O.title&&((f||(f={})).title=O.title),O.attributes)for(var k in O.attributes)(f||(f={}))[k]=O.attributes[k];O.collapsed&&(!p||Tt(p.marker,O)<0)&&(p=w)}else w.from>h&&g>w.from&&(g=w.from)}if(y)for(var j=0;j<y.length;j+=2)y[j+1]==g&&(l+=" "+y[j]);if(!p||p.from==h)for(var E=0;E<b.length;++E)tn(t,0,b[E]);if(p&&(p.from||0)==h){if(tn(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(v){var C=h+v.length;if(!p){var _=C>S?v.slice(0,S-h):v;t.addToken(t,_,a?a+c:c,u,h+_.length==g?l:"",s,f)}if(C>=S){v=v.slice(S-h),h=S;break}h=C,u=""}v=i.slice(o,o=n[m++]),a=Gt(n[m++],t.cm.options)}}else for(var P=1;P<n.length;P+=2)t.addToken(t,i.slice(o,o=n[P]),Gt(n[P+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Lt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Ge(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,We(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function cn(e,t){var n=fe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(ln,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function ln(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function un(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&vn(e,t,r)}t.changes=null}function pn(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Jt(e,t)}function dn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=pn(t);t.background=r.insertBefore(P("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?pn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=pn(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=pn(t),s=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(P("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var c=0;c<e.display.gutterSpecs.length;++c){var l=e.display.gutterSpecs[c].className,u=o.hasOwnProperty(l)&&o[l];u&&s.appendChild(P("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function vn(e,t,n){t.alignable&&(t.alignable=null);for(var r=j("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);bn(e,t,n)}function gn(e,t,n,r){var i=fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),bn(e,t,r),t.node}function bn(e,t,n){if(yn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)yn(e,t.rest[r],t,n,!1)}function yn(e,t,n,r,i){if(t.widgets)for(var o=pn(n),a=0,s=t.widgets;a<s.length;++a){var c=s[a],l=P("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),xn(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),cn(c,"redraw")}}function xn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),_(t.display.measure,P("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function On(e,t){for(var n=ke(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function kn(e){return e.lineSpace.offsetTop}function jn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function En(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=_(e.measure,P("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Sn(e){return 50-e.display.nativeBarWidth}function Cn(e){return e.display.scroller.clientWidth-Sn(e)-e.display.barWidth}function _n(e){return e.display.scroller.clientHeight-Sn(e)-e.display.barHeight}function Pn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Ge(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function An(e,t,n,r){return In(e,Tn(e,t),n,r)}function Dn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Tn(e,t){var n=Ge(t),r=Dn(e,n);r&&!r.text?r=null:r&&r.changes&&(un(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Ge(t=Mt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Jt(e,r);return r.text=i.pre,_(e.display.lineMeasure,i.pre),r}(e,t));var i=Pn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function In(e,t,n,r,i){t.before&&(n=-1);var o,c=n+(r||"");return t.cache.hasOwnProperty(c)?o=t.cache[c]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Cn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var c=a[s],l=a[s+1];Math.abs(c.bottom-l.bottom)>2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Nn(t.map,n,r),c=o.node,l=o.start,u=o.end,p=o.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&re(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u<o.coverEnd&&re(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==l&&u==o.coverEnd-o.coverStart?c.parentNode.getBoundingClientRect():Fn(E(c,l,u).getClientRects(),r)).left||i.right||0==l)break;u=l,l-=1,p="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Re)return Re;var t=_(e,P("span","x")),n=t.getBoundingClientRect(),r=E(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;l>0&&(p=r="right"),i=e.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=c.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Ln}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,b=t.view.measure.heights,y=0;y<b.length-1&&!(g<b[y]);y++);var x=y?b[y-1]:0,w=b[y],O={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(O.bogus=!0),e.options.singleCursorHeightPerLine||(O.rtop=m,O.rbottom=v),O}(e,t,n,r)).bogus||(t.cache[c]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Rn,Ln={left:0,right:0,top:0,bottom:0};function Nn(e,t,n){for(var r,i,o,a,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,o=1,a="left"):t<c?o=1+(i=t-s):(l==e.length-3||t==c&&e[l+3]>t)&&(i=(o=c-s)-1,t>=c&&(a="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==c-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:c}}function Fn(e,t){var n=Ln;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Mn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Mn(e.display.view[t])}function zn(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(){return u&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function $n(){return u&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=wn(e.widgets[n]));return t}function qn(e,t,n,r,i){if(!i){var o=Vn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Vt(t);if("local"==r?a+=kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:$n());var c=s.left+("window"==r?0:Un());n.left+=c,n.right+=c}return n.top+=a,n.bottom+=a,n}function Hn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Un(),i-=$n();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Wn(e,t,n,r,i){return r||(r=We(e.doc,t.line)),qn(e,r,An(e,r,t.ch,i),n)}function Qn(e,t,n,r,i,o){function a(t,a){var s=In(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,qn(e,r,s,n)}r=r||We(e.doc,t.line),i||(i=Tn(e,r));var s=le(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return a("before"==l?c-1:c,"before"==l);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=se(s,c,l),f=ae,d=u(c,p,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}function Yn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=We(e.doc,t.line),i=Vt(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Kn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Gn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Kn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(i>o)return Kn(r.first+r.size-1,We(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=We(r,i);;){var s=er(e,a,i,t,n),c=Nt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;a=We(r,i=l.line)}}function Jn(e,t,n,r){r-=Vn(t);var i=t.text.length,o=oe((function(t){return In(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return In(e,n,t).top>r}),o,i)}}function Xn(e,t,n,r){return n||(n=Tn(e,t)),Jn(e,t,n,qn(e,t,In(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Vt(t);var o=Tn(e,t),a=Vn(t),s=0,c=t.text.length,l=!0,u=le(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?nr:tr)(e,t,n,o,u,r,i);s=(l=1!=p.level)?p.from:p.to-1,c=l?p.to:p.from-1}var f,d,h=null,m=null,v=oe((function(t){var n=In(e,o,t);return n.top+=a,n.bottom+=a,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,c),g=!1;if(m){var b=r-m.left<m.right-r,y=b==l;v=h+(y?0:1),d=y?"after":"before",f=b?m.left:m.right}else{l||v!=c&&v!=s||v++,d=0==v?"after":v==t.text.length?"before":In(e,o,v-(l?1:0)).bottom+a<=i==l?"after":"before";var x=Qn(e,et(n,v,d),"line",t,o);f=x.left,g=i<x.top?-1:i>=x.bottom?1:0}return Kn(n,v=ie(t.text,v,1),d,g,r-f)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var c=i[s],l=1!=c.level;return Zn(Qn(e,et(n,l?c.to:c.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=Qn(e,et(n,l?c.from:c.to,l?"after":"before"),"line",t,r);Zn(u,o,a,!0)&&u.top>a&&(c=i[s-1])}return c}function nr(e,t,n,r,i,o,a){var s=Jn(e,t,r,a),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,p=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=l||d.to<=c)){var h=In(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,m=h<o?o-h+1e9:h-o;(!u||p>m)&&(u=d,p=m)}}return u||(u=i[i.length-1]),u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(P("br"));Rn.appendChild(document.createTextNode("x"))}_(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),n=P("pre",[t],"CodeMirror-line-like");_(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function cr(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ke(e,t)}))}function lr(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var c,l=Gn(e,o,a);if(r&&l.xRel>0&&(c=We(e.doc,l.line).text).length==l.ch){var u=M(c,c.length,e.options.tabSize)-c.length;l=et(l.line,Math.max(0,Math.round((o-En(e.display).left)/ir(e.display))-u))}return l}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&Bt(e.doc,t)<i.viewTo&&dr(e);else if(n<=i.viewFrom)Ot&&zt(e.doc,n+r)>i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):dr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):dr(e)}else{var s=hr(e,t,t,-1),c=hr(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):dr(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,n)&&a.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c<o;c++)s+=a[c].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function gr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();(c||e.options.showCursorWhenSelecting)&&br(e,s.head,i),c||xr(e,s,o)}}return r}function br(e,t,n){var r=Qn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(P("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function yr(e,t){return e.top-t.top||e.left-t.left}function xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=En(e.display),s=a.left,c=Math.max(r.sizerWidth,Cn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=We(i,t),f=p.text.length;function d(n,r){return Wn(e,et(t,n),"div",p,r)}function h(t,n,r){var i=Xn(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=le(p,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,p){var v="ltr"==i,g=d(e,v?"left":"right"),b=d(t-1,v?"right":"left"),y=null==n&&0==e,x=null==r&&t==f,w=0==p,O=!m||p==m.length-1;if(b.top-g.top<=3){var k=(l?x:y)&&O,j=(l?y:x)&&w?s:(v?g:b).left,E=k?c:(v?b:g).right;u(j,g.top,E-j,g.bottom)}else{var S,C,_,P;v?(S=l&&y&&w?s:g.left,C=l?c:h(e,i,"before"),_=l?s:h(t,i,"after"),P=l&&x&&O?c:b.right):(S=l?h(e,i,"before"):s,C=!l&&y&&w?c:g.right,_=!l&&x&&O?s:b.left,P=l?h(t,i,"after"):c),u(S,g.top,C-S,g.bottom),g.bottom<b.top&&u(s,g.bottom,null,b.top),u(_,b.top,P-_,b.bottom)}(!o||yr(g,o)<0)&&(o=g),yr(b,o)<0&&(o=b),(!a||yr(g,a)<0)&&(a=g),yr(b,a)<0&&(a=b)})),{start:o,end:a}}var f=t.from(),d=t.to();if(f.line==d.line)p(f.line,f.ch,d.ch);else{var h=We(i,f.line),m=We(i,d.line),v=Mt(h)==Mt(m),g=p(f.line,f.ch,v?h.text.length+1:null).end,b=p(d.line,v?0:null,d.ch).start;v&&(g.top<b.top-2?(u(g.right,g.top,null,g.bottom),u(s,b.top,b.left,b.bottom)):u(g.right,g.top,b.left-g.right,g.bottom)),g.bottom<b.top&&u(s,g.bottom,null,b.top)}n.appendChild(o)}function wr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Er(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Or(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||jr(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Er(e))}),100)}function jr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Er(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Sr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;c=u-n,n=u}else{var p=i.node.getBoundingClientRect();c=p.bottom-p.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-p.left-1)}var f=i.line.height-c;if((f>.005||f<-.005)&&(Ke(i.line,c),Cr(i.line),i.rest))for(var d=0;d<i.rest.length;d++)Cr(i.rest[d]);if(l>e.display.sizerWidth){var h=Math.ceil(l/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Cr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function _r(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Je(t,r),a=Je(t,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<o?(o=s,a=Je(t,Vt(We(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=a&&(o=Je(t,Vt(We(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function Pr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=_n(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+jn(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)a.scrollTop=c?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,d=Cn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+p-(h?0:10)):t.right>d+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Ar(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Dr(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Tr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Rr(e,t,n,r){var i=Pr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Tr(e,i.scrollLeft,i.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ci(e,{top:t}),Nr(e,t,!0),n&&ci(e),ri(e,100))}function Nr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,pi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Mr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=b&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zr=function(){};function Ur(e,t){t||(t=Mr(e));var n=e.display.barWidth,r=e.display.barHeight;$r(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Sr(e),$r(e,Mr(e)),n=e.display.barWidth,r=e.display.barHeight}function $r(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var Vr={native:Br,null:zr};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Fr(e,t):Lr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Hr=0;function Wr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Hr,markArrays:null},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Qr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Yr(t[n]);for(var r=0;r<t.length;r++)Kr(t[r]);for(var i=0;i<t.length;i++)Gr(t[i]);for(var o=0;o<t.length;o++)Jr(t[o]);for(var a=0;a<t.length;a++)Xr(t[a])}(e)}))}function Yr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Sn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Sn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ht(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Kr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Gr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Sr(t),e.barMeasure=Mr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Cn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Jr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==T();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ur(t,e.barMeasure),e.updatedDisplay&&ui(t,e.barMeasure),e.selectionChanged&&wr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Or(e.cm)}function Xr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Nr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Fr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=P("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?et(t.line,t.ch+1,"before"):t,t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Qn(e,t),c=n&&n!=t?Qn(e,n):s,l=Pr(e,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=l.scrollTop&&(Lr(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(Fr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();Wr(e);try{return t()}finally{Qr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wr(e);try{return t.apply(e,arguments)}finally{Qr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{Qr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Wr(t);try{return e.apply(this,arguments)}finally{Qr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,N(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?$e(t.mode,r.state):null,c=pt(e,o,r,!0);s&&(r.state=s),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!p&&f<a.length;++f)p=a[f]!=o.styles[f];p&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Zr(e,(function(){for(var t=0;t<i.length;t++)fr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=_r(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Cn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return dr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;fi(e)&&(dr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ot&&(o=Bt(e.doc,o),a=zt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Vt(We(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=mr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=T();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,p=0;p<l.length;p++){var f=l[p];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var d=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(d=!1),un(e,f,u,n)),d&&(C(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,u)))),a=f.node.nextSibling}else{var h=gn(e,f,u,n);o.insertBefore(h,a)}u+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=T()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Cn(e))r&&(t.visible=_r(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jn(e.display)-_n(e),n.top)}),t.visible=_r(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Sr(e);var i=Mr(e);vr(e),Ur(e,i),ui(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ci(e,t){var n=new oi(e,t);if(ai(e,n)){Sr(e),si(e,n);var r=Mr(e);vr(e),Ur(e,r),ui(e,r),n.finish()}}function li(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",cn(e,"gutterChanged",e)}function ui(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function pi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(P("div",[P("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",li(e.display),!0}return!1}function di(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;C(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(P("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",li(e)}function mi(e){hi(e.display),pr(e),pi(e)}function vi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=P("div",null,"CodeMirror-cursors"),o.measure=P("div",null,"CodeMirror-measure"),o.lineMeasure=P("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=P("div",[l],null,"position: relative"),o.sizer=P("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=P("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=P("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=P("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=P("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),c||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=di(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ge(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var gi=0,bi=null;function yi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function xi(e){var t=yi(e);return t.x*=bi,t.y*=bi,t}function wi(e,t){var r=yi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,l=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||o&&u){if(o&&b&&c)e:for(var f=t.target,d=a.view;f!=s;f=f.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!p&&null!=bi)return o&&u&&Lr(e,Math.max(0,s.scrollTop+o*bi)),Fr(e,Math.max(0,s.scrollLeft+i*bi)),(!o||o&&u)&&ye(t),void(a.wheelStartX=null);if(o&&null!=bi){var m=o*bi,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),ci(e,{top:v,bottom:g})}gi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(bi=(bi*gi+n)/(gi+1),++gi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?bi=-.53:n?bi=15:u?bi=-.7:f&&(bi=-1/3);var Oi=function(e,t){this.ranges=e,this.primIndex=t};Oi.prototype.primary=function(){return this.ranges[this.primIndex]},Oi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},Oi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new Oi(e,this.primIndex)},Oi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Oi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function ji(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=z(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],c=tt(s.to(),a.from());if(r&&!a.empty()?c>0:c>=0){var l=ot(s.from(),a.from()),u=it(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(p?u:l,p?l:u))}}return new Oi(t,n)}function Ei(e,t){return new Oi([new ki(e,t||e)],0)}function Si(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ci(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Si(t).ch-t.to.ch),et(n,r)}function _i(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Ci(i.anchor,t),Ci(i.head,t)))}return ji(e.cm,n,e.sel.primIndex)}function Pi(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Ai(e){e.doc.mode=Be(e.options,e.doc.modeOption),Di(e)}function Di(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&pr(e)}function Ti(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ii(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),_t(e),Pt(e,n);var i=r?r(e):1;i!=e.height&&Ke(e,i)}(e,n,i,r),cn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Wt(l[o],i(o),r));return n}var s=t.from,c=t.to,l=t.text,u=We(e,s.line),p=We(e,c.line),f=Y(l),d=i(l.length-1),h=c.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(Ti(e,t)){var m=a(0,l.length-1);o(p,p.text,d),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==p)if(1==l.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),d);else{var v=a(1,l.length-1);v.push(new Wt(f+u.text.slice(c.ch),d,r)),o(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,v)}else if(1==l.length)o(u,u.text.slice(0,s.ch)+l[0]+p.text.slice(c.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+l[0],i(0)),o(p,f+p.text.slice(c.ch),d);var g=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}cn(e,"change",e,t)}function Ri(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var c=o&&s.sharedHist;n&&!c||(t(s.doc,c),e(s.doc,r,c))}}}(e,null,!0)}function Li(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,cr(e),Ai(e),Ni(e),e.options.direction=t.direction,e.options.lineWrapping||Ht(e),e.options.mode=t.modeOption,pr(e)}function Ni(e){("rtl"==e.doc.direction?I:S)(e.display.lineDiv,"CodeMirror-rtl")}function Fi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Mi(e,t){var n={from:rt(t.from),to:Si(t),text:Qe(e,t.from,t.to)};return Vi(e,n,t.from.line,t.to.line+1),Ri(e,(function(e){return Vi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&Y(e).ranges;)e.pop()}function zi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==r)))a=Y(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Si(t):o.changes.push(Mi(e,t));else{var c=Y(i.done);for(c&&c.ranges||$i(e.sel,i.done),o={changes:[Mi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Ui(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:$i(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function $i(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Vi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Hi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=St(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var c=a[s],l=0;l<o.length;++l)if(o[l].marker==c.marker)continue e;o.push(c)}else a&&(n[i]=a)}return n}function Wi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Oi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var c=0;c<a.length;++c){var l=a[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var p in l)(u=p.match(/^spans_(\d+)$/))&&z(t,Number(u[1]))>-1&&(Y(s)[p]=l[p],delete l[p])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Yi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new Oi([Qi(e.sel.primary(),t,n,i)],0),r)}function Ki(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Qi(e.sel.ranges[o],t[o],null,i);Zi(e,ji(e.cm,r,e.sel.primIndex),n)}function Gi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Zi(e,ji(e.cm,i,e.sel.primIndex),r)}function Ji(e,t,n,r){Zi(e,Ei(t,n),r)}function Xi(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Zi(e,t,n)}function Zi(e,t,n){eo(e,t,n),Ui(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ge(e,"beforeSelectionChange")||e.cm&&ge(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ji(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Dr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ve(e.cm)),cn(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],c=oo(e,a.anchor,s&&s.anchor,n,r),l=oo(e,a.head,s&&s.head,n,r);(i||c!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(c,l))}return i?ji(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=We(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],c=s.marker,l="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,u="selectRight"in c?!c.selectRight:c.inclusiveRight;if((null==s.from||(l?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(he(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var p=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(p=ao(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=tt(p,n))&&(r<0?f<0:f>0))return io(e,p,t,r,i)}var d=c.find(r<0?-1:1);return(r<0?l:u)&&(d=ao(e,d,r,d.line==t.line?o:null)),d?io(e,d,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||We(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),$)}function co(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function lo(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,lo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"))||(t=co(e,t,!0))){var r=wt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),c=0;c<i.length;++c){var l=i[c];if(!(tt(l.to,s.from)<0||tt(l.from,s.to)>0)){var u=[c,1],p=tt(l.from,s.from),f=tt(l.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)uo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=_i(e,t);zi(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,St(e,t));var r=[];Ri(e,(function(e,n){n||-1!=z(r,e.history)||(bo(e.history,t),r.push(e.history)),ho(e,t,null,St(e,t))}))}}function po(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if($i(i,c),n&&!i.equals(e.sel))return void Zi(e,i,{clearRedo:!1});a=i}var u=[];$i(a,c),c.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var p=ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,p&&!co(e,r,!1))return s.length=0,{};u.push(Mi(e,r));var o=n?_i(e,r):Y(s);ho(e,r,o,Hi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Si(r)});var a=[];Ri(e,(function(e,t){t||-1!=z(a,e.history)||(bo(e.history,r),a.push(e.history)),ho(e,r,null,Hi(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=f(d);if(h)return h.v}}}}function fo(e,t){if(0!=t&&(e.first+=t,e.sel=new Oi(K(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)fo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);fo(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,We(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=_i(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=Ge(Mt(We(r,o.line))),r.iter(c,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Ii(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(c,o.line+t.text.length,(function(e){var t=qt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=We(e,r).stateAfter;if(i&&(!(i instanceof lt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?pr(e):o.line!=a.line||1!=t.text.length||Ti(e.doc,t)?pr(e,o.line,a.line+1,l):fr(e,o.line,"text");var u=ge(e,"changes"),p=ge(e,"change");if(p||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&cn(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ii(e,t,r),eo(e,n,$),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),lo(e,{from:n,to:r,text:t,origin:i})}function vo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function go(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)vo(o.ranges[s].anchor,t,n,r),vo(o.ranges[s].head,t,n,r)}else{for(var c=0;c<o.changes.length;++c){var l=o.changes[c];if(n<l.from.line)l.from=et(l.from.line+r,l.from.ch),l.to=et(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function bo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;go(e.done,n,r,i),go(e.undone,n,r,i)}function yo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=We(e,at(e,t)):i=Ge(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function xo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function wo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return ot(this.anchor,this.head)},ki.prototype.to=function(){return it(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},xo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Qt(i),cn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof xo))){var s=[];this.collapse(s),this.children=[new xo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var c=new xo(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new wo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new wo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Oo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){Vt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ar(e,n)}Oo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Ge(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=wn(this);Ke(n,Math.max(0,n.height-o)),e&&(Zr(e,(function(){ko(e,n,-o),fr(e,r,"widget")})),cn(e,"lineWidgetCleared",e,this,r))}},Oo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=wn(this)-t;i&&(Ut(this.doc,r)||Ke(r,r.height+i),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),cn(n,"lineWidgetChanged",n,e,Ge(r))})))},be(Oo);var jo=0,Eo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++jo};function So(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=F(r)).shared=!1;var o=[So(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ri(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(So(e,st(e,t),st(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;a=Y(o)})),new Co(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,So)(e,t,n,r,i);var o=new Eo(e,i),a=tt(t,n);if(r&&F(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ft(e,t.line,t,n,o)||t.line!=n.line&&Ft(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ot=!0}o.addToHistory&&zi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(r){l&&o.collapsed&&!l.options.lineWrapping&&Mt(r)==l.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&Ke(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new kt(o,c==t.line?t.ch:null,c==n.line?n.ch:null),e.cm&&e.cm.curOp),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ut(e,t)&&Ke(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++jo,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)pr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)fr(l,u,"text");o.atomic&&no(l.doc),cn(l,"markerAdded",l,o)}return o}Eo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Wr(e),ge(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=jt(a.markedSpans,this);e&&!this.collapsed?fr(e,Ge(a),"text"):e&&(null!=s.to&&(i=Ge(a)),null!=s.from&&(r=Ge(a))),a.markedSpans=Et(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Ke(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=Mt(this.lines[c]),u=qt(l);u>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&cn(e,"markerCleared",e,this,r,i),t&&Qr(e),this.parent&&this.parent.clear()}},Eo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=jt(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Ge(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Ge(o),a.to),1==e))return r}return n&&{from:n,to:r}},Eo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var i=t.line,o=Ge(t.line),a=Dn(r,o);if(a&&(Mn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=wn(n)-s;c&&Ke(i,i.height+c)}cn(r,"markerChanged",r,e)}))},Eo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Eo.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},be(Eo);var Co=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _o(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function Po(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ri(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==z(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();cn(this,"clear")}},Co.prototype.find=function(e,t){return this.primary.find(e,t)},be(Co);var Ao=0,Do=function(e,t,n,r,i){if(!(this instanceof Do))return new Do(e,t,n,r,i);null==n&&(n=0),wo.call(this,[new xo([new Wt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Ei(o),this.history=new Fi(null),this.id=++Ao,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ii(this,{from:o,to:o,text:e}),Zi(this,Ei(o),$)};Do.prototype=J(wo.prototype,{constructor:Do,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ye(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;lo(this,{from:t,to:et(n,We(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Tr(this.cm,0,0),Zi(this,Ei(t),$)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=Qe(this,st(this,e),st(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Xe(this,e))return We(this,e)},getLineNumber:function(e){return Ge(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=We(this,e)),Mt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){Ji(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){Ji(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Yi(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Ki(this,ct(this,e),t)})),extendSelectionsBy:ni((function(e,t){Ki(this,ct(this,K(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(st(this,e[i].anchor),st(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Zi(this,ji(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(st(this,e),st(this,t||e))),Zi(this,ji(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Qe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Qe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],c=Pi(s.from,i,o),l=Pi(Si(s),i,o);if(i=s.to,o=l,"around"==n){var u=e.sel.ranges[a],p=tt(u.head,u.anchor)<0;r[a]=new ki(p?l:c,p?c:l)}else r[a]=new ki(c,c)}return new Oi(r,e.sel.primIndex)}(this,r,t),c=r.length-1;c>=0;c--)lo(this,r[c]);s?Xi(this,s):this.cm&&Dr(this.cm)})),undo:ni((function(){po(this,"undo")})),redo:ni((function(){po(this,"redo")})),undoSelection:ni((function(){po(this,"undo",!0)})),redoSelection:ni((function(){po(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Fi(this.history),Ri(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Wi(this.history.done),undone:Wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Fi(this.history);t.done=Wi(e.done.slice(0),null,!0),t.undone=Wi(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return yo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&yo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Xe(this,e))return null;if(t=e,!(e=We(this,e)))return null}else if(null==(t=Ge(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return yo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(j(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return yo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(j(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new Oo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),yo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Vt(t)<e.scrollTop;Ke(t,t.height+wn(i)),r&&Ar(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&cn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Ge(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return So(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return So(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=We(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var c=a[s];null!=c.to&&i==e.line&&e.ch>=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Do(Ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Do(Ye(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=So(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,_o(this)),r},unlinkDoc:function(e){if(e instanceof Ca&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Po(_o(this));break}if(e.history==this.history){var n=[e.id];Ri(e,(function(e){return n.push(e.id)}),!0),e.history=new Fi(null),e.history.done=Wi(this.history.done,n),e.history.undone=Wi(this.history.undone,n)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):De(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){Ni(t),pr(t)})))}))}),Do.prototype.eachLine=Do.prototype.iter;var To=0;function Io(e){var t=this;if(Ro(t),!me(t,e)&&!On(t.display,e)){ye(e),a&&(To=+new Date);var n=lr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,c=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};lo(t.doc,e),Xi(t.doc,Ei(st(t.doc,n),st(t.doc,Si(e))))}))()},l=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))c();else{var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),c()},r.readAsText(e)}},u=0;u<r.length;u++)l(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Ei(n,n)),f)for(var d=0;d<f.length;++d)mo(t.doc,"",f[d].anchor,f[d].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ro(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var No=!1;function Fo(){var e;No||(pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Mo)}),100))})),pe(window,"blur",(function(){return Lo(Er)})),No=!0)}function Mo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},zo=0;zo<10;zo++)Bo[zo+48]=Bo[zo+96]=String(zo);for(var Uo=65;Uo<=90;Uo++)Bo[Uo]=String.fromCharCode(Uo);for(var $o=1;$o<=12;$o++)Bo[$o+111]=Bo[$o+63235]="F"+$o;var Vo={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ho(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=K(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var c=t[s];if(c){if(c!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function Wo(e,t,n,r){var i=(t=Go(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Wo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Wo(e,t.fallthrough[o],n,r);if(a)return a}}}function Qo(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Yo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(O?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(O?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ko(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Yo(n,e,t))}function Go(e){return"string"==typeof e?Vo[e]:e}function Jo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,Y(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Dr(e)}))}function Xo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Zo(e,t,n){var r=Xo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=le(n,t.doc.direction);if(o){var a,s=i<0?Y(o):o[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=Tn(t,n);a=i<0?n.text.length-1:0;var u=In(t,l,a).top;a=oe((function(e){return In(t,l,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Xo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,c)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vo.default=b?Vo.macDefault:Vo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var n=We(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Jo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Jo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=We(e.doc,t),r=function(e){for(var t;t=Lt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Ge(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=M(e.getLine(o.line),o.ch,r);t.push(Q(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=We(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=We(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Dr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=We(e.doc,t),r=Mt(n);return r!=n&&(t=Ge(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=We(e.doc,n.line),i=le(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new B;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Qo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Wo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Wo(t,e.options.extraKeys,n,e)||Wo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&cn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ye(n),wr(e)),!!i}function ca(e,t){var n=Ko(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var la=null;function ua(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=T(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ca(t,e);p&&(la=i?r:null,i||88!=r||Ie||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}(t)}}function pa(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||On(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==la)return la=null,void ye(e);if(!p||e.which&&!(e.which<10)||!ca(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var da,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function va(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,On(n,e))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ya(t,e)){var r=lr(t,e),i=je(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(da=ha=null,"triple"):da&&da.compare(n,e,t)?(ha=new ma(n,e,t),da=null,"double"):(da=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Yo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(N(Or,e),0):e.curOp.focus=T();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=y?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),l=e.doc.sel;e.options.dragDrop&&Ce&&!e.isReadOnly()&&"single"==n&&(i=l.contains(t))>-1&&(tt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,l=ei(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:kr(e)),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",u),de(i.scroller,"dragstart",p),de(i.scroller,"drop",l),o||(ye(t),r.addNew||Yi(e.doc,n,null,null,r.extend),c&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",p),pe(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&kr(e);var i=e.display,o=e.doc;ye(t);var s,c,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=o.sel.contains(n),s=c>-1?u[c]:new ki(n,n)):(s=o.sel.primary(),c=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ki(n,n)),n=lr(e,t,!0,!0),c=-1;else{var p=ga(e,n,r.unit);s=r.extend?Qi(s,p.anchor,p.head,r.extend):p}r.addNew?-1==c?(c=u.length,Zi(o,ji(e,u.concat([s]),c),{scroll:!1,origin:"*mouse"})):u.length>1&&u[c].empty()&&"char"==r.unit&&!r.extend?(Zi(o,ji(e,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Gi(o,c,s,V):(c=0,Zi(o,new Oi([s],0),V),l=o.sel);var f=n;function d(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=M(We(o,n.line).text,n.ch,a),p=M(We(o,t.line).text,t.ch,a),d=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=We(o,m).text,b=H(g,d,a);d==h?i.push(new ki(et(m,b),et(m,b))):g.length>b&&i.push(new ki(et(m,b),et(m,H(g,h,a))))}i.length||i.push(new ki(n,n)),Zi(o,ji(e,l.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=s,w=ga(e,t,r.unit),O=x.anchor;tt(w.anchor,O)>0?(y=w.head,O=ot(x.from(),w.anchor)):(y=w.anchor,O=it(x.to(),w.head));var k=l.ranges.slice(0);k[c]=function(e,t){var n=t.anchor,r=t.head,i=We(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=le(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=se(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?p<0:p>0}var f=o[l+(c?-1:0)],d=c==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,O),y)),Zi(o,ji(e,k,c),V)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){e.state.selectingText=!1,m=1/0,t&&(ye(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=ei(e,(function(t){0!==t.buttons&&je(t)?function t(n){var a=++m,s=lr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,f)){e.curOp.focus=T(),d(s);var c=_r(i,o);(s.line>=c.to||s.line<c.from)&&setTimeout(ei(e,(function(){m==a&&t(n)})),150)}else{var l=n.clientY<h.top?-20:n.clientY>h.bottom?20:0;l&&setTimeout(ei(e,(function(){m==a&&(i.scroller.scrollTop+=l,t(n))})),50)}}(t):v(t)})),b=ei(e,v);e.state.selectingText=b,pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):ke(e)==n.scroller&&ye(e):2==i?(r&&Yi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):kr(t)))}}function ga(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ba(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ye(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ge(e,n))return we(t);o-=s.top-a.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var l=a.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return he(e,n,e,Je(e.doc,o),e.display.gutterSpecs[c].className,t),we(t)}}function ya(e,t){return ba(e,t,"gutterClick",!0)}function xa(e,t){On(e.display,t)||function(e,t){return!!ge(e,"gutterContextMenu")&&ba(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Oa={toString:function(){return"CodeMirror.Init"}},ka={},ja={};function Ea(e,t,n){if(!t!=!(n&&n!=Oa)){var r=e.display.dragFunctions,i=t?pe:de;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Sa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),cr(e),pr(e),zn(e),setTimeout((function(){return Ur(e)}),100)}function Ca(e,t){var n=this;if(!(this instanceof Ca))return new Ca(e,t);this.options=t=t?F(t):{},F(ka,t,!1);var r=t.value;"string"==typeof r?r=new Do(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ca.inputStyles[t.inputStyle](this),o=this.display=new vi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",ei(e,va)),pe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=lr(e,t);if(n&&!ya(e,t)&&!On(e.display,t)){ye(t);var r=e.findWordAt(n);Yi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||ye(t)}),pe(t.scroller,"contextmenu",(function(t){return xa(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||xa(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ya(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!On(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ye(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Lr(e,t.scroller.scrollTop),Fr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return wi(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Oe(t)},over:function(t){me(e,t)||(function(e,t){var n=lr(e,t);if(n){var r=document.createDocumentFragment();br(e,n,r),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),_(e.display.dragCursor,r)}}(e,t),Oe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-To<100))Oe(t);else if(!me(e,t)&&!On(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Io),leave:function(t){me(e,t)||Ro(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return pa.call(e,t)})),pe(c,"keydown",ei(e,ua)),pe(c,"keypress",ei(e,fa)),pe(c,"focus",(function(t){return jr(e,t)})),pe(c,"blur",(function(t){return Er(e,t)}))}(this),Fo(),Wr(this),this.curOp.forceUpdate=!0,Li(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&jr(n)}),20):Er(this),ja)ja.hasOwnProperty(l)&&ja[l](this,t[l],Oa);fi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<_a.length;++u)_a[u](this);Qr(this),c&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ca.defaults=ka,Ca.optionHandlers=ja;var _a=[];function Pa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=dt(e,t).state:n="prev");var a=e.options.tabSize,s=We(o,t),c=M(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=o.mode.indent(i,s.text.slice(u.length),s.text))==U||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?M(We(o,t-1).text,null,a):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)f+=a,p+="\t";if(f<l&&(p+=Q(l-f)),p!=u)return mo(o,p,et(t,0),et(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var v=et(t,u.length);Gi(o,h,new ki(v,v));break}}}Ca.defineInitHook=function(e){return _a.push(e)};var Aa=null;function Da(e){Aa=e}function Ta(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,c=De(t),l=null;if(s&&r.ranges.length>1)if(Aa&&Aa.text.join("\n")==t){if(r.ranges.length%Aa.text.length==0){l=[];for(var u=0;u<Aa.text.length;u++)l.push(o.splitLines(Aa.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=K(c,(function(e){return[e]})));for(var p=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(We(o,m.line).text.length,m.ch+Y(c).length)):s&&Aa&&Aa.lineWise&&Aa.text.join("\n")==c.join("\n")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};lo(e.doc,v),cn(e,"inputRead",e,v)}t&&!s&&Ra(e,t),Dr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Ta(t,n,0,null,"paste")})),!0}function Ra(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Pa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(We(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Pa(e,i.head.line,"smart"));a&&cn(e,"electricInput",e,i.head.line)}}}function La(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Na(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Fa(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Na(e),t}function Ma(e,t,n,r,i){var o=t,a=n,s=We(e,t.line),c=i&&"rtl"==e.direction?-n:n;function l(o){var a,l;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?function(e,t,n,r){var i=le(t,e.doc.direction);if(!i)return Zo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Zo(t,n,r);var s,c=function(e,n){return Xo(t,e instanceof et?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||Tn(e,t),Xn(e,t,s,n)):{begin:0,end:t.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,f=c(n,p?1:-1);if(null!=f&&(p?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var d=p?"before":"after";return new et(n.line,f,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,c(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),l=s?r.begin:c(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:c(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},m=h(o+r,r,u);if(m)return m;var v=r>0?u.end:c(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,l(v)))?null:m}(e.cm,s,t,n):Zo(s,t,n);if(null==a){if(o||(l=t.line+c)<e.first||l>=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(s=We(e,l))))return!1;t=ea(i,e.cm,s,t.line,c)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!d))break}var v=oo(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Gn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var za=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Dn(e,t.line);if(!n||n.hidden)return null;var r=We(e.doc,t.line),i=Pn(n,r,t.line),o=le(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Nn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function $a(e,t){return t&&(e.bad=!0),e}function Va(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $a(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return $a(et(Ge(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Y(e.rest):e.line;return $a(et(Ge(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?c.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=Ge(i<0?e.line:e.rest[i]),p=o[a]+r;return(r<0||s!=t)&&(p=o[a+(r?1:0)]),et(u,p)}}}var p=u(a,s,n);if(p)return $a(p,i);for(var f=s.nextSibling,d=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(p=u(f,f.firstChild,0))return $a(et(p.line,p.ch-d),i);d+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(p=u(h,h.firstChild,-1))return $a(et(p.line,p.ch+m),i);m+=h.textContent.length}}za.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Da({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Aa.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Fa(),c=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=Aa.text.join("\n");var l=T();L(c),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Na(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){!o(e)||me(r,e)||Ia(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",a),pe(i,"cut",a)},za.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=gr(this.cm,!1);return e.focus=T()==this.div,e},za.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},za.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Va(t,e.anchorNode,e.anchorOffset),s=Va(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var c=t.display.view,l=i.line>=t.display.viewFrom&&Ua(t,i)||{node:c[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Ua(t,o);if(!u){var p=c[c.length-1].measure,f=p.maps?p.maps[p.maps.length-1]:p.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(l&&u){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=E(l.node,l.offset,u.offset,u.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},za.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},za.prototype.showMultipleSelections=function(e){_(this.cm.display.cursorDiv,e.cursors),_(this.cm.display.selectionDiv,e.selection)},za.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},za.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},za.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&T()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},za.prototype.blur=function(){this.div.blur()},za.prototype.getField=function(){return this.div},za.prototype.supportsTouch=function(){return!0},za.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},za.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},za.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Va(t,e.anchorNode,e.anchorOffset),r=Va(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){Zi(t.doc,Ei(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},za.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,We(r.doc,a.line-1).length)),s.ch==We(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Ge(i.view[0].line),n=i.view[0].node):(t=Ge(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=ur(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Ge(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function l(){a&&(o+=s,c&&(o+=s),a=c=!1)}function u(e){e&&(l(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(et(r,0),et(i+1,0),(v=+f,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&u(Qe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&l();for(var m=0;m<t.childNodes.length;m++)p(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),h&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;p(t),t!=n;)t=t.nextSibling,c=!1;return o}(r,n,l,t,c)),f=Qe(r.doc,et(t,0),et(c,We(r.doc,c).text.length));p.length>1&&f.length>1;)if(Y(p)==Y(f))p.pop(),f.pop(),c--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],v=f[0],g=Math.min(m.length,v.length);d<g&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var b=Y(p),y=Y(f),x=Math.min(b.length-(1==p.length?d:0),y.length-(1==f.length?d:0));h<x&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)++h;if(1==p.length&&1==f.length&&t==a.line)for(;d&&d>a.ch&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)d--,h++;p[p.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var w=et(t,d),O=et(c,f.length?Y(f).length-h:0);return p.length>1||p[0]||tt(w,O)?(mo(r.doc,p,w,O,"+input"),!0):void 0},za.prototype.ensurePolled=function(){this.forceCompositionEnd()},za.prototype.reset=function(){this.forceCompositionEnd()},za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},za.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},za.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return pr(e.cm)}))},za.prototype.setUneditable=function(e){e.contentEditable="false"},za.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ta)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},za.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},za.prototype.onContextMenu=function(){},za.prototype.resetPosition=function(){},za.prototype.needsContentAttribute=!0;var Ha=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Ha.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Da({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){me(r,e)||Ia(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!On(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){On(e,t)||ye(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ha.prototype.createField=function(e){this.wrapper=Fa(),this.textarea=this.wrapper.firstChild},Ha.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ha.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Qn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ha.prototype.showSelection=function(e){var t=this.cm.display;_(t.cursorDiv,e.cursors),_(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ha.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ha.prototype.getField=function(){return this.textarea},Ha.prototype.supportsTouch=function(){return!1},Ha.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||T()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ha.prototype.blur=function(){this.textarea.blur()},Ha.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ha.prototype.receivedFocus=function(){this.slowPoll()},Ha.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ha.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ha.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Te(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Zr(t,(function(){Ta(t,i.slice(c),r.length-c,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ha.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ha.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ha.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=lr(n,e),l=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Zi)(n.doc,Ei(o),$);var u,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){Oe(e);var m=function(){de(window,"mouseup",m),setTimeout(g,20)};pe(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ha.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ha.prototype.setUneditable=function(){},Ha.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Oa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Oa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ai(e)}),!0),n("indentUnit",2,Ai,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Di(e),zn(e),pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Oa&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Go(t),i=n!=Oa&&Go(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Sa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=di(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ur(e)}),!0),n("scrollbarStyle","native",(function(e){qr(e),Ur(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=di(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Er(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ea),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vr,!0),n("singleCursorHeightPerLine",!0,vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Di,!0),n("addModeClass",!1,Di,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Di,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ca),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Go(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,pr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void pr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Xe(this.doc,e)&&Pa(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Pa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Dr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var c=s;c<n;++c)Pa(this,c,e);var l=this.doc.sel.ranges;0==o.ch&&t.length==l.length&&l[r].from().ch>0&&Gi(this.doc,r,new ki(o,l[r].to()),$)}}})),getTokenAt:function(e,t){return bt(this,e,t)},getLineTokens:function(e,t){return bt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,We(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(o,this)&&-1==z(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(e,t){var n=this.doc;return dt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Qn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Wn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Gn(this,(e=Hn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Hn(this,{top:e,left:0},t||"page").top,Je(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=We(this.doc,e)}else r=e;return qn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Vt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,c=this.display,l=(e=Qn(this,st(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),c.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var p=Math.max(c.wrapper.clientHeight,this.doc.height),f=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(l=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(u=c.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(c.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:l,right:u+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Pr(o,a)).scrollTop&&Lr(o,s.scrollTop),null!=s.scrollLeft&&Fr(o,s.scrollLeft))},triggerOnKeyDown:ti(ua),triggerOnKeyPress:ti(fa),triggerOnKeyUp:pa,triggerOnMouseDown:ti(va),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Ra(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a<t&&!(o=Ma(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ma(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Jo(this,(function(n){var i=Ma(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var c=Qn(this,a,"div");if(null==o?o=c.left:c.left=o,(a=Ba(this,c,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Qn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var c=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Ar(n,Wn(n,c,"div").top-s.top),c}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=We(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==T()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){Tr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Sn(this)-this.display.barHeight,width:e.scrollWidth-Sn(this)-this.display.barWidth,clientHeight:_n(this),clientWidth:Cn(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ir(e),e.curOp.scrollToPos=t}(this,e):Rr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return Wr(this)},endOperation:function(){return Qr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;pr(this),this.curOp.forceUpdate=!0,zn(this),Tr(this,this.doc.scrollLeft,this.doc.scrollTop),li(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&cr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Li(this,e),zn(this),this.display.input.reset(),Tr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ca);var Wa="iter insert remove copy getEditor constructor".split(" ");for(var Qa in Do.prototype)Do.prototype.hasOwnProperty(Qa)&&z(Wa,Qa)<0&&(Ca.prototype[Qa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Do.prototype[Qa]));return be(Do),Ca.inputStyles={textarea:Ha,contenteditable:za},Ca.defineMode=function(e){Ca.defaults.mode||"null"==e||(Ca.defaults.mode=e),Fe.apply(this,arguments)},Ca.defineMIME=function(e,t){Ne[e]=t},Ca.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(e,t){Ca.prototype[e]=t},Ca.defineDocExtension=function(e,t){Do.prototype[e]=t},Ca.fromTextArea=function(e,t){if((t=t?F(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=T();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ca((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=pe,e.wheelEventPixels=xi,e.Doc=Do,e.splitLines=De,e.countColumn=M,e.findColumn=H,e.isWordChar=Z,e.Pass=U,e.signal=he,e.Line=Wt,e.changeEnd=Si,e.scrollbarModel=Vr,e.Pos=et,e.cmpPos=tt,e.modes=Le,e.mimeModes=Ne,e.resolveMode=Me,e.getMode=Be,e.modeExtensions=ze,e.extendMode=Ue,e.copyState=$e,e.startState=qe,e.innerMode=Ve,e.commands=ta,e.keyMap=Vo,e.keyName=Ko,e.isModifierKey=Qo,e.lookupKey=Wo,e.normalizeKeyMap=Ho,e.StringStream=He,e.SharedTextMarker=Co,e.TextMarker=Eo,e.LineWidget=Oo,e.e_preventDefault=ye,e.e_stopPropagation=xe,e.e_stop=Oe,e.addClass=I,e.contains=D,e.rmClass=S,e.keyNames=Bo}(Ca),Ca.version="5.61.1",Ca}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r,i,o,a=n(1),s=n(2),c=Object(s.g)(r||(r=Object(a.f)(["\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0);\n }\n"],["\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0);\n }\n"]))),l=Object(s.d)(i||(i=Object(a.f)(["\n animation: "," 0.2s;\n"],["\n animation: "," 0.2s;\n"])),c),u=s.e.div(o||(o=Object(a.f)(["\n ",";\n ",";\n\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n background-color: #fff;\n"],["\n ",";\n ",";\n\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n background-color: #fff;\n"])),(function(e){return e.animate&&l}),(function(e){return e.hidden&&"visibility: hidden"}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}))},function(e,t,n){e.exports=n(939)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="data-section-id"},function(e,t,n){var r=n(38),i=n(379),o=n(91),a=n(380),s=n(386),c=n(703),l=i("wks"),u=r.Symbol,p=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=p("Symbol."+e)),l[e]}},function(e,t,n){var r=n(80),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return xe})),n.d(t,"l",(function(){return Pe})),n.d(t,"n",(function(){return it})),n.d(t,"a",(function(){return ot.a})),n.d(t,"p",(function(){return Qe})),n.d(t,"g",(function(){return Ke})),n.d(t,"i",(function(){return qe})),n.d(t,"b",(function(){return Me})),n.d(t,"f",(function(){return $e})),n.d(t,"j",(function(){return He})),n.d(t,"k",(function(){return Le})),n.d(t,"o",(function(){return Oe.b})),n.d(t,"h",(function(){return Oe.a})),n.d(t,"c",(function(){return nt})),n.d(t,"m",(function(){return ct})),n.d(t,"e",(function(){return pt}));var r=n(1),i=n(19),o=n(5),a=n(231),s={exports:{}};function c(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}s.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:c,changeDefaults:function(e){s.exports.defaults=e}};const l=/[&<>"']/,u=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,f=/[<>"']|&(?!#?\w+;)/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},h=e=>d[e];const m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function v(e){return e.replace(m,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const g=/(^|[^\[])\^/g;const b=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const x={},w=/^[^:]+:\/*[^/]*$/,O=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(e,t){x[" "+e]||(w.test(e)?x[" "+e]=e+"/":x[" "+e]=E(e,"/",!0));const n=-1===(e=x[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(O,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(k,"$1")+t:e+t}function E(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}var S={escape:function(e,t){if(t){if(l.test(e))return e.replace(u,h)}else if(p.test(e))return e.replace(f,h);return e},unescape:v,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(g,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(v(n)).replace(b,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!y.test(n)&&(n=j(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:j,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:E,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},repeatString:function(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}};const{defaults:C}=s.exports,{rtrim:_,splitCells:P,escape:A,findClosingBracket:D}=S;function T(e,t,n,r){const i=t.href,o=t.title?A(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:A(a)}}var I=class{constructor(e){this.options=e||C}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:_(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=_(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,a,s,c,l,u,p,f=t[1].trim();const d=f.length>1,h={type:"list",raw:"",ordered:d,start:d?+f.slice(0,-1):"",loose:!1,items:[]};f=d?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=d?f:"[*+-]");const m=new RegExp(`^( {0,3}${f})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=m.exec(e));){u=t[2].split("\n"),this.options.pedantic?(o=2,p=u[0].trimLeft()):(o=t[2].search(/[^ ]/),o=t[1].length+(o>4?1:o),p=u[0].slice(o-t[1].length)),s=!1,n=t[0],!u[0]&&/^ *$/.test(u[1])&&(n=t[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);const f=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(a=1;a<u.length;a++){if(l=u[a],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),f.test(l)){n=t[1]+u.slice(0,a).join("\n")+"\n";break}if(s){if(!(l.search(/[^ ]/)>=o)&&l.trim()){n=t[1]+u.slice(0,a).join("\n")+"\n";break}p+="\n"+l.slice(o)}else l.trim()||(s=!0),l.search(/[^ ]/)>=o?p+="\n"+l.slice(o):p+="\n"+l}h.loose||(c?h.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p),r&&(i="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:p}),h.raw+=n,e=e.slice(n.length)}h.items[h.items.length-1].raw=n.trimRight(),h.items[h.items.length-1].text=p.trimRight(),h.raw=h.raw.trimRight();const v=h.items.length;for(a=0;a<v;a++)this.lexer.state.top=!1,h.items[a].tokens=this.lexer.blockTokens(h.items[a].text,[]),h.items[a].tokens.some(e=>"space"===e.type)&&(h.loose=!0,h.items[a].loose=!0);return h}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:P(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,o,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=P(e.rows[n],e.header.length).map(e=>({text:e}));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(a=e.rows.length,r=0;r<a;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=[],this.lexer.inlineTokens(o[i].text,o[i].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:A(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=_(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=D(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),T(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return T(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,a=n,s=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=c.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(a-=o,a>0)continue;if(o=Math.min(o,o+a+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=A(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=A(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=A(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=A(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=A(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):A(n[0]):n[0]:A(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}};const{noopTest:R,edit:L,merge:N}=S,F={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:R,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};F.def=L(F.def).replace("label",F._label).replace("title",F._title).getRegex(),F.bullet=/(?:[*+-]|\d{1,9}[.)])/,F.listItemStart=L(/^( *)(bull) */).replace("bull",F.bullet).getRegex(),F.list=L(F.list).replace(/bull/g,F.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+F.def.source+")").getRegex(),F._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",F._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,F.html=L(F.html,"i").replace("comment",F._comment).replace("tag",F._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F.paragraph=L(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.blockquote=L(F.blockquote).replace("paragraph",F.paragraph).getRegex(),F.normal=N({},F),F.gfm=N({},F.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),F.gfm.table=L(F.gfm.table).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.pedantic=N({},F.normal,{html:L("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",F._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:R,paragraph:L(F.normal._paragraph).replace("hr",F.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:R,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:R,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};M.punctuation=L(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=L(F._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=L(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=L(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=L(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,M.autolink=L(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=L(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=L(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=L(M.reflink).replace("label",M._label).getRegex(),M.reflinkSearch=L(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=N({},M),M.pedantic=N({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=N({},M.normal,{escape:L(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),M.gfm.url=L(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=N({},M.gfm,{br:L(M.br).replace("{2,}","*").getRegex(),text:L(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var B={block:F,inline:M};const z=I,{defaults:U}=s.exports,{block:$,inline:V}=B,{repeatString:q}=S;function H(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function W(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}const{defaults:Q}=s.exports,{cleanUrl:Y,escape:K}=S;var G=class{constructor(e){this.options=e||Q}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+K(r,!0)+'">'+(n?e:K(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:K(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+K(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}},J=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}},X=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}};const Z=G,ee=J,te=X,{defaults:ne}=s.exports,{unescape:re}=S;const ie=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||U,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:$.normal,inline:V.normal};this.options.pedantic?(t.block=$.pedantic,t.inline=V.pedantic):this.options.gfm&&(t.block=$.gfm,this.options.breaks?t.inline=V.breaks:t.inline=V.gfm),this.tokenizer.rules=t}static get rules(){return{block:$,inline:V}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,o;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,i,o,a,s,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+q("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+q("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,W))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,W))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i,H))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}},oe=class e{constructor(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee,this.slugger=new te}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n,r,i,o,a,s,c,l,u,p,f,d,h,m,v,g,b,y,x,w="";const O=e.length;for(n=0;n<O;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(x=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))w+=x||"";else switch(p.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(p.tokens),p.depth,re(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(l="",c="",o=p.header.length,r=0;r<o;r++)c+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(l+=this.renderer.tablerow(c),u="",o=p.rows.length,r=0;r<o;r++){for(s=p.rows[r],c="",a=s.length,i=0;i<a;i++)c+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});u+=this.renderer.tablerow(c)}w+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(p.tokens),w+=this.renderer.blockquote(u);continue;case"list":for(f=p.ordered,d=p.start,h=p.loose,o=p.items.length,u="",r=0;r<o;r++)v=p.items[r],g=v.checked,b=v.task,m="",v.task&&(y=this.renderer.checkbox(g),h?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(v.tokens,h),u+=this.renderer.listitem(m,b,g);w+=this.renderer.list(u,f,d);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<O&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);w+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";const a=e.length;for(n=0;n<a;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}},ae=I,se=G,ce=J,le=X,{merge:ue,checkSanitizeDeprecation:pe,escape:fe}=S,{getDefaults:de,changeDefaults:he,defaults:me}=s.exports;function ve(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=ue({},ve.defaults,t||{}),pe(t),n){const r=t.highlight;let i;try{i=ie.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&ve.walkTokens(i,t.walkTokens),o=oe.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();let a=0;return ve.walkTokens(i,(function(e){"code"===e.type&&(a++,setTimeout(()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),a--,0===a&&o()}))},0))})),void(0===a&&o())}try{const n=ie.lex(e,t);return t.walkTokens&&ve.walkTokens(n,t.walkTokens),oe.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+fe(e.message+"",!0)+"</pre>";throw e}}ve.options=ve.setOptions=function(e){return ue(ve.defaults,e),he(ve.defaults),ve},ve.getDefaults=de,ve.defaults=me,ve.use=function(...e){const t=ue({},...e),n=ve.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach(e=>{if(e.extensions&&(r=!0,e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)})),e.renderer){const n=ve.defaults.renderer||new se;for(const t in e.renderer){const r=n[t];n[t]=(...i)=>{let o=e.renderer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.renderer=n}if(e.tokenizer){const n=ve.defaults.tokenizer||new ae;for(const t in e.tokenizer){const r=n[t];n[t]=(...i)=>{let o=e.tokenizer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.tokenizer=n}if(e.walkTokens){const n=ve.defaults.walkTokens;t.walkTokens=t=>{e.walkTokens.call(this,t),n&&n(t)}}r&&(t.extensions=n),ve.setOptions(t)})},ve.walkTokens=function(e,t){for(const n of e)switch(t(n),n.type){case"table":for(const e of n.header)ve.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)ve.walkTokens(n.tokens,t);break;case"list":ve.walkTokens(n.items,t);break;default:ve.defaults.extensions&&ve.defaults.extensions.childTokens&&ve.defaults.extensions.childTokens[n.type]?ve.defaults.extensions.childTokens[n.type].forEach((function(e){ve.walkTokens(n[e],t)})):n.tokens&&ve.walkTokens(n.tokens,t)}},ve.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=ue({},ve.defaults,t||{}),pe(t);try{const n=ie.lexInline(e,t);return t.walkTokens&&ve.walkTokens(n,t.walkTokens),oe.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+fe(e.message+"",!0)+"</pre>";throw e}},ve.Parser=oe,ve.parser=oe.parse,ve.Renderer=se,ve.TextRenderer=ce,ve.Lexer=ie,ve.lexer=ie.lex,ve.Tokenizer=ae,ve.Slugger=le,ve.parse=ve;var ge=ve,be=new ge.Renderer;ge.setOptions({renderer:be,highlight:function(e,t){return Object(o.t)(e,t)}});var ye="(?:^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$|(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)</\\2>|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,})))";var xe=function(){function e(e){var t=this;Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"headings",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentTopHeading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headingEnhanceRenderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"originalHeadingRule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headingRule",{enumerable:!0,configurable:!0,writable:!0,value:function(e,n,r,i){return 1===n?t.currentTopHeading=t.saveHeading(e,n):2===n&&t.saveHeading(e,n,t.currentTopHeading&&t.currentTopHeading.items,t.currentTopHeading&&t.currentTopHeading.id),t.originalHeadingRule(e,n,r,i)}}),this.headingEnhanceRenderer=new ge.Renderer,this.parser=new ge.Parser,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}return Object.defineProperty(e,"containsComponent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new RegExp(ye.replace(/{component}/g,t),"gmi").test(e)}}),Object.defineProperty(e,"getTextBeforeHading",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=e.search(new RegExp("^##?\\s+"+t,"m"));return n>-1?e.substring(0,n):e}}),Object.defineProperty(e.prototype,"saveHeading",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){void 0===n&&(n=this.headings),e=Object(o.T)(e);var i={id:r?r+"/"+Object(o.N)(e):"section/"+Object(o.N)(e),name:e,level:t,items:[]};return n.push(i),i}}),Object.defineProperty(e.prototype,"flattenHeadings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e)return[];for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];t.push(i),t.push.apply(t,this.flattenHeadings(i.items))}return t}}),Object.defineProperty(e.prototype,"attachHeadingsDescriptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=function(e){return new RegExp("##?\\s+"+e.name.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))},n=this.flattenHeadings(this.headings);if(!(n.length<1)){for(var r=n[0],i=t(r),o=e.search(i),a=1;a<n.length;a++){var s=n[a],c=t(s),l=e.substr(o+1).search(c)+o+1;r.description=e.substring(o,l).replace(i,"").trim(),r=s,i=c,o=l}r.description=e.substring(o).replace(i,"").trim()}}}),Object.defineProperty(e.prototype,"renderMd",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=!1);var n=t?{renderer:this.headingEnhanceRenderer}:void 0;return ge(e.toString(),n)}}),Object.defineProperty(e.prototype,"extractHeadings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.renderMd(e,!0),this.attachHeadingsDescriptions(e);var t=this.headings;return this.headings=[],t}}),Object.defineProperty(e.prototype,"renderMdWithComponents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.options&&this.options.allowedMdComponents;if(!t||0===Object.keys(t).length)return[this.renderMd(e)];for(var n=Object.keys(t).join("|"),i=new RegExp(ye.replace(/{component}/g,n),"mig"),o=[],a=[],s=i.exec(e),c=0;s;){o.push(e.substring(c,s.index)),c=i.lastIndex;var l=t[s[1]||s[2]||s[5]],u=s[3]||s[6],p=s[4];l&&a.push({component:l.component,propsSelector:l.propsSelector,props:Object(r.a)(Object(r.a)(Object(r.a)({},we(u)),l.props),{children:p})}),s=i.exec(e)}o.push(e.substring(c));for(var f=[],d=0;d<o.length;d++){var h=o[d];h&&f.push(this.renderMd(h)),a[d]&&f.push(a[d])}return f}}),e}();function we(e){if(!e)return{};for(var t,n=/([\w-]+)\s*=\s*(?:{([^}]+?)}|"([^"]+?)")/gim,r={};null!==(t=n.exec(e));)if(t[3])r[t[1]]=t[3];else if(t[2]){var i=void 0;try{i=JSON.parse(t[2])}catch(e){}r[t[1]]=i}return r}var Oe=n(106),ke=function(){function e(){Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Object.defineProperty(e.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._counter={}}}),Object.defineProperty(e.prototype,"visit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._counter[e]=this._counter[e]?this._counter[e]+1:1}}),Object.defineProperty(e.prototype,"exit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._counter[e]=this._counter[e]&&this._counter[e]-1}}),Object.defineProperty(e.prototype,"visited",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!this._counter[e]}}),e}(),je=function(){function e(e,t,n){var r=this;void 0===n&&(n=new Oe.a({})),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hasSecurityDefinitions",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_refCounter",{enumerable:!0,configurable:!0,writable:!0,value:new ke}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t;if(r.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=a.a.get(r.definition,e)}catch(e){}return t||{}}}}),this.validate(e),this.preprocess(e),this.definition=e,this.hasSecurityDefinitions=this.containsSecurity(e),this.allowMergeRefs=e.openapi.startsWith("3.1");var s=o.a?window.location.href:"";"string"==typeof t&&(this.definitionUrl=Object(i.resolve)(s,t))}return Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}}),Object.defineProperty(e.prototype,"containsSecurity",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.info&&e.info.description||"";return xe.containsComponent(t,o.d)||xe.containsComponent(t,o.e)}}),Object.defineProperty(e.prototype,"preprocess",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.info&&this.options.hideInfoDescription)e.info.description="";else if(!this.options.noAutoAuth&&e.info&&e.components&&e.components.securitySchemes){var t=e.info.description||"";if(!this.containsSecurity(e)){var n="\x3c!-- ReDoc-Inject: <"+o.d+"> --\x3e";e.info.description=Object(o.i)(t,"Authentication",n)}}}}),Object.defineProperty(e.prototype,"isRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}}),Object.defineProperty(e.prototype,"resetVisited",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._refCounter=new ke}}),Object.defineProperty(e.prototype,"exitRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.isRef(e)&&this._refCounter.exit(e.$ref)}}),Object.defineProperty(e.prototype,"deref",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.isRef(e)){var r=Object(o.q)(e.$ref);if(r&&this.options.ignoreNamedSchemas.has(r))return{type:"object",title:r};var i=this.byRef(e.$ref),a=this._refCounter.visited(e.$ref);if(this._refCounter.visit(e.$ref),a&&!t)return Object.assign({},i,{"x-circular-ref":!0});var s=i;return this.isRef(i)&&(s=this.deref(i,!1,n),this.exitRef(i)),this.allowMergeRefs?this.mergeRefs(e,i,n):s}return e}}),Object.defineProperty(e.prototype,"mergeRefs",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){e.$ref;var i=Object(r.g)(e,["$ref"]),o=Object.keys(i);return 0===o.length?t:n&&o.some((function(e){return"description"!==e&&"title"!==e&&"externalDocs"!==e}))?{allOf:[t,i]}:Object(r.a)(Object(r.a)({},t),i)}}),Object.defineProperty(e.prototype,"shallowDeref",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.isRef(e)){var t=Object(o.q)(e.$ref);return t&&this.options.ignoreNamedSchemas.has(t)?{type:"object",title:t}:this.byRef(e.$ref)}return e}}),Object.defineProperty(e.prototype,"mergeAllOf",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,i){var a=this;if(void 0===n&&(n=!1),void 0===i&&(i=new Set),t&&i.add(t),void 0===(e=this.hoistOneOfs(e)).allOf)return e;var s=Object(r.a)(Object(r.a)({},e),{allOf:void 0,parentRefs:[],title:e.title||Object(o.q)(t)});void 0!==s.properties&&"object"==typeof s.properties&&(s.properties=Object(r.a)({},s.properties)),void 0!==s.items&&"object"==typeof s.items&&(s.items=Object(r.a)({},s.items));for(var c=0,l=e.allOf.map((function(e){var t;if(!(e&&e.$ref&&i.has(e.$ref))){var r=a.deref(e,n,!0),o=e.$ref||void 0,c=a.mergeAllOf(r,o,n,i);return null===(t=s.parentRefs)||void 0===t||t.push.apply(t,c.parentRefs||[]),{$ref:o,schema:c}}})).filter((function(e){return void 0!==e}));c<l.length;c++){var u,p=l[c],f=p.$ref,d=p.schema;if(s.type!==d.type&&void 0!==s.type&&void 0!==d.type&&console.warn('Incompatible types in allOf at "'+t+'": "'+s.type+'" and "'+d.type+'"'),void 0!==d.type&&(s.type=d.type),void 0!==d.properties)for(var h in s.properties=s.properties||{},d.properties)if(s.properties[h]){var m=this.mergeAllOf({allOf:[s.properties[h],d.properties[h]]},t+"/properties/"+h);s.properties[h]=m,this.exitParents(m)}else s.properties[h]=d.properties[h];if(void 0!==d.items&&(s.items=s.items||{},s.items=this.mergeAllOf({allOf:[s.items,d.items]},t+"/items")),void 0!==d.required&&(s.required=(s.required||[]).concat(d.required)),s=Object(r.a)(Object(r.a)({},d),s),f)null===(u=s.parentRefs)||void 0===u||u.push(f),void 0===s.title&&Object(o.x)(f)}return s}}),Object.defineProperty(e.prototype,"findDerived",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={},n=this.definition.components&&this.definition.components.schemas||{};for(var r in n){var i=this.deref(n[r]);void 0!==i.allOf&&i.allOf.find((function(t){return void 0!==t.$ref&&e.indexOf(t.$ref)>-1}))&&(t["#/components/schemas/"+r]=[i["x-discriminator-value"]||r])}return t}}),Object.defineProperty(e.prototype,"exitParents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=0,n=e.parentRefs||[];t<n.length;t++){var r=n[t];this.exitRef({$ref:r})}}}),Object.defineProperty(e.prototype,"hoistOneOfs",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(void 0===e.allOf)return e;for(var n=e.allOf,i=function(e){var i=n[e];if(Array.isArray(i.oneOf)){var o=n.slice(0,e),a=n.slice(e+1);return{value:{oneOf:i.oneOf.map((function(e){var n=t.mergeAllOf({allOf:Object(r.h)(Object(r.h)(Object(r.h)([],o,!0),[e],!1),a,!0)});return t.exitParents(n),n}))}}}},o=0;o<n.length;o++){var a=i(o);if("object"==typeof a)return a.value}return e}}),e}(),Ee=n(28),Se=n(86),Ce=n.n(Se),_e="scroll",Pe=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_scrollParent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_emiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_prevOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._scrollParent=o.a?window:void 0,this._emiter=new Ce.a,this.bind()}return Object.defineProperty(e.prototype,"bind",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener(_e,this.handleScroll)}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._scrollParent&&this._scrollParent.removeEventListener(_e,this.handleScroll),this._emiter.removeAllListeners(_e)}}),Object.defineProperty(e.prototype,"scrollY",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"undefined"!=typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0}}),Object.defineProperty(e.prototype,"isElementBellow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()}}),Object.defineProperty(e.prototype,"isElementAbove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null!==e){var t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}}}),Object.defineProperty(e.prototype,"subscribe",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._emiter.addListener(_e,e);return function(){return t.removeListener(_e,e)}}}),Object.defineProperty(e.prototype,"scrollIntoView",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null!==e&&(e.scrollIntoView(t),this._scrollParent&&this._scrollParent.scrollBy)){var n=[0,Math.floor(this.options.scrollYOffset())],r=n[0],i=n[1];this._scrollParent.scrollBy(r,i)}}}),Object.defineProperty(e.prototype,"scrollIntoViewBySelector",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=Object(o.M)(e);this.scrollIntoView(n,t)}}),Object.defineProperty(e.prototype,"handleScroll",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit(_e,e)}}),Object(r.c)([Ee.bind,Object(o.g)(100)],e.prototype,"handleScroll",null),e}(),Ae=n(4),De=function(){function e(e,t,n){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"absoluteIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"depth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"level",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this),this.id=t.id||e+"/"+Object(o.N)(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.description=t.description||"";var r=t.items;r&&r.length&&(this.description=xe.getTextBeforeHading(this.description,r[0].name)),this.parent=n,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!0}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.parent&&this.parent.expand(),this.expanded=!0}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){"group"!==this.type&&(this.expanded=!1)}}),Object.defineProperty(e.prototype,"deactivate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!1}}),Object(r.c)([Ae.o],e.prototype,"active",void 0),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"activate",null),Object(r.c)([Ae.f],e.prototype,"expand",null),Object(r.c)([Ae.f],e.prototype,"collapse",null),Object(r.c)([Ae.f],e.prototype,"deactivate",null),e}(),Te=function(e,t){Object.defineProperty(this,"schemes",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n=t.definition.components&&t.definition.components.securitySchemes||{};this.schemes=Object.keys(e||{}).map((function(i){var a=t.deref(n[i]),s=e[i]||[];if(a)return Object(r.a)(Object(r.a)({},a),{id:i,sectionId:o.f+i,scopes:s});console.warn("Non existing security scheme referenced: "+i+". Skipping")})).filter((function(e){return void 0!==e}))},Ie=function(){function e(e,t,n,i,a){Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object(Ae.n)(this),this.name=t;var s=e.deref(n);e.exitRef(n);for(var c=0,l=Object.keys(s);c<l.length;c++)for(var u=l[c],p=s[u],f=0,d=Object.keys(p).filter(o.z);f<d.length;f++){var h=d[f],m=p[h],v=new Ke(e,Object(r.a)(Object(r.a)({},m),{pathName:u,pointer:o.b.compile([i,t,u,h]),httpVerb:h,pathParameters:p.parameters||[],pathServers:p.servers}),void 0,a,!0);this.operations.push(v)}}return Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"toggle",null),e}(),Re=n(13),Le=function(){function e(e,t,n,r,i,a,s){void 0===i&&(i=!1),void 0===s&&(s={}),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"deps",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"pointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"displayType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"typePrefix",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"title",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isPrimitive",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isCircular",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"format",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"displayFormat",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nullable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deprecated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"example",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"enum",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"default",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"writeOnly",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"constraints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oneOf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oneOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"discriminatorProp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeOneOf",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"rawSchema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"x-enumDescriptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"const",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentEncoding",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentMediaType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this),this.pointer=t.$ref||n||"",this.rawSchema=e.shallowDeref(t),this.schema=e.mergeAllOf(this.rawSchema,this.pointer,i),this.init(e,i),e.exitParents(this.schema),r.showExtensions&&(this.extensions=Object(o.m)(this.schema,r.showExtensions))}return Object.defineProperty(e.prototype,"activateOneOf",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeOneOf=e}}),Object.defineProperty(e.prototype,"hasType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.type===e||Array.isArray(this.type)&&this.type.includes(e)}}),Object.defineProperty(e.prototype,"fields",{get:function(){if(!this.isCircular)return!this._fields&&this.hasType("object")&&(this._fields=function(e,t,n,i,a,s){var c=t.properties||{},l=t.additionalProperties,u=t.default||{},p=Object.keys(c||[]).map((function(o){var l=c[o];l||(console.warn('Field "'+o+'" is invalid, skipping.\n Field must be an object but got '+typeof l+' at "'+n+'"'),l={});var p=void 0!==t.required&&t.required.indexOf(o)>-1;return new ze(e,{name:o,required:p,schema:Object(r.a)(Object(r.a)({},l),{default:void 0===l.default?u[o]:l.default})},n+"/properties/"+o,i,a,s)}));i.sortPropsAlphabetically&&(p=Object(o.R)(p,"name"));i.requiredPropsFirst&&(p=Object(o.S)(p,i.sortPropsAlphabetically?void 0:t.required));"object"!=typeof l&&!0!==l||p.push(new ze(e,{name:("object"==typeof l&&l["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===l?{}:l,kind:"additionalProperties"},n+"/additionalProperties",i,a,s));return p}(this.parser,this.schema,this.pointer,this.options,this,this.deps)),this._fields},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCircularParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(this.parent){if(e.some((function(e){var n,r;if(!e)return!1;var i=t.parent;return(null==i?void 0:i.pointer)===e||(!(null==i||null===(n=i.schema.parentRefs)||void 0===n||null===(r=n.some)||void 0===r||!r.call(n,(function(t){return t===e})))||void 0)})))return!0;if(this.parent.hasCircularParent(e))return!0}return!1}}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var i=this,a=this.schema;if(this.isCircular=a["x-circular-ref"]||this.hasCircularParent(Object(r.h)([this.pointer],this.schema.parentRefs||[],!0)),this.title=a.title||Object(o.x)(this.pointer)&&o.b.baseName(this.pointer)||"",this.description=a.description||"",this.type=a.type||Object(o.k)(a),this.format=a.format,this.enum=a.enum||[],this["x-enumDescriptions"]=a["x-enumDescriptions"],this.example=a.example,this.deprecated=!!a.deprecated,this.pattern=a.pattern,this.externalDocs=a.externalDocs,this.constraints=Object(o.u)(a),this.displayFormat=this.format,this.isPrimitive=Object(o.A)(a,this.type),this.default=a.default,this.readOnly=!!a.readOnly,this.writeOnly=!!a.writeOnly,this.const=a.const||"",this.contentEncoding=a.contentEncoding,this.contentMediaType=a.contentMediaType,(a.nullable||a["x-nullable"])&&(Array.isArray(this.type)&&!this.type.some((function(e){return null===e||"null"===e}))?this.type=Object(r.h)(Object(r.h)([],this.type,!0),["null"],!1):Array.isArray(this.type)||null===this.type&&"null"===this.type||(this.type=[this.type,"null"])),this.displayType=Array.isArray(this.type)?this.type.map((function(e){return null===e?"null":e})).join(" or "):this.type,!this.isCircular)if(n||void 0===Ne(a)){if(n&&Array.isArray(a.oneOf)&&a.oneOf.find((function(e){return e.$ref===i.pointer}))&&delete a.oneOf,void 0!==a.oneOf)return this.initOneOf(a.oneOf,t),this.oneOfType="One of",void(void 0!==a.anyOf&&console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf at "+this.pointer));if(void 0!==a.anyOf)return this.initOneOf(a.anyOf,t),void(this.oneOfType="Any of");if(this.hasType("array")&&a.items&&(this.items=new e(t,a.items,this.pointer+"/items",this.options,!1,this,this.deps),this.displayType=Object(o.L)(this.items.displayType),this.displayFormat=this.items.format,this.typePrefix=this.items.typePrefix+Object(Re.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["x-enumDescriptions"]=this.items["x-enumDescriptions"]),Array.isArray(this.type))){var s=this.type.filter((function(e){return"array"!==e}));s.length&&(this.displayType+=" or "+s.join(" or "))}this.enum.length&&this.options.sortEnumValuesAlphabetically&&this.enum.sort()}else this.initDiscriminator(a,t)}}),Object.defineProperty(e.prototype,"initOneOf",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var i,a,s=this;if(this.oneOf=t.map((function(t,i){var a=n.deref(t,!1,!0),c=n.mergeAllOf(a,s.pointer+"/oneOf/"+i),l=Object(o.x)(t.$ref)&&!c.title?o.b.baseName(t.$ref):""+(c.title||"")+(c.const&&JSON.stringify(c.const)||""),u=new e(n,Object(r.a)(Object(r.a)({},c),{title:l,allOf:[Object(r.a)(Object(r.a)({},s.schema),{oneOf:void 0,anyOf:void 0})]}),s.pointer+"/oneOf/"+i,s.options,!1,s.parent,Object(r.a)(Object(r.a)({},s.deps),{parentFieldFullPath:s.deps.parentFieldFullPath?s.deps.parentFieldFullPath+s.options.deepLinkSeparator+i:i.toString()}));return n.exitRef(t),n.exitParents(c),u})),this.options.simpleOneOfTypeLabel){var c=(i=this,a=new Set,function e(t){for(var n=0,r=t.oneOf||[];n<r.length;n++){var i=r[n];i.oneOf?e(i):i.type&&a.add(i.type)}}(i),Array.from(a.values()));this.displayType=c.join(" or ")}else this.displayType=this.oneOf.map((function(e){var t=e.typePrefix+(e.title?e.title+" ("+e.displayType+")":e.displayType);return t.indexOf(" or ")>-1&&(t="("+t+")"),t})).join(" or ")}}),Object.defineProperty(e.prototype,"initDiscriminator",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var i=this,a=Ne(t);this.discriminatorProp=null==a?void 0:a.propertyName;var s=n.findDerived(Object(r.h)(Object(r.h)([],t.parentRefs||[],!0),[this.pointer],!1));if(t.oneOf)for(var c=0,l=t.oneOf;c<l.length;c++){var u=l[c];if(void 0!==u.$ref){var p=o.b.baseName(u.$ref);s[u.$ref]=p}}var f=(null==a?void 0:a.mapping)||{},d=(null==a?void 0:a["x-explicitMappingOnly"])||!1;0===Object.keys(f).length&&(d=!1);var h={};for(var m in f){var v=f[m];Array.isArray(h[v])?h[v].push(m):h[v]=[m]}for(var g=d?Object(r.a)({},h):Object(r.a)(Object(r.a)({},s),h),b=[],y=0,x=Object.keys(g);y<x.length;y++){var w=g[v=x[y]];if(Array.isArray(w))for(var O=0,k=w;O<k.length;O++){var j=k[O];b.push({$ref:v,name:j})}else b.push({$ref:v,name:w})}var E=Object.keys(f);0!==E.length&&(b=b.sort((function(e,t){var n=E.indexOf(e.name),r=E.indexOf(t.name);return n<0&&r<0?e.name.localeCompare(t.name):n<0?1:r<0?-1:n-r}))),this.oneOf=b.map((function(t,o){var a=t.$ref,s=t.name,c=new e(n,n.byRef(a),a,i.options,!0,i.parent,Object(r.a)(Object(r.a)({},i.deps),{parentFieldFullPath:i.deps.parentFieldFullPath?i.deps.parentFieldFullPath+i.options.deepLinkSeparator+o:o.toString()}));return c.title=s,c}))}}),Object(r.c)([Ae.o],e.prototype,"activeOneOf",void 0),Object(r.c)([Ae.f],e.prototype,"activateOneOf",null),e}();function Ne(e){return e.discriminator||e["x-discriminator"]}var Fe={},Me=function(){function e(e,t,n,r){Object.defineProperty(this,"mime",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalValueUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var a=e.deref(t);this.value=a.value,this.summary=a.summary,this.description=a.description,a.externalValue&&(this.externalValueUrl=Object(i.resolve)(e.definitionUrl||"",a.externalValue)),e.exitRef(t),Object(o.v)(n)&&this.value&&"object"==typeof this.value&&(this.value=Object(o.U)(this.value,r))}return Object.defineProperty(e.prototype,"getExternalValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.externalValueUrl?(this.externalValueUrl in Fe||(Fe[this.externalValueUrl]=fetch(this.externalValueUrl).then((function(t){return t.text().then((function(n){if(!t.ok)return Promise.reject(new Error(n));if(!Object(o.w)(e))return n;try{return JSON.parse(n)}catch(e){return n}}))}))),Fe[this.externalValueUrl]):Promise.resolve(void 0)}}),e}(),Be={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}},ze=function(){function e(e,t,n,i,a,s){var c;void 0===s&&(s={}),Object.defineProperty(this,"deps",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"example",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"examples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deprecated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"in",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"kind",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"explode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"const",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"serializationMime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldFullPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this);var l=e.deref(t);this.kind=t.kind||"field",this.name=t.name||l.name,this.in=l.in,this.required=!!l.required;var u,p,f=l.schema,d="";if(!f&&l.in&&l.content&&(d=Object.keys(l.content)[0],f=l.content[d]&&l.content[d].schema),this.fieldFullPath=this.deps.parentFieldFullPath?this.deps.parentFieldFullPath+i.deepLinkSeparator+this.name:this.name,this.schema=new Le(e,f||{},n,i,!1,a,Object(r.a)(Object(r.a)({},s),{parentFieldFullPath:this.fieldFullPath,in:this.in})),this.description=void 0===l.description?this.schema.description||"":l.description,this.example=l.example||this.schema.example,void 0!==l.examples&&(this.examples=Object(o.E)(l.examples,(function(t,n){return new Me(e,t,n,l.encoding)}))),d)this.serializationMime=d;else if(l.style)this.style=l.style;else if(this.in){var h,m;this.style=null!==(h=null===(m=Be[this.in])||void 0===m?void 0:m.style)&&void 0!==h?h:"form"}void 0===l.explode&&this.in?this.explode=null===(u=null===(p=Be[this.in])||void 0===p?void 0:p.explode)||void 0===u||u:this.explode=!!l.explode;this.deprecated=void 0===l.deprecated?this.schema.deprecated:l.deprecated,e.exitRef(t),i.showExtensions&&(this.extensions=Object(o.m)(l,i.showExtensions)),this.const=(null===(c=this.schema)||void 0===c?void 0:c.const)||(null==l?void 0:l.const)||""}return Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!1}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!0}}),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"toggle",null),Object(r.c)([Ae.f],e.prototype,"collapse",null),Object(r.c)([Ae.f],e.prototype,"expand",null),e}(),Ue=n(108),$e=function(){function e(e,t,n,r,i,a){var s=void 0===a?{}:a,c=s.operation,l=s.type,u=s.response;Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"examples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isRequestType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onlyRequiredInSamples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t,this.operation=c,this.isRequestType=n,this.schema=r.schema&&new Le(e,r.schema,"",i,void 0,void 0,{operation:c,type:l,response:u}),this.onlyRequiredInSamples=i.onlyRequiredInSamples,void 0!==r.examples?this.examples=Object(o.E)(r.examples,(function(n){return new Me(e,n,t,r.encoding)})):void 0!==r.example?this.examples={default:new Me(e,{value:e.shallowDeref(r.example)},t,r.encoding)}:Object(o.w)(t)&&this.generateExample(e,r)}return Object.defineProperty(e.prototype,"generateExample",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n={skipReadOnly:this.isRequestType,skipWriteOnly:!this.isRequestType,skipNonRequired:this.isRequestType&&this.onlyRequiredInSamples,maxSampleDepth:this.options.generatedPayloadSamplesMaxDepth};if(this.schema&&this.schema.oneOf){this.examples={};for(var r=0,i=this.schema.oneOf;r<i.length;r++){var o=i[r],a=Ue.b(o.rawSchema,n,e.definition);this.schema.discriminatorProp&&"object"==typeof a&&a&&(a[this.schema.discriminatorProp]=o.title),this.examples[o.title]=new Me(e,{value:a},this.name,t.encoding)}}else this.schema&&(this.examples={default:new Me(e,{value:Ue.b(t.schema,n,e.definition)},this.name,t.encoding)})}}),e}(),Ve=function(){function e(e,t,n,r,i){var a=void 0===i?{}:i,s=a.operation,c=a.type,l=a.response;Object.defineProperty(this,"isRequestType",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"mediaTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.operation=s,r.unstable_ignoreMimeParameters&&(t=Object(o.J)(t)),this.mediaTypes=Object.keys(t).map((function(i){var o=t[i];return e.resetVisited(),new $e(e,i,n,o,r,{operation:s,type:c,response:l})}))}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;null===(t=this.operation)||void 0===t||t.activateMimeName(e)}}),Object.defineProperty(e.prototype,"active",{get:function(){var e=this;return this.mediaTypes.find((function(t){var n;return t.name===(null===(n=e.operation)||void 0===n?void 0:n.activeMimeName)}))||this.mediaTypes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasSample",{get:function(){return this.mediaTypes.filter((function(e){return!!e.examples})).length>0},enumerable:!1,configurable:!0}),Object(r.c)([Ae.f],e.prototype,"activate",null),Object(r.c)([Ae.g],e.prototype,"active",null),e}(),qe=function(e){Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var t=e.parser,n=e.infoOrRef,r=e.options,i=e.isEvent,a=e.operation,s=!i,c=t.deref(n);this.description=c.description||"",this.required=!!c.required,t.exitRef(n);var l=Object(o.p)(c);void 0!==l&&(this.content=new Ve(t,l,s,r,{operation:a,type:"request"}))},He=function(){function e(e){var t=this;Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:[]});var n=e.parser,i=e.code,a=e.defaultAsError,s=e.infoOrRef,c=e.options,l=e.isEvent,u=e.operation,p=!!l;Object(Ae.n)(this),this.expanded="all"===c.expandResponses||c.expandResponses[i];var f=n.deref(s);n.exitRef(s),this.code=i;var d=Object(o.p)(f);void 0!==d&&(this.content=new Ve(n,d,p,c,{operation:u,type:"response",response:this})),void 0!==f["x-summary"]?(this.summary=f["x-summary"],this.description=f.description||""):(this.summary=f.description||"",this.description=""),this.type=Object(o.s)(i,a);var h=f.headers;void 0!==h&&(this.headers=Object.keys(h).map((function(e){var i=h[e];return new ze(n,Object(r.a)(Object(r.a)({},i),{name:e}),"",c,void 0,{operation:u,type:"response",response:t})})))}return Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!0}}),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"toggle",null),Object(r.c)([Ae.f],e.prototype,"expand",null),e}(),We=n(242);function Qe(e){return"payload"===e.lang&&"requestBodyContent"in e}var Ye=!1,Ke=function(){function e(e,t,n,r,i){var a,s;void 0===i&&(i=!1),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"operationDefinition",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"absoluteIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"operation"}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"depth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ready",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"activeMimeName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeExampleName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"defaultExampleName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operationId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"httpVerb",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deprecated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"servers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"security",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isWebhook",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this),this.pointer=t.pointer,this.description=t.description,this.parent=n,this.externalDocs=t.externalDocs,this.deprecated=!!t.deprecated,this.httpVerb=t.httpVerb,this.deprecated=!!t.deprecated,this.operationId=t.operationId,this.path=t.pathName,this.isCallback=i,this.isWebhook=t.isWebhook,this.isEvent=this.isCallback||this.isWebhook,this.name=Object(o.r)(t),this.defaultExampleName=t.defaultSampleName;var c=((null===(a=this.requestBody)||void 0===a||null===(s=a.content)||void 0===s?void 0:s.mediaTypes)||[])[0],l=Object.keys((null==c?void 0:c.examples)||[])[0];this.activeExampleName=t.defaultSampleName||l,this.isCallback?(this.security=(t.security||[]).map((function(t){return new Te(t,e)})),this.servers=Object(o.K)("",t.servers||t.pathServers||[])):(this.id=Object(o.O)(void 0!==t.operationId?"operation/"+t.operationId:void 0!==n?n.id+this.pointer:this.pointer),this.security=(t.security||e.definition.security||[]).map((function(t){return new Te(t,e)})),this.servers=Object(o.K)(e.definitionUrl,t.servers||t.pathServers||e.definition.servers||[])),r.showExtensions&&(this.extensions=Object(o.m)(t,r.showExtensions))}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!0}}),Object.defineProperty(e.prototype,"deactivate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!1}}),Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object.defineProperty(e.prototype,"activateMimeName",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeMimeName=e}}),Object.defineProperty(e.prototype,"activateExampleName",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeExampleName=e}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.parent&&this.parent.expand()}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(e.prototype,"requestBody",{get:function(){return this.operationDefinition.requestBody&&new qe({parser:this.parser,infoOrRef:this.operationDefinition.requestBody,options:this.options,operation:this,isEvent:this.isEvent})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){var e,t=null===(e=this.requestBody)||void 0===e?void 0:e.content;return null!=t&&t.hasSample?{lang:"payload",label:"Payload",source:"",requestBodyContent:t}:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasSamples",{get:function(){var e,t;return(null===(e=this.requestBody)||void 0===e||null===(t=e.content)||void 0===t?void 0:t.hasSample)||this.definitionSamples.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definitionSamples",{get:function(){var e=this.operationDefinition["x-codeSamples"]||this.operationDefinition["x-code-samples"]||[];return this.operationDefinition["x-code-samples"]&&!Ye&&(Ye=!0,console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead')),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allCodeSamples",{get:function(){var e,t=this.options,n=t.generateCodeSamples,r=void 0===n?{}:n,i=t.payloadSampleIdx,o=t.hideRequestPayloadSample,a=new Set(this.definitionSamples.map((function(e){return e.lang.toLowerCase()}))),s=(null===(e=r.languages)||void 0===e?void 0:e.filter((function(e){var t=e.lang;return!a.has(t.toLowerCase())})))||[],c=this.generateCodeSamples(s,r),l=this.definitionSamples.concat(c),u=Math.min(l.length,i);return this.payload&&!o&&l.splice(u,0,this.payload),l},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parameters",{get:function(){var e=this,t=Object(o.I)(this.parser,this.operationDefinition.pathParameters,this.operationDefinition.parameters).map((function(t){return new ze(e.parser,t,e.pointer,e.options,void 0,{operation:e,type:"request"})}));return this.options.sortPropsAlphabetically?Object(o.R)(t,"name"):this.options.requiredPropsFirst?Object(o.S)(t):t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responses",{get:function(){var e=this,t=!1;return Object.keys(this.operationDefinition.responses||[]).filter((function(e){return"default"===e||("success"===Object(o.s)(e)&&(t=!0),Object(o.B)(e))})).map((function(n){return new He({parser:e.parser,code:n,defaultAsError:t,infoOrRef:e.operationDefinition.responses[n],options:e.options,isEvent:e.isEvent,operation:e})}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"callbacks",{get:function(){var e=this;return Object.keys(this.operationDefinition.callbacks||[]).map((function(t){var n;return new Ie(e.parser,t,null===(n=e.operationDefinition.callbacks)||void 0===n?void 0:n[t],e.pointer,e.options)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"generateCodeSamples",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,i=t.skipOptionalParameters,o=t.withOAuth2Call;return e.map((function(e){var t=e.lang,a=e.label,s=e.options;return{lang:t,label:a,get:function(e){return Object(We.b)(Object(r.a)(Object(r.a)({},e),{lang:t,options:Object(r.a)(Object(r.a)({},s),{skipOptionalParameters:i,withOAuth2Call:o,spec:n.parser.definition,generatedPayloadSamplesMaxDepth:n.options.generatedPayloadSamplesMaxDepth})}))}}}))}}),Object(r.c)([Ae.o],e.prototype,"ready",void 0),Object(r.c)([Ae.o],e.prototype,"active",void 0),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.o],e.prototype,"activeMimeName",void 0),Object(r.c)([Ae.o],e.prototype,"activeExampleName",void 0),Object(r.c)([Ae.f],e.prototype,"activate",null),Object(r.c)([Ae.f],e.prototype,"deactivate",null),Object(r.c)([Ae.f],e.prototype,"toggle",null),Object(r.c)([Ae.f],e.prototype,"activateMimeName",null),Object(r.c)([Ae.f],e.prototype,"activateExampleName",null),Object(r.c)([o.G],e.prototype,"requestBody",null),Object(r.c)([o.G],e.prototype,"payload",null),Object(r.c)([o.G],e.prototype,"hasSamples",null),Object(r.c)([o.G],e.prototype,"definitionSamples",null),Object(r.c)([o.G],e.prototype,"allCodeSamples",null),Object(r.c)([o.G],e.prototype,"parameters",null),Object(r.c)([o.G],e.prototype,"responses",null),Object(r.c)([o.G],e.prototype,"callbacks",null),e}(),Ge=function(){function e(e){Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"title",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"termsOfService",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contact",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"license",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"downloadLink",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"downloadFileName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,e.definition.info),this.description=e.definition.info.description||"",this.summary=e.definition.info.summary||"";var t=this.description.search(/^##?\s+/m);t>-1&&(this.description=this.description.substring(0,t)),this.downloadLink=this.getDownloadLink(),this.downloadFileName=this.getDownloadFileName()}return Object.defineProperty(e.prototype,"getDownloadLink",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.parser.definitionUrl)return this.parser.definitionUrl;if(o.a&&window.Blob&&window.URL&&window.URL.createObjectURL){var e=new Blob([JSON.stringify(this.parser.definition,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}}}),Object.defineProperty(e.prototype,"getDownloadFileName",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(!this.parser.definitionUrl)return"swagger.json"}}),e}(),Je=n(72),Xe=function(e,t,n){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sectionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"apiKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"http",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"flows",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"openId",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var r=e.deref(n);this.id=t,this.sectionId=Je.d+t,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)},Ze=function(e){Object.defineProperty(this,"schemes",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var t=e.definition.components&&e.definition.components.securitySchemes||{};this.schemes=Object.keys(t).map((function(n){return new Xe(e,n,t[n])}))},et=n(241),tt=function(){function e(e,t,n){Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]});var r=e.deref(n||{});e.exitRef(n),this.initWebhooks(e,r,t)}return Object.defineProperty(e.prototype,"initWebhooks",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){for(var i,o=0,a=Object.keys(t);o<a.length;o++)for(var s=t[a[o]],c=0,l=Object.keys(s).filter(et.hb);c<l.length;c++){var u=l[c],p=s[u];if(s.$ref){var f=e.deref(s||{});this.initWebhooks(e,((i={})[u]=f,i),n)}if(p){var d=new Ke(e,Object(r.a)(Object(r.a)({},p),{httpVerb:u}),void 0,n,!1);this.operations.push(d)}}}}),e}(),nt=0,rt=function(){function e(){}return Object.defineProperty(e,"buildStructure",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=t.definition,i=[],o=e.getTagsWithOperations(t);return i.push.apply(i,e.addMarkdownItems(r.info.description||"",void 0,1,n)),r["x-tagGroups"]&&r["x-tagGroups"].length>0?i.push.apply(i,e.getTagGroupsItems(t,void 0,r["x-tagGroups"],o,n)):i.push.apply(i,e.getTagsItems(t,o,void 0,void 0,n)),i}}),Object.defineProperty(e,"addMarkdownItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=new xe(r).extractHeadings(e||"");i.length&&t&&t.description&&(t.description=xe.getTextBeforeHading(t.description,i[0].name));var a=function(e,t,n){return void 0===n&&(n=1),t.map((function(t){var r=new De("section",t,e);return r.depth=n,t.items&&(r.items=a(r,t.items,n+1)),xe.containsComponent(r.description||"",o.d)&&Object(o.Q)(r.id+"/"),r}))};return a(t,i,n)}}),Object.defineProperty(e,"getTagGroupsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r,i,o){for(var a=[],s=0,c=r;s<c.length;s++){var l=c[s],u=new De("group",l,n);u.depth=nt,u.items=e.getTagsItems(t,i,u,l,o),a.push(u)}return a}}),Object.defineProperty(e,"getTagsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,i,a,s){for(var c=[],l=0,u=(void 0===a?Object.keys(n):a.tags).map((function(e){return n[e]?(n[e].used=!0,n[e]):(console.warn('Non-existing tag "'+e+'" is added to the group "'+(null==a?void 0:a.name)+'"'),null)}));l<u.length;l++){var p=u[l];if(p){var f=new De("tag",p,i);if(f.depth=nt+1,""!==p.name)f.items=Object(r.h)(Object(r.h)([],e.addMarkdownItems(p.description||"",f,f.depth+1,s),!0),this.getOperationsItems(t,f,p,f.depth+1,s),!0),c.push(f);else{var d=Object(r.h)(Object(r.h)([],e.addMarkdownItems(p.description||"",f,f.depth+1,s),!0),this.getOperationsItems(t,void 0,p,f.depth+1,s),!0);c.push.apply(c,d)}}}return s.sortTagsAlphabetically&&c.sort(Object(o.h)("name")),c}}),Object.defineProperty(e,"getOperationsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r,i){if(0===n.operations.length)return[];for(var a=[],s=0,c=n.operations;s<c.length;s++){var l=c[s],u=new Ke(e,l,t,i);u.depth=r,a.push(u)}return i.sortOperationsAlphabetically&&a.sort(Object(o.h)("name")),a}}),Object.defineProperty(e,"getTagsWithOperations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t={},n=e.definition,i=n["x-webhooks"]||n.webhooks,a=0,s=n.tags||[];a<s.length;a++){var c=s[a];t[c.name]=Object(r.a)(Object(r.a)({},c),{operations:[]})}function l(e,n,i){for(var a,s=0,c=Object.keys(n||{});s<c.length;s++)for(var u=c[s],p=n[u],f=0,d=Object.keys(p).filter(o.z);f<d.length;f++){var h=d[f],m=p[h];if(p.$ref){var v=e.deref(p);l(e,((a={})[u]=v,a),i)}else{var g=null==m?void 0:m.tags;g&&g.length||(g=[""]);for(var b=0,y=g;b<y.length;b++){var x=y[b],w=t[x];void 0===w&&(w={name:x,operations:[]},t[x]=w),w["x-traitTag"]||w.operations.push(Object(r.a)(Object(r.a)({},m),{pathName:u,pointer:o.b.compile(["paths",u,h]),httpVerb:h,pathParameters:p.parameters||[],pathServers:p.servers,isWebhook:!!i}))}}}}return n.paths&&l(e,n.paths),i&&l(e,i,!0),t}}),e}(),it=function(e,t,n){var i,o,a;Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"info",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"securitySchemes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"webhooks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.parser=new je(e,t,n),this.info=new Ge(this.parser),this.externalDocs=this.parser.definition.externalDocs,this.contentItems=rt.buildStructure(this.parser,this.options),this.securitySchemes=new Ze(this.parser);var s=Object(r.a)(Object(r.a)({},null===(i=this.parser)||void 0===i||null===(o=i.definition)||void 0===o?void 0:o["x-webhooks"]),null===(a=this.parser)||void 0===a?void 0:a.definition.webhooks);this.webhooks=new tt(this.parser,n,s)},ot=n(189),at=(n(235),n(95));function st(){var e;if(at.a)try{e=n(685)}catch(t){e=n(375).default}else e=n(375).default;return new e}var ct=function(){function e(){Object.defineProperty(this,"searchWorker",{enumerable:!0,configurable:!0,writable:!0,value:st()})}return Object.defineProperty(e.prototype,"indexItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,n=function(e){e.forEach((function(e){"group"!==e.type&&t.add(e.name,e.description||"",e.id),n(e.items)}))};n(e),this.searchWorker.done()}}),Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.searchWorker.add(e,t,n)}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.searchWorker.terminate(),this.searchWorker.dispose()}}),Object.defineProperty(e.prototype,"search",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.searchWorker.search(e)}}),Object.defineProperty(e.prototype,"toJS",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(e){return[2,this.searchWorker.toJS()]}))}))}}),Object.defineProperty(e.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.searchWorker.load(e)}}),Object.defineProperty(e.prototype,"fromExternalJS",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)}}),e}(),lt=n(342),ut=n.n(lt),pt=function(){function e(){Object.defineProperty(this,"map",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"prevTerm",{enumerable:!0,configurable:!0,writable:!0,value:""})}return Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.map.set(e,new ut.a(e))}}),Object.defineProperty(e.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.map.delete(e)}}),Object.defineProperty(e.prototype,"addOnly",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;this.map.forEach((function(n,r){-1===e.indexOf(r)&&(n.unmark(),t.map.delete(r))}));for(var n=0,r=e;n<r.length;n++){var i=r[n];this.map.has(i)||this.map.set(i,new ut.a(i))}}}),Object.defineProperty(e.prototype,"clearAll",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.unmark(),this.map.clear()}}),Object.defineProperty(e.prototype,"mark",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;(e||this.prevTerm)&&(this.map.forEach((function(n){n.unmark(),n.mark(e||t.prevTerm)})),this.prevTerm=e||this.prevTerm)}}),Object.defineProperty(e.prototype,"unmark",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.map.forEach((function(e){return e.unmark()})),this.prevTerm=""}}),e}()},function(e,t,n){"use strict";var r=n(563);e.exports=r},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):o(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var p=u;e.exports=p},function(e,t){e.exports=require("zlib")},function(e,t,n){"use strict";t.__esModule=!0;var r=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var n=t&&t.loc,o=void 0,a=void 0,s=void 0,c=void 0;n&&(o=n.start.line,a=n.end.line,s=n.start.column,c=n.end.column,e+=" - "+o+":"+s);for(var l=Error.prototype.constructor.call(this,e),u=0;u<r.length;u++)this[r[u]]=l[r[u]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{n&&(this.lineNumber=o,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=s,this.endColumn=c))}catch(e){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,n){var r=n(50),i=n(81),o=n(138);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return s}));var r=n(0),i=Object(r.createContext)(void 0),o=i.Provider,a=i.Consumer;function s(){return Object(r.useContext)(i)}},function(e,t,n){"use strict";n.d(t,"r",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"p",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"q",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"C",(function(){return k})),n.d(t,"x",(function(){return E})),n.d(t,"s",(function(){return S})),n.d(t,"o",(function(){return C})),n.d(t,"i",(function(){return _})),n.d(t,"l",(function(){return A})),n.d(t,"B",(function(){return D})),n.d(t,"A",(function(){return T})),n.d(t,"t",(function(){return I})),n.d(t,"u",(function(){return R})),n.d(t,"f",(function(){return L})),n.d(t,"v",(function(){return N})),n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return M})),n.d(t,"a",(function(){return B})),n.d(t,"d",(function(){return z})),n.d(t,"y",(function(){return U})),n.d(t,"z",(function(){return $})),n.d(t,"g",(function(){return V})),n.d(t,"w",(function(){return q})),n.d(t,"h",(function(){return H}));var r=n(1),i=n(11),o=n(249),a=n.n(o),s=n(95),c=n(107);function l(e){return"string"==typeof e&&/\dxx/i.test(e)}function u(e){return"default"===e||Object(c.d)(e)||l(e)}function p(e,t){if(void 0===t&&(t=!1),"default"===e)return t?"error":"success";var n="string"==typeof e?parseInt(e,10):e;if(l(e)&&(n*=100),n<100||n>599)throw new Error("invalid HTTP code");var r="success";return n>=300&&n<400?r="redirect":n>=400?r="error":n<200&&(r="info"),r}var f={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function d(e){return e in f}function h(e){return e.summary||e.operationId||e.description&&e.description.substring(0,50)||"<no summary>"}var m={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object"};function v(e){if(void 0!==e.type&&!Array.isArray(e.type))return e.type;for(var t=0,n=Object.keys(m);t<n.length;t++){var r=n[t],i=m[r];if(void 0!==e[r])return i}return"any"}function g(e,t){if(void 0===t&&(t=e.type),void 0!==e.oneOf||void 0!==e.anyOf)return!1;var n=!0,r=Array.isArray(t);return("object"===t||r&&null!=t&&t.includes("object"))&&(n=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties),void 0!==e.items&&("array"===t||r&&null!=t&&t.includes("array"))&&(n=g(e.items,e.items.type)),n}function b(e){return-1!==e.search(/json/i)}function y(e){return"application/x-www-form-urlencoded"===e}function x(e,t,n){return Array.isArray(e)?e.map((function(e){return e.toString()})).join(n):"object"==typeof e?Object.keys(e).map((function(t){return""+t+n+e[t]})).join(n):t+"="+e.toString()}function w(e,t){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((function(n){return e[n]?t+"["+n+"]="+e[n]:void 0})).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function O(e,t,n){var r,i=t?"*":"";return a.a.parse("{?__redoc_param_name__"+i+"}").expand((r={},r.__redoc_param_name__=n,r)).substring(1).replace(/__redoc_param_name__/g,e)}function k(e,t){if(void 0===t&&(t={}),Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((function(n){var r=e[n],i=t[n]||{},o=i.style,a=void 0===o?"form":o,s=i.explode,c=void 0===s||s;switch(a){case"form":return O(n,c,r);case"spaceDelimited":return x(r,n,"%20");case"pipeDelimited":return x(r,n,"|");case"deepObject":return w(r,n);default:return console.warn("Incorrect or unsupported encoding style: "+a),""}})).join("&")}function j(e,t){return b(t)?JSON.stringify(e):(console.warn("Parameter serialization as "+t+" is not supported"),"")}function E(e,t){var n=e.name,r=e.style,i=e.explode,o=void 0!==i&&i,s=e.serializationMime;if(s)switch(e.in){case"path":case"header":return j(t,s);case"cookie":case"query":return n+"="+j(t,s);default:return console.warn("Unexpected parameter location: "+e.in),""}if(!r)return console.warn("Missing style attribute or content for parameter "+n),"";switch(e.in){case"path":return function(e,t,n,r){var i,o=n?"*":"",s="";return"label"===t?s=".":"matrix"===t&&(s=";"),a.a.parse("{"+s+"__redoc_param_name__"+o+"}").expand((i={},i.__redoc_param_name__=r,i)).replace(/__redoc_param_name__/g,e)}(n,r,o,t);case"query":return function(e,t,n,r){switch(t){case"form":return O(e,n,r);case"spaceDelimited":return Array.isArray(r)?n?O(e,n,r):e+"="+r.join("%20"):(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return Array.isArray(r)?n?O(e,n,r):e+"="+r.join("|"):(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!n||Array.isArray(r)||"object"!=typeof r?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):w(r,e);default:return console.warn("Unexpected style for query: "+t),""}}(n,r,o,t);case"header":return function(e,t,n){var r;switch(e){case"simple":var i=t?"*":"",o="__redoc_param_name__",s=a.a.parse("{"+o+i+"}");return decodeURIComponent(s.expand(((r={})[o]=n,r)));default:return console.warn("Unexpected style for header: "+e),""}}(r,o,t);case"cookie":return function(e,t,n,r){switch(t){case"form":return O(e,n,r);default:return console.warn("Unexpected style for cookie: "+t),""}}(n,r,o,t);default:return console.warn("Unexpected parameter location: "+e.in),""}}function S(e){return-1!==e.search(/xml/i)?"xml":"clike"}function C(e){return/^#\/components\/(schemas|pathItems)\/[^/]+$/.test(e||"")}function _(e){if(e){var t=e.match(/^#\/components\/(schemas|pathItems)\/([^/]+)$/);return null===t?void 0:t[1]}}function P(e,t,n){var r;return void 0!==t&&void 0!==n?r=t===n?t+" "+e:"[ "+t+" .. "+n+" ] "+e:void 0!==n?r="<= "+n+" "+e:void 0!==t&&(r=1===t?"non-empty":">= "+t+" "+e),r}function A(e){var t=[],n=P("characters",e.minLength,e.maxLength);void 0!==n&&t.push(n);var r=P("items",e.minItems,e.maxItems);void 0!==r&&t.push(r);var i,o=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= "+t.split(".")[1].length:"multiple of "+t}}(e.multipleOf);if(void 0!==o&&t.push(o),void 0!==e.minimum&&void 0!==e.maximum?(i=e.exclusiveMinimum?"( ":"[ ",i+=e.minimum,i+=" .. ",i+=e.maximum,i+=e.exclusiveMaximum?" )":" ]"):void 0!==e.maximum?(i=e.exclusiveMaximum?"< ":"<= ",i+=e.maximum):void 0!==e.minimum&&(i=e.exclusiveMinimum?"> ":">= ",i+=e.minimum),"number"==typeof e.exclusiveMinimum||"number"==typeof e.exclusiveMaximum){var a=0,s=0;e.minimum&&(a=e.minimum),"number"==typeof e.exclusiveMinimum&&(a=a<=e.exclusiveMinimum?a:e.exclusiveMinimum),e.maximum&&(s=e.maximum),"number"==typeof e.exclusiveMaximum&&(s=s>e.exclusiveMaximum?s:e.exclusiveMaximum),i="["+a+" .. "+s+"]"}return void 0!==i&&t.push(i),e.uniqueItems&&t.push("unique"),t}function D(e,t){void 0===t&&(t=[]);var n=[],i=[],o=[];return e.forEach((function(e){e.required?t.includes(e.name)?i.push(e):o.push(e):n.push(e)})),i.sort((function(e,n){return t.indexOf(e.name)-t.indexOf(n.name)})),Object(r.h)(Object(r.h)(Object(r.h)([],i,!0),o,!0),n,!0)}function T(e,t){return Object(r.h)([],e,!0).sort((function(e,n){return e[t].localeCompare(n[t])}))}function I(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]);var r={};return n.forEach((function(t){t=e.shallowDeref(t),r[t.name+"_"+t.in]=!0})),(t=t.filter((function(t){return t=e.shallowDeref(t),!r[t.name+"_"+t.in]}))).concat(n)}function R(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],o=n.split(";")[0].trim();t[o]?t[o]=Object(r.a)(Object(r.a)({},t[o]),i):t[o]=i})),t}function L(e,t){return void 0===t&&(t={}),e.replace(/(?:{)([\w-.]+)(?:})/g,(function(e,n){return t[n]&&t[n].default||e}))}function N(e,t){var n=void 0===e?Object(c.h)(function(){if(!s.a)return"";var e=window.location.href;return e.endsWith(".html")?Object(i.dirname)(e):e}()):Object(i.dirname)(e);return 0===t.length&&(t=[{url:"/"}]),t.map((function(e){return Object(r.a)(Object(r.a)({},e),{url:(t=e.url,Object(c.i)(n,t)),description:e.description||""});var t}))}var F="security-definitions",M="SecurityDefinitions",B="SchemaDefinition",z="section/Authentication/";function U(e){z=e}var $=function(e){return{delete:"del",options:"opts"}[e]||e};function V(e,t){return Object.keys(e).filter((function(e){return!0===t?e.startsWith("x-")&&!function(e){return e in{"x-circular-ref":!0,"x-code-samples":!0,"x-codeSamples":!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-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0}}(e):e.startsWith("x-")&&t.indexOf(e)>-1})).reduce((function(t,n){return t[n]=e[n],t}),{})}function q(e){return e.split(" or ").map((function(e){return e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")})).join(" or ")}function H(e){var t=e.content,n=e["x-examples"],i=e["x-example"];if(n){t=Object(r.a)({},t);for(var o=0,a=Object.keys(n);o<a.length;o++){var s=n[u=a[o]];t[u]=Object(r.a)(Object(r.a)({},t[u]),{examples:s})}}else if(i){t=Object(r.a)({},t);for(var c=0,l=Object.keys(i);c<l.length;c++){var u,p=i[u=l[c]];t[u]=Object(r.a)(Object(r.a)({},t[u]),{example:p})}}return t}},function(e,t,n){var r=n(1049),i=n(1050),o=n(318),a=n(1051);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return m}));var r,i=n(1),o=n(0),a=n(10),s=n(121),c=n(3),l=n(2).e.div(r||(r=Object(i.f)(["\n transition: opacity 0.2s;\n\n .loading &:not(.updated) {\n opacity: 0.5;\n }\n"],["\n transition: opacity 0.2s;\n\n .loading &:not(.updated) {\n opacity: 0.5;\n }\n"]))),u=n(24),p=Object(a.a)((function(e){var t=e.children,n=e.onChange,r=e.defaultLanguage,a=Object(i.g)(e,["children","onChange","defaultLanguage"]),p=Object(o.useContext)(c.X),f=Object(o.useState)(r),d=f[0],h=f[1],m=Object(o.useState)([]),v=m[0],g=m[1];Object(o.useEffect)((function(){g(a.tabs.map((function(e){return e.lang})))}),[a.tabs]),Object(o.useEffect)((function(){d===p.activeSampleLanguage&&h(void 0)}),[p.activeSampleLanguage]),Object(o.useLayoutEffect)((function(){return p.stopLoader()}),[p.activeSampleLanguage]),Object(o.useEffect)((function(){d&&(p.startLoader(),p.activateSampleLanguage(d))}),[d,r]);var b;return o.createElement(l,{className:d&&"updated"},o.createElement(s.b,Object(i.a)({},a,{activeIndex:(b=v.indexOf(d||p.activeSampleLanguage),-1===b?0:b),onChange:function(e){var t=a.tabs[e];h(t.lang),n&&n(t)}}),r&&-1===v.indexOf(r)&&o.createElement(u.g,null,"Provided language is not supported"),t))})),f=n(6),d=n(7),h=function(e){var t=e.exampleKey,n=e.examples,r=e.onChange,i=Object.keys(n),a=t?i.indexOf(t):0,s=Object(o.useState)(a>-1?a:0),c=s[0],l=s[1];Object(o.useEffect)((function(){return l(a>-1?a:0)}),[t,a]);var p=i.map((function(e,t){return{value:n[e].summary||e,idx:t}}));return o.createElement(o.Fragment,null,o.createElement(d.a,null,o.createElement(f.e,{variant:"dark",fullWidth:!0,prefix:"Example: ",options:p,value:p[c].value,onChange:function(e){var t=e.idx;l(t),r(i[t])}})),t&&-1===a&&o.createElement(u.g,null,"Provided sample not found"))};function m(e,t){var n=void 0===e?{}:e,r=n.activeExampleName,i=n.defaultExampleName;return{exampleKey:r&&t[r]?r:Object.keys(t)[0],defaultExampleName:i}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n(98);function i(e,t){return e===t||"#"+e===t||e==="#"+t}var o=function(e){if(!e.in){var t,n,r,i,o,a,s,c,l,u,p,f,d,h,m;if("request"===e.deps.type)if(null!==(t=e.deps.operation)&&void 0!==t&&null!==(n=t.requestBody)&&void 0!==n&&null!==(r=n.content)&&void 0!==r&&r.mediaTypes)return(null===(i=e.deps.operation)||void 0===i||null===(o=i.requestBody)||void 0===o||null===(a=o.content)||void 0===a?void 0:a.mediaTypes.length)>1?null===(s=e.deps.operation)||void 0===s||null===(c=s.requestBody)||void 0===c||null===(l=c.content)||void 0===l?void 0:l.active:void 0;if("response"===e.deps.type)if(null!==(u=e.deps.response)&&void 0!==u&&null!==(p=u.content)&&void 0!==p&&p.mediaTypes)return(null===(f=e.deps.response)||void 0===f||null===(d=f.content)||void 0===d?void 0:d.mediaTypes.length)>1?null===(h=e.deps.response)||void 0===h||null===(m=h.content)||void 0===m?void 0:m.active:void 0}};function a(e){var t,n,i,a;if(!e)return null;if(!e.deps.operation)return null;if(null!==(t=e.deps.operation)&&void 0!==t&&t.isCallback)return null;var s={t:e.deps.type,in:e.in||e.deps.in,c:"response"===e.deps.type?null===(n=e.deps.response)||void 0===n?void 0:n.code:void 0,cb:null!==(i=e.deps.operation)&&void 0!==i&&i.isCallback?null===(a=e.deps.operation)||void 0===a?void 0:a.id:void 0,ct:o(e),path:e.fieldFullPath};return Object(r.stringify)(s,{encode:!1})}function s(e,t,n){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="/"),e.endsWith(n)&&(e=e.slice(0,-n.length)),t.startsWith(n)&&(t=t.slice(n.length)),e&&t?e+n+t:e+t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r.a})),n.d(t,"c",(function(){return i.b})),n.d(t,"a",(function(){return i.a}));n(118);var r=n(157),i=n(25);n(242)},function(e,t,n){"use strict";var r=n(638);function i(e,t,n){if(3===arguments.length)return i.set(e,t,n);if(2===arguments.length)return i.get(e,t);var r=i.bind(i,e);for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o].bind(r,e));return r}e.exports=i,i.get=function(e,t){for(var n=Array.isArray(t)?t:i.parse(t),r=0;r<n.length;++r){var o=n[r];if("object"!=typeof e||!(o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e},i.set=function(e,t,n){var r=Array.isArray(t)?t:i.parse(t),o=r[0];if(0===r.length)throw Error("Can not set the root object");for(var a=0;a<r.length-1;++a){var s=r[a];"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),o=r[a+1],s in e||(o.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===o&&Array.isArray(e)&&(o=e.length),e[o]=n,this},i.remove=function(e,t){var n=Array.isArray(t)?t:i.parse(t),r=n[n.length-1];if(void 0===r)throw new Error('Invalid JSON pointer for remove: "'+t+'"');var o=i.get(e,n.slice(0,-1));if(Array.isArray(o)){var a=+r;if(""===r&&isNaN(a))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(o,a,1)}else delete o[r]},i.dict=function(e,t){var n={};return i.walk(e,(function(e,t){n[t]=e}),t),n},i.walk=function(e,t,n){var o=[];n=n||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function e(a){r(a,(function(r,a){o.push(String(a)),n(r)?e(r):t(r,i.compile(o)),o.pop()}))}(e)},i.has=function(e,t){try{i.get(e,t)}catch(e){return!1}return!0},i.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},i.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},i.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(i.unescape)},i.compile=function(e){return 0===e.length?"":"/"+e.map(i.escape).join("/")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggest=t.validateDefinedAndNonEmpty=t.fieldNonEmpty=t.missingRequiredField=t.matchesJsonSchemaType=t.oasTypeOf=void 0;const r=n(739);function i(e,t){return`${e} object should contain \`${t}\` field.`}function o(e,t){return`${e} object \`${t}\` must be non-empty string.`}t.oasTypeOf=function(e){return Array.isArray(e)?"array":null===e?"null":typeof e},t.matchesJsonSchemaType=function(e,t,n){if(n&&null===e)return null===e;switch(t){case"array":return Array.isArray(e);case"object":return"object"==typeof e&&null!==e&&!Array.isArray(e);case"null":return null===e;case"integer":return Number.isInteger(e);default:return typeof e===t}},t.missingRequiredField=i,t.fieldNonEmpty=o,t.validateDefinedAndNonEmpty=function(e,t,n){"object"==typeof t&&(void 0===t[e]?n.report({message:i(n.type.name,e)}):t[e]||n.report({message:o(n.type.name,e),location:n.location.child([e]).key()}))},t.getSuggest=function(e,t){if("string"!=typeof e||!t.length)return[];const n=[];for(let i=0;i<t.length;i++){const o=r(e,t[i]);o<4&&n.push({distance:o,variant:t[i]})}return n.sort((e,t)=>e.distance-t.distance),n.map(e=>e.variant)}},function(e,t,n){var r=n(293),i=n(210);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(210);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(50),i=n(438),o=n(54),a=n(211),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(29),i=n(33),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(457),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,i=n(1),o=n(2),a=n(236),s=n(40),c=n(58),l=Object(o.e)(a.a)(r||(r=Object(i.f)(["\n border-radius: ",";\n\n "," + "," {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"],["\n border-radius: ",";\n\n "," + "," {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"])),(function(e){return e.theme.components.panels.borderRadius}),s.a,c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i=n(1),o=n(2).e.span(r||(r=Object(i.f)(["\n line-height: 1;\n margin-right: 4px;\n font-weight: 700;\n color: ",";\n"],["\n line-height: 1;\n margin-right: 4px;\n font-weight: 700;\n color: ",";\n"])),(function(e){return e.theme.colors.text.light}))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(l=1,c=new Array(p-1);l<p;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),p){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(f=1,c=new Array(p-1);f<p;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,l=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:c(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l},function(e,t,n){var r=n(223),i=n(315),o=n(317),a=n(318);e.exports=function(e,t){var n=void 0!==r&&i(e)||e["@@iterator"];if(!n){if(o(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var s=0,c=function(){};return{s:c,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,p=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){p=!0,l=e},f:function(){try{u||null==n.return||n.return()}finally{if(p)throw l}}}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMappingRef=t.isAbsoluteUrl=t.refBaseName=t.pointerBaseName=t.parsePointer=t.parseRef=t.escapePointer=t.unescapePointer=t.Location=t.isRef=t.joinPointer=void 0;const r=n(11);function i(e,t){return""===e&&(e="#/"),"/"===e[e.length-1]?e+t:e+"/"+t}t.joinPointer=i,t.isRef=function(e){return e&&"string"==typeof e.$ref};class o{constructor(e,t){this.source=e,this.pointer=t}child(e){return new o(this.source,i(this.pointer,(Array.isArray(e)?e:[e]).map(s).join("/")))}key(){return Object.assign(Object.assign({},this),{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+("#/"===this.pointer?"":this.pointer)}}function a(e){return decodeURIComponent(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function s(e){return"number"==typeof e?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}t.Location=o,t.unescapePointer=a,t.escapePointer=s,t.parseRef=function(e){const[t,n]=e.split("#/");return{uri:t||null,pointer:n?n.split("/").map(a).filter(Boolean):[]}},t.parsePointer=function(e){return e.substr(2).split("/").map(a)},t.pointerBaseName=function(e){const t=e.split("/");return t[t.length-1]},t.refBaseName=function(e){const t=e.split(r.sep);return t[t.length-1].split(".")[0]},t.isAbsoluteUrl=function(e){return e.startsWith("http://")||e.startsWith("https://")},t.isMappingRef=function(e){return e.startsWith("#")||e.startsWith("https://")||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNamedType=t.normalizeTypes=t.mapOf=t.listOf=void 0,t.listOf=function(e){return{name:e+"_List",properties:{},items:e}},t.mapOf=function(e){return{name:e+"_Map",properties:{},additionalProperties:()=>e}},t.normalizeTypes=function(e,t={}){const n={};for(const t of Object.keys(e))n[t]=Object.assign(Object.assign({},e[t]),{name:t});for(const e of Object.values(n))r(e);return n;function r(e){if(e.additionalProperties&&(e.additionalProperties=i(e.additionalProperties)),e.items&&(e.items=i(e.items)),e.properties){const n={};for(const[r,o]of Object.entries(e.properties))n[r]=i(o),t.doNotResolveExamples&&o&&o.isExample&&(n[r]=Object.assign(Object.assign({},o),{resolvable:!1}));e.properties=n}}function i(e){if("string"==typeof e){if(!n[e])throw new Error("Unknown type name found: "+e);return n[e]}return"function"==typeof e?(t,n)=>i(e(t,n)):e&&e.name?(r(e=Object.assign({},e)),e):e&&e.directResolveAs?Object.assign(Object.assign({},e),{directResolveAs:i(e.directResolveAs)}):e}},t.isNamedType=function(e){return"string"==typeof(null==e?void 0:e.name)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(377),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},function(e,t,n){var r=n(109);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(1),i=function(e,t,n,r,i){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},o={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},a={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},s={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},c=function(e,t){if("number"!=typeof t||t>=0)return i(e,t,t);var n=Math.abs(t),r=i(e,n,n);return"string"==typeof r?"-"+r:-1*r},l=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return Object(r.a)(Object(r.a)({},e),((n={})[t]=c,n))}),{}),u="_";function p(e,t){if("object"==typeof t){var n=t[e];return n||0===n?n:null}return e===u?t:null}function f(e){var t=p(u,e);return null!==t?t:(console.warn("Theme resolver: could not find default value for "+JSON.stringify(e)+'. Theme properties with breakpoints should contain a non-empty "'+u+'" property.'),null)}function d(e,t,n){var r={},i=f(n),o=null,a=t.map(f);i&&!a.some((function(e){return null===e}))&&(r[u]=i.apply(void 0,a),o=r[u]);for(var s=0,c=Object.keys(e);s<c.length;s++){var l=c[s];i=p(l,n)||i;for(var d=0;d<t.length;d++){var h=p(l,t[d])||a[d];null!==h&&(a[d]=h)}var m=a.findIndex((function(e){return null===e}));if(-1===m)if(i){var v=i.apply(void 0,a);o!==v&&(r[l]=v,o=v)}else console.warn("Theme resolver: could not resolve media mapper. CSS may be rendered incorrectly.");else console.warn('Theme resolver: could not resolve breakpoint: "'+l+'" for value '+JSON.stringify(t[m])+".")}return r}var h=function(e){return function(t){void 0===t&&(t={});var n=t.theme||t,c={},p=function(e){return function(t){for(var n={},r=i(t,"breakpoints"),o={},a=0,s=Object.entries(r);a<s.length;a++){var c=s[a],l=c[0],p=c[1];o[l]="@media screen and (min-width: "+p+")",n[o[l]]=null}for(var l in e){if(null!=(p="function"==typeof e[l]?e[l](t):e[l]))if(Array.isArray(p)||"object"!=typeof p)n[l]=p;else for(var f=0,d=Object.entries(p);f<d.length;f++){var h=d[f],m=h[0],v=h[1],g=o[m];g?(n[g]=n[g]||{},null!=v&&(n[g][l]=v)):m===u&&(n[l]=v)}}return n}}("function"==typeof e?e(n):e)(n);for(var f in p){var d=p[f],m="function"==typeof d?d(n):d;if("variant"!==f)if(!m||"object"!=typeof m||Array.isArray(m)){var v=i(o,f,f),g=i(s,v),b=i(n,g,i(n,v,{})),y=i(l,v,i)(b,m,m);if(a[v])for(var x=a[v],w=0;w<x.length;w++)c[x[w]]=y;else c[v]=y}else c[f]=h(m)(n);else{var O=h(i(n,m))(n);c=Object(r.a)(Object(r.a)({},c),O)}}return c}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="undefined"!=typeof window&&"HTMLElement"in window;function i(e){return"undefined"!=typeof document?document.querySelector(e):null}"undefined"==typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){e=0===arguments.length||!!e;var t=this.parentNode,n=window.getComputedStyle(t,void 0),r=parseInt(n.getPropertyValue("border-top-width"),10),i=parseInt(n.getPropertyValue("border-left-width"),10),o=this.offsetTop-t.offsetTop<t.scrollTop,a=this.offsetTop-t.offsetTop+this.clientHeight-r>t.scrollTop+t.clientHeight,s=this.offsetLeft-t.offsetLeft<t.scrollLeft,c=this.offsetLeft-t.offsetLeft+this.clientWidth-i>t.scrollLeft+t.clientWidth,l=o&&!a;(o||a)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-r+this.clientHeight/2),(s||c)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(o||a||s||c)&&!e&&this.scrollIntoView(l)})},function(e,t,n){var r=n(115),i=n(63);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(325);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";const r=n(678),i=n(679),o=n(680),a=n(681);function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function d(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,e).includes(e.arrayFormatSeparator);n=o?l(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===n?n:l(n,e);r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=f(n[e],t);else r[e]=f(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=p,t.parse=d,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[c(t,e),"=",c(r,e)].join("")]:[[n,c(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:d(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=u(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let s=t.stringify(a,n);s&&(s="?"+s);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+c(e.fragmentIdentifier,n)),`${r}${s}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return b}));var r,i,o,a,s,c,l,u=n(1),p=n(12),f=n(2),d=Object(f.g)(r||(r=Object(u.f)(["\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n"],["\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n"]))),h=(Object(f.g)(i||(i=Object(u.f)(["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: #59C3FF;\n }\n\n 100% {\n background-color: ",";\n }\n"],["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: #59C3FF;\n }\n\n 100% {\n background-color: ",";\n }\n"])),Object(p.a)(.3,"#59C3FF"),Object(p.a)(.3,"#59C3FF")),Object(f.d)(o||(o=Object(u.f)(["\n animation: "," 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n"],["\n animation: "," 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n"])),d)),m=f.e.div(a||(a=Object(u.f)(["\n background-color: ",";\n color: ",";\n font-family: ",";\n border-radius: ",";\n overflow: hidden;\n z-index: 10;\n display: flex;\n flex-direction: column;\n max-height: calc(85vh - ","px);\n margin-bottom: 10px;\n ",";\n > div:last-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n"],["\n background-color: ",";\n color: ",";\n font-family: ",";\n border-radius: ",";\n overflow: hidden;\n z-index: 10;\n display: flex;\n flex-direction: column;\n max-height: calc(85vh - ","px);\n margin-bottom: 10px;\n ",";\n > div:last-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n"])),(function(e){return e.theme.rightPanel.panelBackgroundColor}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.scrollYOffset()}),(function(e){return e.shaking&&h})),v=f.e.div(s||(s=Object(u.f)(["\n flex: 1;\n padding: 20px 20px 15px;\n overflow: auto;\n display: ",";\n flex-direction: column;\n position: relative;\n background-color: ",";\n"],["\n flex: 1;\n padding: 20px 20px 15px;\n overflow: auto;\n display: ",";\n flex-direction: column;\n position: relative;\n background-color: ",";\n"])),(function(e){return e.hidden?"none":"flex"}),(function(e){return e.theme.rightPanel.panelBackgroundColor})),g=f.e.span(c||(c=Object(u.f)(["\n cursor: pointer;\n font-size: 24px;\n font-weight: bold;\n color: ",";\n"],["\n cursor: pointer;\n font-size: 24px;\n font-weight: bold;\n color: ",";\n"])),(function(e){return e.theme.colors.text.light})),b=Object(f.d)(l||(l=Object(u.f)(["\n border: none;\n outline: none;\n padding: 8px;\n border-radius: ",";\n background-color: ",";\n ","\n\n &::placeholder {\n opacity: 0.6;\n color: ",";\n }\n\n &:-webkit-autofill {\n background-color: ",";\n }\n"],["\n border: none;\n outline: none;\n padding: 8px;\n border-radius: ",";\n background-color: ",";\n ","\n\n &::placeholder {\n opacity: 0.6;\n color: ",";\n }\n\n &:-webkit-autofill {\n background-color: ",";\n }\n"])),(function(e){return e.theme.shape.borderRadius}),(function(e){return e.theme.rightPanel.panelControlsBackgroundColor}),(function(e){var t=e.theme;return Object(f.h)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.rightPanel.panelBackgroundColor}))},function(e,t,n){e.exports=n(1057)},function(e,t,n){var r,i;
24
+ !o||t.keepState&&t.inMultistep||console.warn("Check to make sure you have not registered two fields with the fieldName",r),Ne("Fields Registered",this.fieldsById.size),this.onScreen[e]=t,this.fieldsById.set(e,t),Ne("clearing expected removal",a),delete this.expectedRemovals[a],delete this.pulledOut[a],t.shadow||(this.updater.setValue(e,t.fieldApi.getValue(),!1),this.updater.setError(e,t.fieldApi.getError(),!1),this.updater.setTouched(e,t.fieldApi.getTouched(),!1),n||this.emit("change"),this.emit("field",r))}},{key:"deregister",value:function(e){var t=this.fieldsById.get(e),n=t.field;Ne("Deregister",e,n),delete this.onScreen[e];var r=function(e,t){var n=Object.keys(t).find((function(t){return e.includes(t)}));if(n)return e.slice(0,n.length)===n}(n,this.expectedRemovals),i=n.slice(0,-1!=n.lastIndexOf("[")?n.lastIndexOf("]")+1:n.length);!t.keepState&&!t.inMultistep||r||(Ne("Saving field ".concat(n,"'s value"),t.fieldApi.getFieldState()),t.shadow?A.set(this.savedValues,"shadow-".concat(n),t.fieldApi.getFieldState()):A.set(this.savedValues,n,t.fieldApi.getFieldState())),(r||!t.keepState&&!t.inMultistep||!t.fieldApi.getIsRelevant()&&!t.keepState)&&(Ne("Removing field",n),this.fieldsById.delete(e),r||(A.delete(this.state.values,n),A.delete(this.state.touched,n),A.delete(this.state.errors,n),t.shadow?A.delete(this.savedValues,"shadow-".concat(n)):A.delete(this.savedValues,n)),r&&this.pulledOut[i]&&(Ne("Pulling out",n,"with magic value",i),A.pullOut(this.state.values,i),A.pullOut(this.state.touched,i),A.pullOut(this.state.errors,i),A.pullOut(this.savedValues,i),delete this.pulledOut[i])),this.emit("change")}},{key:"expectRemoval",value:function(e){Ne("Expecting removal of",e),this.expectedRemovals[e]=!0,this.pulledOut[e]=!0}},{key:"update",value:function(e,t,n){Ne("Update",e,t.field,n,t.fieldState.value);var r=t.fieldApi.getValue(),i=t.fieldApi.getError(),o=t.fieldApi.getTouched(),a=this.fieldsByName.get(n);n&&!a&&(A.set(this.state.values,n),A.set(this.state.errors,n),A.set(this.state.touched,n)),A.set(this.state.values,t.field,r),A.set(this.state.errors,t.field,i),A.set(this.state.touched,t.field,o),this.emit("change")}}]),e}(),Be=w("informed:FormProvider\t\t"),ze=function(e){var t=e.children,n=e.formApi,r=e.formController,o=e.formState,a=h(e,["children","formApi","formController","formState"]);if(Be("Render FormProvider"),n)return Be("Render FormProvider with given values"),i.a.createElement(T.Provider,{value:r.updater},i.a.createElement(R.Provider,{value:n},i.a.createElement(I.Provider,{value:o},t)));Be("Render FormProvider with generated values");var s=$e(a);return i.a.createElement(T.Provider,{value:s.formController.updater},i.a.createElement(R.Provider,{value:s.formApi},i.a.createElement(I.Provider,{value:s.formState},t)))},Ue=w("informed:useForm\t\t"),$e=function(e){var t=e.dontPreventDefault,n=e.initialValues,o=e.validate,a=e.validateFields,s=e.allowEmptyStrings,c=e.preventEnter,l=e.getApi,u=e.apiRef,p=e.onChange,f=e.onReset,d=e.onSubmit,m=e.onValueChange,v=e.onSubmitFailure,b=e.validationSchema,y=e.schema,x=e.ajv,w=e.fieldMap,O=e.onlyValidateSchema,k=h(e,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);Ue("Render useForm");var j=Object(r.useMemo)((function(){return{dontPreventDefault:t,initialValues:n,validate:o,validateFields:a,allowEmptyStrings:s,preventEnter:c,validationSchema:b,schema:y,ajv:x,fieldMap:w}}),[t,n,o,a,s,c,b,y,x,w]),E=g(Object(r.useState)((function(){return new Me(j)})),1)[0];Object(r.useEffect)((function(){E.setOptions(j)}),[j]),Z((function(){E.mount()}),[]);var S=g(Object(r.useState)((function(){return E.getFormState()})),2),C=S[0],_=S[1];Z((function(){var e=function(){return p&&p(E.getFormState())},t=function(){return f&&f()},n=function(){return d&&d(E.getFormState().values)},r=function(){return m&&m(E.getFormState().values)},i=function(){return v&&v(E.getFormState().errors)};return E.on("change",e),E.on("reset",t),E.on("submit",n),E.on("value",r),E.on("failure",i),function(){E.removeListener("change",e),E.removeListener("reset",t),E.removeListener("submit",n),E.removeListener("value",r),E.removeListener("failure",i)}}),[p,f,d,m,v]),Object(r.useState)((function(){E.on("change",(function(){Ue("Setting form state"),_(E.getFormState())})),l&&l(E.getFormApi()),u&&(u.current=E.getFormApi())}));var P=g(Object(r.useState)((function(){return E.getFormApi()})),1)[0];return{formApi:P,formState:C,formController:E,render:function(e){return i.a.createElement(ze,{formApi:P,formState:C,formController:E},i.a.createElement(i.a.Fragment,null,e||i.a.createElement(Ie,{schema:y,onlyValidateSchema:O})))},userProps:k}},Ve=w("informed:Form\t\t"),qe=function(e){var t=e.children,n=e.render,r=e.component,o=h(e,["children","render","component"]);Ve("Render FORM");var a,s=$e(o),c=s.formApi,u=s.formController,p=s.formState,f=s.render,d=s.userProps;return f(i.a.createElement("form",l({},d,{onReset:u.reset,onSubmit:u.submitForm,onKeyDown:u.keyDown}),(a={formState:p,formApi:c},r?i.a.createElement(r,a,t):n?n(a):"function"==typeof t?t(a):t)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(1),i=n(3),o=n(4);function a(e,t,n){e.forEach((function(e){if(e.items&&a(e.items,t,n),e.id=n+"/"+e.id,"operation"===e.type){e.specIdx=t;for(var r=0,i=e.security;r<i.length;r++)for(var o=0,s=i[r].schemes;o<s.length;o++){var c=s[o];c.sectionId=n+"/"+c.sectionId}}}))}var s=function(){function e(e,t,n){if(Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"versions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeVersionIdx",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object(o.n)(this),this.versions=[],e.versions){for(var r=0,s=0,c=0,l=e.versions||[];c<l.length;c++){var u=l[c];u.isDefault&&(s=r);var p=new i.V(u.spec,void 0,t);this.versions.push(p),a(p.contentItems,r,u.id);for(var f=0,d=p.securitySchemes.schemes;f<d.length;f++){var h=d[f];h.sectionId=u.id+"/"+h.sectionId}u.id===n&&(this.activeVersionIdx=r),r++,u._searchIndexName&&(p._searchIndexName=u._searchIndexName)}-1===this.activeVersionIdx&&(this.activeVersionIdx=s),e.versions[s].isDefault=!0}}return Object.defineProperty(e.prototype,"versionsInfo",{get:function(){return this.config.versions||[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentVersionId",{get:function(){return this.versionsInfo[this.activeVersionIdx]&&this.versionsInfo[this.activeVersionIdx].id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentItems",{get:function(){return this.versions[this.activeVersionIdx].contentItems},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"securitySchemes",{get:function(){return this.versions[this.activeVersionIdx].securitySchemes},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"externalDocs",{get:function(){return this.versions[this.activeVersionIdx].externalDocs},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parser",{get:function(){return this.versions[this.activeVersionIdx].parser},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"info",{get:function(){return this.versions[this.activeVersionIdx].info},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"changeVersion",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeVersionIdx=e}}),Object.defineProperty(e.prototype,"toJS",{enumerable:!1,configurable:!0,writable:!0,value:function(){return this.config}}),Object(r.c)([o.o],e.prototype,"activeVersionIdx",void 0),Object(r.c)([o.f],e.prototype,"changeVersion",null),e}()},function(e,t,n){"use strict";t.__esModule=!0,t.extend=s,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!o.test(e))return e;return e.replace(i,a)},t.isEmpty=function(e){return!e&&0!==e||!(!u(e)||0!==e.length)},t.createFrame=function(e){var t=s({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},i=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(e){return r[e]}function s(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var c=Object.prototype.toString;t.toString=c;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===c.call(e)}),t.isFunction=l;var u=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===c.call(e)};t.isArray=u},function(e,t,n){var r=n(35);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d}));var r=n(1),i=n(12),o=n(2);function a(e,t){return e.colors[t||"secondary"]||e.colors.secondary}var s,c,l,u,p,f=Object(o.d)(c||(c=Object(r.f)(["\n outline: none;\n border: none;\n background-color: ",";\n color: ",";\n border-radius: ",";\n font-weight: ",";\n font-size: 14px;\n padding: 2px 20px;\n cursor: pointer;\n transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;\n line-height: 1;\n\n font-family: ",";\n box-shadow: ",";\n\n &:hover {\n background-color: ",";\n ",";\n box-shadow: ",";\n }\n\n &:active {\n background-color: ",";\n box-shadow: ",";\n }\n"],["\n outline: none;\n border: none;\n background-color: ",";\n color: ",";\n border-radius: ",";\n font-weight: ",";\n font-size: 14px;\n padding: 2px 20px;\n cursor: pointer;\n transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;\n line-height: 1;\n\n font-family: ",";\n box-shadow: ",";\n\n &:hover {\n background-color: ",";\n ",";\n box-shadow: ",";\n }\n\n &:active {\n background-color: ",";\n box-shadow: ",";\n }\n"])),(function(e){return e.theme.colors.secondary.main}),(function(e){return e.theme.colors.secondary.contrastText}),(function(e){return e.theme.components.buttons.borderRadius}),(function(e){return e.theme.components.buttons.fontWeight}),(function(e){return e.theme.components.buttons.fontFamily}),(function(e){return e.theme.components.buttons.boxShadow}),(function(e){var t=e.theme;return Object(i.a)(.05,t.colors.secondary.main)}),(function(e){return e.theme.components.buttons.hoverStyle}),(function(e){return e.theme.components.buttons.hoverBoxShadow}),(function(e){var t=e.theme;return Object(i.a)(.1,t.colors.secondary.main)}),(function(e){return e.theme.components.buttons.hoverBoxShadow})),d=o.e.button(p||(p=Object(r.f)(["\n text-decoration: none;\n text-align: center;\n\n width: ",";\n\n ","\n\n ","\n ","\n\n & + & {\n margin-left: 0.85em;\n }\n\n ","\n\n ","\n"],["\n text-decoration: none;\n text-align: center;\n\n width: ",";\n\n ","\n\n ","\n ","\n\n & + & {\n margin-left: 0.85em;\n }\n\n ","\n\n ","\n"])),(function(e){return e.fullWidth?"100%":"auto"}),f,(function(e){var t=e.color,n=e.theme,r=e.variant;return function(e,t){return"outlined"===t?"\n background-color: transparent;\n border: 2px solid "+e.main+";\n color: "+e.main+";\n &:hover {\n border: 2px solid "+Object(i.a)(.1,e.main)+";\n background-color: transparent;\n }\n\n &:active {\n border: 2px solid "+Object(i.a)(.15,e.main)+";\n }\n":"\n background-color: "+e.main+";\n color: "+e.contrastText+";\n &:hover {\n background-color: "+Object(i.a)(.05,e.main)+";\n }\n\n &:active {\n background-color: "+Object(i.a)(.1,e.main)+";\n }\n"}(a(n,t),r)}),(function(e){var t=e.size;return function(e){return"\n font-size: "+e.fontSize+";\n padding: "+e.padding+";\n min-width: "+e.minWidth+";\n"}(function(e,t){return e.components.buttons.sizes[t||"medium"]||e.components.buttons.sizes.normal}(e.theme,t))}),(function(e){var t=e.blinking,n=e.color,c=e.theme;return t&&Object(o.d)(l||(l=Object(r.f)(["\n pointer-events: none;\n animation: "," 1.2s infinite;\n "],["\n pointer-events: none;\n animation: "," 1.2s infinite;\n "])),function(e){return Object(o.g)(s||(s=Object(r.f)(["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: ",";\n }\n\n 100% {\n background-color: ",";\n }\n"],["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: ",";\n }\n\n 100% {\n background-color: ",";\n }\n"])),Object(i.a)(.1,e),e,Object(i.a)(.1,e))}(a(c,n).main))}),(function(e){return e.disabled&&Object(o.d)(u||(u=Object(r.f)(["\n &,\n &:hover {\n cursor: default;\n color: #999;\n pointer-events: none;\n }\n "],["\n &,\n &:hover {\n cursor: default;\n color: #999;\n pointer-events: none;\n }\n "])))}))},function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),c=!o&&/WebKit\//.test(e),l=c&&/Qt\/\d+\.\d+/.test(e),u=!o&&/Chrome\//.test(e),p=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=f&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),x=/win/i.test(t),w=p&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(p=!1,c=!0);var O=b&&(l||p&&(null==w||w<12.11)),k=n||a&&s>=9;function j(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var E,S=function(e,t){var n=e.className,r=j(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function C(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return C(e).appendChild(t)}function P(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function A(e,t,n,r){var i=P(e,t,n,r);return i.setAttribute("role","presentation"),i}function D(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function T(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function I(e,t){var n=e.className;j(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!j(n[r]).test(t)&&(t+=" "+n[r]);return t}E=document.createRange?function(e,t,n,r){var i=document.createRange();return i.setEnd(r||e,n),i.setStart(e,t),i}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function N(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function F(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function M(e,t,n,r,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=r||0,a=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(L=function(e){try{e.select()}catch(e){}});var B=function(){this.id=null,this.f=null,this.time=0,this.handler=N(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}B.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},B.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var U={toString:function(){return"CodeMirror.Pass"}},$={scroll:!1},V={origin:"*mouse"},q={origin:"+move"};function H(e,t,n){for(var r=0,i=0;;){var o=e.indexOf("\t",r);-1==o&&(o=e.length);var a=o-r;if(o==e.length||i+a>=t)return r+Math.min(a,t-i);if(i+=o-r,r=o+1,(i+=n-i%n)>=t)return r}}var W=[""];function Q(e){for(;W.length<=e;)W.push(Y(W)+" ");return W[e]}function Y(e){return e[e.length-1]}function K(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function G(){}function J(e,t){var n;return Object.create?n=Object.create(e):(G.prototype=e,n=new G),t&&F(t,n),n}var X=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(e){return/\w/.test(e)||e>"€"&&(e.toUpperCase()!=e.toLowerCase()||X.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&Z(e))||t.test(e):Z(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ie(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function oe(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}var ae=null;function se(e,t,n){var r;ae=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:ae=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:ae=i)}return null!=r?r:ae}var ce=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,i=/[1n]/;function o(e,t,n){this.level=e,this.from=t,this.to=n}return function(a,s){var c="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!e.test(a))return!1;for(var l,u=a.length,p=[],f=0;f<u;++f)p.push((l=a.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(l):1424<=l&&l<=1524?"R":1536<=l&&l<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(l-1536):1774<=l&&l<=2220?"r":8192<=l&&l<=8203?"w":8204==l?"b":"L");for(var d=0,h=c;d<u;++d){var m=p[d];"m"==m?p[d]=h:h=m}for(var v=0,g=c;v<u;++v){var b=p[v];"1"==b&&"r"==g?p[v]="n":n.test(b)&&(g=b,"r"==b&&(p[v]="R"))}for(var y=1,x=p[0];y<u-1;++y){var w=p[y];"+"==w&&"1"==x&&"1"==p[y+1]?p[y]="1":","!=w||x!=p[y+1]||"1"!=x&&"n"!=x||(p[y]=x),x=w}for(var O=0;O<u;++O){var k=p[O];if(","==k)p[O]="N";else if("%"==k){var j=void 0;for(j=O+1;j<u&&"%"==p[j];++j);for(var E=O&&"!"==p[O-1]||j<u&&"1"==p[j]?"1":"N",S=O;S<j;++S)p[S]=E;O=j-1}}for(var C=0,_=c;C<u;++C){var P=p[C];"L"==_&&"1"==P?p[C]="L":n.test(P)&&(_=P)}for(var A=0;A<u;++A)if(t.test(p[A])){var D=void 0;for(D=A+1;D<u&&t.test(p[D]);++D);for(var T="L"==(A?p[A-1]:c),I=T==("L"==(D<u?p[D]:c))?T?"L":"R":c,R=A;R<D;++R)p[R]=I;A=D-1}for(var L,N=[],F=0;F<u;)if(r.test(p[F])){var M=F;for(++F;F<u&&r.test(p[F]);++F);N.push(new o(0,M,F))}else{var B=F,z=N.length,U="rtl"==s?1:0;for(++F;F<u&&"L"!=p[F];++F);for(var $=B;$<F;)if(i.test(p[$])){B<$&&(N.splice(z,0,new o(1,B,$)),z+=U);var V=$;for(++$;$<F&&i.test(p[$]);++$);N.splice(z,0,new o(2,V,$)),z+=U,B=$}else++$;B<F&&N.splice(z,0,new o(1,B,F))}return"ltr"==s&&(1==N[0].level&&(L=a.match(/^\s+/))&&(N[0].from=L[0].length,N.unshift(new o(0,0,L[0].length))),1==Y(N).level&&(L=a.match(/\s+$/))&&(Y(N).to-=L[0].length,N.push(new o(0,u-L[0].length,u)))),"rtl"==s?N.reverse():N}}();function le(e,t){var n=e.order;return null==n&&(n=e.order=ce(e.text,t)),n}var ue=[],pe=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ue).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||ue}function de(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,i=r&&r[t];if(i){var o=z(i,n);o>-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i<n.length;++i)n[i].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),we(t)||t.codemirrorIgnore}function ve(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function ge(e,t){return fe(e,t).length>0}function be(e){e.prototype.on=function(e,t){pe(this,e,t)},e.prototype.off=function(e,t){de(this,e,t)}}function ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function we(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Oe(e){ye(e),xe(e)}function ke(e){return e.target||e.srcElement}function je(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var Ee,Se,Ce=function(){if(a&&s<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}();function _e(e){if(null==Ee){var t=P("span","​");_(e,P("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(Ee=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=Ee?P("span","​"):P("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Pe(e){if(null!=Se)return Se;var t=_(e,document.createTextNode("AخA")),n=E(t,0,1).getBoundingClientRect(),r=E(t,1,2).getBoundingClientRect();return C(e),!(!n||n.left==n.right)&&(Se=r.right-n.right<3)}var Ae,De=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Te=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Ie="oncopy"in(Ae=P("div"))||(Ae.setAttribute("oncopy","return;"),"function"==typeof Ae.oncopy),Re=null,Le={},Ne={};function Fe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Le[e]=t}function Me(e){if("string"==typeof e&&Ne.hasOwnProperty(e))e=Ne[e];else if(e&&"string"==typeof e.name&&Ne.hasOwnProperty(e.name)){var t=Ne[e.name];"string"==typeof t&&(t={name:t}),(e=J(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Me("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Me("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Be(e,t){t=Me(t);var n=Le[t.name];if(!n)return Be(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var i=ze[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var ze={};function Ue(e,t){F(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function $e(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Ve(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function qe(e,t,n){return!e.startState||e.startState(t,n)}var He=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function We(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t<o){n=i;break}t-=o}return n.lines[t]}function Qe(e,t,n){var r=[],i=t.line;return e.iter(t.line,n.line+1,(function(e){var o=e.text;i==n.line&&(o=o.slice(0,n.ch)),i==t.line&&(o=o.slice(t.ch)),r.push(o),++i})),r}function Ye(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ke(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function Ge(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var i=0;r.children[i]!=t;++i)n+=r.children[i].chunkSize();return n+t.first}function Je(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var i=e.children[r],o=i.height;if(t<o){e=i;continue e}t-=o,n+=i.chunkSize()}return n}while(!e.lines);for(var a=0;a<e.lines.length;++a){var s=e.lines[a].height;if(t<s)break;t-=s}return n+a}function Xe(e,t){return t>=e.first&&t<e.first+e.size}function Ze(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function it(e,t){return tt(e,t)<0?t:e}function ot(e,t){return tt(e,t)<0?e:t}function at(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function st(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,We(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,We(e,t.line).text.length)}function ct(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=st(e,t[r]);return n}He.prototype.eol=function(){return this.pos>=this.string.length},He.prototype.sol=function(){return this.pos==this.lineStart},He.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},He.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},He.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},He.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},He.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},He.prototype.skipToEnd=function(){this.pos=this.string.length},He.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},He.prototype.backUp=function(e){this.pos-=e},He.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=M(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?M(this.string,this.lineStart,this.tabSize):0)},He.prototype.indentation=function(){return M(this.string,null,this.tabSize)-(this.lineStart?M(this.string,this.lineStart,this.tabSize):0)},He.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},He.prototype.current=function(){return this.string.slice(this.start,this.pos)},He.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},He.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},He.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var lt=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function pt(e,t,n,r){var i=[e.state.modeGen],o={};xt(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],c=1,l=0;n.state=!0,xt(e,t.text,s.mode,n,(function(e,t){for(var n=c;l<e;){var r=i[c];r>e&&i.splice(c,1,e,i[c+1],r),c+=2,l=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,c-n,e,"overlay "+t),c=n+2;else for(;n<c;n+=2){var o=i[n+1];i[n+1]=(o?o+" ":"")+"overlay "+t}}),o),n.state=a,n.baseTokens=null,n.baseTokenPos=1},c=0;c<e.state.overlays.length;++c)s(c);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=dt(e,Ge(t)),i=t.text.length>e.options.maxHighlightLength&&$e(e.doc.mode,r.state),o=pt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function dt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new ut(r,!0,t);var o=function(e,t,n){for(var r,i,o=e.doc,a=n?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>a;--s){if(s<=o.first)return o.first;var c=We(o,s-1),l=c.stateAfter;if(l&&(!n||s+(l instanceof lt?l.lookAhead:0)<=o.modeFrontier))return s;var u=M(c.text,null,e.options.tabSize);(null==i||r>u)&&(i=s-1,r=u)}return i}(e,t,n),a=o>r.first&&We(r,o-1).stateAfter,s=a?ut.fromSaved(r,a,o):new ut(r,qe(r.mode),o);return r.iter(o,t,(function(n){ht(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&r<i.viewTo?s.save():null,s.nextLine()})),n&&(r.modeFrontier=s.line),s}function ht(e,t,n,r){var i=e.doc.mode,o=new He(t,e.options.tabSize,n);for(o.start=o.pos=r||0,""==t&&mt(i,n.state);!o.eol();)vt(i,o,n.state),o.start=o.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=Ve(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function vt(e,t,n,r){for(var i=0;i<10;i++){r&&(r[0]=Ve(e,n).mode);var o=e.token(t,n);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof lt?new ut(e,$e(e.mode,t.state),n,t.lookAhead):new ut(e,$e(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new lt(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function bt(e,t,n,r){var i,o,a=e.doc,s=a.mode,c=We(a,(t=st(a,t)).line),l=dt(e,t.line,n),u=new He(c.text,e.options.tabSize,l);for(r&&(o=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,i=vt(s,u,l.state),r&&o.push(new gt(u,i,$e(a.mode,l.state)));return r?o:new gt(u,i,l.state)}function yt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function xt(e,t,n,r,i,o,a){var s=n.flattenSpans;null==s&&(s=e.options.flattenSpans);var c,l=0,u=null,p=new He(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&yt(mt(n,r.state),o);!p.eol();){if(p.pos>e.options.maxHighlightLength?(s=!1,a&&ht(e,t,r,p.pos),p.pos=t.length,c=null):c=yt(vt(n,p,r.state,f),o),f){var d=f[0].name;d&&(c="m-"+(c?d+" "+c:d))}if(!s||u!=c){for(;l<p.start;)i(l=Math.min(p.start,l+5e3),u);u=c}p.start=p.pos}for(;l<p.pos;){var h=Math.min(p.pos,l+5e3);i(h,u),l=h}}var wt=!1,Ot=!1;function kt(e,t,n){this.marker=e,this.from=t,this.to=n}function jt(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function Et(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function St(e,t){if(t.full)return null;var n=Xe(e,t.from.line)&&We(e,t.from.line).markedSpans,r=Xe(e,t.to.line)&&We(e,t.to.line).markedSpans;if(!n&&!r)return null;var i=t.from.ch,o=t.to.ch,a=0==tt(t.from,t.to),s=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t)||o.from==t&&"bookmark"==a.type&&(!n||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=t:o.to>t);(r||(r=[])).push(new kt(a,o.from,s?null:o.to))}}return r}(n,i,a),c=function(e,t,n){var r;if(e)for(var i=0;i<e.length;++i){var o=e[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=t:o.to>t)||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=t:o.from<t);(r||(r=[])).push(new kt(a,s?null:o.from-t,null==o.to?null:o.to-t))}}return r}(r,o,a),l=1==t.text.length,u=Y(t.text).length+(l?i:0);if(s)for(var p=0;p<s.length;++p){var f=s[p];if(null==f.to){var d=jt(c,f.marker);d?l&&(f.to=null==d.to?null:d.to+u):f.to=i}}if(c)for(var h=0;h<c.length;++h){var m=c[h];null!=m.to&&(m.to+=u),null==m.from?jt(s,m.marker)||(m.from=u,l&&(s||(s=[])).push(m)):(m.from+=u,l&&(s||(s=[])).push(m))}s&&(s=Ct(s)),c&&c!=s&&(c=Ct(c));var v=[s];if(!l){var g,b=t.text.length-2;if(b>0&&s)for(var y=0;y<s.length;++y)null==s[y].to&&(g||(g=[])).push(new kt(s[y].marker,null,null));for(var x=0;x<b;++x)v.push(g);v.push(c)}return v}function Ct(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function _t(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Pt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function At(e){return e.inclusiveLeft?-1:0}function Dt(e){return e.inclusiveRight?1:0}function Tt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),i=t.find(),o=tt(r.from,i.from)||At(e)-At(t);if(o)return-o;var a=tt(r.to,i.to)||Dt(e)-Dt(t);return a||t.id-e.id}function It(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=void 0,o=0;o<r.length;++o)(i=r[o]).marker.collapsed&&null==(t?i.from:i.to)&&(!n||Tt(n,i.marker)<0)&&(n=i.marker);return n}function Rt(e){return It(e,!0)}function Lt(e){return It(e,!1)}function Nt(e,t){var n,r=Ot&&e.markedSpans;if(r)for(var i=0;i<r.length;++i){var o=r[i];o.marker.collapsed&&(null==o.from||o.from<t)&&(null==o.to||o.to>t)&&(!n||Tt(n,o.marker)<0)&&(n=o.marker)}return n}function Ft(e,t,n,r,i){var o=We(e,t),a=Ot&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var c=a[s];if(c.marker.collapsed){var l=c.marker.find(0),u=tt(l.from,n)||At(c.marker)-At(i),p=tt(l.to,r)||Dt(c.marker)-Dt(i);if(!(u>=0&&p<=0||u<=0&&p>=0)&&(u<=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.to,n)>=0:tt(l.to,n)>0)||u>=0&&(c.marker.inclusiveRight&&i.inclusiveLeft?tt(l.from,r)<=0:tt(l.from,r)<0)))return!0}}}function Mt(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Bt(e,t){var n=We(e,t),r=Mt(n);return n==r?t:Ge(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=We(e,t);if(!Ut(e,r))return t;for(;n=Lt(r);)r=n.find(1,!0).line;return Ge(r)+1}function Ut(e,t){var n=Ot&&t.markedSpans;if(n)for(var r=void 0,i=0;i<n.length;++i)if((r=n[i]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&$t(e,t,r))return!0}}function $t(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return $t(e,r.line,jt(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if((i=t.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==n.to&&(null==i.to||i.to!=n.from)&&(i.marker.inclusiveLeft||n.marker.inclusiveRight)&&$t(e,t,i))return!0}function Vt(e){for(var t=0,n=(e=Mt(e)).parent,r=0;r<n.lines.length;++r){var i=n.lines[r];if(i==e)break;t+=i.height}for(var o=n.parent;o;o=(n=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==n)break;t+=s.height}return t}function qt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Rt(r);){var i=t.find(0,!0);r=i.from.line,n+=i.from.ch-i.to.ch}for(r=e;t=Lt(r);){var o=t.find(0,!0);n-=r.text.length-o.from.ch,n+=(r=o.to.line).text.length-o.to.ch}return n}function Ht(e){var t=e.display,n=e.doc;t.maxLine=We(n,n.first),t.maxLineLength=qt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=qt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Wt=function(e,t,n){this.text=e,Pt(this,t),this.height=n?n(this):1};function Qt(e){e.parent=null,_t(e)}Wt.prototype.lineNo=function(){return Ge(this)},be(Wt);var Yt={},Kt={};function Gt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Kt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Jt(e,t){var n=A("span",null,null,c?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=Zt,Pe(e.display.measure)&&(a=le(o,e.doc.direction))&&(r.addToken=en(r.addToken,a)),r.map=[],nn(o,r,ft(e,o,t!=e.display.externalMeasured&&Ge(o))),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=R(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=R(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(_e(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(c){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function Xt(e){var t=P("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Zt(e,t,n,r,i,o,c){if(t){var l,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!n||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),r+=o,n=" "==o}return r}(t,e.trailingSpace):t,p=e.cm.state.specialChars,f=!1;if(p.test(t)){l=document.createDocumentFragment();for(var d=0;;){p.lastIndex=d;var h=p.exec(t),m=h?h.index-d:t.length-d;if(m){var v=document.createTextNode(u.slice(d,d+m));a&&s<9?l.appendChild(P("span",[v])):l.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;d+=m+1;var g=void 0;if("\t"==h[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(g=l.appendChild(P("span",Q(y),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?((g=l.appendChild(P("span","\r"==h[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),a&&s<9?l.appendChild(P("span",[g])):l.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,l=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,l),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||i||f||o||c){var x=n||"";r&&(x+=r),i&&(x+=i);var w=P("span",[l],x,o);if(c)for(var O in c)c.hasOwnProperty(O)&&"style"!=O&&"class"!=O&&w.setAttribute(O,c[O]);return e.content.appendChild(w)}e.content.appendChild(l)}}function en(e,t){return function(n,r,i,o,a,s,c){i=i?i+" cm-force-border":"cm-force-border";for(var l=n.pos,u=l+r.length;;){for(var p=void 0,f=0;f<t.length&&!((p=t[f]).to>l&&p.from<=l);f++);if(p.to>=u)return e(n,r,i,o,a,s,c);e(n,r.slice(0,p.to-l),i,o,null,s,c),o=null,r=r.slice(p.to-l),l=p.to}}}function tn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,c,l,u,p,f,d=i.length,h=0,m=1,v="",g=0;;){if(g==h){c=l=u=s="",f=null,p=null,g=1/0;for(var b=[],y=void 0,x=0;x<r.length;++x){var w=r[x],O=w.marker;if("bookmark"==O.type&&w.from==h&&O.widgetNode)b.push(O);else if(w.from<=h&&(null==w.to||w.to>h||O.collapsed&&w.to==h&&w.from==h)){if(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,l=""),O.className&&(c+=" "+O.className),O.css&&(s=(s?s+";":"")+O.css),O.startStyle&&w.from==h&&(u+=" "+O.startStyle),O.endStyle&&w.to==g&&(y||(y=[])).push(O.endStyle,w.to),O.title&&((f||(f={})).title=O.title),O.attributes)for(var k in O.attributes)(f||(f={}))[k]=O.attributes[k];O.collapsed&&(!p||Tt(p.marker,O)<0)&&(p=w)}else w.from>h&&g>w.from&&(g=w.from)}if(y)for(var j=0;j<y.length;j+=2)y[j+1]==g&&(l+=" "+y[j]);if(!p||p.from==h)for(var E=0;E<b.length;++E)tn(t,0,b[E]);if(p&&(p.from||0)==h){if(tn(t,(null==p.to?d+1:p.to)-h,p.marker,null==p.from),null==p.to)return;p.to==h&&(p=!1)}}if(h>=d)break;for(var S=Math.min(d,g);;){if(v){var C=h+v.length;if(!p){var _=C>S?v.slice(0,S-h):v;t.addToken(t,_,a?a+c:c,u,h+_.length==g?l:"",s,f)}if(C>=S){v=v.slice(S-h),h=S;break}h=C,u=""}v=i.slice(o,o=n[m++]),a=Gt(n[m++],t.cm.options)}}else for(var P=1;P<n.length;P+=2)t.addToken(t,i.slice(o,o=n[P]),Gt(n[P+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Lt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?Ge(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Ut(e,t)}function on(e,t,n){for(var r,i=[],o=t;o<n;o=r){var a=new rn(e.doc,We(e.doc,o),o);r=o+a.size,i.push(a)}return i}var an=null,sn=null;function cn(e,t){var n=fe(e,t);if(n.length){var r,i=Array.prototype.slice.call(arguments,2);an?r=an.delayedCallbacks:sn?r=sn:(r=sn=[],setTimeout(ln,0));for(var o=function(e){r.push((function(){return n[e].apply(null,i)}))},a=0;a<n.length;++a)o(a)}}function ln(){var e=sn;sn=null;for(var t=0;t<e.length;++t)e[t]()}function un(e,t,n,r){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?dn(e,t):"gutter"==o?mn(e,t,n,r):"class"==o?hn(e,t):"widget"==o&&vn(e,t,r)}t.changes=null}function pn(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&s<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Jt(e,t)}function dn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=pn(t);t.background=r.insertBefore(P("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?pn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var i=pn(t);t.gutterBackground=P("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),i.insertBefore(t.gutterBackground,t.text)}var o=t.line.gutterMarkers;if(e.options.lineNumbers||o){var a=pn(t),s=t.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(s.setAttribute("aria-hidden","true"),e.display.input.setUneditable(s),a.insertBefore(s,t.text),t.line.gutterClass&&(s.className+=" "+t.line.gutterClass),!e.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(t.lineNumber=s.appendChild(P("div",Ze(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),o)for(var c=0;c<e.display.gutterSpecs.length;++c){var l=e.display.gutterSpecs[c].className,u=o.hasOwnProperty(l)&&o[l];u&&s.appendChild(P("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[l]+"px; width: "+r.gutterWidth[l]+"px"))}}}function vn(e,t,n){t.alignable&&(t.alignable=null);for(var r=j("CodeMirror-linewidget"),i=t.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,r.test(i.className)&&t.node.removeChild(i);bn(e,t,n)}function gn(e,t,n,r){var i=fn(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),hn(e,t),mn(e,t,n,r),bn(e,t,r),t.node}function bn(e,t,n){if(yn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)yn(e,t.rest[r],t,n,!1)}function yn(e,t,n,r,i){if(t.widgets)for(var o=pn(n),a=0,s=t.widgets;a<s.length;++a){var c=s[a],l=P("div",[c.node],"CodeMirror-linewidget"+(c.className?" "+c.className:""));c.handleMouseEvents||l.setAttribute("cm-ignore-events","true"),xn(c,l,n,r),e.display.input.setUneditable(l),i&&c.above?o.insertBefore(l,n.gutter||n.text):o.appendChild(l),cn(c,"redraw")}}function xn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var i=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(i-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function wn(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!D(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),_(t.display.measure,P("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function On(e,t){for(var n=ke(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function kn(e){return e.lineSpace.offsetTop}function jn(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function En(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=_(e.measure,P("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function Sn(e){return 50-e.display.nativeBarWidth}function Cn(e){return e.display.scroller.clientWidth-Sn(e)-e.display.barWidth}function _n(e){return e.display.scroller.clientHeight-Sn(e)-e.display.barHeight}function Pn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var i=0;i<e.rest.length;i++)if(Ge(e.rest[i])>n)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function An(e,t,n,r){return In(e,Tn(e,t),n,r)}function Dn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Tn(e,t){var n=Ge(t),r=Dn(e,n);r&&!r.text?r=null:r&&r.changes&&(un(e,r,n,or(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=Ge(t=Mt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var i=r.built=Jt(e,r);return r.text=i.pre,_(e.display.lineMeasure,i.pre),r}(e,t));var i=Pn(r,t,n);return{line:t,view:r,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function In(e,t,n,r,i){t.before&&(n=-1);var o,c=n+(r||"");return t.cache.hasOwnProperty(c)?o=t.cache[c]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,i=r&&Cn(e);if(!t.measure.heights||r&&t.measure.width!=i){var o=t.measure.heights=[];if(r){t.measure.width=i;for(var a=t.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var c=a[s],l=a[s+1];Math.abs(c.bottom-l.bottom)>2&&o.push((c.bottom+l.top)/2-n.top)}}o.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(o=function(e,t,n,r){var i,o=Nn(t.map,n,r),c=o.node,l=o.start,u=o.end,p=o.collapse;if(3==c.nodeType){for(var f=0;f<4;f++){for(;l&&re(t.line.text.charAt(o.coverStart+l));)--l;for(;o.coverStart+u<o.coverEnd&&re(t.line.text.charAt(o.coverStart+u));)++u;if((i=a&&s<9&&0==l&&u==o.coverEnd-o.coverStart?c.parentNode.getBoundingClientRect():Fn(E(c,l,u).getClientRects(),r)).left||i.right||0==l)break;u=l,l-=1,p="right"}a&&s<11&&(i=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Re)return Re;var t=_(e,P("span","x")),n=t.getBoundingClientRect(),r=E(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,i))}else{var d;l>0&&(p=r="right"),i=e.options.lineWrapping&&(d=c.getClientRects()).length>1?d["right"==r?d.length-1:0]:c.getBoundingClientRect()}if(a&&s<9&&!l&&(!i||!i.left&&!i.right)){var h=c.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+ir(e.display),top:h.top,bottom:h.bottom}:Ln}for(var m=i.top-t.rect.top,v=i.bottom-t.rect.top,g=(m+v)/2,b=t.view.measure.heights,y=0;y<b.length-1&&!(g<b[y]);y++);var x=y?b[y-1]:0,w=b[y],O={left:("right"==p?i.right:i.left)-t.rect.left,right:("left"==p?i.left:i.right)-t.rect.left,top:x,bottom:w};return i.left||i.right||(O.bogus=!0),e.options.singleCursorHeightPerLine||(O.rtop=m,O.rbottom=v),O}(e,t,n,r)).bogus||(t.cache[c]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Rn,Ln={left:0,right:0,top:0,bottom:0};function Nn(e,t,n){for(var r,i,o,a,s,c,l=0;l<e.length;l+=3)if(s=e[l],c=e[l+1],t<s?(i=0,o=1,a="left"):t<c?o=1+(i=t-s):(l==e.length-3||t==c&&e[l+3]>t)&&(i=(o=c-s)-1,t>=c&&(a="right")),null!=i){if(r=e[l+2],s==c&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)for(;l&&e[l-2]==e[l-3]&&e[l-1].insertLeft;)r=e[2+(l-=3)],a="left";if("right"==n&&i==c-s)for(;l<e.length-3&&e[l+3]==e[l+4]&&!e[l+5].insertLeft;)r=e[(l+=3)+2],a="right";break}return{node:r,start:i,end:o,collapse:a,coverStart:s,coverEnd:c}}function Fn(e,t){var n=Ln;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var i=e.length-1;i>=0&&(n=e[i]).left==n.right;i--);return n}function Mn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Bn(e){e.display.externalMeasure=null,C(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Mn(e.display.view[t])}function zn(e){Bn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Un(){return u&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function $n(){return u&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Vn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=wn(e.widgets[n]));return t}function qn(e,t,n,r,i){if(!i){var o=Vn(t);n.top+=o,n.bottom+=o}if("line"==r)return n;r||(r="local");var a=Vt(t);if("local"==r?a+=kn(e.display):a-=e.display.viewOffset,"page"==r||"window"==r){var s=e.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==r?0:$n());var c=s.left+("window"==r?0:Un());n.left+=c,n.right+=c}return n.top+=a,n.bottom+=a,n}function Hn(e,t,n){if("div"==n)return t;var r=t.left,i=t.top;if("page"==n)r-=Un(),i-=$n();else if("local"==n||!n){var o=e.display.sizer.getBoundingClientRect();r+=o.left,i+=o.top}var a=e.display.lineSpace.getBoundingClientRect();return{left:r-a.left,top:i-a.top}}function Wn(e,t,n,r,i){return r||(r=We(e.doc,t.line)),qn(e,r,An(e,r,t.ch,i),n)}function Qn(e,t,n,r,i,o){function a(t,a){var s=In(e,i,t,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,qn(e,r,s,n)}r=r||We(e.doc,t.line),i||(i=Tn(e,r));var s=le(r,e.doc.direction),c=t.ch,l=t.sticky;if(c>=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!s)return a("before"==l?c-1:c,"before"==l);function u(e,t,n){return a(n?e-1:e,1==s[t].level!=n)}var p=se(s,c,l),f=ae,d=u(c,p,"before"==l);return null!=f&&(d.other=u(c,f,"before"!=l)),d}function Yn(e,t){var n=0;t=st(e.doc,t),e.options.lineWrapping||(n=ir(e.display)*t.ch);var r=We(e.doc,t.line),i=Vt(r)+kn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Kn(e,t,n,r,i){var o=et(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Gn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Kn(r.first,0,null,-1,-1);var i=Je(r,n),o=r.first+r.size-1;if(i>o)return Kn(r.first+r.size-1,We(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=We(r,i);;){var s=er(e,a,i,t,n),c=Nt(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!c)return s;var l=c.find(1);if(l.line==i)return l;a=We(r,i=l.line)}}function Jn(e,t,n,r){r-=Vn(t);var i=t.text.length,o=oe((function(t){return In(e,n,t-1).bottom<=r}),i,0);return{begin:o,end:i=oe((function(t){return In(e,n,t).top>r}),o,i)}}function Xn(e,t,n,r){return n||(n=Tn(e,t)),Jn(e,t,n,qn(e,t,In(e,n,r),"line").top)}function Zn(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,i){i-=Vt(t);var o=Tn(e,t),a=Vn(t),s=0,c=t.text.length,l=!0,u=le(t,e.doc.direction);if(u){var p=(e.options.lineWrapping?nr:tr)(e,t,n,o,u,r,i);s=(l=1!=p.level)?p.from:p.to-1,c=l?p.to:p.from-1}var f,d,h=null,m=null,v=oe((function(t){var n=In(e,o,t);return n.top+=a,n.bottom+=a,!!Zn(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(h=t,m=n),!0)}),s,c),g=!1;if(m){var b=r-m.left<m.right-r,y=b==l;v=h+(y?0:1),d=y?"after":"before",f=b?m.left:m.right}else{l||v!=c&&v!=s||v++,d=0==v?"after":v==t.text.length?"before":In(e,o,v-(l?1:0)).bottom+a<=i==l?"after":"before";var x=Qn(e,et(n,v,d),"line",t,o);f=x.left,g=i<x.top?-1:i>=x.bottom?1:0}return Kn(n,v=ie(t.text,v,1),d,g,r-f)}function tr(e,t,n,r,i,o,a){var s=oe((function(s){var c=i[s],l=1!=c.level;return Zn(Qn(e,et(n,l?c.to:c.from,l?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),c=i[s];if(s>0){var l=1!=c.level,u=Qn(e,et(n,l?c.from:c.to,l?"after":"before"),"line",t,r);Zn(u,o,a,!0)&&u.top>a&&(c=i[s-1])}return c}function nr(e,t,n,r,i,o,a){var s=Jn(e,t,r,a),c=s.begin,l=s.end;/\s/.test(t.text.charAt(l-1))&&l--;for(var u=null,p=null,f=0;f<i.length;f++){var d=i[f];if(!(d.from>=l||d.to<=c)){var h=In(e,r,1!=d.level?Math.min(l,d.to)-1:Math.max(c,d.from)).right,m=h<o?o-h+1e9:h-o;(!u||p>m)&&(u=d,p=m)}}return u||(u=i[i.length-1]),u.from<c&&(u={from:c,to:u.to,level:u.level}),u.to>l&&(u={from:u.from,to:l,level:u.level}),u}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=P("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(P("br"));Rn.appendChild(document.createTextNode("x"))}_(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),C(e.measure),n||1}function ir(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=P("span","xxxxxxxxxx"),n=P("pre",[t],"CodeMirror-line-like");_(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function or(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:ar(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ar(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function sr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ir(e.display)-3);return function(i){if(Ut(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return n?o+(Math.ceil(i.text.length/r)||1)*t:o+t}}function cr(e){var t=e.doc,n=sr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ke(e,t)}))}function lr(e,t,n,r){var i=e.display;if(!n&&"true"==ke(t).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,a=t.clientY-s.top}catch(e){return null}var c,l=Gn(e,o,a);if(r&&l.xRel>0&&(c=We(e.doc,l.line).text).length==l.ch){var u=M(c,c.length,e.options.tabSize)-c.length;l=et(l.line,Math.max(0,Math.round((o-En(e.display).left)/ir(e.display))-u))}return l}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function pr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var i=e.display;if(r&&n<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Ot&&Bt(e.doc,t)<i.viewTo&&dr(e);else if(n<=i.viewFrom)Ot&&zt(e.doc,n+r)>i.viewFrom?dr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)dr(e);else if(t<=i.viewFrom){var o=hr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):dr(e)}else if(n>=i.viewTo){var a=hr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):dr(e)}else{var s=hr(e,t,t,-1),c=hr(e,n,n+r,1);s&&c?(i.view=i.view.slice(0,s.index).concat(on(e,s.lineN,c.lineN)).concat(i.view.slice(c.index)),i.viewTo+=r):dr(e)}var l=i.externalMeasured;l&&(n<l.lineN?l.lineN+=r:t<l.lineN+l.size&&(i.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var o=r.view[ur(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,n)&&a.push(n)}}}function dr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var i,o=ur(e,t),a=e.display.view;if(!Ot||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,c=0;c<o;c++)s+=a[c].size;if(s!=t){if(r>0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}for(;Bt(e.doc,n)!=n;){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var i=t[r];i.hidden||i.node&&!i.changes||++n}return n}function vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function gr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},i=r.cursors=document.createDocumentFragment(),o=r.selection=document.createDocumentFragment(),a=0;a<n.sel.ranges.length;a++)if(t||a!=n.sel.primIndex){var s=n.sel.ranges[a];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var c=s.empty();(c||e.options.showCursorWhenSelecting)&&br(e,s.head,i),c||xr(e,s,o)}}return r}function br(e,t,n){var r=Qn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),i=n.appendChild(P("div"," ","CodeMirror-cursor"));if(i.style.left=r.left+"px",i.style.top=r.top+"px",i.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var o=n.appendChild(P("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=r.other.left+"px",o.style.top=r.other.top+"px",o.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function yr(e,t){return e.top-t.top||e.left-t.left}function xr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=En(e.display),s=a.left,c=Math.max(r.sizerWidth,Cn(e)-r.sizer.offsetLeft)-a.right,l="ltr"==i.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?c-e:n)+"px;\n height: "+(r-t)+"px"))}function p(t,n,r){var o,a,p=We(i,t),f=p.text.length;function d(n,r){return Wn(e,et(t,n),"div",p,r)}function h(t,n,r){var i=Xn(e,p,null,t),o="ltr"==n==("after"==r)?"left":"right";return d("after"==r?i.begin:i.end-(/\s/.test(p.text.charAt(i.end-1))?2:1),o)[o]}var m=le(p,i.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;o<e.length;++o){var a=e[o];(a.from<n&&a.to>t||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,i,p){var v="ltr"==i,g=d(e,v?"left":"right"),b=d(t-1,v?"right":"left"),y=null==n&&0==e,x=null==r&&t==f,w=0==p,O=!m||p==m.length-1;if(b.top-g.top<=3){var k=(l?x:y)&&O,j=(l?y:x)&&w?s:(v?g:b).left,E=k?c:(v?b:g).right;u(j,g.top,E-j,g.bottom)}else{var S,C,_,P;v?(S=l&&y&&w?s:g.left,C=l?c:h(e,i,"before"),_=l?s:h(t,i,"after"),P=l&&x&&O?c:b.right):(S=l?h(e,i,"before"):s,C=!l&&y&&w?c:g.right,_=!l&&x&&O?s:b.left,P=l?h(t,i,"after"):c),u(S,g.top,C-S,g.bottom),g.bottom<b.top&&u(s,g.bottom,null,b.top),u(_,b.top,P-_,b.bottom)}(!o||yr(g,o)<0)&&(o=g),yr(b,o)<0&&(o=b),(!a||yr(g,a)<0)&&(a=g),yr(b,a)<0&&(a=b)})),{start:o,end:a}}var f=t.from(),d=t.to();if(f.line==d.line)p(f.line,f.ch,d.ch);else{var h=We(i,f.line),m=We(i,d.line),v=Mt(h)==Mt(m),g=p(f.line,f.ch,v?h.text.length+1:null).end,b=p(d.line,v?0:null,d.ch).start;v&&(g.top<b.top-2?(u(g.right,g.top,null,g.bottom),u(s,b.top,b.left,b.bottom)):u(g.right,g.top,b.left-g.right,g.bottom)),g.bottom<b.top&&u(s,g.bottom,null,b.top)}n.appendChild(o)}function wr(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||Er(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Or(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||jr(e))}function kr(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Er(e))}),100)}function jr(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,I(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),c&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),wr(e))}function Er(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,S(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function Sr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var i=t.view[r],o=e.options.lineWrapping,c=void 0,l=0;if(!i.hidden){if(a&&s<8){var u=i.node.offsetTop+i.node.offsetHeight;c=u-n,n=u}else{var p=i.node.getBoundingClientRect();c=p.bottom-p.top,!o&&i.text.firstChild&&(l=i.text.firstChild.getBoundingClientRect().right-p.left-1)}var f=i.line.height-c;if((f>.005||f<-.005)&&(Ke(i.line,c),Cr(i.line),i.rest))for(var d=0;d<i.rest.length;d++)Cr(i.rest[d]);if(l>e.display.sizerWidth){var h=Math.ceil(l/ir(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=i.line,e.display.maxLineChanged=!0)}}}}function Cr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function _r(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-kn(e));var i=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,o=Je(t,r),a=Je(t,i);if(n&&n.ensure){var s=n.ensure.from.line,c=n.ensure.to.line;s<o?(o=s,a=Je(t,Vt(We(t,s))+e.wrapper.clientHeight)):Math.min(c,t.lastLine())>=a&&(o=Je(t,Vt(We(t,c))-e.wrapper.clientHeight),a=c)}return{from:o,to:Math.max(a,o+1)}}function Pr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=_n(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+jn(n),c=t.top<r,l=t.bottom>s-r;if(t.top<i)a.scrollTop=c?0:t.top;else if(t.bottom>i+o){var u=Math.min(t.top,(l?s:t.bottom)-o);u!=i&&(a.scrollTop=u)}var p=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-p,d=Cn(e)-n.gutters.offsetWidth,h=t.right-t.left>d;return h&&(t.right=t.left+d),t.left<10?a.scrollLeft=0:t.left<f?a.scrollLeft=Math.max(0,t.left+p-(h?0:10)):t.right>d+f-3&&(a.scrollLeft=t.right+(h?0:10)-d),a}function Ar(e,t){null!=t&&(Ir(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Dr(e){Ir(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Tr(e,t,n){null==t&&null==n||Ir(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Ir(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Rr(e,t,n,r){var i=Pr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Tr(e,i.scrollLeft,i.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||ci(e,{top:t}),Nr(e,t,!0),n&&ci(e),ri(e,100))}function Nr(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Fr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,pi(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Mr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+jn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Sn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Br=function(e,t,n){this.cm=n;var r=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),pe(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),pe(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Br.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Br.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Br.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Br.prototype.zeroWidthHack=function(){var e=b&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new B,this.disableVert=new B},Br.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var i=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Br.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zr=function(){};function Ur(e,t){t||(t=Mr(e));var n=e.display.barWidth,r=e.display.barHeight;$r(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Sr(e),$r(e,Mr(e)),n=e.display.barWidth,r=e.display.barHeight}function $r(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var Vr={native:Br,null:zr};function qr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&S(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Vr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),pe(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Fr(e,t):Lr(e,t)}),e),e.display.scrollbars.addClass&&I(e.display.wrapper,e.display.scrollbars.addClass)}var Hr=0;function Wr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Hr,markArrays:null},t=e.curOp,an?an.ops.push(t):t.ownsGroup=an={ops:[t],delayedCallbacks:[]}}function Qr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var i=e.ops[r];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(n<t.length)}(n)}finally{an=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Yr(t[n]);for(var r=0;r<t.length;r++)Kr(t[r]);for(var i=0;i<t.length;i++)Gr(t[i]);for(var o=0;o<t.length;o++)Jr(t[o]);for(var a=0;a<t.length;a++)Xr(t[a])}(e)}))}function Yr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Sn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Sn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ht(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new oi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Kr(e){e.updatedDisplay=e.mustUpdate&&ai(e.cm,e.update)}function Gr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Sr(t),e.barMeasure=Mr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=An(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Sn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Cn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Jr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Fr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==T();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Ur(t,e.barMeasure),e.updatedDisplay&&ui(t,e.barMeasure),e.selectionChanged&&wr(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Or(e.cm)}function Xr(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&si(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Nr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Fr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null;if(t.top+r.top<0?i=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!h){var o=P("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-kn(e.display))+"px;\n height: "+(t.bottom-t.top+Sn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(o),o.scrollIntoView(i),e.display.lineSpace.removeChild(o)}}}(t,function(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?et(t.line,t.ch+1,"before"):t,t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Qn(e,t),c=n&&n!=t?Qn(e,n):s,l=Pr(e,i={left:Math.min(s.left,c.left),top:Math.min(s.top,c.top)-r,right:Math.max(s.left,c.left),bottom:Math.max(s.bottom,c.bottom)+r}),u=e.doc.scrollTop,p=e.doc.scrollLeft;if(null!=l.scrollTop&&(Lr(e,l.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(a=!0)),null!=l.scrollLeft&&(Fr(e,l.scrollLeft),Math.abs(e.doc.scrollLeft-p)>1&&(a=!0)),!a)break}return i}(t,st(r,e.scrollToPos.from),st(r,e.scrollToPos.to),e.scrollToPos.margin));var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||he(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&he(o[s],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function Zr(e,t){if(e.curOp)return t();Wr(e);try{return t()}finally{Qr(e)}}function ei(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Wr(e);try{return t.apply(e,arguments)}finally{Qr(e)}}}function ti(e){return function(){if(this.curOp)return e.apply(this,arguments);Wr(this);try{return e.apply(this,arguments)}finally{Qr(this)}}}function ni(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Wr(t);try{return e.apply(this,arguments)}finally{Qr(t)}}}function ri(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,N(ii,e))}function ii(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=dt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?$e(t.mode,r.state):null,c=pt(e,o,r,!0);s&&(r.state=s),o.styles=c.styles;var l=o.styleClasses,u=c.classes;u?o.styleClasses=u:l&&(o.styleClasses=null);for(var p=!a||a.length!=o.styles.length||l!=u&&(!l||!u||l.bgClass!=u.bgClass||l.textClass!=u.textClass),f=0;!p&&f<a.length;++f)p=a[f]!=o.styles[f];p&&i.push(r.line),o.stateAfter=r.save(),r.nextLine()}else o.text.length<=e.options.maxHighlightLength&&ht(e,o.text,r),o.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ri(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Zr(e,(function(){for(var t=0;t<i.length;t++)fr(e,i[t],"text")}))}}var oi=function(e,t,n){var r=e.display;this.viewport=t,this.visible=_r(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Cn(e),this.force=n,this.dims=or(e),this.events=[]};function ai(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return dr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;fi(e)&&(dr(e),t.dims=or(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFrom<o&&o-n.viewFrom<20&&(o=Math.max(r.first,n.viewFrom)),n.viewTo>a&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Ot&&(o=Bt(e.doc,o),a=zt(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=on(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=on(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(on(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,o,a),n.viewOffset=Vt(We(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=mr(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=T();if(!t||!D(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&D(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return l>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return c&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var l=r.view,u=r.viewFrom,p=0;p<l.length;p++){var f=l[p];if(f.hidden);else if(f.node&&f.node.parentNode==o){for(;a!=f.node;)a=s(a);var d=i&&null!=t&&t<=u&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(d=!1),un(e,f,u,n)),d&&(C(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(Ze(e.options,u)))),a=f.node.nextSibling}else{var h=gn(e,f,u,n);o.insertBefore(h,a)}u+=f.size}for(;a;)a=s(a)}(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=T()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&D(document.body,e.anchorNode)&&D(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),C(n.cursorDiv),C(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ri(e,400)),n.updateLineNumbers=null,!0}function si(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Cn(e))r&&(t.visible=_r(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+jn(e.display)-_n(e),n.top)}),t.visible=_r(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!ai(e,t))break;Sr(e);var i=Mr(e);vr(e),Ur(e,i),ui(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ci(e,t){var n=new oi(e,t);if(ai(e,n)){Sr(e),si(e,n);var r=Mr(e);vr(e),Ur(e,r),ui(e,r),n.finish()}}function li(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",cn(e,"gutterChanged",e)}function ui(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Sn(e)+"px"}function pi(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=ar(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a<n.length;a++)if(!n[a].hidden){e.options.fixedGutter&&(n[a].gutter&&(n[a].gutter.style.left=o),n[a].gutterBackground&&(n[a].gutterBackground.style.left=o));var s=n[a].alignable;if(s)for(var c=0;c<s.length;c++)s[c].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=r+i+"px")}}function fi(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=Ze(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var i=r.measure.appendChild(P("div",[P("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(o,r.lineGutter.offsetWidth-a)+1,r.lineNumWidth=r.lineNumInnerWidth+a,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",li(e.display),!0}return!1}function di(e,t){for(var n=[],r=!1,i=0;i<e.length;i++){var o=e[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!t)continue;r=!0}n.push({className:o,style:a})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function hi(e){var t=e.gutters,n=e.gutterSpecs;C(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var i=n[r],o=i.className,a=i.style,s=t.appendChild(P("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(e.lineGutter=s,s.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",li(e)}function mi(e){hi(e.display),pr(e),pi(e)}function vi(e,t,r,i){var o=this;this.input=r,o.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=A("div",null,"CodeMirror-code"),o.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=P("div",null,"CodeMirror-cursors"),o.measure=P("div",null,"CodeMirror-measure"),o.lineMeasure=P("div",null,"CodeMirror-measure"),o.lineSpace=A("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=A("div",[o.lineSpace],"CodeMirror-lines");o.mover=P("div",[l],null,"position: relative"),o.sizer=P("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=P("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=P("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=P("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=P("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),c||n&&g||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=di(i.gutters,i.lineNumbers),hi(o),r.init(o)}oi.prototype.signal=function(e,t){ge(e,t)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var gi=0,bi=null;function yi(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function xi(e){var t=yi(e);return t.x*=bi,t.y*=bi,t}function wi(e,t){var r=yi(t),i=r.x,o=r.y,a=e.display,s=a.scroller,l=s.scrollWidth>s.clientWidth,u=s.scrollHeight>s.clientHeight;if(i&&l||o&&u){if(o&&b&&c)e:for(var f=t.target,d=a.view;f!=s;f=f.parentNode)for(var h=0;h<d.length;h++)if(d[h].node==f){e.display.currentWheelTarget=f;break e}if(i&&!n&&!p&&null!=bi)return o&&u&&Lr(e,Math.max(0,s.scrollTop+o*bi)),Fr(e,Math.max(0,s.scrollLeft+i*bi)),(!o||o&&u)&&ye(t),void(a.wheelStartX=null);if(o&&null!=bi){var m=o*bi,v=e.doc.scrollTop,g=v+a.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),ci(e,{top:v,bottom:g})}gi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var e=s.scrollLeft-a.wheelStartX,t=s.scrollTop-a.wheelStartY,n=t&&a.wheelDY&&t/a.wheelDY||e&&a.wheelDX&&e/a.wheelDX;a.wheelStartX=a.wheelStartY=null,n&&(bi=(bi*gi+n)/(gi+1),++gi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?bi=-.53:n?bi=15:u?bi=-.7:f&&(bi=-1/3);var Oi=function(e,t){this.ranges=e,this.primIndex=t};Oi.prototype.primary=function(){return this.ranges[this.primIndex]},Oi.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},Oi.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new ki(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new Oi(e,this.primIndex)},Oi.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Oi.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var ki=function(e,t){this.anchor=e,this.head=t};function ji(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=z(t,i);for(var o=1;o<t.length;o++){var a=t[o],s=t[o-1],c=tt(s.to(),a.from());if(r&&!a.empty()?c>0:c>=0){var l=ot(s.from(),a.from()),u=it(s.to(),a.to()),p=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new ki(p?u:l,p?l:u))}}return new Oi(t,n)}function Ei(e,t){return new Oi([new ki(e,t||e)],0)}function Si(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Ci(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return Si(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Si(t).ch-t.to.ch),et(n,r)}function _i(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var i=e.sel.ranges[r];n.push(new ki(Ci(i.anchor,t),Ci(i.head,t)))}return ji(e.cm,n,e.sel.primIndex)}function Pi(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Ai(e){e.doc.mode=Be(e.options,e.doc.modeOption),Di(e)}function Di(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ri(e,100),e.state.modeGen++,e.curOp&&pr(e)}function Ti(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ii(e,t,n,r){function i(e){return n?n[e]:null}function o(e,n,i){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),_t(e),Pt(e,n);var i=r?r(e):1;i!=e.height&&Ke(e,i)}(e,n,i,r),cn(e,"change",e,t)}function a(e,t){for(var n=[],o=e;o<t;++o)n.push(new Wt(l[o],i(o),r));return n}var s=t.from,c=t.to,l=t.text,u=We(e,s.line),p=We(e,c.line),f=Y(l),d=i(l.length-1),h=c.line-s.line;if(t.full)e.insert(0,a(0,l.length)),e.remove(l.length,e.size-l.length);else if(Ti(e,t)){var m=a(0,l.length-1);o(p,p.text,d),h&&e.remove(s.line,h),m.length&&e.insert(s.line,m)}else if(u==p)if(1==l.length)o(u,u.text.slice(0,s.ch)+f+u.text.slice(c.ch),d);else{var v=a(1,l.length-1);v.push(new Wt(f+u.text.slice(c.ch),d,r)),o(u,u.text.slice(0,s.ch)+l[0],i(0)),e.insert(s.line+1,v)}else if(1==l.length)o(u,u.text.slice(0,s.ch)+l[0]+p.text.slice(c.ch),i(0)),e.remove(s.line+1,h);else{o(u,u.text.slice(0,s.ch)+l[0],i(0)),o(p,f+p.text.slice(c.ch),d);var g=a(1,l.length-1);h>1&&e.remove(s.line+1,h-1),e.insert(s.line+1,g)}cn(e,"change",e,t)}function Ri(e,t,n){!function e(r,i,o){if(r.linked)for(var a=0;a<r.linked.length;++a){var s=r.linked[a];if(s.doc!=i){var c=o&&s.sharedHist;n&&!c||(t(s.doc,c),e(s.doc,r,c))}}}(e,null,!0)}function Li(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,cr(e),Ai(e),Ni(e),e.options.direction=t.direction,e.options.lineWrapping||Ht(e),e.options.mode=t.modeOption,pr(e)}function Ni(e){("rtl"==e.doc.direction?I:S)(e.display.lineDiv,"CodeMirror-rtl")}function Fi(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Mi(e,t){var n={from:rt(t.from),to:Si(t),text:Qe(e,t.from,t.to)};return Vi(e,n,t.from.line,t.to.line+1),Ri(e,(function(e){return Vi(e,n,t.from.line,t.to.line+1)}),!0),n}function Bi(e){for(;e.length&&Y(e).ranges;)e.pop()}function zi(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=function(e,t){return t?(Bi(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(i,i.lastOp==r)))a=Y(o.changes),0==tt(t.from,t.to)&&0==tt(t.from,a.to)?a.to=Si(t):o.changes.push(Mi(e,t));else{var c=Y(i.done);for(c&&c.ranges||$i(e.sel,i.done),o={changes:[Mi(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||he(e,"historyAdded")}function Ui(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,o,Y(i.done),t))?i.done[i.done.length-1]=t:$i(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Bi(i.undone)}function $i(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Vi(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function qi(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Hi(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],i=0;i<t.text.length;++i)r.push(qi(n[i]));return r}(e,t),r=St(e,t);if(!n)return r;if(!r)return n;for(var i=0;i<n.length;++i){var o=n[i],a=r[i];if(o&&a)e:for(var s=0;s<a.length;++s){for(var c=a[s],l=0;l<o.length;++l)if(o[l].marker==c.marker)continue e;o.push(c)}else a&&(n[i]=a)}return n}function Wi(e,t,n){for(var r=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)r.push(n?Oi.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];r.push({changes:s});for(var c=0;c<a.length;++c){var l=a[c],u=void 0;if(s.push({from:l.from,to:l.to,text:l.text}),t)for(var p in l)(u=p.match(/^spans_(\d+)$/))&&z(t,Number(u[1]))>-1&&(Y(s)[p]=l[p],delete l[p])}}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=tt(t,i)<0;o!=tt(n,i)<0?(i=t,t=n):o!=tt(t,n)<0&&(t=n)}return new ki(i,t)}return new ki(n||t,t)}function Yi(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),Zi(e,new Oi([Qi(e.sel.primary(),t,n,i)],0),r)}function Ki(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o<e.sel.ranges.length;o++)r[o]=Qi(e.sel.ranges[o],t[o],null,i);Zi(e,ji(e.cm,r,e.sel.primIndex),n)}function Gi(e,t,n,r){var i=e.sel.ranges.slice(0);i[t]=n,Zi(e,ji(e.cm,i,e.sel.primIndex),r)}function Ji(e,t,n,r){Zi(e,Ei(t,n),r)}function Xi(e,t,n){var r=e.history.done,i=Y(r);i&&i.ranges?(r[r.length-1]=t,eo(e,t,n)):Zi(e,t,n)}function Zi(e,t,n){eo(e,t,n),Ui(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function eo(e,t,n){(ge(e,"beforeSelectionChange")||e.cm&&ge(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new ki(st(e,t[n].anchor),st(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?ji(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);to(e,ro(e,t,r,!0)),n&&!1===n.scroll||!e.cm||"nocursor"==e.cm.getOption("readOnly")||Dr(e.cm)}function to(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ve(e.cm)),cn(e,"cursorActivity",e))}function no(e){to(e,ro(e,e.sel,null,!1))}function ro(e,t,n,r){for(var i,o=0;o<t.ranges.length;o++){var a=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],c=oo(e,a.anchor,s&&s.anchor,n,r),l=oo(e,a.head,s&&s.head,n,r);(i||c!=a.anchor||l!=a.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new ki(c,l))}return i?ji(e.cm,i,t.primIndex):t}function io(e,t,n,r,i){var o=We(e,t.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],c=s.marker,l="selectLeft"in c?!c.selectLeft:c.inclusiveLeft,u="selectRight"in c?!c.selectRight:c.inclusiveRight;if((null==s.from||(l?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(u?s.to>=t.ch:s.to>t.ch))){if(i&&(he(c,"beforeCursorEnter"),c.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!c.atomic)continue;if(n){var p=c.find(r<0?1:-1),f=void 0;if((r<0?u:l)&&(p=ao(e,p,-r,p&&p.line==t.line?o:null)),p&&p.line==t.line&&(f=tt(p,n))&&(r<0?f<0:f>0))return io(e,p,t,r,i)}var d=c.find(r<0?-1:1);return(r<0?l:u)&&(d=ao(e,d,r,d.line==t.line?o:null)),d?io(e,d,t,r,i):null}}return t}function oo(e,t,n,r,i){var o=r||1,a=io(e,t,n,o,i)||!i&&io(e,t,n,o,!0)||io(e,t,n,-o,i)||!i&&io(e,t,n,-o,!0);return a||(e.cantEdit=!0,et(e.first,0))}function ao(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?st(e,et(t.line-1)):null:n>0&&t.ch==(r||We(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function so(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),$)}function co(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,i,o){t&&(r.from=st(e,t)),n&&(r.to=st(e,n)),i&&(r.text=i),void 0!==o&&(r.origin=o)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function lo(e,t,n){if(e.cm){if(!e.cm.curOp)return ei(e.cm,lo)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"))||(t=co(e,t,!0))){var r=wt&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var i=[{from:t,to:n}],o=0;o<r.length;++o)for(var a=r[o],s=a.find(0),c=0;c<i.length;++c){var l=i[c];if(!(tt(l.to,s.from)<0||tt(l.from,s.to)>0)){var u=[c,1],p=tt(l.from,s.from),f=tt(l.to,s.to);(p<0||!a.inclusiveLeft&&!p)&&u.push({from:l.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&u.push({from:s.to,to:l.to}),i.splice.apply(i,u),c+=u.length-3}}return i}(e,t.from,t.to);if(r)for(var i=r.length-1;i>=0;--i)uo(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else uo(e,t)}}function uo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=_i(e,t);zi(e,t,n,e.cm?e.cm.curOp.id:NaN),ho(e,t,n,St(e,t));var r=[];Ri(e,(function(e,n){n||-1!=z(r,e.history)||(bo(e.history,t),r.push(e.history)),ho(e,t,null,St(e,t))}))}}function po(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,c="undo"==t?o.undone:o.done,l=0;l<s.length&&(i=s[l],n?!i.ranges||i.equals(e.sel):i.ranges);l++);if(l!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(r)return void s.push(i);break}if($i(i,c),n&&!i.equals(e.sel))return void Zi(e,i,{clearRedo:!1});a=i}var u=[];$i(a,c),c.push({changes:u,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var p=ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"),f=function(n){var r=i.changes[n];if(r.origin=t,p&&!co(e,r,!1))return s.length=0,{};u.push(Mi(e,r));var o=n?_i(e,r):Y(s);ho(e,r,o,Hi(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:Si(r)});var a=[];Ri(e,(function(e,t){t||-1!=z(a,e.history)||(bo(e.history,r),a.push(e.history)),ho(e,r,null,Hi(e,r))}))},d=i.changes.length-1;d>=0;--d){var h=f(d);if(h)return h.v}}}}function fo(e,t){if(0!=t&&(e.first+=t,e.sel=new Oi(K(e.sel.ranges,(function(e){return new ki(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){pr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function ho(e,t,n,r){if(e.cm&&!e.cm.curOp)return ei(e.cm,ho)(e,t,n,r);if(t.to.line<e.first)fo(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);fo(e,i),t={from:et(e.first,0),to:et(t.to.line+i,t.to.ch),text:[Y(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:et(o,We(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Qe(e,t.from,t.to),n||(n=_i(e,t)),e.cm?function(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,c=o.line;e.options.lineWrapping||(c=Ge(Mt(We(r,o.line))),r.iter(c,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Ii(r,t,n,sr(e)),e.options.lineWrapping||(r.iter(c,o.line+t.text.length,(function(e){var t=qt(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var i=We(e,r).stateAfter;if(i&&(!(i instanceof lt)||r+i.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,o.line),ri(e,400);var l=t.text.length-(a.line-o.line)-1;t.full?pr(e):o.line!=a.line||1!=t.text.length||Ti(e.doc,t)?pr(e,o.line,a.line+1,l):fr(e,o.line,"text");var u=ge(e,"changes"),p=ge(e,"change");if(p||u){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};p&&cn(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Ii(e,t,r),eo(e,n,$),e.cantEdit&&oo(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function mo(e,t,n,r,i){var o;r||(r=n),tt(r,n)<0&&(n=(o=[r,n])[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),lo(e,{from:n,to:r,text:t,origin:i})}function vo(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function go(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i],a=!0;if(o.ranges){o.copied||((o=e[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)vo(o.ranges[s].anchor,t,n,r),vo(o.ranges[s].head,t,n,r)}else{for(var c=0;c<o.changes.length;++c){var l=o.changes[c];if(n<l.from.line)l.from=et(l.from.line+r,l.from.ch),l.to=et(l.to.line+r,l.to.ch);else if(t<=l.to.line){a=!1;break}}a||(e.splice(0,i+1),i=0)}}}function bo(e,t){var n=t.from.line,r=t.to.line,i=t.text.length-(r-n)-1;go(e.done,n,r,i),go(e.undone,n,r,i)}function yo(e,t,n,r){var i=t,o=t;return"number"==typeof t?o=We(e,at(e,t)):i=Ge(t),null==i?null:(r(o,i)&&e.cm&&fr(e.cm,i,n),o)}function xo(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function wo(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var i=e[r];t+=i.chunkSize(),n+=i.height,i.parent=this}this.size=t,this.height=n,this.parent=null}ki.prototype.from=function(){return ot(this.anchor,this.head)},ki.prototype.to=function(){return it(this.anchor,this.head)},ki.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},xo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var i=this.lines[n];this.height-=i.height,Qt(i),cn(i,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],i=r.chunkSize();if(e<i){var o=Math.min(t,i-e),a=r.height;if(r.removeInner(e,o),this.height-=a-r.height,i==o&&(this.children.splice(n--,1),r.parent=null),0==(t-=o))break;e=0}else e-=i}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof xo))){var s=[];this.collapse(s),this.children=[new xo(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<=o){if(i.insertInner(e,t,n),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var c=new xo(i.lines.slice(s,s+=25));i.height-=c.height,this.children.splice(++r,0,c),c.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}e-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new wo(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new wo(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var i=this.children[r],o=i.chunkSize();if(e<o){var a=Math.min(t,o-e);if(i.iterN(e,a,n))return!0;if(0==(t-=a))break;e=0}else e-=o}}};var Oo=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function ko(e,t,n){Vt(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ar(e,n)}Oo.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=Ge(n);if(null!=r&&t){for(var i=0;i<t.length;++i)t[i]==this&&t.splice(i--,1);t.length||(n.widgets=null);var o=wn(this);Ke(n,Math.max(0,n.height-o)),e&&(Zr(e,(function(){ko(e,n,-o),fr(e,r,"widget")})),cn(e,"lineWidgetCleared",e,this,r))}},Oo.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var i=wn(this)-t;i&&(Ut(this.doc,r)||Ke(r,r.height+i),n&&Zr(n,(function(){n.curOp.forceUpdate=!0,ko(n,r,i),cn(n,"lineWidgetChanged",n,e,Ge(r))})))},be(Oo);var jo=0,Eo=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++jo};function So(e,t,n,r,i){if(r&&r.shared)return function(e,t,n,r,i){(r=F(r)).shared=!1;var o=[So(e,t,n,r,i)],a=o[0],s=r.widgetNode;return Ri(e,(function(e){s&&(r.widgetNode=s.cloneNode(!0)),o.push(So(e,st(e,t),st(e,n),r,i));for(var c=0;c<e.linked.length;++c)if(e.linked[c].isParent)return;a=Y(o)})),new Co(o,a)}(e,t,n,r,i);if(e.cm&&!e.cm.curOp)return ei(e.cm,So)(e,t,n,r,i);var o=new Eo(e,i),a=tt(t,n);if(r&&F(r,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Ft(e,t.line,t,n,o)||t.line!=n.line&&Ft(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ot=!0}o.addToHistory&&zi(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,c=t.line,l=e.cm;if(e.iter(c,n.line+1,(function(r){l&&o.collapsed&&!l.options.lineWrapping&&Mt(r)==l.display.maxLine&&(s=!0),o.collapsed&&c!=t.line&&Ke(r,0),function(e,t,n){var r=n&&window.WeakSet&&(n.markedSpans||(n.markedSpans=new WeakSet));r&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}(r,new kt(o,c==t.line?t.ch:null,c==n.line?n.ch:null),e.cm&&e.cm.curOp),++c})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){Ut(e,t)&&Ke(t,0)})),o.clearOnEnter&&pe(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(wt=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++jo,o.atomic=!0),l){if(s&&(l.curOp.updateMaxLine=!0),o.collapsed)pr(l,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var u=t.line;u<=n.line;u++)fr(l,u,"text");o.atomic&&no(l.doc),cn(l,"markerAdded",l,o)}return o}Eo.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Wr(e),ge(this,"clear")){var n=this.find();n&&cn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=jt(a.markedSpans,this);e&&!this.collapsed?fr(e,Ge(a),"text"):e&&(null!=s.to&&(i=Ge(a)),null!=s.from&&(r=Ge(a))),a.markedSpans=Et(a.markedSpans,s),null==s.from&&this.collapsed&&!Ut(this.doc,a)&&e&&Ke(a,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var c=0;c<this.lines.length;++c){var l=Mt(this.lines[c]),u=qt(l);u>e.display.maxLineLength&&(e.display.maxLine=l,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&pr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&no(e.doc)),e&&cn(e,"markerCleared",e,this,r,i),t&&Qr(e),this.parent&&this.parent.clear()}},Eo.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=jt(o.markedSpans,this);if(null!=a.from&&(n=et(t?o:Ge(o),a.from),-1==e))return n;if(null!=a.to&&(r=et(t?o:Ge(o),a.to),1==e))return r}return n&&{from:n,to:r}},Eo.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&Zr(r,(function(){var i=t.line,o=Ge(t.line),a=Dn(r,o);if(a&&(Mn(a),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Ut(n.doc,i)&&null!=n.height){var s=n.height;n.height=null;var c=wn(n)-s;c&&Ke(i,i.height+c)}cn(r,"markerChanged",r,e)}))},Eo.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Eo.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},be(Eo);var Co=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function _o(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function Po(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ri(n.primary.doc,(function(e){return r.push(e)}));for(var i=0;i<n.markers.length;i++){var o=n.markers[i];-1==z(r,o.doc)&&(o.parent=null,n.markers.splice(i--,1))}},n=0;n<e.length;n++)t(n)}Co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();cn(this,"clear")}},Co.prototype.find=function(e,t){return this.primary.find(e,t)},be(Co);var Ao=0,Do=function(e,t,n,r,i){if(!(this instanceof Do))return new Do(e,t,n,r,i);null==n&&(n=0),wo.call(this,[new xo([new Wt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var o=et(n,0);this.sel=Ei(o),this.history=new Fi(null),this.id=++Ao,this.modeOption=t,this.lineSep=r,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Ii(this,{from:o,to:o,text:e}),Zi(this,Ei(o),$)};Do.prototype=J(wo.prototype,{constructor:Do,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ye(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:ni((function(e){var t=et(this.first,0),n=this.first+this.size-1;lo(this,{from:t,to:et(n,We(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Tr(this.cm,0,0),Zi(this,Ei(t),$)})),replaceRange:function(e,t,n,r){mo(this,e,t=st(this,t),n=n?st(this,n):t,r)},getRange:function(e,t,n){var r=Qe(this,st(this,e),st(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Xe(this,e))return We(this,e)},getLineNumber:function(e){return Ge(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=We(this,e)),Mt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return st(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ni((function(e,t,n){Ji(this,st(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:ni((function(e,t,n){Ji(this,st(this,e),st(this,t||e),n)})),extendSelection:ni((function(e,t,n){Yi(this,st(this,e),t&&st(this,t),n)})),extendSelections:ni((function(e,t){Ki(this,ct(this,e),t)})),extendSelectionsBy:ni((function(e,t){Ki(this,ct(this,K(this.sel.ranges,e)),t)})),setSelections:ni((function(e,t,n){if(e.length){for(var r=[],i=0;i<e.length;i++)r[i]=new ki(st(this,e[i].anchor),st(this,e[i].head||e[i].anchor));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),Zi(this,ji(this.cm,r,t),n)}})),addSelection:ni((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new ki(st(this,e),st(this,t||e))),Zi(this,ji(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var i=Qe(this,n[r].from(),n[r].to());t=t?t.concat(i):i}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var i=Qe(this,n[r].from(),n[r].to());!1!==e&&(i=i.join(e||this.lineSeparator())),t[r]=i}return t},replaceSelection:function(e,t,n){for(var r=[],i=0;i<this.sel.ranges.length;i++)r[i]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:ni((function(e,t,n){for(var r=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];r[o]={from:a.from(),to:a.to(),text:this.splitLines(e[o]),origin:n}}for(var s=t&&"end"!=t&&function(e,t,n){for(var r=[],i=et(e.first,0),o=i,a=0;a<t.length;a++){var s=t[a],c=Pi(s.from,i,o),l=Pi(Si(s),i,o);if(i=s.to,o=l,"around"==n){var u=e.sel.ranges[a],p=tt(u.head,u.anchor)<0;r[a]=new ki(p?l:c,p?c:l)}else r[a]=new ki(c,c)}return new Oi(r,e.sel.primIndex)}(this,r,t),c=r.length-1;c>=0;c--)lo(this,r[c]);s?Xi(this,s):this.cm&&Dr(this.cm)})),undo:ni((function(){po(this,"undo")})),redo:ni((function(){po(this,"redo")})),undoSelection:ni((function(){po(this,"undo",!0)})),redoSelection:ni((function(){po(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Fi(this.history),Ri(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Wi(this.history.done),undone:Wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Fi(this.history);t.done=Wi(e.done.slice(0),null,!0),t.undone=Wi(e.undone.slice(0),null,!0)},setGutterMarker:ni((function(e,t,n){return yo(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:ni((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&yo(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!Xe(this,e))return null;if(t=e,!(e=We(this,e)))return null}else if(null==(t=Ge(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:ni((function(e,t,n){return yo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(j(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:ni((function(e,t,n){return yo(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",i=e[r];if(!i)return!1;if(null==n)e[r]=null;else{var o=i.match(j(n));if(!o)return!1;var a=o.index+o[0].length;e[r]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ni((function(e,t,n){return function(e,t,n,r){var i=new Oo(e,n,r),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),yo(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==i.insertAt?n.push(i):n.splice(Math.min(n.length,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!Ut(e,t)){var r=Vt(t)<e.scrollTop;Ke(t,t.height+wn(i)),r&&Ar(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&cn(o,"lineWidgetAdded",o,i,"number"==typeof t?t:Ge(t)),i}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return So(this,st(this,e),st(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return So(this,e=st(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=We(this,(e=st(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var i=n[r];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=st(this,e),t=st(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var c=a[s];null!=c.to&&i==e.line&&e.ch>=c.to||null==c.from&&i!=e.line||null!=c.from&&i==t.line&&c.from>=t.ch||n&&!n(c.marker)||r.push(c.marker.parent||c.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+r;if(o>e)return t=e,!0;e-=o,++n})),st(this,et(n,t))},indexFromPos:function(e){var t=(e=st(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Do(Ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Do(Ye(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.find(),o=e.clipPos(i.from),a=e.clipPos(i.to);if(tt(o,a)){var s=So(e,o,a,r.primary,r.primary.type);r.markers.push(s),s.parent=r}}}(r,_o(this)),r},unlinkDoc:function(e){if(e instanceof Ca&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),Po(_o(this));break}if(e.history==this.history){var n=[e.id];Ri(e,(function(e){return n.push(e.id)}),!0),e.history=new Fi(null),e.history.done=Wi(this.history.done,n),e.history.undone=Wi(this.history.undone,n)}},iterLinkedDocs:function(e){Ri(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):De(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ni((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&Zr(t=this.cm,(function(){Ni(t),pr(t)})))}))}),Do.prototype.eachLine=Do.prototype.iter;var To=0;function Io(e){var t=this;if(Ro(t),!me(t,e)&&!On(t.display,e)){ye(e),a&&(To=+new Date);var n=lr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var i=r.length,o=Array(i),s=0,c=function(){++s==i&&ei(t,(function(){var e={from:n=st(t.doc,n),to:n,text:t.doc.splitLines(o.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};lo(t.doc,e),Xi(t.doc,Ei(st(t.doc,n),st(t.doc,Si(e))))}))()},l=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))c();else{var r=new FileReader;r.onerror=function(){return c()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(o[n]=e),c()},r.readAsText(e)}},u=0;u<r.length;u++)l(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var p=e.dataTransfer.getData("Text");if(p){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),eo(t.doc,Ei(n,n)),f)for(var d=0;d<f.length;++d)mo(t.doc,"",f[d].anchor,f[d].head,"drag");t.replaceSelection(p,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Ro(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Lo(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var i=t[r].CodeMirror;i&&n.push(i)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var No=!1;function Fo(){var e;No||(pe(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Lo(Mo)}),100))})),pe(window,"blur",(function(){return Lo(Er)})),No=!0)}function Mo(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Bo={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},zo=0;zo<10;zo++)Bo[zo+48]=Bo[zo+96]=String(zo);for(var Uo=65;Uo<=90;Uo++)Bo[Uo]=String.fromCharCode(Uo);for(var $o=1;$o<=12;$o++)Bo[$o+111]=Bo[$o+63235]="F"+$o;var Vo={};function qo(e){var t,n,r,i,o=e.split(/-(?!$)/);e=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))t=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),i&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ho(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var i=K(n.split(" "),qo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=r):(s=i.slice(0,o+1).join(" "),a="...");var c=t[s];if(c){if(c!=a)throw new Error("Inconsistent bindings for "+s)}else t[s]=a}delete e[n]}for(var l in t)e[l]=t[l];return e}function Wo(e,t,n,r){var i=(t=Go(t)).call?t.call(e,r):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&n(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Wo(e,t.fallthrough,n,r);for(var o=0;o<t.fallthrough.length;o++){var a=Wo(e,t.fallthrough[o],n,r);if(a)return a}}}function Qo(e){var t="string"==typeof e?e:Bo[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Yo(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(O?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(O?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Ko(e,t){if(p&&34==e.keyCode&&e.char)return!1;var n=Bo[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Yo(n,e,t))}function Go(e){return"string"==typeof e?Vo[e]:e}function Jo(e,t){for(var n=e.doc.sel.ranges,r=[],i=0;i<n.length;i++){for(var o=t(n[i]);r.length&&tt(o.from,Y(r).to)<=0;){var a=r.pop();if(tt(a.from,o.from)<0){o.from=a.from;break}}r.push(o)}Zr(e,(function(){for(var t=r.length-1;t>=0;t--)mo(e.doc,"",r[t].from,r[t].to,"+delete");Dr(e)}))}function Xo(e,t,n){var r=ie(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Zo(e,t,n){var r=Xo(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function ea(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=le(n,t.doc.direction);if(o){var a,s=i<0?Y(o):o[0],c=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var l=Tn(t,n);a=i<0?n.text.length-1:0;var u=In(t,l,a).top;a=oe((function(e){return In(t,l,e).top==u}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Xo(n,a,1))}else a=i<0?s.to:s.from;return new et(r,a,c)}}return new et(r,i<0?n.text.length:0,i<0?"before":"after")}Vo.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Vo.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Vo.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Vo.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Vo.default=b?Vo.macDefault:Vo.pcDefault;var ta={selectAll:so,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),$)},killLine:function(e){return Jo(e,(function(t){if(t.empty()){var n=We(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return Jo(e,(function(t){return{from:et(t.from().line,0),to:st(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return Jo(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return Jo(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return na(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return ra(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=We(e.doc,t),r=function(e){for(var t;t=Lt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=Ge(r)),ea(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),q)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),q)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?ra(e,t.head):r}),q)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,i=0;i<n.length;i++){var o=n[i].from(),a=M(e.getLine(o.line),o.ch,r);t.push(Q(r-a%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var i=t[r].head,o=We(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new et(i.line,i.ch-1)),i.ch>0)i=new et(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),et(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=We(e.doc,i.line-1).text;a&&(i=new et(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),et(i.line-1,a.length-1),i,"+transpose"))}n.push(new ki(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Zr(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Dr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function na(e,t){var n=We(e.doc,t),r=Mt(n);return r!=n&&(t=Ge(r)),ea(!0,e,r,t,1)}function ra(e,t){var n=na(e,t.line),r=We(e.doc,n.line),i=le(r,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(n.ch,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=o&&t.ch;return et(n.line,a?0:o,n.sticky)}return n}function ia(e,t,n){if("string"==typeof t&&!(t=ta[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),i=t(e)!=U}finally{e.display.shift=r,e.state.suppressEdits=!1}return i}var oa=new B;function aa(e,t,n,r){var i=e.state.keySeq;if(i){if(Qo(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:oa.set(50,(function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())})),sa(e,i+" "+t,n,r))return!0}return sa(e,t,n,r)}function sa(e,t,n,r){var i=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var i=Wo(t,e.state.keyMaps[r],n,e);if(i)return i}return e.options.extraKeys&&Wo(t,e.options.extraKeys,n,e)||Wo(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==i&&(e.state.keySeq=t),"handled"==i&&cn(e,"keyHandled",e,t,n),"handled"!=i&&"multi"!=i||(ye(n),wr(e)),!!i}function ca(e,t){var n=Ko(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?aa(e,"Shift-"+n,t,(function(t){return ia(e,t,!0)}))||aa(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ia(e,t)})):aa(e,n,t,(function(t){return ia(e,t)})))}var la=null;function ua(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=T(),me(t,e)))){a&&s<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var i=ca(t,e);p&&(la=i?r:null,i||88!=r||Ie||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!i&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(S(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n))}I(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n)}(t)}}function pa(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function fa(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||On(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(p&&n==la)return la=null,void ye(e);if(!p||e.which&&!(e.which<10)||!ca(t,e)){var i=String.fromCharCode(null==r?n:r);"\b"!=i&&(function(e,t,n){return aa(e,"'"+n+"'",t,(function(t){return ia(e,t,!0)}))}(t,e,i)||t.display.input.onKeyPress(e))}}}var da,ha,ma=function(e,t,n){this.time=e,this.pos=t,this.button=n};function va(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,On(n,e))c||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!ya(t,e)){var r=lr(t,e),i=je(e),o=r?function(e,t){var n=+new Date;return ha&&ha.compare(n,e,t)?(da=ha=null,"triple"):da&&da.compare(n,e,t)?(ha=new ma(n,e,t),da=null,"double"):(da=new ma(n,e,t),ha=null,"single")}(r,i):"single";window.focus(),1==i&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,i){var o="Click";return"double"==r?o="Double"+o:"triple"==r&&(o="Triple"+o),aa(e,Yo(o=(1==t?"Left":2==t?"Middle":"Right")+o,i),i,(function(t){if("string"==typeof t&&(t=ta[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=U}finally{e.state.suppressEdits=!1}return r}))}(t,i,r,o,e)||(1==i?r?function(e,t,n,r){a?setTimeout(N(Or,e),0):e.curOp.focus=T();var i,o=function(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(null==i.unit){var o=y?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==i.extend||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),null==i.addNew&&(i.addNew=b?n.metaKey:n.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(b?n.altKey:n.ctrlKey)),i}(e,n,r),l=e.doc.sel;e.options.dragDrop&&Ce&&!e.isReadOnly()&&"single"==n&&(i=l.contains(t))>-1&&(tt((i=l.ranges[i]).from(),t)<0||t.xRel>0)&&(tt(i.to(),t)>0||t.xRel<0)?function(e,t,n,r){var i=e.display,o=!1,l=ei(e,(function(t){c&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:kr(e)),de(i.wrapper.ownerDocument,"mouseup",l),de(i.wrapper.ownerDocument,"mousemove",u),de(i.scroller,"dragstart",p),de(i.scroller,"drop",l),o||(ye(t),r.addNew||Yi(e.doc,n,null,null,r.extend),c&&!f||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),u=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},p=function(){return o=!0};c&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,pe(i.wrapper.ownerDocument,"mouseup",l),pe(i.wrapper.ownerDocument,"mousemove",u),pe(i.scroller,"dragstart",p),pe(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}(e,r,t,o):function(e,t,n,r){a&&kr(e);var i=e.display,o=e.doc;ye(t);var s,c,l=o.sel,u=l.ranges;if(r.addNew&&!r.extend?(c=o.sel.contains(n),s=c>-1?u[c]:new ki(n,n)):(s=o.sel.primary(),c=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new ki(n,n)),n=lr(e,t,!0,!0),c=-1;else{var p=ga(e,n,r.unit);s=r.extend?Qi(s,p.anchor,p.head,r.extend):p}r.addNew?-1==c?(c=u.length,Zi(o,ji(e,u.concat([s]),c),{scroll:!1,origin:"*mouse"})):u.length>1&&u[c].empty()&&"char"==r.unit&&!r.extend?(Zi(o,ji(e,u.slice(0,c).concat(u.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Gi(o,c,s,V):(c=0,Zi(o,new Oi([s],0),V),l=o.sel);var f=n;function d(t){if(0!=tt(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,u=M(We(o,n.line).text,n.ch,a),p=M(We(o,t.line).text,t.ch,a),d=Math.min(u,p),h=Math.max(u,p),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=We(o,m).text,b=H(g,d,a);d==h?i.push(new ki(et(m,b),et(m,b))):g.length>b&&i.push(new ki(et(m,b),et(m,H(g,h,a))))}i.length||i.push(new ki(n,n)),Zi(o,ji(e,l.ranges.slice(0,c).concat(i),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=s,w=ga(e,t,r.unit),O=x.anchor;tt(w.anchor,O)>0?(y=w.head,O=ot(x.from(),w.anchor)):(y=w.anchor,O=it(x.to(),w.head));var k=l.ranges.slice(0);k[c]=function(e,t){var n=t.anchor,r=t.head,i=We(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var o=le(i);if(!o)return t;var a=se(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var c,l=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==l||l==o.length)return t;if(r.line!=n.line)c=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=se(o,r.ch,r.sticky),p=u-a||(r.ch-n.ch)*(1==s.level?-1:1);c=u==l-1||u==l?p<0:p>0}var f=o[l+(c?-1:0)],d=c==(1==f.level),h=d?f.from:f.to,m=d?"after":"before";return n.ch==h&&n.sticky==m?t:new ki(new et(n.line,h,m),r)}(e,new ki(st(o,O),y)),Zi(o,ji(e,k,c),V)}}var h=i.wrapper.getBoundingClientRect(),m=0;function v(t){e.state.selectingText=!1,m=1/0,t&&(ye(t),i.input.focus()),de(i.wrapper.ownerDocument,"mousemove",g),de(i.wrapper.ownerDocument,"mouseup",b),o.history.lastSelOrigin=null}var g=ei(e,(function(t){0!==t.buttons&&je(t)?function t(n){var a=++m,s=lr(e,n,!0,"rectangle"==r.unit);if(s)if(0!=tt(s,f)){e.curOp.focus=T(),d(s);var c=_r(i,o);(s.line>=c.to||s.line<c.from)&&setTimeout(ei(e,(function(){m==a&&t(n)})),150)}else{var l=n.clientY<h.top?-20:n.clientY>h.bottom?20:0;l&&setTimeout(ei(e,(function(){m==a&&(i.scroller.scrollTop+=l,t(n))})),50)}}(t):v(t)})),b=ei(e,v);e.state.selectingText=b,pe(i.wrapper.ownerDocument,"mousemove",g),pe(i.wrapper.ownerDocument,"mouseup",b)}(e,r,t,o)}(t,r,o,e):ke(e)==n.scroller&&ye(e):2==i?(r&&Yi(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==i&&(k?t.display.input.onContextMenu(e):kr(t)))}}function ga(e,t,n){if("char"==n)return new ki(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new ki(et(t.line,0),st(e.doc,et(t.line+1,0)));var r=n(e,t);return new ki(r.from,r.to)}function ba(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ye(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!ge(e,n))return we(t);o-=s.top-a.viewOffset;for(var c=0;c<e.display.gutterSpecs.length;++c){var l=a.gutters.childNodes[c];if(l&&l.getBoundingClientRect().right>=i)return he(e,n,e,Je(e.doc,o),e.display.gutterSpecs[c].className,t),we(t)}}function ya(e,t){return ba(e,t,"gutterClick",!0)}function xa(e,t){On(e.display,t)||function(e,t){return!!ge(e,"gutterContextMenu")&&ba(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function wa(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}ma.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Oa={toString:function(){return"CodeMirror.Init"}},ka={},ja={};function Ea(e,t,n){if(!t!=!(n&&n!=Oa)){var r=e.display.dragFunctions,i=t?pe:de;i(e.display.scroller,"dragstart",r.start),i(e.display.scroller,"dragenter",r.enter),i(e.display.scroller,"dragover",r.over),i(e.display.scroller,"dragleave",r.leave),i(e.display.scroller,"drop",r.drop)}}function Sa(e){e.options.lineWrapping?(I(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(S(e.display.wrapper,"CodeMirror-wrap"),Ht(e)),cr(e),pr(e),zn(e),setTimeout((function(){return Ur(e)}),100)}function Ca(e,t){var n=this;if(!(this instanceof Ca))return new Ca(e,t);this.options=t=t?F(t):{},F(ka,t,!1);var r=t.value;"string"==typeof r?r=new Do(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ca.inputStyles[t.inputStyle](this),o=this.display=new vi(e,r,i,t);for(var l in o.wrapper.CodeMirror=this,wa(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),qr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new B,keySeq:null,specialChars:null},t.autofocus&&!g&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;pe(t.scroller,"mousedown",ei(e,va)),pe(t.scroller,"dblclick",a&&s<11?ei(e,(function(t){if(!me(e,t)){var n=lr(e,t);if(n&&!ya(e,t)&&!On(e.display,t)){ye(t);var r=e.findWordAt(n);Yi(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||ye(t)}),pe(t.scroller,"contextmenu",(function(t){return xa(e,t)})),pe(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||xa(e,n)}));var n,r={end:0};function i(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function o(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}pe(t.scroller,"touchstart",(function(i){if(!me(e,i)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(i)&&!ya(e,i)){t.input.ensurePolled(),clearTimeout(n);var o=+new Date;t.activeTouch={start:o,moved:!1,prev:o-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),pe(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),pe(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!On(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var a,s=e.coordsChar(t.activeTouch,"page");a=!r.prev||o(r,r.prev)?new ki(s,s):!r.prev.prev||o(r,r.prev.prev)?e.findWordAt(s):new ki(et(s.line,0),st(e.doc,et(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),ye(n)}i()})),pe(t.scroller,"touchcancel",i),pe(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Lr(e,t.scroller.scrollTop),Fr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),pe(t.scroller,"mousewheel",(function(t){return wi(e,t)})),pe(t.scroller,"DOMMouseScroll",(function(t){return wi(e,t)})),pe(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Oe(t)},over:function(t){me(e,t)||(function(e,t){var n=lr(e,t);if(n){var r=document.createDocumentFragment();br(e,n,r),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),_(e.display.dragCursor,r)}}(e,t),Oe(t))},start:function(t){return function(e,t){if(a&&(!e.state.draggingText||+new Date-To<100))Oe(t);else if(!me(e,t)&&!On(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=P("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),p&&n.parentNode.removeChild(n)}}(e,t)},drop:ei(e,Io),leave:function(t){me(e,t)||Ro(e)}};var c=t.input.getField();pe(c,"keyup",(function(t){return pa.call(e,t)})),pe(c,"keydown",ei(e,ua)),pe(c,"keypress",ei(e,fa)),pe(c,"focus",(function(t){return jr(e,t)})),pe(c,"blur",(function(t){return Er(e,t)}))}(this),Fo(),Wr(this),this.curOp.forceUpdate=!0,Li(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&jr(n)}),20):Er(this),ja)ja.hasOwnProperty(l)&&ja[l](this,t[l],Oa);fi(this),t.finishInit&&t.finishInit(this);for(var u=0;u<_a.length;++u)_a[u](this);Qr(this),c&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Ca.defaults=ka,Ca.optionHandlers=ja;var _a=[];function Pa(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=dt(e,t).state:n="prev");var a=e.options.tabSize,s=We(o,t),c=M(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var l,u=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((l=o.mode.indent(i,s.text.slice(u.length),s.text))==U||l>150)){if(!r)return;n="prev"}}else l=0,n="not";"prev"==n?l=t>o.first?M(We(o,t-1).text,null,a):0:"add"==n?l=c+e.options.indentUnit:"subtract"==n?l=c-e.options.indentUnit:"number"==typeof n&&(l=c+n),l=Math.max(0,l);var p="",f=0;if(e.options.indentWithTabs)for(var d=Math.floor(l/a);d;--d)f+=a,p+="\t";if(f<l&&(p+=Q(l-f)),p!=u)return mo(o,p,et(t,0),et(t,u.length),"+input"),s.stateAfter=null,!0;for(var h=0;h<o.sel.ranges.length;h++){var m=o.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var v=et(t,u.length);Gi(o,h,new ki(v,v));break}}}Ca.defineInitHook=function(e){return _a.push(e)};var Aa=null;function Da(e){Aa=e}function Ta(e,t,n,r,i){var o=e.doc;e.display.shift=!1,r||(r=o.sel);var a=+new Date-200,s="paste"==i||e.state.pasteIncoming>a,c=De(t),l=null;if(s&&r.ranges.length>1)if(Aa&&Aa.text.join("\n")==t){if(r.ranges.length%Aa.text.length==0){l=[];for(var u=0;u<Aa.text.length;u++)l.push(o.splitLines(Aa.text[u]))}}else c.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(l=K(c,(function(e){return[e]})));for(var p=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var d=r.ranges[f],h=d.from(),m=d.to();d.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!s?m=et(m.line,Math.min(We(o,m.line).text.length,m.ch+Y(c).length)):s&&Aa&&Aa.lineWise&&Aa.text.join("\n")==c.join("\n")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:l?l[f%l.length]:c,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};lo(e.doc,v),cn(e,"inputRead",e,v)}t&&!s&&Ra(e,t),Dr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=p),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ia(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||Zr(t,(function(){return Ta(t,n,0,null,"paste")})),!0}function Ra(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){a=Pa(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(We(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Pa(e,i.head.line,"smart"));a&&cn(e,"electricInput",e,i.head.line)}}}function La(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var i=e.doc.sel.ranges[r].head.line,o={anchor:et(i,0),head:et(i+1,0)};n.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:n}}function Na(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Fa(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return c?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Na(e),t}function Ma(e,t,n,r,i){var o=t,a=n,s=We(e,t.line),c=i&&"rtl"==e.direction?-n:n;function l(o){var a,l;if("codepoint"==r){var u=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(u))a=null;else{var p=n>0?u>=55296&&u<56320:u>=56320&&u<57343;a=new et(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(p?2:1))),-n)}}else a=i?function(e,t,n,r){var i=le(t,e.doc.direction);if(!i)return Zo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=se(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from<n.ch))return Zo(t,n,r);var s,c=function(e,n){return Xo(t,e instanceof et?e.ch:e,n)},l=function(n){return e.options.lineWrapping?(s=s||Tn(e,t),Xn(e,t,s,n)):{begin:0,end:t.text.length}},u=l("before"==n.sticky?c(n,-1):n.ch);if("rtl"==e.doc.direction||1==a.level){var p=1==a.level==r<0,f=c(n,p?1:-1);if(null!=f&&(p?f<=a.to&&f<=u.end:f>=a.from&&f>=u.begin)){var d=p?"before":"after";return new et(n.line,f,d)}}var h=function(e,t,r){for(var o=function(e,t){return t?new et(n.line,c(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<i.length;e+=t){var a=i[e],s=t>0==(1!=a.level),l=s?r.begin:c(r.end,-1);if(a.from<=l&&l<a.to)return o(l,s);if(l=s?a.from:c(a.to,-1),r.begin<=l&&l<r.end)return o(l,s)}},m=h(o+r,r,u);if(m)return m;var v=r>0?u.end:c(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:i.length-1,r,l(v)))?null:m}(e.cm,s,t,n):Zo(s,t,n);if(null==a){if(o||(l=t.line+c)<e.first||l>=e.first+e.size||(t=new et(l,t.ch,t.sticky),!(s=We(e,l))))return!1;t=ea(i,e.cm,s,t.line,c)}else t=a;return!0}if("char"==r||"codepoint"==r)l();else if("column"==r)l(!0);else if("word"==r||"group"==r)for(var u=null,p="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||l(!d);d=!1){var h=s.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":p&&"\n"==h?"n":!p||/\s/.test(h)?null:"p";if(!p||d||m||(m="s"),u&&u!=m){n<0&&(n=1,l(),t.sticky="after");break}if(m&&(u=m),n>0&&!l(!d))break}var v=oo(e,t,o,a,!0);return nt(o,v)&&(v.hitSide=!0),v}function Ba(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var c=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(c-.5*rr(e.display),3);i=(n>0?t.bottom:t.top)+n*l}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;(o=Gn(e,s,i)).outside;){if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var za=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new B,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(e,t){var n=Dn(e,t.line);if(!n||n.hidden)return null;var r=We(e.doc,t.line),i=Pn(n,r,t.line),o=le(r,e.doc.direction),a="left";o&&(a=se(o,t.ch)%2?"right":"left");var s=Nn(i.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function $a(e,t){return t&&(e.bad=!0),e}function Va(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return $a(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==r)return qa(o,t,n)}}function qa(e,t,n){var r=e.text.firstChild,i=!1;if(!t||!D(r,t))return $a(et(Ge(e.line),0),!0);if(t==r&&(i=!0,t=r.childNodes[n],n=0,!t)){var o=e.rest?Y(e.rest):e.line;return $a(et(Ge(o),o.text.length),i)}var a=3==t.nodeType?t:null,s=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,n&&(n=a.nodeValue.length));s.parentNode!=r;)s=s.parentNode;var c=e.measure,l=c.maps;function u(t,n,r){for(var i=-1;i<(l?l.length:0);i++)for(var o=i<0?c.map:l[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==t||s==n){var u=Ge(i<0?e.line:e.rest[i]),p=o[a]+r;return(r<0||s!=t)&&(p=o[a+(r?1:0)]),et(u,p)}}}var p=u(a,s,n);if(p)return $a(p,i);for(var f=s.nextSibling,d=a?a.nodeValue.length-n:0;f;f=f.nextSibling){if(p=u(f,f.firstChild,0))return $a(et(p.line,p.ch-d),i);d+=f.textContent.length}for(var h=s.previousSibling,m=n;h;h=h.previousSibling){if(p=u(h,h.firstChild,-1))return $a(et(p.line,p.ch+m),i);m+=h.textContent.length}}za.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;function o(e){for(var t=e.target;t;t=t.parentNode){if(t==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function a(e){if(o(e)&&!me(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Da({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,$),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var a=Aa.text.join("\n");if(e.clipboardData.setData("Text",a),e.clipboardData.getData("Text")==a)return void e.preventDefault()}var s=Fa(),c=s.firstChild;r.display.lineSpace.insertBefore(s,r.display.lineSpace.firstChild),c.value=Aa.text.join("\n");var l=T();L(c),setTimeout((function(){r.display.lineSpace.removeChild(s),l.focus(),l==i&&n.showPrimarySelection()}),50)}}i.contentEditable=!0,Na(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),pe(i,"paste",(function(e){!o(e)||me(r,e)||Ia(e,r)||s<=11&&setTimeout(ei(r,(function(){return t.updateFromDOM()})),20)})),pe(i,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),pe(i,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),pe(i,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),pe(i,"touchstart",(function(){return n.forceCompositionEnd()})),pe(i,"input",(function(){t.composing||t.readFromDOMSoon()})),pe(i,"copy",a),pe(i,"cut",a)},za.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var e=gr(this.cm,!1);return e.focus=T()==this.div,e},za.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},za.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),i=r.from(),o=r.to();if(t.display.viewTo==t.display.viewFrom||i.line>=t.display.viewTo||o.line<t.display.viewFrom)e.removeAllRanges();else{var a=Va(t,e.anchorNode,e.anchorOffset),s=Va(t,e.focusNode,e.focusOffset);if(!a||a.bad||!s||s.bad||0!=tt(ot(a,s),i)||0!=tt(it(a,s),o)){var c=t.display.view,l=i.line>=t.display.viewFrom&&Ua(t,i)||{node:c[0].measure.map[2],offset:0},u=o.line<t.display.viewTo&&Ua(t,o);if(!u){var p=c[c.length-1].measure,f=p.maps?p.maps[p.maps.length-1]:p.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(l&&u){var d,h=e.rangeCount&&e.getRangeAt(0);try{d=E(l.node,l.offset,u.offset,u.node)}catch(e){}d&&(!n&&t.state.focused?(e.collapse(l.node,l.offset),d.collapsed||(e.removeAllRanges(),e.addRange(d))):(e.removeAllRanges(),e.addRange(d)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},za.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},za.prototype.showMultipleSelections=function(e){_(this.cm.display.cursorDiv,e.cursors),_(this.cm.display.selectionDiv,e.selection)},za.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},za.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return D(this.div,t)},za.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&T()==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},za.prototype.blur=function(){this.div.blur()},za.prototype.getField=function(){return this.div},za.prototype.supportsTouch=function(){return!0},za.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Zr(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},za.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},za.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Va(t,e.anchorNode,e.anchorOffset),r=Va(t,e.focusNode,e.focusOffset);n&&r&&Zr(t,(function(){Zi(t.doc,Ei(n,r),$),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},za.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,i=r.display,o=r.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>r.firstLine()&&(a=et(a.line-1,We(r.doc,a.line-1).length)),s.ch==We(r.doc,s.line).text.length&&s.line<r.lastLine()&&(s=et(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(e=ur(r,a.line))?(t=Ge(i.view[0].line),n=i.view[0].node):(t=Ge(i.view[e].line),n=i.view[e-1].node.nextSibling);var c,l,u=ur(r,s.line);if(u==i.view.length-1?(c=i.viewTo-1,l=i.lineDiv.lastChild):(c=Ge(i.view[u+1].line)-1,l=i.view[u+1].node.previousSibling),!n)return!1;for(var p=r.doc.splitLines(function(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),c=!1;function l(){a&&(o+=s,c&&(o+=s),a=c=!1)}function u(e){e&&(l(),o+=e)}function p(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var o,f=t.getAttribute("cm-marker");if(f){var d=e.findMarks(et(r,0),et(i+1,0),(v=+f,function(e){return e.id==v}));return void(d.length&&(o=d[0].find(0))&&u(Qe(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&l();for(var m=0;m<t.childNodes.length;m++)p(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(c=!0),h&&(a=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;p(t),t!=n;)t=t.nextSibling,c=!1;return o}(r,n,l,t,c)),f=Qe(r.doc,et(t,0),et(c,We(r.doc,c).text.length));p.length>1&&f.length>1;)if(Y(p)==Y(f))p.pop(),f.pop(),c--;else{if(p[0]!=f[0])break;p.shift(),f.shift(),t++}for(var d=0,h=0,m=p[0],v=f[0],g=Math.min(m.length,v.length);d<g&&m.charCodeAt(d)==v.charCodeAt(d);)++d;for(var b=Y(p),y=Y(f),x=Math.min(b.length-(1==p.length?d:0),y.length-(1==f.length?d:0));h<x&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)++h;if(1==p.length&&1==f.length&&t==a.line)for(;d&&d>a.ch&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)d--,h++;p[p.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),p[0]=p[0].slice(d).replace(/\u200b+$/,"");var w=et(t,d),O=et(c,f.length?Y(f).length-h:0);return p.length>1||p[0]||tt(w,O)?(mo(r.doc,p,w,O,"+input"),!0):void 0},za.prototype.ensurePolled=function(){this.forceCompositionEnd()},za.prototype.reset=function(){this.forceCompositionEnd()},za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},za.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},za.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Zr(this.cm,(function(){return pr(e.cm)}))},za.prototype.setUneditable=function(e){e.contentEditable="false"},za.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ei(this.cm,Ta)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},za.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},za.prototype.onContextMenu=function(){},za.prototype.resetPosition=function(){},za.prototype.needsContentAttribute=!0;var Ha=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new B,this.hasSelection=!1,this.composing=null};Ha.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!me(r,e)){if(r.somethingSelected())Da({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=La(r);Da({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,$):(n.prevInput="",i.value=t.text.join("\n"),L(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(i.style.width="0px"),pe(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),pe(i,"paste",(function(e){me(r,e)||Ia(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),pe(i,"cut",o),pe(i,"copy",o),pe(e.scroller,"paste",(function(t){if(!On(e,t)&&!me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),pe(e.lineSpace,"selectstart",(function(t){On(e,t)||ye(t)})),pe(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),pe(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ha.prototype.createField=function(e){this.wrapper=Fa(),this.textarea=this.wrapper.firstChild},Ha.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Ha.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var i=Qn(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},Ha.prototype.showSelection=function(e){var t=this.cm.display;_(t.cursorDiv,e.cursors),_(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ha.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ha.prototype.getField=function(){return this.textarea},Ha.prototype.supportsTouch=function(){return!1},Ha.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||T()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ha.prototype.blur=function(){this.textarea.blur()},Ha.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ha.prototype.receivedFocus=function(){this.slowPoll()},Ha.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Ha.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Ha.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Te(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||b&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var c=0,l=Math.min(r.length,i.length);c<l&&r.charCodeAt(c)==i.charCodeAt(c);)++c;return Zr(t,(function(){Ta(t,i.slice(c),r.length-c,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ha.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ha.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ha.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=lr(n,e),l=r.scroller.scrollTop;if(o&&!p){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(o)&&ei(n,Zi)(n.doc,Ei(o),$);var u,f=i.style.cssText,d=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",c&&(u=window.scrollY),r.input.focus(),c&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){Oe(e);var m=function(){de(window,"mouseup",m),setTimeout(g,20)};pe(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=d,i.style.cssText=f,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?ei(n,so)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},Ha.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Ha.prototype.setUneditable=function(){},Ha.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Oa&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Oa,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ai(e)}),!0),n("indentUnit",2,Ai,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Di(e),zn(e),pr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(et(r,o))}r++}));for(var i=n.length-1;i>=0;i--)mo(e.doc,t,n[i],et(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Oa&&e.refresh()})),n("specialCharPlaceholder",Xt,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){wa(e),mi(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Go(t),i=n!=Oa&&Go(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Sa,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=di(t,e.options.lineNumbers),mi(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?ar(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Ur(e)}),!0),n("scrollbarStyle","native",(function(e){qr(e),Ur(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=di(e.options.gutters,t),mi(e)}),!0),n("firstLineNumber",1,mi,!0),n("lineNumberFormatter",(function(e){return e}),mi,!0),n("showCursorWhenSelecting",!1,vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(Er(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Ea),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vr,!0),n("singleCursorHeightPerLine",!0,vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Di,!0),n("addModeClass",!1,Di,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Di,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(Ca),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,i=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ei(this,t[e])(this,n,i),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Go(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ti((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,i=n(t);r<e.length&&n(e[r])<=i;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,pr(this)})),removeOverlay:ti((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void pr(this)}})),indentLine:ti((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),Xe(this.doc,e)&&Pa(this,e,t,n)})),indentSelection:ti((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var i=t[r];if(i.empty())i.head.line>n&&(Pa(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&Dr(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var c=s;c<n;++c)Pa(this,c,e);var l=this.doc.sel.ranges;0==o.ch&&t.length==l.length&&l[r].from().ch>0&&Gi(this.doc,r,new ki(o,l[r].to()),$)}}})),getTokenAt:function(e,t){return bt(this,e,t)},getLineTokens:function(e,t){return bt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=st(this.doc,e);var t,n=ft(this,We(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]<o)){t=n[2*a+2];break}r=a+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var i=n[t],o=this.getModeAt(e);if("string"==typeof o[t])i[o[t]]&&r.push(i[o[t]]);else if(o[t])for(var a=0;a<o[t].length;a++){var s=i[o[t][a]];s&&r.push(s)}else o.helperType&&i[o.helperType]?r.push(i[o.helperType]):i[o.name]&&r.push(i[o.name]);for(var c=0;c<i._global.length;c++){var l=i._global[c];l.pred(o,this)&&-1==z(r,l.val)&&r.push(l.val)}return r},getStateAfter:function(e,t){var n=this.doc;return dt(this,(e=at(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Qn(this,null==e?n.head:"object"==typeof e?st(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Wn(this,st(this.doc,e),t||"page")},coordsChar:function(e,t){return Gn(this,(e=Hn(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Hn(this,{top:e,left:0},t||"page").top,Je(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),r=We(this.doc,e)}else r=e;return qn(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-Vt(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ir(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o,a,s,c=this.display,l=(e=Qn(this,st(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),c.sizer.appendChild(t),"over"==r)l=e.top;else if("above"==r||"near"==r){var p=Math.max(c.wrapper.clientHeight,this.doc.height),f=Math.max(c.sizer.clientWidth,c.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>p)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=p&&(l=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(u=c.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?u=0:"middle"==i&&(u=(c.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(o=this,a={left:u,top:l,right:u+t.offsetWidth,bottom:l+t.offsetHeight},null!=(s=Pr(o,a)).scrollTop&&Lr(o,s.scrollTop),null!=s.scrollLeft&&Fr(o,s.scrollLeft))},triggerOnKeyDown:ti(ua),triggerOnKeyPress:ti(fa),triggerOnKeyUp:pa,triggerOnMouseDown:ti(va),execCommand:function(e){if(ta.hasOwnProperty(e))return ta[e].call(null,this)},triggerElectric:ti((function(e){Ra(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=st(this.doc,e),a=0;a<t&&!(o=Ma(this.doc,o,i,n,r)).hitSide;++a);return o},moveH:ti((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ma(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),q)})),deleteH:ti((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):Jo(this,(function(n){var i=Ma(r,n.head,e,t,!1);return e<0?{from:i,to:n.head}:{from:n.head,to:i}}))})),findPosV:function(e,t,n,r){var i=1,o=r;t<0&&(i=-1,t=-t);for(var a=st(this.doc,e),s=0;s<t;++s){var c=Qn(this,a,"div");if(null==o?o=c.left:c.left=o,(a=Ba(this,c,i,n)).hitSide)break}return a},moveV:ti((function(e,t){var n=this,r=this.doc,i=[],o=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(a){if(o)return e<0?a.from():a.to();var s=Qn(n,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var c=Ba(n,s,e,t);return"page"==t&&a==r.sel.primary()&&Ar(n,Wn(n,c,"div").top-s.top),c}),q),i.length)for(var a=0;a<r.sel.ranges.length;a++)r.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(e){var t=We(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var i=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var o=t.charAt(n),a=ee(o,i)?function(e){return ee(e,i)}:/\s/.test(o)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&a(t.charAt(n-1));)--n;for(;r<t.length&&a(t.charAt(r));)++r}return new ki(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):S(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==T()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ti((function(e,t){Tr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Sn(this)-this.display.barHeight,width:e.scrollWidth-Sn(this)-this.display.barWidth,clientHeight:_n(this),clientWidth:Cn(this)}},scrollIntoView:ti((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Ir(e),e.curOp.scrollToPos=t}(this,e):Rr(this,e.from,e.to,e.margin)})),setSize:ti((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Bn(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,i,"widget");break}++i})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return Zr(this,e)},startOperation:function(){return Wr(this)},endOperation:function(){return Qr(this)},refresh:ti((function(){var e=this.display.cachedTextHeight;pr(this),this.curOp.forceUpdate=!0,zn(this),Tr(this,this.doc.scrollLeft,this.doc.scrollTop),li(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&cr(this),he(this,"refresh",this)})),swapDoc:ti((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Li(this,e),zn(this),this.display.input.reset(),Tr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,cn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}(Ca);var Wa="iter insert remove copy getEditor constructor".split(" ");for(var Qa in Do.prototype)Do.prototype.hasOwnProperty(Qa)&&z(Wa,Qa)<0&&(Ca.prototype[Qa]=function(e){return function(){return e.apply(this.doc,arguments)}}(Do.prototype[Qa]));return be(Do),Ca.inputStyles={textarea:Ha,contenteditable:za},Ca.defineMode=function(e){Ca.defaults.mode||"null"==e||(Ca.defaults.mode=e),Fe.apply(this,arguments)},Ca.defineMIME=function(e,t){Ne[e]=t},Ca.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Ca.defineMIME("text/plain","null"),Ca.defineExtension=function(e,t){Ca.prototype[e]=t},Ca.defineDocExtension=function(e,t){Do.prototype[e]=t},Ca.fromTextArea=function(e,t){if((t=t?F(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=T();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(pe(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(de(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Ca((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s},function(e){e.off=de,e.on=pe,e.wheelEventPixels=xi,e.Doc=Do,e.splitLines=De,e.countColumn=M,e.findColumn=H,e.isWordChar=Z,e.Pass=U,e.signal=he,e.Line=Wt,e.changeEnd=Si,e.scrollbarModel=Vr,e.Pos=et,e.cmpPos=tt,e.modes=Le,e.mimeModes=Ne,e.resolveMode=Me,e.getMode=Be,e.modeExtensions=ze,e.extendMode=Ue,e.copyState=$e,e.startState=qe,e.innerMode=Ve,e.commands=ta,e.keyMap=Vo,e.keyName=Ko,e.isModifierKey=Qo,e.lookupKey=Wo,e.normalizeKeyMap=Ho,e.StringStream=He,e.SharedTextMarker=Co,e.TextMarker=Eo,e.LineWidget=Oo,e.e_preventDefault=ye,e.e_stopPropagation=xe,e.e_stop=Oe,e.addClass=I,e.contains=D,e.rmClass=S,e.keyNames=Bo}(Ca),Ca.version="5.61.1",Ca}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r,i,o,a=n(1),s=n(2),c=Object(s.g)(r||(r=Object(a.f)(["\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0);\n }\n"],["\n 0% {\n transform: translateY(-10px);\n }\n 100% {\n transform: translateY(0);\n }\n"]))),l=Object(s.d)(i||(i=Object(a.f)(["\n animation: "," 0.2s;\n"],["\n animation: "," 0.2s;\n"])),c),u=s.e.div(o||(o=Object(a.f)(["\n ",";\n ",";\n\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n background-color: #fff;\n"],["\n ",";\n ",";\n\n border-top-left-radius: ",";\n border-top-right-radius: ",";\n border-bottom-right-radius: ",";\n border-bottom-left-radius: ",";\n background-color: #fff;\n"])),(function(e){return e.animate&&l}),(function(e){return e.hidden&&"visibility: hidden"}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.components.panels.borderRadius}))},function(e,t,n){e.exports=n(939)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="data-section-id"},function(e,t,n){var r=n(38),i=n(379),o=n(91),a=n(380),s=n(386),c=n(703),l=i("wks"),u=r.Symbol,p=c?u:u&&u.withoutSetter||a;e.exports=function(e){return o(l,e)&&(s||"string"==typeof l[e])||(s&&o(u,e)?l[e]=u[e]:l[e]=p("Symbol."+e)),l[e]}},function(e,t,n){var r=n(80),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";n.d(t,"d",(function(){return xe})),n.d(t,"l",(function(){return Pe})),n.d(t,"n",(function(){return it})),n.d(t,"a",(function(){return ot.a})),n.d(t,"p",(function(){return Qe})),n.d(t,"g",(function(){return Ke})),n.d(t,"i",(function(){return qe})),n.d(t,"b",(function(){return Me})),n.d(t,"f",(function(){return $e})),n.d(t,"j",(function(){return He})),n.d(t,"k",(function(){return Le})),n.d(t,"o",(function(){return Oe.b})),n.d(t,"h",(function(){return Oe.a})),n.d(t,"c",(function(){return nt})),n.d(t,"m",(function(){return ct})),n.d(t,"e",(function(){return pt}));var r=n(1),i=n(19),o=n(5),a=n(231),s={exports:{}};function c(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}s.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:c,changeDefaults:function(e){s.exports.defaults=e}};const l=/[&<>"']/,u=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,f=/[<>"']|&(?!#?\w+;)/g,d={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},h=e=>d[e];const m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function v(e){return e.replace(m,(e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):"")}const g=/(^|[^\[])\^/g;const b=/[^\w:]/g,y=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;const x={},w=/^[^:]+:\/*[^/]*$/,O=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function j(e,t){x[" "+e]||(w.test(e)?x[" "+e]=e+"/":x[" "+e]=E(e,"/",!0));const n=-1===(e=x[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(O,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(k,"$1")+t:e+t}function E(e,t,n){const r=e.length;if(0===r)return"";let i=0;for(;i<r;){const o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.substr(0,r-i)}var S={escape:function(e,t){if(t){if(l.test(e))return e.replace(u,h)}else if(p.test(e))return e.replace(f,h);return e},unescape:v,edit:function(e,t){e=e.source||e,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(g,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n},cleanUrl:function(e,t,n){if(e){let e;try{e=decodeURIComponent(v(n)).replace(b,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!y.test(n)&&(n=j(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n},resolveUrl:j,noopTest:{exec:function(){}},merge:function(e){let t,n,r=1;for(;r<arguments.length;r++)for(n in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},splitCells:function(e,t){const n=e.replace(/\|/g,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n},rtrim:E,findClosingBracket:function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,i=0;for(;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return-1},checkSanitizeDeprecation:function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")},repeatString:function(e,t){if(t<1)return"";let n="";for(;t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}};const{defaults:C}=s.exports,{rtrim:_,splitCells:P,escape:A,findClosingBracket:D}=S;function T(e,t,n,r){const i=t.href,o=t.title?A(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a,[])};return r.state.inLink=!1,e}return{type:"image",raw:n,href:i,title:o,text:A(a)}}var I=class{constructor(e){this.options=e||C}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:_(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map(e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e}).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim():t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=_(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,i,o,a,s,c,l,u,p,f=t[1].trim();const d=f.length>1,h={type:"list",raw:"",ordered:d,start:d?+f.slice(0,-1):"",loose:!1,items:[]};f=d?"\\d{1,9}\\"+f.slice(-1):"\\"+f,this.options.pedantic&&(f=d?f:"[*+-]");const m=new RegExp(`^( {0,3}${f})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=m.exec(e));){u=t[2].split("\n"),this.options.pedantic?(o=2,p=u[0].trimLeft()):(o=t[2].search(/[^ ]/),o=t[1].length+(o>4?1:o),p=u[0].slice(o-t[1].length)),s=!1,n=t[0],!u[0]&&/^ *$/.test(u[1])&&(n=t[1]+u.slice(0,2).join("\n")+"\n",h.loose=!0,u=[]);const f=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(a=1;a<u.length;a++){if(l=u[a],this.options.pedantic&&(l=l.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),f.test(l)){n=t[1]+u.slice(0,a).join("\n")+"\n";break}if(s){if(!(l.search(/[^ ]/)>=o)&&l.trim()){n=t[1]+u.slice(0,a).join("\n")+"\n";break}p+="\n"+l.slice(o)}else l.trim()||(s=!0),l.search(/[^ ]/)>=o?p+="\n"+l.slice(o):p+="\n"+l}h.loose||(c?h.loose=!0:/\n *\n *$/.test(n)&&(c=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p),r&&(i="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,""))),h.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:p}),h.raw+=n,e=e.slice(n.length)}h.items[h.items.length-1].raw=n.trimRight(),h.items[h.items.length-1].text=p.trimRight(),h.raw=h.raw.trimRight();const v=h.items.length;for(a=0;a<v;a++)this.lexer.state.top=!1,h.items[a].tokens=this.lexer.blockTokens(h.items[a].text,[]),h.items[a].tokens.some(e=>"space"===e.type)&&(h.loose=!0,h.items[a].loose=!0);return h}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:P(t[1]).map(e=>({text:e})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,i,o,a=e.align.length;for(n=0;n<a;n++)/^ *-+: *$/.test(e.align[n])?e.align[n]="right":/^ *:-+: *$/.test(e.align[n])?e.align[n]="center":/^ *:-+ *$/.test(e.align[n])?e.align[n]="left":e.align[n]=null;for(a=e.rows.length,n=0;n<a;n++)e.rows[n]=P(e.rows[n],e.header.length).map(e=>({text:e}));for(a=e.header.length,r=0;r<a;r++)e.header[r].tokens=[],this.lexer.inlineTokens(e.header[r].text,e.header[r].tokens);for(a=e.rows.length,r=0;r<a;r++)for(o=e.rows[r],i=0;i<o.length;i++)o[i].tokens=[],this.lexer.inlineTokens(o[i].text,o[i].tokens);return e}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t){const e={type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const e={type:"paragraph",raw:t[0],text:"\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}text(e){const t=this.rules.block.text.exec(e);if(t){const e={type:"text",raw:t[0],text:t[0],tokens:[]};return this.lexer.inline(e.text,e.tokens),e}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:A(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):A(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;const t=_(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=D(t[2],"()");if(e>-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(n=this.options.pedantic&&!/>$/.test(e)?n.slice(1):n.slice(1,-1)),T(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return T(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let i,o,a=n,s=0;const c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=c.exec(t));){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(o=i.length,r[3]||r[4]){a+=o;continue}if((r[5]||r[6])&&n%3&&!((n+o)%3)){s+=o;continue}if(a-=o,a>0)continue;if(o=Math.min(o,o+a+s),Math.min(n,o)%2){const t=e.slice(1,n+r.index+o);return{type:"em",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+r.index+o-1);return{type:"strong",raw:e.slice(0,n+r.index+o+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=A(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=A(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=A(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=A(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=A(n[0]),r="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):A(n[0]):n[0]:A(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}};const{noopTest:R,edit:L,merge:N}=S,F={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:R,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};F.def=L(F.def).replace("label",F._label).replace("title",F._title).getRegex(),F.bullet=/(?:[*+-]|\d{1,9}[.)])/,F.listItemStart=L(/^( *)(bull) */).replace("bull",F.bullet).getRegex(),F.list=L(F.list).replace(/bull/g,F.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+F.def.source+")").getRegex(),F._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",F._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,F.html=L(F.html,"i").replace("comment",F._comment).replace("tag",F._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F.paragraph=L(F._paragraph).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.blockquote=L(F.blockquote).replace("paragraph",F.paragraph).getRegex(),F.normal=N({},F),F.gfm=N({},F.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),F.gfm.table=L(F.gfm.table).replace("hr",F.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",F._tag).getRegex(),F.pedantic=N({},F.normal,{html:L("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",F._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:R,paragraph:L(F.normal._paragraph).replace("hr",F.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",F.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const M={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:R,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:R,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/,_punctuation:"!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~"};M.punctuation=L(M.punctuation).replace(/punctuation/g,M._punctuation).getRegex(),M.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,M.escapedEmSt=/\\\*|\\_/g,M._comment=L(F._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),M.emStrong.lDelim=L(M.emStrong.lDelim).replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimAst=L(M.emStrong.rDelimAst,"g").replace(/punct/g,M._punctuation).getRegex(),M.emStrong.rDelimUnd=L(M.emStrong.rDelimUnd,"g").replace(/punct/g,M._punctuation).getRegex(),M._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,M._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,M._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,M.autolink=L(M.autolink).replace("scheme",M._scheme).replace("email",M._email).getRegex(),M._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,M.tag=L(M.tag).replace("comment",M._comment).replace("attribute",M._attribute).getRegex(),M._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,M._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,M._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,M.link=L(M.link).replace("label",M._label).replace("href",M._href).replace("title",M._title).getRegex(),M.reflink=L(M.reflink).replace("label",M._label).getRegex(),M.reflinkSearch=L(M.reflinkSearch,"g").replace("reflink",M.reflink).replace("nolink",M.nolink).getRegex(),M.normal=N({},M),M.pedantic=N({},M.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:L(/^!?\[(label)\]\((.*?)\)/).replace("label",M._label).getRegex(),reflink:L(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",M._label).getRegex()}),M.gfm=N({},M.normal,{escape:L(M.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),M.gfm.url=L(M.gfm.url,"i").replace("email",M.gfm._extended_email).getRegex(),M.breaks=N({},M.gfm,{br:L(M.br).replace("{2,}","*").getRegex(),text:L(M.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var B={block:F,inline:M};const z=I,{defaults:U}=s.exports,{block:$,inline:V}=B,{repeatString:q}=S;function H(e){return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function W(e){let t,n,r="";const i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}const{defaults:Q}=s.exports,{cleanUrl:Y,escape:K}=S;var G=class{constructor(e){this.options=e||Q}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+K(r,!0)+'">'+(n?e:K(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:K(e,!0))+"</code></pre>\n"}blockquote(e){return"<blockquote>\n"+e+"</blockquote>\n"}html(e){return e}heading(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+this.options.headerPrefix+r.slug(n)+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"}hr(){return this.options.xhtml?"<hr/>\n":"<hr>\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"}listitem(e){return"<li>"+e+"</li>\n"}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return"<p>"+e+"</p>\n"}table(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"}tablerow(e){return"<tr>\n"+e+"</tr>\n"}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"}strong(e){return"<strong>"+e+"</strong>"}em(e){return"<em>"+e+"</em>"}codespan(e){return"<code>"+e+"</code>"}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return"<del>"+e+"</del>"}link(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<a href="'+K(e)+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>",r}image(e,t,n){if(null===(e=Y(this.options.sanitize,this.options.baseUrl,e)))return n;let r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">",r}text(e){return e}},J=class{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}},X=class{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}};const Z=G,ee=J,te=X,{defaults:ne}=s.exports,{unescape:re}=S;const ie=class e{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||U,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:$.normal,inline:V.normal};this.options.pedantic?(t.block=$.pedantic,t.inline=V.pedantic):this.options.gfm&&(t.block=$.gfm,this.options.breaks?t.inline=V.breaks:t.inline=V.gfm),this.tokenizer.rules=t}static get rules(){return{block:$,inline:V}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){let t;for(e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){let n,r,i,o;for(this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),r=t[t.length-1],!r||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else{if(i=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startBlock.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,r,i,o,a,s,c=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(c));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(c=c.slice(0,o.index)+"["+q("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(c));)c=c.slice(0,o.index)+"["+q("a",o[0].length-2)+"]"+c.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(c));)c=c.slice(0,o.index)+"++"+c.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),r=t[t.length-1],r&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,c,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,W))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,W))){if(i=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let r;this.options.extensions.startInline.forEach((function(e){r=e.call({lexer:this},n),"number"==typeof r&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i,H))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,r=t[t.length-1],r&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(n.raw.length),t.push(n);return t}},oe=class e{constructor(e){this.options=e||ne,this.options.renderer=this.options.renderer||new Z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ee,this.slugger=new te}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n,r,i,o,a,s,c,l,u,p,f,d,h,m,v,g,b,y,x,w="";const O=e.length;for(n=0;n<O;n++)if(p=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[p.type]&&(x=this.options.extensions.renderers[p.type].call({parser:this},p),!1!==x||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(p.type)))w+=x||"";else switch(p.type){case"space":continue;case"hr":w+=this.renderer.hr();continue;case"heading":w+=this.renderer.heading(this.parseInline(p.tokens),p.depth,re(this.parseInline(p.tokens,this.textRenderer)),this.slugger);continue;case"code":w+=this.renderer.code(p.text,p.lang,p.escaped);continue;case"table":for(l="",c="",o=p.header.length,r=0;r<o;r++)c+=this.renderer.tablecell(this.parseInline(p.header[r].tokens),{header:!0,align:p.align[r]});for(l+=this.renderer.tablerow(c),u="",o=p.rows.length,r=0;r<o;r++){for(s=p.rows[r],c="",a=s.length,i=0;i<a;i++)c+=this.renderer.tablecell(this.parseInline(s[i].tokens),{header:!1,align:p.align[i]});u+=this.renderer.tablerow(c)}w+=this.renderer.table(l,u);continue;case"blockquote":u=this.parse(p.tokens),w+=this.renderer.blockquote(u);continue;case"list":for(f=p.ordered,d=p.start,h=p.loose,o=p.items.length,u="",r=0;r<o;r++)v=p.items[r],g=v.checked,b=v.task,m="",v.task&&(y=this.renderer.checkbox(g),h?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=y+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=y+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:y}):m+=y),m+=this.parse(v.tokens,h),u+=this.renderer.listitem(m,b,g);w+=this.renderer.list(u,f,d);continue;case"html":w+=this.renderer.html(p.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(p.tokens));continue;case"text":for(u=p.tokens?this.parseInline(p.tokens):p.text;n+1<O&&"text"===e[n+1].type;)p=e[++n],u+="\n"+(p.tokens?this.parseInline(p.tokens):p.text);w+=t?this.renderer.paragraph(u):u;continue;default:{const e='Token with "'+p.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return w}parseInline(e,t){t=t||this.renderer;let n,r,i,o="";const a=e.length;for(n=0;n<a;n++)if(r=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(i=this.options.extensions.renderers[r.type].call({parser:this},r),!1!==i||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type)))o+=i||"";else switch(r.type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:{const e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(e);throw new Error(e)}}return o}},ae=I,se=G,ce=J,le=X,{merge:ue,checkSanitizeDeprecation:pe,escape:fe}=S,{getDefaults:de,changeDefaults:he,defaults:me}=s.exports;function ve(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"==typeof t&&(n=t,t=null),t=ue({},ve.defaults,t||{}),pe(t),n){const r=t.highlight;let i;try{i=ie.lex(e,t)}catch(e){return n(e)}const o=function(e){let o;if(!e)try{t.walkTokens&&ve.walkTokens(i,t.walkTokens),o=oe.parse(i,t)}catch(t){e=t}return t.highlight=r,e?n(e):n(null,o)};if(!r||r.length<3)return o();if(delete t.highlight,!i.length)return o();let a=0;return ve.walkTokens(i,(function(e){"code"===e.type&&(a++,setTimeout(()=>{r(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),a--,0===a&&o()}))},0))})),void(0===a&&o())}try{const n=ie.lex(e,t);return t.walkTokens&&ve.walkTokens(n,t.walkTokens),oe.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+fe(e.message+"",!0)+"</pre>";throw e}}ve.options=ve.setOptions=function(e){return ue(ve.defaults,e),he(ve.defaults),ve},ve.getDefaults=de,ve.defaults=me,ve.use=function(...e){const t=ue({},...e),n=ve.defaults.extensions||{renderers:{},childTokens:{}};let r;e.forEach(e=>{if(e.extensions&&(r=!0,e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let r=e.renderer.apply(this,n);return!1===r&&(r=t.apply(this,n)),r}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)})),e.renderer){const n=ve.defaults.renderer||new se;for(const t in e.renderer){const r=n[t];n[t]=(...i)=>{let o=e.renderer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.renderer=n}if(e.tokenizer){const n=ve.defaults.tokenizer||new ae;for(const t in e.tokenizer){const r=n[t];n[t]=(...i)=>{let o=e.tokenizer[t].apply(n,i);return!1===o&&(o=r.apply(n,i)),o}}t.tokenizer=n}if(e.walkTokens){const n=ve.defaults.walkTokens;t.walkTokens=t=>{e.walkTokens.call(this,t),n&&n(t)}}r&&(t.extensions=n),ve.setOptions(t)})},ve.walkTokens=function(e,t){for(const n of e)switch(t(n),n.type){case"table":for(const e of n.header)ve.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)ve.walkTokens(n.tokens,t);break;case"list":ve.walkTokens(n.items,t);break;default:ve.defaults.extensions&&ve.defaults.extensions.childTokens&&ve.defaults.extensions.childTokens[n.type]?ve.defaults.extensions.childTokens[n.type].forEach((function(e){ve.walkTokens(n[e],t)})):n.tokens&&ve.walkTokens(n.tokens,t)}},ve.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");t=ue({},ve.defaults,t||{}),pe(t);try{const n=ie.lexInline(e,t);return t.walkTokens&&ve.walkTokens(n,t.walkTokens),oe.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+fe(e.message+"",!0)+"</pre>";throw e}},ve.Parser=oe,ve.parser=oe.parse,ve.Renderer=se,ve.TextRenderer=ce,ve.Lexer=ie,ve.lexer=ie.lex,ve.Tokenizer=ae,ve.Slugger=le,ve.parse=ve;var ge=ve,be=new ge.Renderer;ge.setOptions({renderer:be,highlight:function(e,t){return Object(o.t)(e,t)}});var ye="(?:^ {0,3}\x3c!-- ReDoc-Inject:\\s+?<({component}).*?/?>\\s+?--\x3e\\s*$|(?:^ {0,3}<({component})([\\s\\S]*?)>([\\s\\S]*?)</\\2>|^ {0,3}<({component})([\\s\\S]*?)(?:/>|\\n{2,})))";var xe=function(){function e(e){var t=this;Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"headings",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentTopHeading",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headingEnhanceRenderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"originalHeadingRule",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headingRule",{enumerable:!0,configurable:!0,writable:!0,value:function(e,n,r,i){return 1===n?t.currentTopHeading=t.saveHeading(e,n):2===n&&t.saveHeading(e,n,t.currentTopHeading&&t.currentTopHeading.items,t.currentTopHeading&&t.currentTopHeading.id),t.originalHeadingRule(e,n,r,i)}}),this.headingEnhanceRenderer=new ge.Renderer,this.parser=new ge.Parser,this.originalHeadingRule=this.headingEnhanceRenderer.heading.bind(this.headingEnhanceRenderer),this.headingEnhanceRenderer.heading=this.headingRule}return Object.defineProperty(e,"containsComponent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return new RegExp(ye.replace(/{component}/g,t),"gmi").test(e)}}),Object.defineProperty(e,"getTextBeforeHading",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=e.search(new RegExp("^##?\\s+"+t,"m"));return n>-1?e.substring(0,n):e}}),Object.defineProperty(e.prototype,"saveHeading",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){void 0===n&&(n=this.headings),e=Object(o.T)(e);var i={id:r?r+"/"+Object(o.N)(e):"section/"+Object(o.N)(e),name:e,level:t,items:[]};return n.push(i),i}}),Object.defineProperty(e.prototype,"flattenHeadings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e)return[];for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n];t.push(i),t.push.apply(t,this.flattenHeadings(i.items))}return t}}),Object.defineProperty(e.prototype,"attachHeadingsDescriptions",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=function(e){return new RegExp("##?\\s+"+e.name.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))},n=this.flattenHeadings(this.headings);if(!(n.length<1)){for(var r=n[0],i=t(r),o=e.search(i),a=1;a<n.length;a++){var s=n[a],c=t(s),l=e.substr(o+1).search(c)+o+1;r.description=e.substring(o,l).replace(i,"").trim(),r=s,i=c,o=l}r.description=e.substring(o).replace(i,"").trim()}}}),Object.defineProperty(e.prototype,"renderMd",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=!1);var n=t?{renderer:this.headingEnhanceRenderer}:void 0;return ge(e.toString(),n)}}),Object.defineProperty(e.prototype,"extractHeadings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.renderMd(e,!0),this.attachHeadingsDescriptions(e);var t=this.headings;return this.headings=[],t}}),Object.defineProperty(e.prototype,"renderMdWithComponents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.options&&this.options.allowedMdComponents;if(!t||0===Object.keys(t).length)return[this.renderMd(e)];for(var n=Object.keys(t).join("|"),i=new RegExp(ye.replace(/{component}/g,n),"mig"),o=[],a=[],s=i.exec(e),c=0;s;){o.push(e.substring(c,s.index)),c=i.lastIndex;var l=t[s[1]||s[2]||s[5]],u=s[3]||s[6],p=s[4];l&&a.push({component:l.component,propsSelector:l.propsSelector,props:Object(r.a)(Object(r.a)(Object(r.a)({},we(u)),l.props),{children:p})}),s=i.exec(e)}o.push(e.substring(c));for(var f=[],d=0;d<o.length;d++){var h=o[d];h&&f.push(this.renderMd(h)),a[d]&&f.push(a[d])}return f}}),e}();function we(e){if(!e)return{};for(var t,n=/([\w-]+)\s*=\s*(?:{([^}]+?)}|"([^"]+?)")/gim,r={};null!==(t=n.exec(e));)if(t[3])r[t[1]]=t[3];else if(t[2]){var i=void 0;try{i=JSON.parse(t[2])}catch(e){}r[t[1]]=i}return r}var Oe=n(106),ke=function(){function e(){Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:{}})}return Object.defineProperty(e.prototype,"reset",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._counter={}}}),Object.defineProperty(e.prototype,"visit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._counter[e]=this._counter[e]?this._counter[e]+1:1}}),Object.defineProperty(e.prototype,"exit",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this._counter[e]=this._counter[e]&&this._counter[e]-1}}),Object.defineProperty(e.prototype,"visited",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!this._counter[e]}}),e}(),je=function(){function e(e,t,n){var r=this;void 0===n&&(n=new Oe.a({})),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"definitionUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"definition",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"hasSecurityDefinitions",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_refCounter",{enumerable:!0,configurable:!0,writable:!0,value:new ke}),Object.defineProperty(this,"allowMergeRefs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"byRef",{enumerable:!0,configurable:!0,writable:!0,value:function(e){var t;if(r.definition){"#"!==e.charAt(0)&&(e="#"+e),e=decodeURIComponent(e);try{t=a.a.get(r.definition,e)}catch(e){}return t||{}}}}),this.validate(e),this.preprocess(e),this.definition=e,this.hasSecurityDefinitions=this.containsSecurity(e),this.allowMergeRefs=e.openapi.startsWith("3.1");var s=o.a?window.location.href:"";"string"==typeof t&&(this.definitionUrl=Object(i.resolve)(s,t))}return Object.defineProperty(e.prototype,"validate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(void 0===e.openapi)throw new Error("Document must be valid OpenAPI 3.0.0 definition")}}),Object.defineProperty(e.prototype,"containsSecurity",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=e.info&&e.info.description||"";return xe.containsComponent(t,o.d)||xe.containsComponent(t,o.e)}}),Object.defineProperty(e.prototype,"preprocess",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.info&&this.options.hideInfoDescription)e.info.description="";else if(!this.options.noAutoAuth&&e.info&&e.components&&e.components.securitySchemes){var t=e.info.description||"";if(!this.containsSecurity(e)){var n="\x3c!-- ReDoc-Inject: <"+o.d+"> --\x3e";e.info.description=Object(o.i)(t,"Authentication",n)}}}}),Object.defineProperty(e.prototype,"isRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return!!e&&(void 0!==e.$ref&&null!==e.$ref)}}),Object.defineProperty(e.prototype,"resetVisited",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._refCounter=new ke}}),Object.defineProperty(e.prototype,"exitRef",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.isRef(e)&&this._refCounter.exit(e.$ref)}}),Object.defineProperty(e.prototype,"deref",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=!1),this.isRef(e)){var r=Object(o.q)(e.$ref);if(r&&this.options.ignoreNamedSchemas.has(r))return{type:"object",title:r};var i=this.byRef(e.$ref),a=this._refCounter.visited(e.$ref);if(this._refCounter.visit(e.$ref),a&&!t)return Object.assign({},i,{"x-circular-ref":!0});var s=i;return this.isRef(i)&&(s=this.deref(i,!1,n),this.exitRef(i)),this.allowMergeRefs?this.mergeRefs(e,i,n):s}return e}}),Object.defineProperty(e.prototype,"mergeRefs",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){e.$ref;var i=Object(r.g)(e,["$ref"]),o=Object.keys(i);return 0===o.length?t:n&&o.some((function(e){return"description"!==e&&"title"!==e&&"externalDocs"!==e}))?{allOf:[t,i]}:Object(r.a)(Object(r.a)({},t),i)}}),Object.defineProperty(e.prototype,"shallowDeref",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(this.isRef(e)){var t=Object(o.q)(e.$ref);return t&&this.options.ignoreNamedSchemas.has(t)?{type:"object",title:t}:this.byRef(e.$ref)}return e}}),Object.defineProperty(e.prototype,"mergeAllOf",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,i){var a=this;if(void 0===n&&(n=!1),void 0===i&&(i=new Set),t&&i.add(t),void 0===(e=this.hoistOneOfs(e)).allOf)return e;var s=Object(r.a)(Object(r.a)({},e),{allOf:void 0,parentRefs:[],title:e.title||Object(o.q)(t)});void 0!==s.properties&&"object"==typeof s.properties&&(s.properties=Object(r.a)({},s.properties)),void 0!==s.items&&"object"==typeof s.items&&(s.items=Object(r.a)({},s.items));for(var c=0,l=e.allOf.map((function(e){var t;if(!(e&&e.$ref&&i.has(e.$ref))){var r=a.deref(e,n,!0),o=e.$ref||void 0,c=a.mergeAllOf(r,o,n,i);return null===(t=s.parentRefs)||void 0===t||t.push.apply(t,c.parentRefs||[]),{$ref:o,schema:c}}})).filter((function(e){return void 0!==e}));c<l.length;c++){var u,p=l[c],f=p.$ref,d=p.schema;if(s.type!==d.type&&void 0!==s.type&&void 0!==d.type&&console.warn('Incompatible types in allOf at "'+t+'": "'+s.type+'" and "'+d.type+'"'),void 0!==d.type&&(s.type=d.type),void 0!==d.properties)for(var h in s.properties=s.properties||{},d.properties)if(s.properties[h]){var m=this.mergeAllOf({allOf:[s.properties[h],d.properties[h]]},t+"/properties/"+h);s.properties[h]=m,this.exitParents(m)}else s.properties[h]=d.properties[h];if(void 0!==d.items&&(s.items=s.items||{},s.items=this.mergeAllOf({allOf:[s.items,d.items]},t+"/items")),void 0!==d.required&&(s.required=(s.required||[]).concat(d.required)),s=Object(r.a)(Object(r.a)({},d),s),f)null===(u=s.parentRefs)||void 0===u||u.push(f),void 0===s.title&&Object(o.x)(f)}return s}}),Object.defineProperty(e.prototype,"findDerived",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={},n=this.definition.components&&this.definition.components.schemas||{};for(var r in n){var i=this.deref(n[r]);void 0!==i.allOf&&i.allOf.find((function(t){return void 0!==t.$ref&&e.indexOf(t.$ref)>-1}))&&(t["#/components/schemas/"+r]=[i["x-discriminator-value"]||r])}return t}}),Object.defineProperty(e.prototype,"exitParents",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=0,n=e.parentRefs||[];t<n.length;t++){var r=n[t];this.exitRef({$ref:r})}}}),Object.defineProperty(e.prototype,"hoistOneOfs",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(void 0===e.allOf)return e;for(var n=e.allOf,i=function(e){var i=n[e];if(Array.isArray(i.oneOf)){var o=n.slice(0,e),a=n.slice(e+1);return{value:{oneOf:i.oneOf.map((function(e){var n=t.mergeAllOf({allOf:Object(r.h)(Object(r.h)(Object(r.h)([],o,!0),[e],!1),a,!0)});return t.exitParents(n),n}))}}}},o=0;o<n.length;o++){var a=i(o);if("object"==typeof a)return a.value}return e}}),e}(),Ee=n(28),Se=n(86),Ce=n.n(Se),_e="scroll",Pe=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_scrollParent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_emiter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_prevOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._scrollParent=o.a?window:void 0,this._emiter=new Ce.a,this.bind()}return Object.defineProperty(e.prototype,"bind",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._prevOffsetY=this.scrollY(),this._scrollParent&&this._scrollParent.addEventListener(_e,this.handleScroll)}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._scrollParent&&this._scrollParent.removeEventListener(_e,this.handleScroll),this._emiter.removeAllListeners(_e)}}),Object.defineProperty(e.prototype,"scrollY",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"undefined"!=typeof HTMLElement&&this._scrollParent instanceof HTMLElement?this._scrollParent.scrollTop:void 0!==this._scrollParent?this._scrollParent.pageYOffset:0}}),Object.defineProperty(e.prototype,"isElementBellow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null!==e)return e.getBoundingClientRect().top>this.options.scrollYOffset()}}),Object.defineProperty(e.prototype,"isElementAbove",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(null!==e){var t=e.getBoundingClientRect().top;return(t>0?Math.floor(t):Math.ceil(t))<=this.options.scrollYOffset()}}}),Object.defineProperty(e.prototype,"subscribe",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this._emiter.addListener(_e,e);return function(){return t.removeListener(_e,e)}}}),Object.defineProperty(e.prototype,"scrollIntoView",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){if(null!==e&&(e.scrollIntoView(t),this._scrollParent&&this._scrollParent.scrollBy)){var n=[0,Math.floor(this.options.scrollYOffset())],r=n[0],i=n[1];this._scrollParent.scrollBy(r,i)}}}),Object.defineProperty(e.prototype,"scrollIntoViewBySelector",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=Object(o.M)(e);this.scrollIntoView(n,t)}}),Object.defineProperty(e.prototype,"handleScroll",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.scrollY()-this._prevOffsetY>0;this._prevOffsetY=this.scrollY(),this._emiter.emit(_e,e)}}),Object(r.c)([Ee.bind,Object(o.g)(100)],e.prototype,"handleScroll",null),e}(),Ae=n(4),De=function(){function e(e,t,n){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"absoluteIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"depth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"level",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this),this.id=t.id||e+"/"+Object(o.N)(t.name),this.type=e,this.name=t["x-displayName"]||t.name,this.level=t.level||1,this.description=t.description||"";var r=t.items;r&&r.length&&(this.description=xe.getTextBeforeHading(this.description,r[0].name)),this.parent=n,this.externalDocs=t.externalDocs,"group"===this.type&&(this.expanded=!0)}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!0}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.parent&&this.parent.expand(),this.expanded=!0}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){"group"!==this.type&&(this.expanded=!1)}}),Object.defineProperty(e.prototype,"deactivate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!1}}),Object(r.c)([Ae.o],e.prototype,"active",void 0),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"activate",null),Object(r.c)([Ae.f],e.prototype,"expand",null),Object(r.c)([Ae.f],e.prototype,"collapse",null),Object(r.c)([Ae.f],e.prototype,"deactivate",null),e}(),Te=function(e,t){Object.defineProperty(this,"schemes",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var n=t.definition.components&&t.definition.components.securitySchemes||{};this.schemes=Object.keys(e||{}).map((function(i){var a=t.deref(n[i]),s=e[i]||[];if(a)return Object(r.a)(Object(r.a)({},a),{id:i,sectionId:o.f+i,scopes:s});console.warn("Non existing security scheme referenced: "+i+". Skipping")})).filter((function(e){return void 0!==e}))},Ie=function(){function e(e,t,n,i,a){Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object(Ae.n)(this),this.name=t;var s=e.deref(n);e.exitRef(n);for(var c=0,l=Object.keys(s);c<l.length;c++)for(var u=l[c],p=s[u],f=0,d=Object.keys(p).filter(o.z);f<d.length;f++){var h=d[f],m=p[h],v=new Ke(e,Object(r.a)(Object(r.a)({},m),{pathName:u,pointer:o.b.compile([i,t,u,h]),httpVerb:h,pathParameters:p.parameters||[],pathServers:p.servers}),void 0,a,!0);this.operations.push(v)}}return Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"toggle",null),e}(),Re=n(13),Le=function(){function e(e,t,n,r,i,a,s){void 0===i&&(i=!1),void 0===s&&(s={}),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"deps",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"pointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"displayType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"typePrefix",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"title",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isPrimitive",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isCircular",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"format",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"displayFormat",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nullable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deprecated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"example",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"enum",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"default",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"writeOnly",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"constraints",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oneOf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oneOfType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"discriminatorProp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeOneOf",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"rawSchema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"x-enumDescriptions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"const",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentEncoding",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentMediaType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this),this.pointer=t.$ref||n||"",this.rawSchema=e.shallowDeref(t),this.schema=e.mergeAllOf(this.rawSchema,this.pointer,i),this.init(e,i),e.exitParents(this.schema),r.showExtensions&&(this.extensions=Object(o.m)(this.schema,r.showExtensions))}return Object.defineProperty(e.prototype,"activateOneOf",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeOneOf=e}}),Object.defineProperty(e.prototype,"hasType",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.type===e||Array.isArray(this.type)&&this.type.includes(e)}}),Object.defineProperty(e.prototype,"fields",{get:function(){if(!this.isCircular)return!this._fields&&this.hasType("object")&&(this._fields=function(e,t,n,i,a,s){var c=t.properties||{},l=t.additionalProperties,u=t.default||{},p=Object.keys(c||[]).map((function(o){var l=c[o];l||(console.warn('Field "'+o+'" is invalid, skipping.\n Field must be an object but got '+typeof l+' at "'+n+'"'),l={});var p=void 0!==t.required&&t.required.indexOf(o)>-1;return new ze(e,{name:o,required:p,schema:Object(r.a)(Object(r.a)({},l),{default:void 0===l.default?u[o]:l.default})},n+"/properties/"+o,i,a,s)}));i.sortPropsAlphabetically&&(p=Object(o.R)(p,"name"));i.requiredPropsFirst&&(p=Object(o.S)(p,i.sortPropsAlphabetically?void 0:t.required));"object"!=typeof l&&!0!==l||p.push(new ze(e,{name:("object"==typeof l&&l["x-additionalPropertiesName"]||"property name").concat("*"),required:!1,schema:!0===l?{}:l,kind:"additionalProperties"},n+"/additionalProperties",i,a,s));return p}(this.parser,this.schema,this.pointer,this.options,this,this.deps)),this._fields},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasCircularParent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;if(this.parent){if(e.some((function(e){var n,r;if(!e)return!1;var i=t.parent;return(null==i?void 0:i.pointer)===e||(!(null==i||null===(n=i.schema.parentRefs)||void 0===n||null===(r=n.some)||void 0===r||!r.call(n,(function(t){return t===e})))||void 0)})))return!0;if(this.parent.hasCircularParent(e))return!0}return!1}}),Object.defineProperty(e.prototype,"init",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var i=this,a=this.schema;if(this.isCircular=a["x-circular-ref"]||this.hasCircularParent(Object(r.h)([this.pointer],this.schema.parentRefs||[],!0)),this.title=a.title||Object(o.x)(this.pointer)&&o.b.baseName(this.pointer)||"",this.description=a.description||"",this.type=a.type||Object(o.k)(a),this.format=a.format,this.enum=a.enum||[],this["x-enumDescriptions"]=a["x-enumDescriptions"],this.example=a.example,this.deprecated=!!a.deprecated,this.pattern=a.pattern,this.externalDocs=a.externalDocs,this.constraints=Object(o.u)(a),this.displayFormat=this.format,this.isPrimitive=Object(o.A)(a,this.type),this.default=a.default,this.readOnly=!!a.readOnly,this.writeOnly=!!a.writeOnly,this.const=a.const||"",this.contentEncoding=a.contentEncoding,this.contentMediaType=a.contentMediaType,(a.nullable||a["x-nullable"])&&(Array.isArray(this.type)&&!this.type.some((function(e){return null===e||"null"===e}))?this.type=Object(r.h)(Object(r.h)([],this.type,!0),["null"],!1):Array.isArray(this.type)||null===this.type&&"null"===this.type||(this.type=[this.type,"null"])),this.displayType=Array.isArray(this.type)?this.type.map((function(e){return null===e?"null":e})).join(" or "):this.type,!this.isCircular)if(n||void 0===Ne(a)){if(n&&Array.isArray(a.oneOf)&&a.oneOf.find((function(e){return e.$ref===i.pointer}))&&delete a.oneOf,void 0!==a.oneOf)return this.initOneOf(a.oneOf,t),this.oneOfType="One of",void(void 0!==a.anyOf&&console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf at "+this.pointer));if(void 0!==a.anyOf)return this.initOneOf(a.anyOf,t),void(this.oneOfType="Any of");if(this.hasType("array")&&a.items&&(this.items=new e(t,a.items,this.pointer+"/items",this.options,!1,this,this.deps),this.displayType=Object(o.L)(this.items.displayType),this.displayFormat=this.items.format,this.typePrefix=this.items.typePrefix+Object(Re.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["x-enumDescriptions"]=this.items["x-enumDescriptions"]),Array.isArray(this.type))){var s=this.type.filter((function(e){return"array"!==e}));s.length&&(this.displayType+=" or "+s.join(" or "))}this.enum.length&&this.options.sortEnumValuesAlphabetically&&this.enum.sort()}else this.initDiscriminator(a,t)}}),Object.defineProperty(e.prototype,"initOneOf",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var i,a,s=this;if(this.oneOf=t.map((function(t,i){var a=n.deref(t,!1,!0),c=n.mergeAllOf(a,s.pointer+"/oneOf/"+i),l=Object(o.x)(t.$ref)&&!c.title?o.b.baseName(t.$ref):""+(c.title||"")+(c.const&&JSON.stringify(c.const)||""),u=new e(n,Object(r.a)(Object(r.a)({},c),{title:l,allOf:[Object(r.a)(Object(r.a)({},s.schema),{oneOf:void 0,anyOf:void 0})]}),s.pointer+"/oneOf/"+i,s.options,!1,s.parent,Object(r.a)(Object(r.a)({},s.deps),{parentFieldFullPath:s.deps.parentFieldFullPath?s.deps.parentFieldFullPath+s.options.deepLinkSeparator+i:i.toString()}));return n.exitRef(t),n.exitParents(c),u})),this.options.simpleOneOfTypeLabel){var c=(i=this,a=new Set,function e(t){for(var n=0,r=t.oneOf||[];n<r.length;n++){var i=r[n];i.oneOf?e(i):i.type&&a.add(i.type)}}(i),Array.from(a.values()));this.displayType=c.join(" or ")}else this.displayType=this.oneOf.map((function(e){var t=e.typePrefix+(e.title?e.title+" ("+e.displayType+")":e.displayType);return t.indexOf(" or ")>-1&&(t="("+t+")"),t})).join(" or ")}}),Object.defineProperty(e.prototype,"initDiscriminator",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var i=this,a=Ne(t);this.discriminatorProp=null==a?void 0:a.propertyName;var s=n.findDerived(Object(r.h)(Object(r.h)([],t.parentRefs||[],!0),[this.pointer],!1));if(t.oneOf)for(var c=0,l=t.oneOf;c<l.length;c++){var u=l[c];if(void 0!==u.$ref){var p=o.b.baseName(u.$ref);s[u.$ref]=p}}var f=(null==a?void 0:a.mapping)||{},d=(null==a?void 0:a["x-explicitMappingOnly"])||!1;0===Object.keys(f).length&&(d=!1);var h={};for(var m in f){var v=f[m];Array.isArray(h[v])?h[v].push(m):h[v]=[m]}for(var g=d?Object(r.a)({},h):Object(r.a)(Object(r.a)({},s),h),b=[],y=0,x=Object.keys(g);y<x.length;y++){var w=g[v=x[y]];if(Array.isArray(w))for(var O=0,k=w;O<k.length;O++){var j=k[O];b.push({$ref:v,name:j})}else b.push({$ref:v,name:w})}var E=Object.keys(f);0!==E.length&&(b=b.sort((function(e,t){var n=E.indexOf(e.name),r=E.indexOf(t.name);return n<0&&r<0?e.name.localeCompare(t.name):n<0?1:r<0?-1:n-r}))),this.oneOf=b.map((function(t,o){var a=t.$ref,s=t.name,c=new e(n,n.byRef(a),a,i.options,!0,i.parent,Object(r.a)(Object(r.a)({},i.deps),{parentFieldFullPath:i.deps.parentFieldFullPath?i.deps.parentFieldFullPath+i.options.deepLinkSeparator+o:o.toString()}));return c.title=s,c}))}}),Object(r.c)([Ae.o],e.prototype,"activeOneOf",void 0),Object(r.c)([Ae.f],e.prototype,"activateOneOf",null),e}();function Ne(e){return e.discriminator||e["x-discriminator"]}var Fe={},Me=function(){function e(e,t,n,r){Object.defineProperty(this,"mime",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalValueUrl",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var a=e.deref(t);this.value=a.value,this.summary=a.summary,this.description=a.description,a.externalValue&&(this.externalValueUrl=Object(i.resolve)(e.definitionUrl||"",a.externalValue)),e.exitRef(t),Object(o.v)(n)&&this.value&&"object"==typeof this.value&&(this.value=Object(o.U)(this.value,r))}return Object.defineProperty(e.prototype,"getExternalValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.externalValueUrl?(this.externalValueUrl in Fe||(Fe[this.externalValueUrl]=fetch(this.externalValueUrl).then((function(t){return t.text().then((function(n){if(!t.ok)return Promise.reject(new Error(n));if(!Object(o.w)(e))return n;try{return JSON.parse(n)}catch(e){return n}}))}))),Fe[this.externalValueUrl]):Promise.resolve(void 0)}}),e}(),Be={path:{style:"simple",explode:!1},query:{style:"form",explode:!0},header:{style:"simple",explode:!1},cookie:{style:"form",explode:!0}},ze=function(){function e(e,t,n,i,a,s){var c;void 0===s&&(s={}),Object.defineProperty(this,"deps",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"example",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"examples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deprecated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"in",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"kind",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"explode",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"const",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"serializationMime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fieldFullPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this);var l=e.deref(t);this.kind=t.kind||"field",this.name=t.name||l.name,this.in=l.in,this.required=!!l.required;var u,p,f=l.schema,d="";if(!f&&l.in&&l.content&&(d=Object.keys(l.content)[0],f=l.content[d]&&l.content[d].schema),this.fieldFullPath=this.deps.parentFieldFullPath?this.deps.parentFieldFullPath+i.deepLinkSeparator+this.name:this.name,this.schema=new Le(e,f||{},n,i,!1,a,Object(r.a)(Object(r.a)({},s),{parentFieldFullPath:this.fieldFullPath,in:this.in})),this.description=void 0===l.description?this.schema.description||"":l.description,this.example=l.example||this.schema.example,void 0!==l.examples&&(this.examples=Object(o.E)(l.examples,(function(t,n){return new Me(e,t,n,l.encoding)}))),d)this.serializationMime=d;else if(l.style)this.style=l.style;else if(this.in){var h,m;this.style=null!==(h=null===(m=Be[this.in])||void 0===m?void 0:m.style)&&void 0!==h?h:"form"}void 0===l.explode&&this.in?this.explode=null===(u=null===(p=Be[this.in])||void 0===p?void 0:p.explode)||void 0===u||u:this.explode=!!l.explode;this.deprecated=void 0===l.deprecated?this.schema.deprecated:l.deprecated,e.exitRef(t),i.showExtensions&&(this.extensions=Object(o.m)(l,i.showExtensions)),this.const=(null===(c=this.schema)||void 0===c?void 0:c.const)||(null==l?void 0:l.const)||""}return Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!1}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!0}}),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"toggle",null),Object(r.c)([Ae.f],e.prototype,"collapse",null),Object(r.c)([Ae.f],e.prototype,"expand",null),e}(),Ue=n(108),$e=function(){function e(e,t,n,r,i,a){var s=void 0===a?{}:a,c=s.operation,l=s.type,u=s.response;Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"examples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"schema",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isRequestType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"onlyRequiredInSamples",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=t,this.operation=c,this.isRequestType=n,this.schema=r.schema&&new Le(e,r.schema,"",i,void 0,void 0,{operation:c,type:l,response:u}),this.onlyRequiredInSamples=i.onlyRequiredInSamples,void 0!==r.examples?this.examples=Object(o.E)(r.examples,(function(n){return new Me(e,n,t,r.encoding)})):void 0!==r.example?this.examples={default:new Me(e,{value:e.shallowDeref(r.example)},t,r.encoding)}:Object(o.w)(t)&&this.generateExample(e,r)}return Object.defineProperty(e.prototype,"generateExample",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n={skipReadOnly:this.isRequestType,skipWriteOnly:!this.isRequestType,skipNonRequired:this.isRequestType&&this.onlyRequiredInSamples,maxSampleDepth:this.options.generatedPayloadSamplesMaxDepth};if(this.schema&&this.schema.oneOf){this.examples={};for(var r=0,i=this.schema.oneOf;r<i.length;r++){var o=i[r],a=Ue.b(o.rawSchema,n,e.definition);this.schema.discriminatorProp&&"object"==typeof a&&a&&(a[this.schema.discriminatorProp]=o.title),this.examples[o.title]=new Me(e,{value:a},this.name,t.encoding)}}else this.schema&&(this.examples={default:new Me(e,{value:Ue.b(t.schema,n,e.definition)},this.name,t.encoding)})}}),e}(),Ve=function(){function e(e,t,n,r,i){var a=void 0===i?{}:i,s=a.operation,c=a.type,l=a.response;Object.defineProperty(this,"isRequestType",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"mediaTypes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.operation=s,r.unstable_ignoreMimeParameters&&(t=Object(o.J)(t)),this.mediaTypes=Object.keys(t).map((function(i){var o=t[i];return e.resetVisited(),new $e(e,i,n,o,r,{operation:s,type:c,response:l})}))}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;null===(t=this.operation)||void 0===t||t.activateMimeName(e)}}),Object.defineProperty(e.prototype,"active",{get:function(){var e=this;return this.mediaTypes.find((function(t){var n;return t.name===(null===(n=e.operation)||void 0===n?void 0:n.activeMimeName)}))||this.mediaTypes[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasSample",{get:function(){return this.mediaTypes.filter((function(e){return!!e.examples})).length>0},enumerable:!1,configurable:!0}),Object(r.c)([Ae.f],e.prototype,"activate",null),Object(r.c)([Ae.g],e.prototype,"active",null),e}(),qe=function(e){Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var t=e.parser,n=e.infoOrRef,r=e.options,i=e.isEvent,a=e.operation,s=!i,c=t.deref(n);this.description=c.description||"",this.required=!!c.required,t.exitRef(n);var l=Object(o.p)(c);void 0!==l&&(this.content=new Ve(t,l,s,r,{operation:a,type:"request"}))},He=function(){function e(e){var t=this;Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:[]});var n=e.parser,i=e.code,a=e.defaultAsError,s=e.infoOrRef,c=e.options,l=e.isEvent,u=e.operation,p=!!l;Object(Ae.n)(this),this.expanded="all"===c.expandResponses||c.expandResponses[i];var f=n.deref(s);n.exitRef(s),this.code=i;var d=Object(o.p)(f);void 0!==d&&(this.content=new Ve(n,d,p,c,{operation:u,type:"response",response:this})),void 0!==f["x-summary"]?(this.summary=f["x-summary"],this.description=f.description||""):(this.summary=f.description||"",this.description=""),this.type=Object(o.s)(i,a);var h=f.headers;void 0!==h&&(this.headers=Object.keys(h).map((function(e){var i=h[e];return new ze(n,Object(r.a)(Object(r.a)({},i),{name:e}),"",c,void 0,{operation:u,type:"response",response:t})})))}return Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!0}}),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.f],e.prototype,"toggle",null),Object(r.c)([Ae.f],e.prototype,"expand",null),e}(),We=n(242);function Qe(e){return"payload"===e.lang&&"requestBodyContent"in e}var Ye=!1,Ke=function(){function e(e,t,n,r,i){var a,s;void 0===i&&(i=!1),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"operationDefinition",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:r}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"absoluteIdx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"operation"}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"items",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"depth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ready",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"active",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"expanded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"activeMimeName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"activeExampleName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"defaultExampleName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"operationId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"httpVerb",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"deprecated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"servers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"security",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extensions",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isWebhook",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"isEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object(Ae.n)(this),this.pointer=t.pointer,this.description=t.description,this.parent=n,this.externalDocs=t.externalDocs,this.deprecated=!!t.deprecated,this.httpVerb=t.httpVerb,this.deprecated=!!t.deprecated,this.operationId=t.operationId,this.path=t.pathName,this.isCallback=i,this.isWebhook=t.isWebhook,this.isEvent=this.isCallback||this.isWebhook,this.name=Object(o.r)(t),this.defaultExampleName=t.defaultSampleName;var c=((null===(a=this.requestBody)||void 0===a||null===(s=a.content)||void 0===s?void 0:s.mediaTypes)||[])[0],l=Object.keys((null==c?void 0:c.examples)||[])[0];this.activeExampleName=t.defaultSampleName||l,this.isCallback?(this.security=(t.security||[]).map((function(t){return new Te(t,e)})),this.servers=Object(o.K)("",t.servers||t.pathServers||[])):(this.id=Object(o.O)(void 0!==t.operationId?"operation/"+t.operationId:void 0!==n?n.id+this.pointer:this.pointer),this.security=(t.security||e.definition.security||[]).map((function(t){return new Te(t,e)})),this.servers=Object(o.K)(e.definitionUrl,t.servers||t.pathServers||e.definition.servers||[])),r.showExtensions&&(this.extensions=Object(o.m)(t,r.showExtensions))}return Object.defineProperty(e.prototype,"activate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!0}}),Object.defineProperty(e.prototype,"deactivate",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.active=!1}}),Object.defineProperty(e.prototype,"toggle",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.expanded=!this.expanded}}),Object.defineProperty(e.prototype,"activateMimeName",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeMimeName=e}}),Object.defineProperty(e.prototype,"activateExampleName",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.activeExampleName=e}}),Object.defineProperty(e.prototype,"expand",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.parent&&this.parent.expand()}}),Object.defineProperty(e.prototype,"collapse",{enumerable:!1,configurable:!0,writable:!0,value:function(){}}),Object.defineProperty(e.prototype,"requestBody",{get:function(){return this.operationDefinition.requestBody&&new qe({parser:this.parser,infoOrRef:this.operationDefinition.requestBody,options:this.options,operation:this,isEvent:this.isEvent})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){var e,t=null===(e=this.requestBody)||void 0===e?void 0:e.content;return null!=t&&t.hasSample?{lang:"payload",label:"Payload",source:"",requestBodyContent:t}:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasSamples",{get:function(){var e,t;return(null===(e=this.requestBody)||void 0===e||null===(t=e.content)||void 0===t?void 0:t.hasSample)||this.definitionSamples.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definitionSamples",{get:function(){var e=this.operationDefinition["x-codeSamples"]||this.operationDefinition["x-code-samples"]||[];return this.operationDefinition["x-code-samples"]&&!Ye&&(Ye=!0,console.warn('"x-code-samples" is deprecated. Use "x-codeSamples" instead')),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allCodeSamples",{get:function(){var e,t=this.options,n=t.generateCodeSamples,r=void 0===n?{}:n,i=t.payloadSampleIdx,o=t.hideRequestPayloadSample,a=new Set(this.definitionSamples.map((function(e){return e.lang.toLowerCase()}))),s=(null===(e=r.languages)||void 0===e?void 0:e.filter((function(e){var t=e.lang;return!a.has(t.toLowerCase())})))||[],c=this.generateCodeSamples(s,r),l=this.definitionSamples.concat(c),u=Math.min(l.length,i);return this.payload&&!o&&l.splice(u,0,this.payload),l},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parameters",{get:function(){var e=this,t=Object(o.I)(this.parser,this.operationDefinition.pathParameters,this.operationDefinition.parameters).map((function(t){return new ze(e.parser,t,e.pointer,e.options,void 0,{operation:e,type:"request"})}));return this.options.sortPropsAlphabetically?Object(o.R)(t,"name"):this.options.requiredPropsFirst?Object(o.S)(t):t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responses",{get:function(){var e=this,t=!1;return Object.keys(this.operationDefinition.responses||[]).filter((function(e){return"default"===e||("success"===Object(o.s)(e)&&(t=!0),Object(o.B)(e))})).map((function(n){return new He({parser:e.parser,code:n,defaultAsError:t,infoOrRef:e.operationDefinition.responses[n],options:e.options,isEvent:e.isEvent,operation:e})}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"callbacks",{get:function(){var e=this;return Object.keys(this.operationDefinition.callbacks||[]).map((function(t){var n;return new Ie(e.parser,t,null===(n=e.operationDefinition.callbacks)||void 0===n?void 0:n[t],e.pointer,e.options)}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"generateCodeSamples",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var n=this,i=t.skipOptionalParameters,o=t.withOAuth2Call;return e.map((function(e){var t=e.lang,a=e.label,s=e.options;return{lang:t,label:a,get:function(e){return Object(We.b)(Object(r.a)(Object(r.a)({},e),{lang:t,options:Object(r.a)(Object(r.a)({},s),{skipOptionalParameters:i,withOAuth2Call:o,spec:n.parser.definition,generatedPayloadSamplesMaxDepth:n.options.generatedPayloadSamplesMaxDepth})}))}}}))}}),Object(r.c)([Ae.o],e.prototype,"ready",void 0),Object(r.c)([Ae.o],e.prototype,"active",void 0),Object(r.c)([Ae.o],e.prototype,"expanded",void 0),Object(r.c)([Ae.o],e.prototype,"activeMimeName",void 0),Object(r.c)([Ae.o],e.prototype,"activeExampleName",void 0),Object(r.c)([Ae.f],e.prototype,"activate",null),Object(r.c)([Ae.f],e.prototype,"deactivate",null),Object(r.c)([Ae.f],e.prototype,"toggle",null),Object(r.c)([Ae.f],e.prototype,"activateMimeName",null),Object(r.c)([Ae.f],e.prototype,"activateExampleName",null),Object(r.c)([o.G],e.prototype,"requestBody",null),Object(r.c)([o.G],e.prototype,"payload",null),Object(r.c)([o.G],e.prototype,"hasSamples",null),Object(r.c)([o.G],e.prototype,"definitionSamples",null),Object(r.c)([o.G],e.prototype,"allCodeSamples",null),Object(r.c)([o.G],e.prototype,"parameters",null),Object(r.c)([o.G],e.prototype,"responses",null),Object(r.c)([o.G],e.prototype,"callbacks",null),e}(),Ge=function(){function e(e){Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"title",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"summary",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"termsOfService",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contact",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"license",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"downloadLink",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"downloadFileName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.assign(this,e.definition.info),this.description=e.definition.info.description||"",this.summary=e.definition.info.summary||"";var t=this.description.search(/^##?\s+/m);t>-1&&(this.description=this.description.substring(0,t)),this.downloadLink=this.getDownloadLink(),this.downloadFileName=this.getDownloadFileName()}return Object.defineProperty(e.prototype,"getDownloadLink",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(this.parser.definitionUrl)return this.parser.definitionUrl;if(o.a&&window.Blob&&window.URL&&window.URL.createObjectURL){var e=new Blob([JSON.stringify(this.parser.definition,null,2)],{type:"application/json"});return window.URL.createObjectURL(e)}}}),Object.defineProperty(e.prototype,"getDownloadFileName",{enumerable:!1,configurable:!0,writable:!0,value:function(){if(!this.parser.definitionUrl)return"swagger.json"}}),e}(),Je=n(72),Xe=function(e,t,n){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sectionId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"description",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"apiKey",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"http",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"flows",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"openId",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var r=e.deref(n);this.id=t,this.sectionId=Je.d+t,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)},Ze=function(e){Object.defineProperty(this,"schemes",{enumerable:!0,configurable:!0,writable:!0,value:void 0});var t=e.definition.components&&e.definition.components.securitySchemes||{};this.schemes=Object.keys(t).map((function(n){return new Xe(e,n,t[n])}))},et=n(241),tt=function(){function e(e,t,n){Object.defineProperty(this,"operations",{enumerable:!0,configurable:!0,writable:!0,value:[]});var r=e.deref(n||{});e.exitRef(n),this.initWebhooks(e,r,t)}return Object.defineProperty(e.prototype,"initWebhooks",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){for(var i,o=0,a=Object.keys(t);o<a.length;o++)for(var s=t[a[o]],c=0,l=Object.keys(s).filter(et.hb);c<l.length;c++){var u=l[c],p=s[u];if(s.$ref){var f=e.deref(s||{});this.initWebhooks(e,((i={})[u]=f,i),n)}if(p){var d=new Ke(e,Object(r.a)(Object(r.a)({},p),{httpVerb:u}),void 0,n,!1);this.operations.push(d)}}}}),e}(),nt=0,rt=function(){function e(){}return Object.defineProperty(e,"buildStructure",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n){var r=t.definition,i=[],o=e.getTagsWithOperations(t);return i.push.apply(i,e.addMarkdownItems(r.info.description||"",void 0,1,n)),r["x-tagGroups"]&&r["x-tagGroups"].length>0?i.push.apply(i,e.getTagGroupsItems(t,void 0,r["x-tagGroups"],o,n)):i.push.apply(i,e.getTagsItems(t,o,void 0,void 0,n)),i}}),Object.defineProperty(e,"addMarkdownItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r){var i=new xe(r).extractHeadings(e||"");i.length&&t&&t.description&&(t.description=xe.getTextBeforeHading(t.description,i[0].name));var a=function(e,t,n){return void 0===n&&(n=1),t.map((function(t){var r=new De("section",t,e);return r.depth=n,t.items&&(r.items=a(r,t.items,n+1)),xe.containsComponent(r.description||"",o.d)&&Object(o.Q)(r.id+"/"),r}))};return a(t,i,n)}}),Object.defineProperty(e,"getTagGroupsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,r,i,o){for(var a=[],s=0,c=r;s<c.length;s++){var l=c[s],u=new De("group",l,n);u.depth=nt,u.items=e.getTagsItems(t,i,u,l,o),a.push(u)}return a}}),Object.defineProperty(e,"getTagsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(t,n,i,a,s){for(var c=[],l=0,u=(void 0===a?Object.keys(n):a.tags).map((function(e){return n[e]?(n[e].used=!0,n[e]):(console.warn('Non-existing tag "'+e+'" is added to the group "'+(null==a?void 0:a.name)+'"'),null)}));l<u.length;l++){var p=u[l];if(p){var f=new De("tag",p,i);if(f.depth=nt+1,""!==p.name)f.items=Object(r.h)(Object(r.h)([],e.addMarkdownItems(p.description||"",f,f.depth+1,s),!0),this.getOperationsItems(t,f,p,f.depth+1,s),!0),c.push(f);else{var d=Object(r.h)(Object(r.h)([],e.addMarkdownItems(p.description||"",f,f.depth+1,s),!0),this.getOperationsItems(t,void 0,p,f.depth+1,s),!0);c.push.apply(c,d)}}}return s.sortTagsAlphabetically&&c.sort(Object(o.h)("name")),c}}),Object.defineProperty(e,"getOperationsItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n,r,i){if(0===n.operations.length)return[];for(var a=[],s=0,c=n.operations;s<c.length;s++){var l=c[s],u=new Ke(e,l,t,i);u.depth=r,a.push(u)}return i.sortOperationsAlphabetically&&a.sort(Object(o.h)("name")),a}}),Object.defineProperty(e,"getTagsWithOperations",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t={},n=e.definition,i=n["x-webhooks"]||n.webhooks,a=0,s=n.tags||[];a<s.length;a++){var c=s[a];t[c.name]=Object(r.a)(Object(r.a)({},c),{operations:[]})}function l(e,n,i){for(var a,s=0,c=Object.keys(n||{});s<c.length;s++)for(var u=c[s],p=n[u],f=0,d=Object.keys(p).filter(o.z);f<d.length;f++){var h=d[f],m=p[h];if(p.$ref){var v=e.deref(p);l(e,((a={})[u]=v,a),i)}else{var g=null==m?void 0:m.tags;g&&g.length||(g=[""]);for(var b=0,y=g;b<y.length;b++){var x=y[b],w=t[x];void 0===w&&(w={name:x,operations:[]},t[x]=w),w["x-traitTag"]||w.operations.push(Object(r.a)(Object(r.a)({},m),{pathName:u,pointer:o.b.compile(["paths",u,h]),httpVerb:h,pathParameters:p.parameters||[],pathServers:p.servers,isWebhook:!!i}))}}}}return n.paths&&l(e,n.paths),i&&l(e,i,!0),t}}),e}(),it=function(e,t,n){var i,o,a;Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:n}),Object.defineProperty(this,"parser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"info",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"externalDocs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contentItems",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"securitySchemes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"webhooks",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.parser=new je(e,t,n),this.info=new Ge(this.parser),this.externalDocs=this.parser.definition.externalDocs,this.contentItems=rt.buildStructure(this.parser,this.options),this.securitySchemes=new Ze(this.parser);var s=Object(r.a)(Object(r.a)({},null===(i=this.parser)||void 0===i||null===(o=i.definition)||void 0===o?void 0:o["x-webhooks"]),null===(a=this.parser)||void 0===a?void 0:a.definition.webhooks);this.webhooks=new tt(this.parser,n,s)},ot=n(189),at=(n(235),n(95));function st(){var e;if(at.a)try{e=n(685)}catch(t){e=n(375).default}else e=n(375).default;return new e}var ct=function(){function e(){Object.defineProperty(this,"searchWorker",{enumerable:!0,configurable:!0,writable:!0,value:st()})}return Object.defineProperty(e.prototype,"indexItems",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,n=function(e){e.forEach((function(e){"group"!==e.type&&t.add(e.name,e.description||"",e.id),n(e.items)}))};n(e),this.searchWorker.done()}}),Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,n){this.searchWorker.add(e,t,n)}}),Object.defineProperty(e.prototype,"dispose",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.searchWorker.terminate(),this.searchWorker.dispose()}}),Object.defineProperty(e.prototype,"search",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.searchWorker.search(e)}}),Object.defineProperty(e.prototype,"toJS",{enumerable:!1,configurable:!0,writable:!0,value:function(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(e){return[2,this.searchWorker.toJS()]}))}))}}),Object.defineProperty(e.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.searchWorker.load(e)}}),Object.defineProperty(e.prototype,"fromExternalJS",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e&&t&&this.searchWorker.fromExternalJS(e,t)}}),e}(),lt=n(342),ut=n.n(lt),pt=function(){function e(){Object.defineProperty(this,"map",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),Object.defineProperty(this,"prevTerm",{enumerable:!0,configurable:!0,writable:!0,value:""})}return Object.defineProperty(e.prototype,"add",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.map.set(e,new ut.a(e))}}),Object.defineProperty(e.prototype,"delete",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.map.delete(e)}}),Object.defineProperty(e.prototype,"addOnly",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;this.map.forEach((function(n,r){-1===e.indexOf(r)&&(n.unmark(),t.map.delete(r))}));for(var n=0,r=e;n<r.length;n++){var i=r[n];this.map.has(i)||this.map.set(i,new ut.a(i))}}}),Object.defineProperty(e.prototype,"clearAll",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.unmark(),this.map.clear()}}),Object.defineProperty(e.prototype,"mark",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;(e||this.prevTerm)&&(this.map.forEach((function(n){n.unmark(),n.mark(e||t.prevTerm)})),this.prevTerm=e||this.prevTerm)}}),Object.defineProperty(e.prototype,"unmark",{enumerable:!1,configurable:!0,writable:!0,value:function(){this.map.forEach((function(e){return e.unmark()})),this.prevTerm=""}}),e}()},function(e,t,n){"use strict";var r=n(563);e.exports=r},function(e,t,n){"use strict";var r=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===i}(e)}(e)};var i="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e,t){return!1!==t.clone&&t.isMergeableObject(e)?u((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function a(e,t,n){return e.concat(t).map((function(e){return o(e,n)}))}function s(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function c(e,t){try{return t in e}catch(e){return!1}}function l(e,t,n){var r={};return n.isMergeableObject(e)&&s(e).forEach((function(t){r[t]=o(e[t],n)})),s(t).forEach((function(i){(function(e,t){return c(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(c(e,i)&&n.isMergeableObject(t[i])?r[i]=function(e,t){if(!t.customMerge)return u;var n=t.customMerge(e);return"function"==typeof n?n:u}(i,n)(e[i],t[i],n):r[i]=o(t[i],n))})),r}function u(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||a,n.isMergeableObject=n.isMergeableObject||r,n.cloneUnlessOtherwiseSpecified=o;var i=Array.isArray(t);return i===Array.isArray(e)?i?n.arrayMerge(e,t,n):l(e,t,n):o(t,n)}u.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return u(e,n,t)}),{})};var p=u;e.exports=p},function(e,t){e.exports=require("zlib")},function(e,t,n){"use strict";t.__esModule=!0;var r=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function i(e,t){var n=t&&t.loc,o=void 0,a=void 0,s=void 0,c=void 0;n&&(o=n.start.line,a=n.end.line,s=n.start.column,c=n.end.column,e+=" - "+o+":"+s);for(var l=Error.prototype.constructor.call(this,e),u=0;u<r.length;u++)this[r[u]]=l[r[u]];Error.captureStackTrace&&Error.captureStackTrace(this,i);try{n&&(this.lineNumber=o,this.endLineNumber=a,Object.defineProperty?(Object.defineProperty(this,"column",{value:s,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:c,enumerable:!0})):(this.column=s,this.endColumn=c))}catch(e){}}i.prototype=new Error,t.default=i,e.exports=t.default},function(e,t,n){var r=n(50),i=n(81),o=n(138);e.exports=r?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(29);e.exports=function(e){return r[e+"Prototype"]}},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return s}));var r=n(0),i=Object(r.createContext)(void 0),o=i.Provider,a=i.Consumer;function s(){return Object(r.useContext)(i)}},function(e,t,n){"use strict";n.d(t,"r",(function(){return u})),n.d(t,"k",(function(){return p})),n.d(t,"p",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"e",(function(){return v})),n.d(t,"q",(function(){return g})),n.d(t,"n",(function(){return b})),n.d(t,"m",(function(){return y})),n.d(t,"C",(function(){return k})),n.d(t,"x",(function(){return E})),n.d(t,"s",(function(){return S})),n.d(t,"o",(function(){return C})),n.d(t,"i",(function(){return _})),n.d(t,"l",(function(){return A})),n.d(t,"B",(function(){return D})),n.d(t,"A",(function(){return T})),n.d(t,"t",(function(){return I})),n.d(t,"u",(function(){return R})),n.d(t,"f",(function(){return L})),n.d(t,"v",(function(){return N})),n.d(t,"b",(function(){return F})),n.d(t,"c",(function(){return M})),n.d(t,"a",(function(){return B})),n.d(t,"d",(function(){return z})),n.d(t,"y",(function(){return U})),n.d(t,"z",(function(){return $})),n.d(t,"g",(function(){return V})),n.d(t,"w",(function(){return q})),n.d(t,"h",(function(){return H}));var r=n(1),i=n(11),o=n(249),a=n.n(o),s=n(95),c=n(107);function l(e){return"string"==typeof e&&/\dxx/i.test(e)}function u(e){return"default"===e||Object(c.d)(e)||l(e)}function p(e,t){if(void 0===t&&(t=!1),"default"===e)return t?"error":"success";var n="string"==typeof e?parseInt(e,10):e;if(l(e)&&(n*=100),n<100||n>599)throw new Error("invalid HTTP code");var r="success";return n>=300&&n<400?r="redirect":n>=400?r="error":n<200&&(r="info"),r}var f={get:!0,post:!0,put:!0,head:!0,patch:!0,delete:!0,options:!0,$ref:!0};function d(e){return e in f}function h(e){return e.summary||e.operationId||e.description&&e.description.substring(0,50)||"<no summary>"}var m={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",contentEncoding:"string",contentMediaType:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object"};function v(e){if(void 0!==e.type&&!Array.isArray(e.type))return e.type;for(var t=0,n=Object.keys(m);t<n.length;t++){var r=n[t],i=m[r];if(void 0!==e[r])return i}return"any"}function g(e,t){if(void 0===t&&(t=e.type),void 0!==e.oneOf||void 0!==e.anyOf)return!1;var n=!0,r=Array.isArray(t);return("object"===t||r&&null!=t&&t.includes("object"))&&(n=void 0!==e.properties?0===Object.keys(e.properties).length:void 0===e.additionalProperties),void 0!==e.items&&("array"===t||r&&null!=t&&t.includes("array"))&&(n=g(e.items,e.items.type)),n}function b(e){return-1!==e.search(/json/i)}function y(e){return"application/x-www-form-urlencoded"===e}function x(e,t,n){return Array.isArray(e)?e.map((function(e){return e.toString()})).join(n):"object"==typeof e?Object.keys(e).map((function(t){return""+t+n+e[t]})).join(n):t+"="+e.toString()}function w(e,t){return Array.isArray(e)?(console.warn("deepObject style cannot be used with array value:"+e.toString()),""):"object"==typeof e?Object.keys(e).map((function(n){return e[n]?t+"["+n+"]="+e[n]:void 0})).filter(Boolean).join("&"):(console.warn("deepObject style cannot be used with non-object value:"+e.toString()),"")}function O(e,t,n){var r,i=t?"*":"";return a.a.parse("{?__redoc_param_name__"+i+"}").expand((r={},r.__redoc_param_name__=n,r)).substring(1).replace(/__redoc_param_name__/g,e)}function k(e,t){if(void 0===t&&(t={}),Array.isArray(e))throw new Error("Payload must have fields: "+e.toString());return Object.keys(e).map((function(n){var r=e[n],i=t[n]||{},o=i.style,a=void 0===o?"form":o,s=i.explode,c=void 0===s||s;switch(a){case"form":return O(n,c,r);case"spaceDelimited":return x(r,n,"%20");case"pipeDelimited":return x(r,n,"|");case"deepObject":return w(r,n);default:return console.warn("Incorrect or unsupported encoding style: "+a),""}})).join("&")}function j(e,t){return b(t)?JSON.stringify(e):(console.warn("Parameter serialization as "+t+" is not supported"),"")}function E(e,t){var n=e.name,r=e.style,i=e.explode,o=void 0!==i&&i,s=e.serializationMime;if(s)switch(e.in){case"path":case"header":return j(t,s);case"cookie":case"query":return n+"="+j(t,s);default:return console.warn("Unexpected parameter location: "+e.in),""}if(!r)return console.warn("Missing style attribute or content for parameter "+n),"";switch(e.in){case"path":return function(e,t,n,r){var i,o=n?"*":"",s="";return"label"===t?s=".":"matrix"===t&&(s=";"),a.a.parse("{"+s+"__redoc_param_name__"+o+"}").expand((i={},i.__redoc_param_name__=r,i)).replace(/__redoc_param_name__/g,e)}(n,r,o,t);case"query":return function(e,t,n,r){switch(t){case"form":return O(e,n,r);case"spaceDelimited":return Array.isArray(r)?n?O(e,n,r):e+"="+r.join("%20"):(console.warn("The style spaceDelimited is only applicable to arrays"),"");case"pipeDelimited":return Array.isArray(r)?n?O(e,n,r):e+"="+r.join("|"):(console.warn("The style pipeDelimited is only applicable to arrays"),"");case"deepObject":return!n||Array.isArray(r)||"object"!=typeof r?(console.warn("The style deepObject is only applicable for objects with explode=true"),""):w(r,e);default:return console.warn("Unexpected style for query: "+t),""}}(n,r,o,t);case"header":return function(e,t,n){var r;switch(e){case"simple":var i=t?"*":"",o="__redoc_param_name__",s=a.a.parse("{"+o+i+"}");return decodeURIComponent(s.expand(((r={})[o]=n,r)));default:return console.warn("Unexpected style for header: "+e),""}}(r,o,t);case"cookie":return function(e,t,n,r){switch(t){case"form":return O(e,n,r);default:return console.warn("Unexpected style for cookie: "+t),""}}(n,r,o,t);default:return console.warn("Unexpected parameter location: "+e.in),""}}function S(e){return-1!==e.search(/xml/i)?"xml":"clike"}function C(e){return/^#\/components\/(schemas|pathItems)\/[^/]+$/.test(e||"")}function _(e){if(e){var t=e.match(/^#\/components\/(schemas|pathItems)\/([^/]+)$/);return null===t?void 0:t[1]}}function P(e,t,n){var r;return void 0!==t&&void 0!==n?r=t===n?t+" "+e:"[ "+t+" .. "+n+" ] "+e:void 0!==n?r="<= "+n+" "+e:void 0!==t&&(r=1===t?"non-empty":">= "+t+" "+e),r}function A(e){var t=[],n=P("characters",e.minLength,e.maxLength);void 0!==n&&t.push(n);var r=P("items",e.minItems,e.maxItems);void 0!==r&&t.push(r);var i,o=function(e){if(void 0!==e){var t=e.toString(10);return/^0\.0*1$/.test(t)?"decimal places <= "+t.split(".")[1].length:"multiple of "+t}}(e.multipleOf);if(void 0!==o&&t.push(o),void 0!==e.minimum&&void 0!==e.maximum?(i=e.exclusiveMinimum?"( ":"[ ",i+=e.minimum,i+=" .. ",i+=e.maximum,i+=e.exclusiveMaximum?" )":" ]"):void 0!==e.maximum?(i=e.exclusiveMaximum?"< ":"<= ",i+=e.maximum):void 0!==e.minimum&&(i=e.exclusiveMinimum?"> ":">= ",i+=e.minimum),"number"==typeof e.exclusiveMinimum||"number"==typeof e.exclusiveMaximum){var a=0,s=0;e.minimum&&(a=e.minimum),"number"==typeof e.exclusiveMinimum&&(a=a<=e.exclusiveMinimum?a:e.exclusiveMinimum),e.maximum&&(s=e.maximum),"number"==typeof e.exclusiveMaximum&&(s=s>e.exclusiveMaximum?s:e.exclusiveMaximum),i="["+a+" .. "+s+"]"}return void 0!==i&&t.push(i),e.uniqueItems&&t.push("unique"),t}function D(e,t){void 0===t&&(t=[]);var n=[],i=[],o=[];return e.forEach((function(e){e.required?t.includes(e.name)?i.push(e):o.push(e):n.push(e)})),i.sort((function(e,n){return t.indexOf(e.name)-t.indexOf(n.name)})),Object(r.h)(Object(r.h)(Object(r.h)([],i,!0),o,!0),n,!0)}function T(e,t){return Object(r.h)([],e,!0).sort((function(e,n){return e[t].localeCompare(n[t])}))}function I(e,t,n){void 0===t&&(t=[]),void 0===n&&(n=[]);var r={};return n.forEach((function(t){t=e.shallowDeref(t),r[t.name+"_"+t.in]=!0})),(t=t.filter((function(t){return t=e.shallowDeref(t),!r[t.name+"_"+t.in]}))).concat(n)}function R(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n],o=n.split(";")[0].trim();t[o]?t[o]=Object(r.a)(Object(r.a)({},t[o]),i):t[o]=i})),t}function L(e,t){return void 0===t&&(t={}),e.replace(/(?:{)([\w-.]+)(?:})/g,(function(e,n){return t[n]&&t[n].default||e}))}function N(e,t){var n=void 0===e?Object(c.h)(function(){if(!s.a)return"";var e=window.location.href;return e.endsWith(".html")?Object(i.dirname)(e):e}()):Object(i.dirname)(e);return 0===t.length&&(t=[{url:"/"}]),t.map((function(e){return Object(r.a)(Object(r.a)({},e),{url:(t=e.url,Object(c.i)(n,t)),description:e.description||""});var t}))}var F="security-definitions",M="SecurityDefinitions",B="SchemaDefinition",z="section/Authentication/";function U(e){z=e}var $=function(e){return{delete:"del",options:"opts"}[e]||e};function V(e,t){return Object.keys(e).filter((function(e){return!0===t?e.startsWith("x-")&&!function(e){return e in{"x-circular-ref":!0,"x-code-samples":!0,"x-codeSamples":!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-additionalPropertiesName":!0,"x-explicitMappingOnly":!0,"x-enumDescriptions":!0}}(e):e.startsWith("x-")&&t.indexOf(e)>-1})).reduce((function(t,n){return t[n]=e[n],t}),{})}function q(e){return e.split(" or ").map((function(e){return e.replace(/^(string|object|number|integer|array|boolean)s?( ?.*)/,"$1s$2")})).join(" or ")}function H(e){var t=e.content,n=e["x-examples"],i=e["x-example"];if(n){t=Object(r.a)({},t);for(var o=0,a=Object.keys(n);o<a.length;o++){var s=n[u=a[o]];t[u]=Object(r.a)(Object(r.a)({},t[u]),{examples:s})}}else if(i){t=Object(r.a)({},t);for(var c=0,l=Object.keys(i);c<l.length;c++){var u,p=i[u=l[c]];t[u]=Object(r.a)(Object(r.a)({},t[u]),{example:p})}}return t}},function(e,t,n){var r=n(1049),i=n(1050),o=n(318),a=n(1051);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return m}));var r,i=n(1),o=n(0),a=n(10),s=n(121),c=n(3),l=n(2).e.div(r||(r=Object(i.f)(["\n transition: opacity 0.2s;\n\n .loading &:not(.updated) {\n opacity: 0.5;\n }\n"],["\n transition: opacity 0.2s;\n\n .loading &:not(.updated) {\n opacity: 0.5;\n }\n"]))),u=n(24),p=Object(a.a)((function(e){var t=e.children,n=e.onChange,r=e.defaultLanguage,a=Object(i.g)(e,["children","onChange","defaultLanguage"]),p=Object(o.useMemo)((function(){return a.tabs.map((function(e){return e.lang}))}),[a.tabs]),f=Object(o.useContext)(c.X),d=Object(o.useState)(r),h=d[0],m=d[1],v=Object(o.useState)(p),g=v[0],b=v[1];Object(o.useEffect)((function(){return b(p)}),[a.tabs]),Object(o.useEffect)((function(){h===f.activeSampleLanguage&&m(void 0)}),[f.activeSampleLanguage]),Object(o.useLayoutEffect)((function(){return f.stopLoader()}),[f.activeSampleLanguage]),Object(o.useEffect)((function(){h&&(f.startLoader(),f.activateSampleLanguage(h))}),[h,r]);var y;return o.createElement(l,{className:h&&"updated"},o.createElement(s.b,Object(i.a)({},a,{activeIndex:(y=g.indexOf(h||f.activeSampleLanguage),-1===y?0:y),onChange:function(e){var t=a.tabs[e];m(t.lang),n&&n(t)}}),r&&-1===g.indexOf(r)&&o.createElement(u.g,null,"Provided language is not supported"),t))})),f=n(6),d=n(7),h=function(e){var t=e.exampleKey,n=e.examples,r=e.onChange,i=Object.keys(n),a=t?i.indexOf(t):0,s=Object(o.useState)(a>-1?a:0),c=s[0],l=s[1];Object(o.useEffect)((function(){return l(a>-1?a:0)}),[t,a]);var p=i.map((function(e,t){return{value:n[e].summary||e,idx:t}}));return o.createElement(o.Fragment,null,o.createElement(d.a,null,o.createElement(f.e,{variant:"dark",fullWidth:!0,prefix:"Example: ",options:p,value:p[c].value,onChange:function(e){var t=e.idx;l(t),r(i[t])}})),t&&-1===a&&o.createElement(u.g,null,"Provided sample not found"))};function m(e,t){var n=void 0===e?{}:e,r=n.activeExampleName,i=n.defaultExampleName;return{exampleKey:r&&t[r]?r:Object.keys(t)[0],defaultExampleName:i}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return s}));var r=n(98);function i(e,t){return e===t||"#"+e===t||e==="#"+t}var o=function(e){if(!e.in){var t,n,r,i,o,a,s,c,l,u,p,f,d,h,m;if("request"===e.deps.type)if(null!==(t=e.deps.operation)&&void 0!==t&&null!==(n=t.requestBody)&&void 0!==n&&null!==(r=n.content)&&void 0!==r&&r.mediaTypes)return(null===(i=e.deps.operation)||void 0===i||null===(o=i.requestBody)||void 0===o||null===(a=o.content)||void 0===a?void 0:a.mediaTypes.length)>1?null===(s=e.deps.operation)||void 0===s||null===(c=s.requestBody)||void 0===c||null===(l=c.content)||void 0===l?void 0:l.active:void 0;if("response"===e.deps.type)if(null!==(u=e.deps.response)&&void 0!==u&&null!==(p=u.content)&&void 0!==p&&p.mediaTypes)return(null===(f=e.deps.response)||void 0===f||null===(d=f.content)||void 0===d?void 0:d.mediaTypes.length)>1?null===(h=e.deps.response)||void 0===h||null===(m=h.content)||void 0===m?void 0:m.active:void 0}};function a(e){var t,n,i,a;if(!e)return null;if(!e.deps.operation)return null;if(null!==(t=e.deps.operation)&&void 0!==t&&t.isCallback)return null;var s={t:e.deps.type,in:e.in||e.deps.in,c:"response"===e.deps.type?null===(n=e.deps.response)||void 0===n?void 0:n.code:void 0,cb:null!==(i=e.deps.operation)&&void 0!==i&&i.isCallback?null===(a=e.deps.operation)||void 0===a?void 0:a.id:void 0,ct:o(e),path:e.fieldFullPath};return Object(r.stringify)(s,{encode:!1})}function s(e,t,n){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="/"),e.endsWith(n)&&(e=e.slice(0,-n.length)),t.startsWith(n)&&(t=t.slice(n.length)),e&&t?e+n+t:e+t}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r.a})),n.d(t,"c",(function(){return i.b})),n.d(t,"a",(function(){return i.a}));n(118);var r=n(157),i=n(25);n(242)},function(e,t,n){"use strict";var r=n(638);function i(e,t,n){if(3===arguments.length)return i.set(e,t,n);if(2===arguments.length)return i.get(e,t);var r=i.bind(i,e);for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o].bind(r,e));return r}e.exports=i,i.get=function(e,t){for(var n=Array.isArray(t)?t:i.parse(t),r=0;r<n.length;++r){var o=n[r];if("object"!=typeof e||!(o in e))throw new Error("Invalid reference token: "+o);e=e[o]}return e},i.set=function(e,t,n){var r=Array.isArray(t)?t:i.parse(t),o=r[0];if(0===r.length)throw Error("Can not set the root object");for(var a=0;a<r.length-1;++a){var s=r[a];"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),o=r[a+1],s in e||(o.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===o&&Array.isArray(e)&&(o=e.length),e[o]=n,this},i.remove=function(e,t){var n=Array.isArray(t)?t:i.parse(t),r=n[n.length-1];if(void 0===r)throw new Error('Invalid JSON pointer for remove: "'+t+'"');var o=i.get(e,n.slice(0,-1));if(Array.isArray(o)){var a=+r;if(""===r&&isNaN(a))throw new Error('Invalid array index: "'+r+'"');Array.prototype.splice.call(o,a,1)}else delete o[r]},i.dict=function(e,t){var n={};return i.walk(e,(function(e,t){n[t]=e}),t),n},i.walk=function(e,t,n){var o=[];n=n||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function e(a){r(a,(function(r,a){o.push(String(a)),n(r)?e(r):t(r,i.compile(o)),o.pop()}))}(e)},i.has=function(e,t){try{i.get(e,t)}catch(e){return!1}return!0},i.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},i.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},i.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw new Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(i.unescape)},i.compile=function(e){return 0===e.length?"":"/"+e.map(i.escape).join("/")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggest=t.validateDefinedAndNonEmpty=t.fieldNonEmpty=t.missingRequiredField=t.matchesJsonSchemaType=t.oasTypeOf=void 0;const r=n(739);function i(e,t){return`${e} object should contain \`${t}\` field.`}function o(e,t){return`${e} object \`${t}\` must be non-empty string.`}t.oasTypeOf=function(e){return Array.isArray(e)?"array":null===e?"null":typeof e},t.matchesJsonSchemaType=function(e,t,n){if(n&&null===e)return null===e;switch(t){case"array":return Array.isArray(e);case"object":return"object"==typeof e&&null!==e&&!Array.isArray(e);case"null":return null===e;case"integer":return Number.isInteger(e);default:return typeof e===t}},t.missingRequiredField=i,t.fieldNonEmpty=o,t.validateDefinedAndNonEmpty=function(e,t,n){"object"==typeof t&&(void 0===t[e]?n.report({message:i(n.type.name,e)}):t[e]||n.report({message:o(n.type.name,e),location:n.location.child([e]).key()}))},t.getSuggest=function(e,t){if("string"!=typeof e||!t.length)return[];const n=[];for(let i=0;i<t.length;i++){const o=r(e,t[i]);o<4&&n.push({distance:o,variant:t[i]})}return n.sort((e,t)=>e.distance-t.distance),n.map(e=>e.variant)}},function(e,t,n){var r=n(293),i=n(210);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(210);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(50),i=n(438),o=n(54),a=n(211),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(o(e),t=a(t,!0),o(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(29),i=n(33),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},function(e,t,n){var r=n(457),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r,i=n(1),o=n(2),a=n(236),s=n(40),c=n(58),l=Object(o.e)(a.a)(r||(r=Object(i.f)(["\n border-radius: ",";\n\n "," + "," {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"],["\n border-radius: ",";\n\n "," + "," {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n &:not(:last-child) {\n margin-bottom: 10px;\n }\n"])),(function(e){return e.theme.components.panels.borderRadius}),s.a,c.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r,i=n(1),o=n(2).e.span(r||(r=Object(i.f)(["\n line-height: 1;\n margin-right: 4px;\n font-weight: 700;\n color: ",";\n"],["\n line-height: 1;\n margin-right: 4px;\n font-weight: 700;\n color: ",";\n"])),(function(e){return e.theme.colors.text.light}))},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),c=i?i+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function l(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r<o;r++)a[r]=n[r].fn;return a},l.prototype.listenerCount=function(e){var t=i?i+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,o,a){var s=i?i+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],p=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),p){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,a),!0}for(l=1,c=new Array(p-1);l<p;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),p){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(f=1,c=new Array(p-1);f<p;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var o=i?i+e:e;if(!this._events[o])return this;if(!t)return c(this,o),this;var a=this._events[o];if(a.fn)a.fn!==t||r&&!a.once||n&&a.context!==n||c(this,o);else{for(var s=0,l=[],u=a.length;s<u;s++)(a[s].fn!==t||r&&!a[s].once||n&&a[s].context!==n)&&l.push(a[s]);l.length?this._events[o]=1===l.length?l[0]:l:c(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=i?i+e:e,this._events[t]&&c(this,t)):(this._events=new o,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=i,l.EventEmitter=l,e.exports=l},function(e,t,n){var r=n(223),i=n(315),o=n(317),a=n(318);e.exports=function(e,t){var n=void 0!==r&&i(e)||e["@@iterator"];if(!n){if(o(e)||(n=a(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var s=0,c=function(){};return{s:c,n:function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:c}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,u=!0,p=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return u=e.done,e},e:function(e){p=!0,l=e},f:function(){try{u||null==n.return||n.return()}finally{if(p)throw l}}}},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMappingRef=t.isAbsoluteUrl=t.refBaseName=t.pointerBaseName=t.parsePointer=t.parseRef=t.escapePointer=t.unescapePointer=t.Location=t.isRef=t.joinPointer=void 0;const r=n(11);function i(e,t){return""===e&&(e="#/"),"/"===e[e.length-1]?e+t:e+"/"+t}t.joinPointer=i,t.isRef=function(e){return e&&"string"==typeof e.$ref};class o{constructor(e,t){this.source=e,this.pointer=t}child(e){return new o(this.source,i(this.pointer,(Array.isArray(e)?e:[e]).map(s).join("/")))}key(){return Object.assign(Object.assign({},this),{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+("#/"===this.pointer?"":this.pointer)}}function a(e){return decodeURIComponent(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function s(e){return"number"==typeof e?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}t.Location=o,t.unescapePointer=a,t.escapePointer=s,t.parseRef=function(e){const[t,n]=e.split("#/");return{uri:t||null,pointer:n?n.split("/").map(a).filter(Boolean):[]}},t.parsePointer=function(e){return e.substr(2).split("/").map(a)},t.pointerBaseName=function(e){const t=e.split("/");return t[t.length-1]},t.refBaseName=function(e){const t=e.split(r.sep);return t[t.length-1].split(".")[0]},t.isAbsoluteUrl=function(e){return e.startsWith("http://")||e.startsWith("https://")},t.isMappingRef=function(e){return e.startsWith("#")||e.startsWith("https://")||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNamedType=t.normalizeTypes=t.mapOf=t.listOf=void 0,t.listOf=function(e){return{name:e+"_List",properties:{},items:e}},t.mapOf=function(e){return{name:e+"_Map",properties:{},additionalProperties:()=>e}},t.normalizeTypes=function(e,t={}){const n={};for(const t of Object.keys(e))n[t]=Object.assign(Object.assign({},e[t]),{name:t});for(const e of Object.values(n))r(e);return n;function r(e){if(e.additionalProperties&&(e.additionalProperties=i(e.additionalProperties)),e.items&&(e.items=i(e.items)),e.properties){const n={};for(const[r,o]of Object.entries(e.properties))n[r]=i(o),t.doNotResolveExamples&&o&&o.isExample&&(n[r]=Object.assign(Object.assign({},o),{resolvable:!1}));e.properties=n}}function i(e){if("string"==typeof e){if(!n[e])throw new Error("Unknown type name found: "+e);return n[e]}return"function"==typeof e?(t,n)=>i(e(t,n)):e&&e.name?(r(e=Object.assign({},e)),e):e&&e.directResolveAs?Object.assign(Object.assign({},e),{directResolveAs:i(e.directResolveAs)}):e}},t.isNamedType=function(e){return"string"==typeof(null==e?void 0:e.name)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(377),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(r(e),t)}},function(e,t,n){var r=n(109);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(1),i=function(e,t,n,r,i){for(t=t&&t.split?t.split("."):[t],r=0;r<t.length;r++)e=e?e[t[r]]:i;return e===i?n:e},o={bg:"backgroundColor",m:"margin",mt:"marginTop",mr:"marginRight",mb:"marginBottom",ml:"marginLeft",mx:"marginX",my:"marginY",p:"padding",pt:"paddingTop",pr:"paddingRight",pb:"paddingBottom",pl:"paddingLeft",px:"paddingX",py:"paddingY"},a={marginX:["marginLeft","marginRight"],marginY:["marginTop","marginBottom"],paddingX:["paddingLeft","paddingRight"],paddingY:["paddingTop","paddingBottom"],size:["width","height"]},s={color:"colors",backgroundColor:"colors",borderColor:"colors",margin:"space",marginTop:"space",marginRight:"space",marginBottom:"space",marginLeft:"space",marginX:"space",marginY:"space",padding:"space",paddingTop:"space",paddingRight:"space",paddingBottom:"space",paddingLeft:"space",paddingX:"space",paddingY:"space",top:"space",right:"space",bottom:"space",left:"space",gridGap:"space",gridColumnGap:"space",gridRowGap:"space",gap:"space",columnGap:"space",rowGap:"space",fontFamily:"fonts",fontSize:"fontSizes",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",border:"borders",borderTop:"borders",borderRight:"borders",borderBottom:"borders",borderLeft:"borders",borderWidth:"borderWidths",borderStyle:"borderStyles",borderRadius:"radii",borderTopRightRadius:"radii",borderTopLeftRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",borderTopWidth:"borderWidths",borderTopColor:"colors",borderTopStyle:"borderStyles",borderBottomWidth:"borderWidths",borderBottomColor:"colors",borderBottomStyle:"borderStyles",borderLeftWidth:"borderWidths",borderLeftColor:"colors",borderLeftStyle:"borderStyles",borderRightWidth:"borderWidths",borderRightColor:"colors",borderRightStyle:"borderStyles",outlineColor:"colors",boxShadow:"shadows",textShadow:"shadows",zIndex:"zIndices",width:"sizes",minWidth:"sizes",maxWidth:"sizes",height:"sizes",minHeight:"sizes",maxHeight:"sizes",flexBasis:"sizes",size:"sizes",fill:"colors",stroke:"colors"},c=function(e,t){if("number"!=typeof t||t>=0)return i(e,t,t);var n=Math.abs(t),r=i(e,n,n);return"string"==typeof r?"-"+r:-1*r},l=["margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","top","bottom","left","right"].reduce((function(e,t){var n;return Object(r.a)(Object(r.a)({},e),((n={})[t]=c,n))}),{}),u="_";function p(e,t){if("object"==typeof t){var n=t[e];return n||0===n?n:null}return e===u?t:null}function f(e){var t=p(u,e);return null!==t?t:(console.warn("Theme resolver: could not find default value for "+JSON.stringify(e)+'. Theme properties with breakpoints should contain a non-empty "'+u+'" property.'),null)}function d(e,t,n){var r={},i=f(n),o=null,a=t.map(f);i&&!a.some((function(e){return null===e}))&&(r[u]=i.apply(void 0,a),o=r[u]);for(var s=0,c=Object.keys(e);s<c.length;s++){var l=c[s];i=p(l,n)||i;for(var d=0;d<t.length;d++){var h=p(l,t[d])||a[d];null!==h&&(a[d]=h)}var m=a.findIndex((function(e){return null===e}));if(-1===m)if(i){var v=i.apply(void 0,a);o!==v&&(r[l]=v,o=v)}else console.warn("Theme resolver: could not resolve media mapper. CSS may be rendered incorrectly.");else console.warn('Theme resolver: could not resolve breakpoint: "'+l+'" for value '+JSON.stringify(t[m])+".")}return r}var h=function(e){return function(t){void 0===t&&(t={});var n=t.theme||t,c={},p=function(e){return function(t){for(var n={},r=i(t,"breakpoints"),o={},a=0,s=Object.entries(r);a<s.length;a++){var c=s[a],l=c[0],p=c[1];o[l]="@media screen and (min-width: "+p+")",n[o[l]]=null}for(var l in e){if(null!=(p="function"==typeof e[l]?e[l](t):e[l]))if(Array.isArray(p)||"object"!=typeof p)n[l]=p;else for(var f=0,d=Object.entries(p);f<d.length;f++){var h=d[f],m=h[0],v=h[1],g=o[m];g?(n[g]=n[g]||{},null!=v&&(n[g][l]=v)):m===u&&(n[l]=v)}}return n}}("function"==typeof e?e(n):e)(n);for(var f in p){var d=p[f],m="function"==typeof d?d(n):d;if("variant"!==f)if(!m||"object"!=typeof m||Array.isArray(m)){var v=i(o,f,f),g=i(s,v),b=i(n,g,i(n,v,{})),y=i(l,v,i)(b,m,m);if(a[v])for(var x=a[v],w=0;w<x.length;w++)c[x[w]]=y;else c[v]=y}else c[f]=h(m)(n);else{var O=h(i(n,m))(n);c=Object(r.a)(Object(r.a)({},c),O)}}return c}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r="undefined"!=typeof window&&"HTMLElement"in window;function i(e){return"undefined"!=typeof document?document.querySelector(e):null}"undefined"==typeof Element||Element.prototype.scrollIntoViewIfNeeded||(Element.prototype.scrollIntoViewIfNeeded=function(e){e=0===arguments.length||!!e;var t=this.parentNode,n=window.getComputedStyle(t,void 0),r=parseInt(n.getPropertyValue("border-top-width"),10),i=parseInt(n.getPropertyValue("border-left-width"),10),o=this.offsetTop-t.offsetTop<t.scrollTop,a=this.offsetTop-t.offsetTop+this.clientHeight-r>t.scrollTop+t.clientHeight,s=this.offsetLeft-t.offsetLeft<t.scrollLeft,c=this.offsetLeft-t.offsetLeft+this.clientWidth-i>t.scrollLeft+t.clientWidth,l=o&&!a;(o||a)&&e&&(t.scrollTop=this.offsetTop-t.offsetTop-t.clientHeight/2-r+this.clientHeight/2),(s||c)&&e&&(t.scrollLeft=this.offsetLeft-t.offsetLeft-t.clientWidth/2-i+this.clientWidth/2),(o||a||s||c)&&!e&&this.scrollIntoView(l)})},function(e,t,n){var r=n(115),i=n(63);e.exports=function(e){if(!i(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},function(e,t,n){var r=n(325);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";const r=n(678),i=n(679),o=n(680),a=n(681);function s(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function u(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function p(e){const t=(e=u(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function f(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function d(e,t){s((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,e).includes(e.arrayFormatSeparator);n=o?l(n,e):n;const a=i||o?n.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===n?n:l(n,e);r[t]=a};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){if(""===i)continue;let[e,a]=o(t.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator"].includes(t.arrayFormat)?a:l(a,t),n(l(e,t),a,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=f(n[e],t);else r[e]=f(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=p,t.parse=d,t.stringify=(e,t)=>{if(!e)return"";s((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[",i,"]"].join("")]:[...n,[c(t,e),"[",c(i,e),"]=",c(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[c(t,e),"[]"].join("")]:[...n,[c(t,e),"[]=",c(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[c(t,e),"=",c(r,e)].join("")]:[[n,c(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,c(t,e)]:[...n,[c(t,e),"=",c(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const o=Object.keys(i);return!1!==t.sort&&o.sort(t.sort),o.map(n=>{const i=e[n];return void 0===i?"":null===i?c(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):c(n,t)+"="+c(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=o(e,"#");return Object.assign({url:n.split("?")[0]||"",query:d(p(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=u(e.url).split("?")[0]||"",i=t.extract(e.url),o=t.parse(i,{sort:!1}),a=Object.assign(o,e.query);let s=t.stringify(a,n);s&&(s="?"+s);let l=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(l="#"+c(e.fragmentIdentifier,n)),`${r}${s}${l}`},t.pick=(e,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0},r);const{url:i,query:o,fragmentIdentifier:s}=t.parseUrl(e,r);return t.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:s},r)},t.exclude=(e,n,r)=>{const i=Array.isArray(n)?e=>!n.includes(e):(e,t)=>!n(e,t);return t.pick(e,i,r)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return v})),n.d(t,"a",(function(){return g})),n.d(t,"d",(function(){return b}));var r,i,o,a,s,c,l,u=n(1),p=n(12),f=n(2),d=Object(f.g)(r||(r=Object(u.f)(["\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n"],["\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n"]))),h=(Object(f.g)(i||(i=Object(u.f)(["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: #59C3FF;\n }\n\n 100% {\n background-color: ",";\n }\n"],["\n 0% {\n background-color: ",";\n }\n\n 50% {\n background-color: #59C3FF;\n }\n\n 100% {\n background-color: ",";\n }\n"])),Object(p.a)(.3,"#59C3FF"),Object(p.a)(.3,"#59C3FF")),Object(f.d)(o||(o=Object(u.f)(["\n animation: "," 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n"],["\n animation: "," 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;\n"])),d)),m=f.e.div(a||(a=Object(u.f)(["\n background-color: ",";\n color: ",";\n font-family: ",";\n border-radius: ",";\n overflow: hidden;\n z-index: 10;\n display: flex;\n flex-direction: column;\n max-height: calc(85vh - ","px);\n margin-bottom: 10px;\n ",";\n > div:last-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n"],["\n background-color: ",";\n color: ",";\n font-family: ",";\n border-radius: ",";\n overflow: hidden;\n z-index: 10;\n display: flex;\n flex-direction: column;\n max-height: calc(85vh - ","px);\n margin-bottom: 10px;\n ",";\n > div:last-child {\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n"])),(function(e){return e.theme.rightPanel.panelBackgroundColor}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.typography.code.fontFamily}),(function(e){return e.theme.components.panels.borderRadius}),(function(e){return e.theme.scrollYOffset()}),(function(e){return e.shaking&&h})),v=f.e.div(s||(s=Object(u.f)(["\n flex: 1;\n padding: 20px 20px 15px;\n overflow: auto;\n display: ",";\n flex-direction: column;\n position: relative;\n background-color: ",";\n"],["\n flex: 1;\n padding: 20px 20px 15px;\n overflow: auto;\n display: ",";\n flex-direction: column;\n position: relative;\n background-color: ",";\n"])),(function(e){return e.hidden?"none":"flex"}),(function(e){return e.theme.rightPanel.panelBackgroundColor})),g=f.e.span(c||(c=Object(u.f)(["\n cursor: pointer;\n font-size: 24px;\n font-weight: bold;\n color: ",";\n"],["\n cursor: pointer;\n font-size: 24px;\n font-weight: bold;\n color: ",";\n"])),(function(e){return e.theme.colors.text.light})),b=Object(f.d)(l||(l=Object(u.f)(["\n border: none;\n outline: none;\n padding: 8px;\n border-radius: ",";\n background-color: ",";\n ","\n\n &::placeholder {\n opacity: 0.6;\n color: ",";\n }\n\n &:-webkit-autofill {\n background-color: ",";\n }\n"],["\n border: none;\n outline: none;\n padding: 8px;\n border-radius: ",";\n background-color: ",";\n ","\n\n &::placeholder {\n opacity: 0.6;\n color: ",";\n }\n\n &:-webkit-autofill {\n background-color: ",";\n }\n"])),(function(e){return e.theme.shape.borderRadius}),(function(e){return e.theme.rightPanel.panelControlsBackgroundColor}),(function(e){var t=e.theme;return Object(f.h)({color:t.colors.text.light,fontFamily:t.typography.code.fontFamily,fontSize:t.typography.fontSize})}),(function(e){return e.theme.colors.text.light}),(function(e){return e.theme.rightPanel.panelBackgroundColor}))},function(e,t,n){e.exports=n(1057)},function(e,t,n){var r,i;
25
25
  /**
26
26
  * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9
27
27
  * Copyright (C) 2020 Oliver Nightingale
@@ -128,7 +128,7 @@ var callSiteToString=__webpack_require__(359).callSiteToString,eventListenerCoun
128
128
  * Copyright(c) 2014 Jonathan Ong
129
129
  * Copyright(c) 2016 Douglas Christopher Wilson
130
130
  * MIT Licensed
131
- */var r=n(591);function i(e){if("number"==typeof e){if(!i[e])throw new Error("invalid status code: "+e);return e}if("string"!=typeof e)throw new TypeError("code must be a number or string");var t=parseInt(e,10);if(!isNaN(t)){if(!i[t])throw new Error("invalid status code: "+t);return t}if(!(t=i[e.toLowerCase()]))throw new Error('invalid status message: "'+e+'"');return t}e.exports=i,i.STATUS_CODES=r,i.codes=function(e,t){var n=[];return Object.keys(t).forEach((function(r){var i=t[r],o=Number(r);e[o]=i,e[i]=o,e[i.toLowerCase()]=o,n.push(o)})),n}(i,r),i.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},i.empty={204:!0,205:!0,304:!0},i.retry={502:!0,503:!0,504:!0}},function(e,t,n){var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,o=i-(r||i);e.diff=o,e.prev=r,e.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var o=a[c];n=i.call(e,o),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var l=n.log||t.log||console.log.bind(console);l.apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(597),t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),o.default(e),a.default(e),s.default(e),c.default(e),l.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var i=r(n(614)),o=r(n(615)),a=r(n(616)),s=r(n(617)),c=r(n(618)),l=r(n(619)),u=r(n(620))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(53),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:r.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:r.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return a("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){Object.keys(o).forEach((function(e){delete o[e]}))};var r=n(623),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(363)),o=Object.create(null);function a(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==o[e]&&(o[e]=!0,i.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof global?global:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!r.helpers.scopedId(e)&&!e.depth}}};t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initRules=void 0;const r=n(128);t.initRules=function(e,t,n,i){return e.flatMap(e=>Object.keys(e).map(r=>{const o=e[r],a="rules"===n?t.getRuleSettings(r,i):"preprocessors"===n?t.getPreprocessorSettings(r,i):t.getDecoratorSettings(r,i);if("off"===a.severity)return;const s=o(a);return{severity:a.severity,ruleId:r,visitor:s}})).filter(r.notUndefined)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rules:{"info-description":"warn","info-contact":"off","info-license":"warn","info-license-url":"warn","tag-description":"warn","tags-alphabetical":"off","parameter-description":"off","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","operation-description":"off","operation-2xx-response":"warn","operation-operationId":"warn","operation-summary":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-tag-defined":"off","operation-security-defined":"error","operation-singular-tag":"off","no-unresolved-refs":"error","no-enum-type-mismatch":"error","boolean-parameter-prefixes":"off","paths-kebab-case":"off",spec:"error"},oas3_0Rules:{"no-invalid-media-type-examples":{severity:"warn",disallowAdditionalProperties:!0},"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-servers-empty-enum":"error"},oas3_1Rules:{"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-servers-empty-enum":"error"}}},function(e,t){e.exports=void 0},function(e,t,n){e.exports=n(665).YAML},function(e,t,n){"use strict";var r=n(129),i=n(200),o=n(372);const a={createNode:function(e,t,n){const r=new i.YAMLMap(e);if(t instanceof Map)for(const[i,o]of t)r.items.push(e.createPair(i,o,n));else if(t&&"object"==typeof t)for(const i of Object.keys(t))r.items.push(e.createPair(i,t[i],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:i.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:i.resolveMap};const s={createNode:function(e,t,n){const r=new i.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const i of t){const t=e.createNode(i,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:i.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:i.resolveSeq},c={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:i.resolveString,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),i.stringifyString(e,t,n,r)),options:i.strOptions},l=[a,s,c],u=e=>"bigint"==typeof e||Number.isInteger(e),p=(e,t,n)=>i.intOptions.asBigInt?BigInt(e):parseInt(t,n);function f(e,t,n){const{value:r}=e;return u(r)&&r>=0?n+r.toString(t):i.stringifyNumber(e)}const d={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i.nullOptions,stringify:()=>i.nullOptions.nullStr},h={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:i.boolOptions,stringify:({value:e})=>e?i.boolOptions.trueStr:i.boolOptions.falseStr},m={identify:e=>u(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>p(e,t,8),options:i.intOptions,stringify:e=>f(e,8,"0o")},v={identify:u,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>p(e,e,10),options:i.intOptions,stringify:i.stringifyNumber},g={identify:e=>u(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>p(e,t,16),options:i.intOptions,stringify:e=>f(e,16,"0x")},b={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},y={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},x={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,o=new i.Scalar(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:i.stringifyNumber},w=l.concat([d,h,m,v,g,b,y,x]),O=e=>"bigint"==typeof e||Number.isInteger(e),k=({value:e})=>JSON.stringify(e),j=[a,s,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:i.resolveString,stringify:k},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:k},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:k},{identify:O,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>i.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>O(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:k}];j.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar "+JSON.stringify(e))};const E=({value:e})=>e?i.boolOptions.trueStr:i.boolOptions.falseStr,S=e=>"bigint"==typeof e||Number.isInteger(e);function C(e,t,n){let r=t.replace(/_/g,"");if(i.intOptions.asBigInt){switch(n){case 2:r="0b"+r;break;case 8:r="0o"+r;break;case 16:r="0x"+r}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const o=parseInt(r,n);return"-"===e?-1*o:o}function _(e,t,n){const{value:r}=e;if(S(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return i.stringifyNumber(e)}const P=l.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i.nullOptions,stringify:()=>i.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:i.boolOptions,stringify:E},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:i.boolOptions,stringify:E},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>C(t,n,2),stringify:e=>_(e,2,"0b")},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>C(t,n,8),stringify:e=>_(e,8,"0")},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>C(t,n,10),stringify:i.stringifyNumber},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>C(t,n,16),stringify:e=>_(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new i.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:i.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp),A={core:w,failsafe:l,json:j,yaml11:P},D={binary:o.binary,bool:h,float:x,floatExp:y,floatNaN:b,floatTime:o.floatTime,int:v,intHex:g,intOct:m,intTime:o.intTime,map:a,null:d,omap:o.omap,pairs:o.pairs,seq:s,set:o.set,timestamp:o.timestamp};function T(e,t,n){if(e instanceof i.Node)return e;const{defaultPrefix:r,onTagObj:o,prevObjects:c,schema:l,wrapScalars:u}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let p=function(e,t,n){if(t){const e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}(e,t,l.tags);if(!p){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return u?new i.Scalar(e):e;p=e instanceof Map?a:e[Symbol.iterator]?s:a}o&&(o(p),delete n.onTagObj);const f={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){const t=c.get(e);if(t){const e=new i.Alias(t);return n.aliasNodes.push(e),e}f.value=e,c.set(e,f)}return f.node=p.createNode?p.createNode(n.schema,e,n):u?new i.Scalar(e):e,t&&f.node instanceof i.Node&&(f.node.tag=t),f.node}const I=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class R{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:i}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?I:r||null,!e&&i&&o.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;e<i.length;++e){const n=i[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(A,D,e||i,n)}createNode(e,t,n,r){const i={defaultPrefix:R.defaultPrefix,schema:this,wrapScalars:t};return T(e,n,r?Object.assign(r,i):i)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new i.Pair(r,o)}}r._defineProperty(R,"defaultPrefix",r.defaultTagPrefix),r._defineProperty(R,"defaultTags",r.defaultTags),t.Schema=R},function(e,t,n){"use strict";var r=n(129),i=n(200);const o={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=i.resolveString(e,t);if("function"==typeof Buffer)return Buffer.from(n,"base64");if("function"==typeof atob){const e=atob(n.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new r.YAMLReferenceError(t,n)),null}},options:i.binaryOptions,stringify:({comment:e,type:t,value:n},o,a,s)=>{let c;if("function"==typeof Buffer)c=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);c=btoa(e)}}if(t||(t=i.binaryOptions.defaultType),t===r.Type.QUOTE_DOUBLE)n=c;else{const{lineWidth:e}=i.binaryOptions,o=Math.ceil(c.length/e),a=new Array(o);for(let t=0,n=0;t<o;++t,n+=e)a[t]=c.substr(n,e);n=a.join(t===r.Type.BLOCK_LITERAL?"\n":" ")}return i.stringifyString({comment:e,type:t,value:n},o,a,s)}};function a(e,t){const n=i.resolveSeq(e,t);for(let e=0;e<n.items.length;++e){let o=n.items[e];if(!(o instanceof i.Pair)){if(o instanceof i.YAMLMap){if(o.items.length>1){const e="Each pair must have its own sequence indicator";throw new r.YAMLSemanticError(t,e)}const e=o.items[0]||new i.Pair;o.commentBefore&&(e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore),o.comment&&(e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment),o=e}n.items[e]=o instanceof i.Pair?o:new i.Pair(o)}}return n}function s(e,t,n){const r=new i.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,o;if(Array.isArray(i)){if(2!==i.length)throw new TypeError("Expected [key, value] tuple: "+i);t=i[0],o=i[1]}else if(i&&i instanceof Object){const e=Object.keys(i);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: "+i);t=e[0],o=i[t]}else t=i;const a=e.createPair(t,o,n);r.items.push(a)}return r}const c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:s};class l extends i.YAMLSeq{constructor(){super(),r._defineProperty(this,"add",i.YAMLMap.prototype.add.bind(this)),r._defineProperty(this,"delete",i.YAMLMap.prototype.delete.bind(this)),r._defineProperty(this,"get",i.YAMLMap.prototype.get.bind(this)),r._defineProperty(this,"has",i.YAMLMap.prototype.has.bind(this)),r._defineProperty(this,"set",i.YAMLMap.prototype.set.bind(this)),this.tag=l.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(e instanceof i.Pair?(r=i.toJSON(e.key,"",t),o=i.toJSON(e.value,r,t)):r=i.toJSON(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}r._defineProperty(l,"tag","tag:yaml.org,2002:omap");const u={identify:e=>e instanceof Map,nodeClass:l,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=a(e,t),o=[];for(const{key:e}of n.items)if(e instanceof i.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new r.YAMLSemanticError(t,e)}o.push(e.value)}return Object.assign(new l,n)},createNode:function(e,t,n){const r=s(e,t,n),i=new l;return i.items=r.items,i}};class p extends i.YAMLMap{constructor(){super(),this.tag=p.tag}add(e){const t=e instanceof i.Pair?e:new i.Pair(e);i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&n instanceof i.Pair?n.key instanceof i.Scalar?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=i.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new i.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}r._defineProperty(p,"tag","tag:yaml.org,2002:set");const f={identify:e=>e instanceof Set,nodeClass:p,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=i.resolveMap(e,t);if(!n.hasAllNullValues())throw new r.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new p,n)},createNode:function(e,t,n){const r=new p;for(const i of t)r.items.push(e.createPair(i,null,n));return r}},d=(e,t)=>{const n=t.split(":").reduce((e,t)=>60*e+Number(t),0);return"-"===e?-n:n},h=({value:e})=>{if(isNaN(e)||!isFinite(e))return i.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>d(t,n.replace(/_/g,"")),stringify:h},v={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>d(t,n.replace(/_/g,"")),stringify:h},g={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,i,o,a,s,c)=>{s&&(s=(s+"00").substr(1,3));let l=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(c&&"Z"!==c){let e=d(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function b(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function y(e,t){if(b(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const x={};t.binary=o,t.floatTime=v,t.intTime=m,t.omap=u,t.pairs=c,t.set=f,t.timestamp=g,t.warn=y,t.warnFileDeprecation=function(e){if(b(!0)){y(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},t.warnOptionDeprecation=function(e,t){if(!x[e]&&b(!0)){x[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",y(n,"DeprecationWarning")}}},function(e,t,n){"use strict";const r=n(670),i=process.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function o(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(t,e)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,(function(e,t){return t.toUpperCase()}))};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}e.exports={colour:i,uniqueOnly:function(e,t,n){return n.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let n of e){t.find((function(e,t,r){return o(e,n)}))||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find((function(t,n,r){return e.indexOf(t)<n}))},hash:function(e){let t,n=0;if(0===e.length)return n;for(let r=0;r<e.length;r++)t=e.charCodeAt(r),n=(n<<5)-n+t,n|=0;return n},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:a,sanitiseAll:function(e){return a(e.split("/").join("_"))}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(675)},function(e,t,n){"use strict";n.r(t),n.d(t,"add",(function(){return p})),n.d(t,"done",(function(){return f})),n.d(t,"toJS",(function(){return d})),n.d(t,"fromExternalJS",(function(){return h})),n.d(t,"load",(function(){return m})),n.d(t,"dispose",(function(){return v})),n.d(t,"search",(function(){return g}));var r=n(1),i=n(101);try{n(687)}catch(e){}var o=function(){Object.defineProperty(this,"add",{enumerable:!0,configurable:!0,writable:!0,value:p}),Object.defineProperty(this,"done",{enumerable:!0,configurable:!0,writable:!0,value:f}),Object.defineProperty(this,"search",{enumerable:!0,configurable:!0,writable:!0,value:g}),Object.defineProperty(this,"toJS",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"load",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(this,"dispose",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(this,"fromExternalJS",{enumerable:!0,configurable:!0,writable:!0,value:h})};t.default=o;var a,s,c,l=[];function u(){(a=new i.Builder).field("title"),a.field("description"),a.ref("ref"),a.pipeline.add(i.trimmer,i.stopWordFilter,i.stemmer),c=new Promise((function(e){s=e}))}i.tokenizer.separator=/\s+/,u();function p(e,t,n){var r=l.push(n)-1,i={title:e.toLowerCase(),description:t.toLowerCase(),ref:r};a.add(i)}function f(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(e){return s(a.build()),[2]}))}))}function d(){return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.e)(this,(function(t){switch(t.label){case 0:return e={store:l},[4,c];case 1:return[2,(e.index=t.sent().toJSON(),e)]}}))}))}function h(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.e)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),importScripts(e),!self[t])throw new Error("Broken index file format");return[4,m(self[t])];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),console.error("Failed to load search index: "+n.message),[3,3];case 3:return[2]}}))}))}function m(e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(t){return l=e.store,s(i.Index.load(e.index)),[2]}))}))}function v(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(e){return l=[],u(),[2]}))}))}function g(e,t){return void 0===t&&(t=0),Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.e)(this,(function(r){switch(r.label){case 0:return 0===e.trim().length?[2,[]]:[4,c];case 1:return n=r.sent().query((function(t){e.trim().toLowerCase().split(/\s+/).forEach((function(e){if(1!==e.length){var n=function(e){return"*"+i.stemmer(new i.Token(e,{}))+"*"}(e);t.term(n,{})}}))})),t>0&&(n=n.slice(0,t)),[2,n.map((function(e){return{meta:l[e.ref],score:e.score}}))]}}))}))}},function(e,t,n){var r=n(109);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(272);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(131),i=n(90),o=n(273);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(165),i=n(276);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.14.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(38);e.exports=r},function(e,t,n){var r=n(91),i=n(204),o=n(695).indexOf,a=n(278);e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(279),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(90),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(110);e.exports=r("document","documentElement")},function(e,t,n){var r=n(387),i=n(90);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r,i,o=n(38),a=n(284),s=o.process,c=s&&s.versions,l=c&&c.v8;l?i=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(134);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(285),i=n(271),o=n(61)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(38);e.exports=r.Promise},function(e,t,n){var r=n(92),i=n(134),o=n(61)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(38),s=n(90),c=n(388),l=n(385),u=n(273),p=n(393),f=n(287),d=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,x={},w=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},O=function(e){return function(){w(e)}},k=function(e){w(e.data)},j=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return x[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},m=function(e){delete x[e]},f?r=function(e){v.nextTick(O(e))}:b&&b.now?r=function(e){b.now(O(e))}:g&&!p?(o=(i=new g).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(j)?(r=j,a.addEventListener("message",k,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:h,clear:m}},function(e,t,n){var r=n(284);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(92),i=n(109),o=n(207);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(130),i=n(722),o=n(281),a=n(282),s=n(286),c=n(102),l=n(133),u=n(61),p=n(165),f=n(166),d=n(396),h=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g=function(){return this};e.exports=function(e,t,n,u,d,b,y){i(n,t,u);var x,w,O,k=function(e){if(e===d&&_)return _;if(!m&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",E=!1,S=e.prototype,C=S[v]||S["@@iterator"]||d&&S[d],_=!m&&C||k(d),P="Array"==t&&S.entries||C;if(P&&(x=o(P.call(new e)),h!==Object.prototype&&x.next&&(p||o(x)===h||(a?a(x,h):"function"!=typeof x[v]&&c(x,v,g)),s(x,j,!0,!0),p&&(f[j]=g))),"values"==d&&C&&"values"!==C.name&&(E=!0,_=function(){return C.call(this)}),p&&!y||S[v]===_||c(S,v,_),f[t]=_,d)if(w={values:k("values"),keys:b?_:k("keys"),entries:k("entries")},y)for(O in w)(m||E||!(O in S))&&l(S,O,w[O]);else r({target:t,proto:!0,forced:m||E},w);return w}},function(e,t,n){"use strict";var r,i,o,a=n(90),s=n(281),c=n(102),l=n(91),u=n(61),p=n(165),f=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var h=null==r||a((function(){var e={};return r[f].call(e)!==e}));h&&(r={}),p&&!h||l(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OasSpec=void 0;const r=n(89),i=n(78),o=n(88);t.OasSpec=()=>({any(e,{report:t,type:n,location:a,key:s,resolve:c}){var l,u;const p=i.oasTypeOf(e);if(n.items)return void("array"!==p&&t({message:`Expected type \`${n.name}\` (array) but got \`${p}\``}));if("object"!==p)return void t({message:`Expected type \`${n.name}\` (object) but got \`${p}\``});const f="function"==typeof n.required?n.required(e,s):n.required;for(let n of f||[])e.hasOwnProperty(n)||t({message:`The field \`${n}\` must be present on this level.`,location:[{reportOnKey:!0}]});const d=n.requiredOneOf||null;if(d){let n=!1;for(let t of d||[])e.hasOwnProperty(t)&&(n=!0);n||t({message:"Must contain at least one of the following fields: path, components, webhooks.",location:[{reportOnKey:!0}]})}for(const s of Object.keys(e)){const p=a.child([s]);let f=e[s],d=n.properties[s];if(void 0===d&&(d=n.additionalProperties),"function"==typeof d&&(d=d(f,s)),r.isNamedType(d))continue;const h=d,m=i.oasTypeOf(f);if(void 0!==h){if(null!==h)if(!1!==h.resolvable&&o.isRef(f)&&(f=c(f).node),h.enum)h.enum.includes(f)||t({location:p,message:`\`${s}\` can be one of the following only: ${h.enum.map(e=>`"${e}"`).join(", ")}.`,suggest:i.getSuggest(f,h.enum)});else if(h.type&&!i.matchesJsonSchemaType(f,h.type,!1))t({message:`Expected type \`${h.type}\` but got \`${m}\`.`,location:p});else if("array"===m&&(null===(l=h.items)||void 0===l?void 0:l.type)){const e=null===(u=h.items)||void 0===u?void 0:u.type;for(let n=0;n<f.length;n++){const r=f[n];i.matchesJsonSchemaType(r,e,!1)||t({message:`Expected type \`${e}\` but got \`${i.oasTypeOf(r)}\`.`,location:p.child([n])})}}}else{if(s.startsWith("x-"))continue;t({message:`Property \`${s}\` is not expected here.`,suggest:i.getSuggest(s,Object.keys(n.properties)),location:p.key()})}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation2xxResponse=void 0,t.Operation2xxResponse=()=>({ResponsesMap(e,{report:t}){Object.keys(e).some(e=>"default"===e||/2[Xx0-9]{2}/.test(e))||t({message:"Operation must have at least one `2xx` response.",location:{reportOnKey:!0}})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationIdUnique=void 0,t.OperationIdUnique=()=>{const e=new Set;return{Operation(t,{report:n,location:r}){t.operationId&&(e.has(t.operationId)&&n({message:"Every operation must have a unique `operationId`.",location:r.child([t.operationId])}),e.add(t.operationId))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationParametersUnique=void 0,t.OperationParametersUnique=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(t,{report:n,key:r,parentLocations:i}){const o=`${t.in}___${t.name}`;e.has(o)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.\nRepeats of \`in:${t.in}\` + \`name:${t.name}\`.`,location:i.PathItem.child(["parameters",r])}),e.add(`${t.in}___${t.name}`)},Operation:{enter(){t=new Set},Parameter(e,{report:n,key:r,parentLocations:i}){const o=`${e.in}___${e.name}`;t.has(o)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${e.in}\` + \`name:${e.name}\`.`,location:i.Operation.child(["parameters",r])}),t.add(o)}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathParamsDefined=void 0;const r=/\{([a-zA-Z0-9_.-]+)\}+/g;t.PathParamsDefined=()=>{let e,t,n;return{PathItem:{enter(i,{key:o}){t=new Set,n=o,e=new Set(Array.from(o.toString().matchAll(r)).map(e=>e[1]))},Parameter(r,{report:i,location:o}){"path"===r.in&&r.name&&(t.add(r.name),e.has(r.name)||i({message:`Path parameter \`${r.name}\` is not used in the path \`${n}\`.`,location:o.child(["name"])}))},Operation:{leave(r,{report:i,location:o}){for(const r of Array.from(e.keys()))t.has(r)||i({message:`The operation does not define the path parameter \`{${r}}\` expected by path \`${n}\`.`,location:o.child(["parameters"]).key()})},Parameter(r,{report:i,location:o}){"path"===r.in&&r.name&&(t.add(r.name),e.has(r.name)||i({message:`Path parameter \`${r.name}\` is not used in the path \`${n}\`.`,location:o.child(["name"])}))}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTagDefined=void 0,t.OperationTagDefined=()=>{let e;return{DefinitionRoot(t){var n;e=new Set((null!==(n=t.tags)&&void 0!==n?n:[]).map(e=>e.name))},Operation(t,{report:n,location:r}){if(t.tags)for(let i=0;i<t.tags.length;i++)e.has(t.tags[i])||n({message:"Operation tags should be defined in global tags.",location:r.child(["tags",i])})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoEnumTypeMismatch=void 0;const r=n(78);t.NoEnumTypeMismatch=()=>({Schema(e,{report:t,location:n}){if(e.enum&&e.type&&!Array.isArray(e.type)){const i=e.enum.filter(t=>!r.matchesJsonSchemaType(t,e.type,e.nullable));for(const o of i)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${r.oasTypeOf(o)}".`,location:n.child(["enum",e.enum.indexOf(o)])})}if(e.enum&&e.type&&Array.isArray(e.type)){const i={};for(const t of e.enum){i[t]=[];for(const n of e.type){r.matchesJsonSchemaType(t,n,e.nullable)||i[t].push(n)}i[t].length!==e.type.length&&delete i[t]}for(const r of Object.keys(i))t({message:`Enum value \`${r}\` must be of one type. Allowed types: \`${e.type}\`.`,location:n.child(["enum",e.enum.indexOf(r)])})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoPathTrailingSlash=void 0,t.NoPathTrailingSlash=()=>({PathItem(e,{report:t,key:n,location:r}){n.endsWith("/")&&"/"!==n&&t({message:`\`${n}\` should not have a trailing slash.`,location:r.key()})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathDeclarationMustExist=void 0,t.PathDeclarationMustExist=()=>({PathItem(e,{report:t,key:n}){-1!==n.indexOf("{}")&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0}})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationIdUrlSafe=void 0;const r=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/;t.OperationIdUrlSafe=()=>({Operation(e,{report:t,location:n}){e.operationId&&!r.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:n.child(["operationId"])})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsAlphabetical=void 0,t.TagsAlphabetical=()=>({DefinitionRoot(e,{report:t,location:n}){if(e.tags)for(let r=0;r<e.tags.length-1;r++)e.tags[r].name>e.tags[r+1].name&&t({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",r])})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoDescription=void 0;const r=n(78);t.InfoDescription=()=>({Info(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagDescription=void 0;const r=n(78);t.TagDescription=()=>({Tag(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoContact=void 0;const r=n(78);t.InfoContact=()=>({Info(e,{report:t,location:n}){e.contact||t({message:r.missingRequiredField("Info","contact"),location:n.child("contact").key()})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoLicense=void 0;const r=n(78);t.InfoLicense=()=>({Info(e,{report:t}){e.license||t({message:r.missingRequiredField("Info","license")})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationDescription=void 0;const r=n(78);t.OperationDescription=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathNotIncludeQuery=void 0,t.PathNotIncludeQuery=()=>({PathMap:{PathItem(e,{report:t,key:n}){n.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0}})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterDescription=void 0,t.ParameterDescription=()=>({Parameter(e,{report:t,location:n}){void 0===e.description?t({message:"Parameter object description must be present.",location:{reportOnKey:!0}}):e.description||t({message:"Parameter object description must be non-empty string.",location:n.child(["description"])})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSingularTag=void 0,t.OperationSingularTag=()=>({Operation(e,{report:t,location:n}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:n.child(["tags"]).key()})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoLicenseUrl=void 0;const r=n(78);t.InfoLicenseUrl=()=>({License(e,t){r.validateDefinedAndNonEmpty("url",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSecurityDefined=void 0,t.OperationSecurityDefined=()=>{let e=new Map;return{DefinitionRoot:{leave(t,{report:n}){for(const[t,r]of e.entries())if(!r.defined)for(const e of r.from)n({message:`There is no \`${t}\` security scheme defined.`,location:e.key()})}},SecurityScheme(t,{key:n}){e.set(n.toString(),{defined:!0,from:[]})},SecurityRequirement(t,{location:n}){for(const r of Object.keys(t)){const t=e.get(r),i=n.child([r]);t?t.from.push(i):e.set(r,{from:[i]})}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathsKebabCase=void 0,t.PathsKebabCase=()=>({PathItem(e,{report:t,key:n}){n.substr(1).split("/").every(e=>/^{.+}$/.test(e)||/^[a-z0-9-.]+$/.test(e))||t({message:`\`${n}\` does not use kebab-case.`,location:{reportOnKey:!0}})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathHttpVerbsOrder=void 0;const r=["get","head","post","put","patch","delete","options","trace"];t.PathHttpVerbsOrder=e=>{const t=e&&e.order||r;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(e,{report:n,location:r}){const i=Object.keys(e).filter(e=>t.includes(e));for(let e=0;e<i.length-1;e++){const o=t.indexOf(i[e]);t.indexOf(i[e+1])<o&&n({message:"Operation http verbs must be ordered.",location:Object.assign({reportOnKey:!0},r.child(i[e+1]))})}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonSchema=t.releaseAjvInstance=void 0;const r=n(747),i=n(88);let o=null;function a(e,t,n,i){const a=function(e,t){return o||(o=new r({schemaId:"auto",meta:!0,allErrors:!0,jsonPointers:!0,unknownFormats:"ignore",nullable:!0,missingRefs:"ignore",inlineRefs:!1,validateSchema:!1,defaultAdditionalProperties:!t,loadSchemaSync(t,n,r){const i=e({$ref:n},t.replace(/#$/,""));if(i&&i.location)return Object.assign({id:r},i.node)},logger:!1})),o}(n,i);return a.getSchema(t.absolutePointer)||a.addSchema(Object.assign({id:t.absolutePointer},e),t.absolutePointer),a.getSchema(t.absolutePointer)}t.releaseAjvInstance=function(){o=null},t.validateJsonSchema=function(e,t,n,r,o,s){const c=a(t,n,o,s);return c?{valid:!!c(e,r),errors:(c.errors||[]).map((function(e){let t=e.message,n="enum"===e.keyword?e.params.allowedValues:void 0;n&&(t+=" "+n.map(e=>`"${e}"`).join(", "));"type"===e.keyword&&(t="type "+t);const o=e.dataPath.substring(r.length+1),a=o.substring(o.lastIndexOf("/")+1);a&&(t=`\`${a}\` property ${t}`);if("additionalProperties"===e.keyword){const n=e.params.additionalProperty;t=`${t} \`${n}\``,e.dataPath+="/"+i.escapePointer(n)}return Object.assign(Object.assign({},e),{message:t,suggest:n})}))}:{valid:!0,errors:[]}}},function(e,t,n){"use strict";var r=n(135);e.exports=function(e){r.copy(e,this)}},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<c.length;n++){var l=c[n],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(r+=" var validate = ",i&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){var l=e.level,u=e.dataLevel,p=e.schema["false schema"],f=e.schemaPath+e.util.getProperty("false schema"),d=e.errSchemaPath+"/false schema",h=!e.opts.allErrors,m="data"+(u||""),v="valid"+l;if(!1===e.schema){e.isTop?h=!0:r+=" var "+v+" = false; ",(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=i?" return data; ":" validate.errors = null; return true; ":r+=" var "+v+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var b=e.isTop;l=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}v="valid"+l,h=!e.opts.allErrors;var x="",w="",O=e.schema.type,k=Array.isArray(O);if(O&&e.opts.nullable&&!0===e.schema.nullable&&(k?-1==O.indexOf("null")&&(O=O.concat("null")):"null"!=O&&(O=[O,"null"],k=!0)),k&&1==O.length&&(O=O[0],k=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),O){if(e.opts.coerceTypes)var j=e.util.coerceToTypes(e.opts.coerceTypes,O);var E=e.RULES.types[O];if(j||k||!0===E||E&&!X(E)){f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type";var S=k?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[S](O,m,e.opts.strictNumbers,!0)+") { ",j){var C="dataType"+l,_="coerced"+l;r+=" var "+C+" = typeof "+m+"; ","array"==e.opts.coerceTypes&&(r+=" if ("+C+" == 'object' && Array.isArray("+m+")) "+C+" = 'array'; "),r+=" var "+_+" = undefined; ";var P="",A=j;if(A)for(var D,T=-1,I=A.length-1;T<I;)D=A[T+=1],T&&(r+=" if ("+_+" === undefined) { ",P+="}"),"array"==e.opts.coerceTypes&&"array"!=D&&(r+=" if ("+C+" == 'array' && "+m+".length == 1) { "+_+" = "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; } "),"string"==D?r+=" if ("+C+" == 'number' || "+C+" == 'boolean') "+_+" = '' + "+m+"; else if ("+m+" === null) "+_+" = ''; ":"number"==D||"integer"==D?(r+=" if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==D&&(r+=" && !("+m+" % 1)"),r+=")) "+_+" = +"+m+"; "):"boolean"==D?r+=" if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+_+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+_+" = true; ":"null"==D?r+=" if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+_+" = null; ":"array"==e.opts.coerceTypes&&"array"==D&&(r+=" if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+_+" = ["+m+"]; ");r+=" "+P+" if ("+_+" === undefined) { ",(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=k?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ";var R=u?"data"+(u-1||""):"parentData";r+=" "+m+" = "+_+"; ",u||(r+="if ("+R+" !== undefined)"),r+=" "+R+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+_+"; } "}else{(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=k?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!o)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",h&&(r+=" } if (errors === ",r+=b?"0":"errs_"+l,r+=") { ",w+="}");else{var L=e.RULES;if(L)for(var N=-1,F=L.length-1;N<F;)if(X(E=L[N+=1])){if(E.type&&(r+=" if ("+e.util.checkDataType(E.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==E.type&&e.schema.properties){p=e.schema.properties;var M=Object.keys(p);if(M)for(var B,z=-1,U=M.length-1;z<U;){if(void 0!==(q=p[B=M[z+=1]]).default){var $=m+e.util.getProperty(B);if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+$;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else r+=" if ("+$+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+$+" === null || "+$+" === '' "),r+=" ) "+$+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(q.default)+" ":r+=" "+JSON.stringify(q.default)+" ",r+="; "}}}else if("array"==E.type&&Array.isArray(e.schema.items)){var V=e.schema.items;if(V){T=-1;for(var q,H=V.length-1;T<H;)if(void 0!==(q=V[T+=1]).default){$=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+$;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else r+=" if ("+$+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+$+" === null || "+$+" === '' "),r+=" ) "+$+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(q.default)+" ":r+=" "+JSON.stringify(q.default)+" ",r+="; "}}}var W=E.rules;if(W)for(var Q,Y=-1,K=W.length-1;Y<K;)if(Z(Q=W[Y+=1])){var G=Q.code(e,Q.keyword,E.type);G&&(r+=" "+G+" ",h&&(x+="}"))}if(h&&(r+=" "+x+" ",x=""),E.type&&(r+=" } ",O&&O===E.type&&!j)){r+=" else { ";var J;f=e.schemaPath+".type",d=e.errSchemaPath+"/type";(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=k?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}h&&(r+=" if (errors === ",r+=b?"0":"errs_"+l,r+=") { ",w+="}")}}function X(e){for(var t=e.rules,n=0;n<t.length;n++)if(Z(t[n]))return!0}function Z(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var n=t.implements,r=0;r<n.length;r++)if(void 0!==e.schema[n[r]])return!0}(t)}return h&&(r+=" "+w+" "),b?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+v+" = errors === errs_"+l+";",r=e.util.cleanUpCode(r),b&&(r=e.util.finalCleanUpCode(r,i)),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var d="maximum"==t,h=d?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],v=e.opts.$data&&m&&m.$data,g=d?"<":">",b=d?">":"<",y=void 0;if(v){var x=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,O="exclType"+o,k="exclIsNumber"+o,j="' + "+(C="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+x+"; ",i+=" var "+w+"; var "+O+" = typeof "+(x="schemaExcl"+o)+"; if ("+O+" != 'boolean' && "+O+" != 'undefined' && "+O+" != 'number') { ";var E;y=h;(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var S=i;i=E.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+O+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+x+" "+g+"= "+r+") ? "+p+" "+b+"= "+x+" : "+p+" "+b+" "+r+" ) : ( ("+w+" = "+x+" === true) ? "+p+" "+b+"= "+r+" : "+p+" "+b+" "+r+" ) || "+p+" !== "+p+") { var op"+o+" = "+w+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(y=h,l=e.errSchemaPath+"/"+h,r=x,f=v)}else{j=g;if((k="number"==typeof m)&&f){var C="'"+j+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+m+" "+g+"= "+r+" ? "+p+" "+b+"= "+m+" : "+p+" "+b+" "+r+" ) || "+p+" !== "+p+") { "}else{k&&void 0===s?(w=!0,y=h,l=e.errSchemaPath+"/"+h,r=m,b+="="):(k&&(r=Math[d?"min":"max"](m,s)),m===(!k||r)?(w=!0,y=h,l=e.errSchemaPath+"/"+h,b+="="):(w=!1,j+="="));C="'"+j+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+p+" "+b+" "+r+" || "+p+" !== "+p+") { "}}y=y||t,(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+C+", limit: "+r+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+j+" ",i+=f?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";S=i;return i=E.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+p+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var d=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var d="maxLength"==t?">":"<";i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+p+".length ":i+=" ucs2length("+p+") ",i+=" "+d+" "+r+") { ";var h=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var d=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryDependencies=void 0;const r=n(289);t.RegistryDependencies=()=>{let e,t=new Set;return{DefinitionRoot:{leave(){e=new r.RedoclyClient,process.env.UPDATE_REGISTRY&&e.hasToken()&&e.updateDependencies(Array.from(t.keys()))}},ref(e){if(e.$ref){const n=e.$ref.split("#/")[0];r.RedoclyClient.isRegistryURL(n)&&t.add(n)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoIdenticalPaths=void 0,t.NoIdenticalPaths=()=>({PathMap(e,{report:t,location:n}){const r=new Map;for(const i of Object.keys(e)){const e=i.replace(/{.+?}/g,"{VARIABLE}"),o=r.get(e);o?t({message:`The path already exists which differs only by path parameter name(s): \`${o}\` and \`${i}\`.`,location:n.child([i]).key()}):r.set(e,i)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationOperationId=void 0;const r=n(78);t.OperationOperationId=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("operationId",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSummary=void 0;const r=n(78);t.OperationSummary=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("summary",e,t)}})},function(e,t,n){"use strict";function r(e,t){const n=e.split("/"),r=t.split("/");if(n.length!==r.length)return!1;let i=0,o=0,a=!0;for(let e=0;e<n.length;e++){const t=n[e].match(/^{.+?}$/),s=r[e].match(/^{.+?}$/);t||s?(t&&i++,s&&o++):n[e]!==r[e]&&(a=!1)}return a&&i===o}Object.defineProperty(t,"__esModule",{value:!0}),t.NoAmbiguousPaths=void 0,t.NoAmbiguousPaths=()=>({PathMap(e,{report:t,location:n}){const i=[];for(const o of Object.keys(e)){const e=i.find(e=>r(e,o));e&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${e}\` and \`${o}\`.`,location:n.child([o]).key()}),i.push(o)}}})},function(e,t,n){"use strict";var r=n(169),i=new r.Schema({include:[n(292)],explicit:[n(807),n(808)]});r.Schema.DEFAULT=i,e.exports=i},function(e){e.exports=JSON.parse('{"name":"@redocly/reference-docs","version":"2.1.18","description":"Redocly Reference Docs","main":"lib/index.js","module":"lib-esm/index.js","author":"Roman Hotsiy <roman@redoc.ly>","license":"SEE LICENSE IN LICENSE.md","engines":{"node":">=12","npm":">=6.0.0"},"bin":{"redocly-api-reference":"bin/cli/commands/redocly-docs-cli.min.js","reference-docs":"bin/cli/commands/redocly-docs-cli.min.js"},"dependencies":{"@redocly/openapi-core":"^1.0.0-beta.50","@redocly/react-dropdown-aria":"2.0.12","@redocly/vscode-json-languageservice":"3.4.9","@wojtekmaj/enzyme-adapter-react-17":"^0.6.2","classnames":"^2.2.6","codemirror":"^5.59.4","decko":"^1.2.0","deepmerge":"^4.2.2","dompurify":"^2.0.12","eventemitter3":"^4.0.4","fast-deep-equal":"^3.1.3","handlebars":"^4.7.6","hotkeys-js":"^3.7.6","informed":"3.33.0","js-yaml":"^3.13.0","json-pointer":"^0.6.0","kleur":"^3.0.3","lunr":"^2.3.8","mark.js":"^8.11.1","marked":"^3.0.4","mkdirp":"^0.5.1","mobx-react":"^7.2.0","node-libs-browser":"^2.2.0","openapi-sampler":"^1.0.0","perfect-scrollbar":"^1.4.0","polished":"^3.6.5","prismjs":"^1.22.0","prop-types":"^15.7.2","query-string":"^6.13.6","react-codemirror2":"^7.1.0","react-tabs":"^3.1.1","serve-static":"^1.14.1","slugify":"^1.4.4","stickyfill":"^1.1.1","stringify-object":"^3.3.0","styled-components":"^4.1.1 || ^5.1.1","swagger-client":"^3.13.3","swagger2openapi":"^6.2.1","tslib":"^2.2.0","url-template":"^2.0.8","yargs":"^15.0.2"},"scripts":{"prepublishOnly-local":"npm run clean && npm run bundle && npm run compile-lib && npm run bundle-cli && npm run prepublish-test","clean":"rm -rf bin dist lib lib-esm cli-zip","bundle":"webpack --mode=production --optimize-minimize","compile-lib":"npm run compile-es5 && npm run compile-esm && npm run bundle-worker","compile-es5":"rm -rf lib && tsc -p tsconfig.lib.json && node scripts/minify.js lib","compile-esm":"rm -rf lib-esm && tsc -p tsconfig.lib-esm.json && node scripts/minify.js lib-esm","bundle-worker":"webpack --config webpack.config.worker.js --mode=production --optimize-minimize","bundle-cli":"webpack --config webpack.config.server.js --mode=production --optimize-minimize && cp -Rf src/cli/assets bin/cli/assets","publish-cli-s3":"scripts/publish-cli-s3.sh","publish-cdn":"scripts/publish-cdn.sh","pack-sourcemaps":"rm -rf reference-docs.sourcemaps.tag.gz && find lib lib-esm -name \\"*.js.map\\" | xargs tar -czvf reference-docs.sourcemaps.tag.gz","start":"webpack-dev-server --mode=development --hot","stats":"webpack --json --profile --mode=production -p > stats.json && npx webpack-bundle-analyzer stats.json","prettier":"prettier --write \\"src/cli/cli.ts\\" \\"src/**/*.{ts,tsx}\\" \\"playground/**/*.{ts,tsx}\\"","lint":"eslint --fix . --ext .ts,.tsx --cache","prepublish-test":"scripts/prepublish-test.sh","test":"npm run test:unit && npm run test:e2e","test:unit":"jest","test:unit:watch":"jest --watch","test:update-snapshot":"jest --updateSnapshot","test:e2e":"percy exec -- cypress run","cypress":"cypress open","list-licenses":"node ./scripts/list-licenses.js","license-check":"license-checker --production --onlyAllow \'MIT;ISC;Apache-2.0;Apache;CC0-1.0;BSD;BSD-2-Clause;BSD-3-Clause;UNKNOWN\' --summary","ts-check":"tsc --noEmit --skipLibCheck","precdn-serve":"mkdir -p playground/cdn-test/server-dist && cp -Rf dist/* playground/cdn-test/server-dist && cp -Rf playground/cdn-test/template-source/* playground/cdn-test/server-dist","cdn-serve":"http-server playground/cdn-test/server-dist","prepare":"husky install","pre-commit":"pretty-quick --staged && npm run lint"},"peerDependencies":{"core-js":"^3.1.4","mobx":"^6.3.2","react":"^16.8.4 || ^17.0.0","react-dom":"^16.8.4 || ^17.0.0","styled-components":"^4.1.1 || ^5.1.1"},"devDependencies":{"@babel/core":"^7.9.0","@babel/parser":"^7.9.4","@babel/plugin-proposal-nullish-coalescing-operator":"^7.8.3","@babel/plugin-proposal-optional-chaining":"^7.9.0","@babel/plugin-syntax-decorators":"^7.8.3","@babel/plugin-syntax-dynamic-import":"^7.7.4","@babel/plugin-syntax-jsx":"^7.8.3","@babel/plugin-syntax-typescript":"^7.8.3","@percy/cli":"^1.0.0-beta.68","@percy/cypress":"^3.1.1","@testing-library/jest-dom":"^4.2.4","@testing-library/react":"^11.1.0","@testing-library/user-event":"^12.1.10","@types/codemirror":"0.0.88","@types/dompurify":"^2.0.2","@types/enzyme-to-json":"^1.5.3","@types/jest":"^25.1.4","@types/json-pointer":"^1.0.30","@types/lodash":"^4.14.149","@types/mark.js":"^8.11.5","@types/marked":"^3.0.1","@types/node":"^14.14.37","@types/prismjs":"^1.16.1","@types/prop-types":"^15.7.3","@types/react":"^16.9.27","@types/react-dom":"^16.9.4","@types/react-tabs":"^2.3.2","@types/styled-components":"^5.1.9","@types/webpack":"^4.41.9","@types/webpack-env":"^1.14.1","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","babel-loader":"^8.1.0","babel-plugin-styled-components":"^1.10.6","babylon":"7.0.0-beta.47","core-js":"^3.5.0","css-loader":"^3.3.2","cypress":"^8.4.0","cypress-file-upload":"^5.0.8","enzyme":"^3.7.0","enzyme-to-json":"^3.6.2","eslint":"^7.30.0","eslint-import-resolver-typescript":"^2.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.25.1","eslint-plugin-react-hooks":"^4.2.0","html-webpack-plugin":"^4.0.3","husky":"^7.0.0","jest":"^26.6.3","jest-styled-components":"^7.0.4","json-schema":"^0.2.5","lodash":"^4.17.20","mobx":"^6.3.2","prettier":"^2.3.2","pretty-quick":"^3.0.0","raw-loader":"^4.0.2","react":"^17.0.0","react-dom":"^17.0.0","react-hot-loader":"^4.12.18","react-test-renderer":"^17.0.2","string-replace-loader":"^2.2.0","style-loader":"^1.0.1","terser":"^5.6.1","ts-jest":"^26.4.4","ts-loader":"^6.2.2","ts-node":"^8.8.1","typescript":"4.4.2","unfetch":"^4.1.0","url-polyfill":"^1.1.7","webpack":"^4.42.1","webpack-cli":"^3.3.10","webpack-dev-server":"^3.11.0","worker-loader":"^2.0.0","workerize-loader":"^1.3.0","yaml-js":"^0.2.3"},"jest":{"verbose":true,"globals":{"ts-jest":{"diagnostics":{"ignoreCodes":[151001]}}},"testPathIgnorePatterns":["cypress"],"setupFilesAfterEnv":["<rootDir>/src/setupTests.ts"],"preset":"ts-jest","collectCoverage":true,"collectCoverageFrom":["src/**/*.{ts,tsx}"],"coverageReporters":["json","lcov","text-summary"],"coveragePathIgnorePatterns":["\\\\.d\\\\.ts$","/benchmark/","/node_modules/"],"modulePathIgnorePatterns":["/benchmark/","src/components/__tests__/mocks/*","src/models/*"],"snapshotSerializers":["enzyme-to-json/serializer"],"moduleNameMapper":{"\\\\.(css|less)$":"<rootDir>/src/empty.js"}},"prettier":{"singleQuote":true,"trailingComma":"all","printWidth":100,"arrowParens":"avoid"}}')},function(e,t,n){e.exports=n(822)},function(e,t,n){n(823);var r=n(29);e.exports=r.Object.keys},function(e,t,n){var r=n(50),i=n(30),o=n(294);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(30),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(62),i=n(79),o=n(295).indexOf,a=n(173);e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(824)},function(e,t,n){"use strict";var r=n(20),i=n(33),o=n(82),a=n(139),s=n(50),c=n(298),l=n(443),u=n(30),p=n(62),f=n(174),d=n(35),h=n(54),m=n(80),v=n(79),g=n(211),b=n(138),y=n(175),x=n(172),w=n(302),O=n(827),k=n(303),j=n(137),E=n(81),S=n(209),C=n(69),_=n(176),P=n(300),A=n(214),D=n(173),T=n(215),I=n(34),R=n(304),L=n(31),N=n(140),F=n(112),M=n(113).forEach,B=A("hidden"),z=I("toPrimitive"),U=F.set,$=F.getterFor("Symbol"),V=Object.prototype,q=i.Symbol,H=o("JSON","stringify"),W=j.f,Q=E.f,Y=O.f,K=S.f,G=P("symbols"),J=P("op-symbols"),X=P("string-to-symbol-registry"),Z=P("symbol-to-string-registry"),ee=P("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u((function(){return 7!=y(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(V,t);r&&delete V[t],Q(e,t,n),r&&e!==V&&Q(V,t,r)}:Q,ie=function(e,t){var n=G[e]=y(q.prototype);return U(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===V&&ae(J,t,n),h(e);var r=g(t,!0);return h(n),p(G,r)?(n.enumerable?(p(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:b(0,!1)})):(p(e,B)||Q(e,B,b(1,{})),e[B][r]=!0),re(e,r,n)):Q(e,r,n)},se=function(e,t){h(e);var n=v(t),r=x(n).concat(pe(n));return M(r,(function(t){s&&!ce.call(n,t)||ae(e,t,n[t])})),e},ce=function(e){var t=g(e,!0),n=K.call(this,t);return!(this===V&&p(G,t)&&!p(J,t))&&(!(n||!p(this,t)||!p(G,t)||p(this,B)&&this[B][t])||n)},le=function(e,t){var n=v(e),r=g(t,!0);if(n!==V||!p(G,r)||p(J,r)){var i=W(n,r);return!i||!p(G,r)||p(n,B)&&n[B][r]||(i.enumerable=!0),i}},ue=function(e){var t=Y(v(e)),n=[];return M(t,(function(e){p(G,e)||p(D,e)||n.push(e)})),n},pe=function(e){var t=e===V,n=Y(t?J:v(e)),r=[];return M(n,(function(e){!p(G,e)||t&&!p(V,e)||r.push(G[e])})),r};(c||(_((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=T(e),n=function(e){this===V&&n.call(J,e),p(this,B)&&p(this[B],t)&&(this[B][t]=!1),re(this,t,b(1,e))};return s&&ne&&re(V,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return $(this).tag})),_(q,"withoutSetter",(function(e){return ie(T(e),e)})),S.f=ce,E.f=ae,j.f=le,w.f=O.f=ue,k.f=pe,R.f=function(e){return ie(I(e),e)},s&&(Q(q.prototype,"description",{configurable:!0,get:function(){return $(this).description}}),a||_(V,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),M(x(ee),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(p(X,t))return X[t];var n=q(t);return X[t]=n,Z[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(p(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),H)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var e=q();return"[null]"!=H([e])||"{}"!=H({a:e})||"{}"!=H(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(d(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,H.apply(null,i)}});q.prototype[z]||C(q.prototype,z,q.prototype.valueOf),N(q,"Symbol"),D[B]=!0},function(e,t,n){var r=n(298);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(50),i=n(81),o=n(54),a=n(172);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(82);e.exports=r("document","documentElement")},function(e,t,n){var r=n(33),i=n(447),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(301),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(831),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?r:t}},function(e,t,n){e.exports=n(833)},function(e,t,n){"use strict";var r=n(79),i=n(307),o=n(142),a=n(112),s=n(451),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(20),i=n(839),o=n(179),a=n(216),s=n(140),c=n(69),l=n(176),u=n(34),p=n(139),f=n(142),d=n(452),h=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g=function(){return this};e.exports=function(e,t,n,u,d,b,y){i(n,t,u);var x,w,O,k=function(e){if(e===d&&_)return _;if(!m&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",E=!1,S=e.prototype,C=S[v]||S["@@iterator"]||d&&S[d],_=!m&&C||k(d),P="Array"==t&&S.entries||C;if(P&&(x=o(P.call(new e)),h!==Object.prototype&&x.next&&(p||o(x)===h||(a?a(x,h):"function"!=typeof x[v]&&c(x,v,g)),s(x,j,!0,!0),p&&(f[j]=g))),"values"==d&&C&&"values"!==C.name&&(E=!0,_=function(){return C.call(this)}),p&&!y||S[v]===_||c(S,v,_),f[t]=_,d)if(w={values:k("values"),keys:b?_:k("keys"),entries:k("entries")},y)for(O in w)(m||E||!(O in S))&&l(S,O,w[O]);else r({target:t,proto:!0,forced:m||E},w);return w}},function(e,t,n){"use strict";var r,i,o,a=n(30),s=n(179),c=n(69),l=n(62),u=n(34),p=n(139),f=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var h=null==r||a((function(){var e={};return r[f].call(e)!==e}));h&&(r={}),p&&!h||l(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(30);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(30);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(456);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(114),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(866),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(c),r(e,this,l)}}},function(e,t,n){var r=n(867),i=n(869)(r);e.exports=i},function(e,t,n){var r=n(871),i=n(220),o=n(55),a=n(221),s=n(219),c=n(311),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),p=!n&&!u&&a(e),f=!n&&!u&&!p&&c(e),d=n||u||p||f,h=d?r(e.length,String):[],m=h.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t,n){var r=n(182),i=n(875),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(143),i=n(877),o=n(55),a=n(222),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(878);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(464);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";var r=n(20),i=n(30),o=n(174),a=n(35),s=n(80),c=n(111),l=n(180),u=n(306),p=n(178),f=n(34),d=n(213),h=f("isConcatSpreadable"),m=d>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),v=p("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!v},{concat:function(e){var t,n,r,i,o,a=s(this),p=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(g(o=-1===t?a:arguments[t])){if(f+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&l(p,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(p,f++,o)}return p.length=f,p}})},function(e,t,n){n(31)("iterator")},function(e,t,n){var r=n(914),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){e.exports=n(916)},function(e,t,n){n(224),n(917);var r=n(29);e.exports=r.Array.from},function(e,t,n){var r=n(54);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(34),i=n(142),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(34)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){n(477),n(314),n(928),n(483),n(484),n(934),n(224),n(141);var r=n(29);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(20),i=n(179),o=n(216),a=n(175),s=n(69),c=n(138),l=n(146),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return l(e,r.push,{that:r}),s(n,"errors",r),n};u.prototype=a(Error.prototype,{constructor:c(5,u),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:u})},function(e,t,n){var r=n(33);e.exports=r.Promise},function(e,t,n){var r=n(54),i=n(103),o=n(34)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(33),s=n(30),c=n(171),l=n(445),u=n(294),p=n(481),f=n(321),d=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,x={},w=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},O=function(e){return function(){w(e)}},k=function(e){w(e.data)},j=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return x[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},m=function(e){delete x[e]},f?r=function(e){v.nextTick(O(e))}:b&&b.now?r=function(e){b.now(O(e))}:g&&!p?(o=(i=new g).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(j)?(r=j,a.addEventListener("message",k,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:h,clear:m}},function(e,t,n){var r=n(299);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(54),i=n(35),o=n(183);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(20),i=n(103),o=n(183),a=n(225),s=n(146);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(20),i=n(103),o=n(82),a=n(183),s=n(225),c=n(146);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1,p=!1;c(e,(function(e){var i=s++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||p||(p=!0,r(e))}),(function(e){c||p||(c=!0,a[i]=e,--u||l(new(o("AggregateError"))(a,"No one promise resolved")))}))})),--u||l(new(o("AggregateError"))(a,"No one promise resolved"))}));return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(324),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},function(e,t,n){var r=n(1004),i=n(1005);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){e.exports=n(1015)},function(e,t,n){e.exports=n(1027)},function(e,t,n){var r=n(490),i=n(491);e.exports=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,i){var o;o=2==e.length?e(n,r(i)):e(n,t,r(i));return o}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?i(n):n.results[a]=t,o(e,n.results))}))}},function(e,t,n){var r=n(1046);e.exports=function(e){var t=!1;return r((function(){t=!0})),function(n,i){t?e(n,i):r((function(){e(n,i)}))}}},function(e,t){function n(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(n.bind(e)),e.jobs={}}},function(e,t){e.exports=function(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])});return r}},function(e,t,n){var r=n(491),i=n(490);e.exports=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,r(this),i(e)(null,this.results)}},function(e,t,n){var r=n(489),i=n(492),o=n(493);function a(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,a){var s=i(e,n);return r(e,t,s,(function n(i,o){i?a(i,o):(s.index++,s.index<(s.keyedList||e).length?r(e,t,s,n):a(null,s.results))})),o.bind(s,a)},e.exports.ascending=a,e.exports.descending=function(e,t){return-1*a(e,t)}},function(e,t,n){var r=n(1063),i=n(1086),o=n(309),a=n(55),s=n(1087);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(1070),i=n(93);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(1071),i=n(1074),o=n(1075);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var f=c.get(e),d=c.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],b=t[h];if(a)var y=l?a(b,g,h,t,e,c):a(g,b,h,e,t,c);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,c)))return v.push(t)}))){m=!1;break}}else if(g!==b&&!s(g,b,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(83).Uint8Array;e.exports=r},function(e,t,n){var r=n(500),i=n(331),o=n(145);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(329),i=n(55);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(63);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(329),i=n(333),o=n(331),a=n(501),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){e.exports=n(1121)},function(e,t,n){"use strict";const r=n(530);function i(e,t){const o=r(e,t,n(562));var a;return a=o,Object.keys(a).forEach(e=>{"argv"===e?i.__defineGetter__(e,a.__lookupGetter__(e)):"function"==typeof a[e]?i[e]=a[e].bind(a):(i.__defineGetter__("$0",()=>a.$0),i.__defineGetter__("parsed",()=>a.parsed))}),o}i(n(353).getProcessArgvWithoutBin()),e.exports=i},function(e,t,n){"use strict";
131
+ */var r=n(591);function i(e){if("number"==typeof e){if(!i[e])throw new Error("invalid status code: "+e);return e}if("string"!=typeof e)throw new TypeError("code must be a number or string");var t=parseInt(e,10);if(!isNaN(t)){if(!i[t])throw new Error("invalid status code: "+t);return t}if(!(t=i[e.toLowerCase()]))throw new Error('invalid status message: "'+e+'"');return t}e.exports=i,i.STATUS_CODES=r,i.codes=function(e,t){var n=[];return Object.keys(t).forEach((function(r){var i=t[r],o=Number(r);e[o]=i,e[i]=o,e[i.toLowerCase()]=o,n.push(o)})),n}(i,r),i.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},i.empty={204:!0,205:!0,304:!0},i.retry={502:!0,503:!0,504:!0}},function(e,t,n){var r;function i(e){function n(){if(n.enabled){var e=n,i=+new Date,o=i-(r||i);e.diff=o,e.prev=r,e.curr=i,r=i;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var i=t.formatters[r];if("function"==typeof i){var o=a[c];n=i.call(e,o),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var l=n.log||t.log||console.log.bind(console);l.apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,i=0;i<r;i++)n[i]&&("-"===(e=n[i].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(597),t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),o.default(e),a.default(e),s.default(e),c.default(e),l.default(e),u.default(e)},t.moveHelperToHooks=function(e,t,n){e.helpers[t]&&(e.hooks[t]=e.helpers[t],n||delete e.helpers[t])};var i=r(n(614)),o=r(n(615)),a=r(n(616)),s=r(n(617)),c=r(n(618)),l=r(n(619)),u=r(n(620))},function(e,t,n){"use strict";t.__esModule=!0;var r=n(53),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.createProtoAccessControl=function(e){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var n=Object.create(null);return n.__proto__=!1,{properties:{whitelist:r.createNewLookupObject(n,e.allowedProtoProperties),defaultValue:e.allowProtoPropertiesByDefault},methods:{whitelist:r.createNewLookupObject(t,e.allowedProtoMethods),defaultValue:e.allowProtoMethodsByDefault}}},t.resultIsAllowed=function(e,t,n){return a("function"==typeof e?t.methods:t.properties,n)},t.resetLoggedProperties=function(){Object.keys(o).forEach((function(e){delete o[e]}))};var r=n(623),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(363)),o=Object.create(null);function a(e,t){return void 0!==e.whitelist[t]?!0===e.whitelist[t]:void 0!==e.defaultValue?e.defaultValue:(function(e){!0!==o[e]&&(o[e]=!0,i.log("error",'Handlebars: Access has been denied to resolve the property "'+e+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details'))}(t),!1)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t="undefined"!=typeof global?global:window,n=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=n),e}},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0;var r={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!r.helpers.scopedId(e)&&!e.depth}}};t.default=r,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initRules=void 0;const r=n(128);t.initRules=function(e,t,n,i){return e.flatMap(e=>Object.keys(e).map(r=>{const o=e[r],a="rules"===n?t.getRuleSettings(r,i):"preprocessors"===n?t.getPreprocessorSettings(r,i):t.getDecoratorSettings(r,i);if("off"===a.severity)return;const s=o(a);return{severity:a.severity,ruleId:r,visitor:s}})).filter(r.notUndefined)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={rules:{"info-description":"warn","info-contact":"off","info-license":"warn","info-license-url":"warn","tag-description":"warn","tags-alphabetical":"off","parameter-description":"off","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"warn","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","operation-description":"off","operation-2xx-response":"warn","operation-operationId":"warn","operation-summary":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-tag-defined":"off","operation-security-defined":"error","operation-singular-tag":"off","no-unresolved-refs":"error","no-enum-type-mismatch":"error","boolean-parameter-prefixes":"off","paths-kebab-case":"off",spec:"error"},oas3_0Rules:{"no-invalid-media-type-examples":{severity:"warn",disallowAdditionalProperties:!0},"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-servers-empty-enum":"error"},oas3_1Rules:{"no-server-example.com":"warn","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unused-components":"warn","no-undefined-server-variable":"error","no-servers-empty-enum":"error"}}},function(e,t){e.exports=void 0},function(e,t,n){e.exports=n(665).YAML},function(e,t,n){"use strict";var r=n(129),i=n(200),o=n(372);const a={createNode:function(e,t,n){const r=new i.YAMLMap(e);if(t instanceof Map)for(const[i,o]of t)r.items.push(e.createPair(i,o,n));else if(t&&"object"==typeof t)for(const i of Object.keys(t))r.items.push(e.createPair(i,t[i],n));return"function"==typeof e.sortMapEntries&&r.items.sort(e.sortMapEntries),r},default:!0,nodeClass:i.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:i.resolveMap};const s={createNode:function(e,t,n){const r=new i.YAMLSeq(e);if(t&&t[Symbol.iterator])for(const i of t){const t=e.createNode(i,n.wrapScalars,null,n);r.items.push(t)}return r},default:!0,nodeClass:i.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:i.resolveSeq},c={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:i.resolveString,stringify:(e,t,n,r)=>(t=Object.assign({actualString:!0},t),i.stringifyString(e,t,n,r)),options:i.strOptions},l=[a,s,c],u=e=>"bigint"==typeof e||Number.isInteger(e),p=(e,t,n)=>i.intOptions.asBigInt?BigInt(e):parseInt(t,n);function f(e,t,n){const{value:r}=e;return u(r)&&r>=0?n+r.toString(t):i.stringifyNumber(e)}const d={identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i.nullOptions,stringify:()=>i.nullOptions.nullStr},h={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>"t"===e[0]||"T"===e[0],options:i.boolOptions,stringify:({value:e})=>e?i.boolOptions.trueStr:i.boolOptions.falseStr},m={identify:e=>u(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(e,t)=>p(e,t,8),options:i.intOptions,stringify:e=>f(e,8,"0o")},v={identify:u,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:e=>p(e,e,10),options:i.intOptions,stringify:i.stringifyNumber},g={identify:e=>u(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(e,t)=>p(e,t,16),options:i.intOptions,stringify:e=>f(e,16,"0x")},b={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},y={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify:({value:e})=>Number(e).toExponential()},x={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(e,t,n){const r=t||n,o=new i.Scalar(parseFloat(e));return r&&"0"===r[r.length-1]&&(o.minFractionDigits=r.length),o},stringify:i.stringifyNumber},w=l.concat([d,h,m,v,g,b,y,x]),O=e=>"bigint"==typeof e||Number.isInteger(e),k=({value:e})=>JSON.stringify(e),j=[a,s,{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:i.resolveString,stringify:k},{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:k},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>"true"===e,stringify:k},{identify:O,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:e=>i.intOptions.asBigInt?BigInt(e):parseInt(e,10),stringify:({value:e})=>O(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:k}];j.scalarFallback=e=>{throw new SyntaxError("Unresolved plain scalar "+JSON.stringify(e))};const E=({value:e})=>e?i.boolOptions.trueStr:i.boolOptions.falseStr,S=e=>"bigint"==typeof e||Number.isInteger(e);function C(e,t,n){let r=t.replace(/_/g,"");if(i.intOptions.asBigInt){switch(n){case 2:r="0b"+r;break;case 8:r="0o"+r;break;case 16:r="0x"+r}const t=BigInt(r);return"-"===e?BigInt(-1)*t:t}const o=parseInt(r,n);return"-"===e?-1*o:o}function _(e,t,n){const{value:r}=e;if(S(r)){const e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return i.stringifyNumber(e)}const P=l.concat([{identify:e=>null==e,createNode:(e,t,n)=>n.wrapScalars?new i.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:i.nullOptions,stringify:()=>i.nullOptions.nullStr},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:i.boolOptions,stringify:E},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:i.boolOptions,stringify:E},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(e,t,n)=>C(t,n,2),stringify:e=>_(e,2,"0b")},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(e,t,n)=>C(t,n,8),stringify:e=>_(e,8,"0")},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(e,t,n)=>C(t,n,10),stringify:i.stringifyNumber},{identify:S,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(e,t,n)=>C(t,n,16),stringify:e=>_(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(e,t)=>t?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:i.stringifyNumber},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify:({value:e})=>Number(e).toExponential()},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(e,t){const n=new i.Scalar(parseFloat(e.replace(/_/g,"")));if(t){const e=t.replace(/_/g,"");"0"===e[e.length-1]&&(n.minFractionDigits=e.length)}return n},stringify:i.stringifyNumber}],o.binary,o.omap,o.pairs,o.set,o.intTime,o.floatTime,o.timestamp),A={core:w,failsafe:l,json:j,yaml11:P},D={binary:o.binary,bool:h,float:x,floatExp:y,floatNaN:b,floatTime:o.floatTime,int:v,intHex:g,intOct:m,intTime:o.intTime,map:a,null:d,omap:o.omap,pairs:o.pairs,seq:s,set:o.set,timestamp:o.timestamp};function T(e,t,n){if(e instanceof i.Node)return e;const{defaultPrefix:r,onTagObj:o,prevObjects:c,schema:l,wrapScalars:u}=n;t&&t.startsWith("!!")&&(t=r+t.slice(2));let p=function(e,t,n){if(t){const e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)||e[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return n.find(t=>(t.identify&&t.identify(e)||t.class&&e instanceof t.class)&&!t.format)}(e,t,l.tags);if(!p){if("function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e)return u?new i.Scalar(e):e;p=e instanceof Map?a:e[Symbol.iterator]?s:a}o&&(o(p),delete n.onTagObj);const f={value:void 0,node:void 0};if(e&&"object"==typeof e&&c){const t=c.get(e);if(t){const e=new i.Alias(t);return n.aliasNodes.push(e),e}f.value=e,c.set(e,f)}return f.node=p.createNode?p.createNode(n.schema,e,n):u?new i.Scalar(e):e,t&&f.node instanceof i.Node&&(f.node.tag=t),f.node}const I=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class R{constructor({customTags:e,merge:t,schema:n,sortMapEntries:r,tags:i}){this.merge=!!t,this.name=n,this.sortMapEntries=!0===r?I:r||null,!e&&i&&o.warnOptionDeprecation("tags","customTags"),this.tags=function(e,t,n,r){let i=e[r.replace(/\W/g,"")];if(!i){const t=Object.keys(e).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${t}`)}if(Array.isArray(n))for(const e of n)i=i.concat(e);else"function"==typeof n&&(i=n(i.slice()));for(let e=0;e<i.length;++e){const n=i[e];if("string"==typeof n){const r=t[n];if(!r){const e=Object.keys(t).map(e=>JSON.stringify(e)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${e}`)}i[e]=r}}return i}(A,D,e||i,n)}createNode(e,t,n,r){const i={defaultPrefix:R.defaultPrefix,schema:this,wrapScalars:t};return T(e,n,r?Object.assign(r,i):i)}createPair(e,t,n){n||(n={wrapScalars:!0});const r=this.createNode(e,n.wrapScalars,null,n),o=this.createNode(t,n.wrapScalars,null,n);return new i.Pair(r,o)}}r._defineProperty(R,"defaultPrefix",r.defaultTagPrefix),r._defineProperty(R,"defaultTags",r.defaultTags),t.Schema=R},function(e,t,n){"use strict";var r=n(129),i=n(200);const o={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(e,t)=>{const n=i.resolveString(e,t);if("function"==typeof Buffer)return Buffer.from(n,"base64");if("function"==typeof atob){const e=atob(n.replace(/[\n\r]/g,"")),t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}{const n="This environment does not support reading binary tags; either Buffer or atob is required";return e.errors.push(new r.YAMLReferenceError(t,n)),null}},options:i.binaryOptions,stringify:({comment:e,type:t,value:n},o,a,s)=>{let c;if("function"==typeof Buffer)c=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else{if("function"!=typeof btoa)throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");{let e="";for(let t=0;t<n.length;++t)e+=String.fromCharCode(n[t]);c=btoa(e)}}if(t||(t=i.binaryOptions.defaultType),t===r.Type.QUOTE_DOUBLE)n=c;else{const{lineWidth:e}=i.binaryOptions,o=Math.ceil(c.length/e),a=new Array(o);for(let t=0,n=0;t<o;++t,n+=e)a[t]=c.substr(n,e);n=a.join(t===r.Type.BLOCK_LITERAL?"\n":" ")}return i.stringifyString({comment:e,type:t,value:n},o,a,s)}};function a(e,t){const n=i.resolveSeq(e,t);for(let e=0;e<n.items.length;++e){let o=n.items[e];if(!(o instanceof i.Pair)){if(o instanceof i.YAMLMap){if(o.items.length>1){const e="Each pair must have its own sequence indicator";throw new r.YAMLSemanticError(t,e)}const e=o.items[0]||new i.Pair;o.commentBefore&&(e.commentBefore=e.commentBefore?`${o.commentBefore}\n${e.commentBefore}`:o.commentBefore),o.comment&&(e.comment=e.comment?`${o.comment}\n${e.comment}`:o.comment),o=e}n.items[e]=o instanceof i.Pair?o:new i.Pair(o)}}return n}function s(e,t,n){const r=new i.YAMLSeq(e);r.tag="tag:yaml.org,2002:pairs";for(const i of t){let t,o;if(Array.isArray(i)){if(2!==i.length)throw new TypeError("Expected [key, value] tuple: "+i);t=i[0],o=i[1]}else if(i&&i instanceof Object){const e=Object.keys(i);if(1!==e.length)throw new TypeError("Expected { key: value } tuple: "+i);t=e[0],o=i[t]}else t=i;const a=e.createPair(t,o,n);r.items.push(a)}return r}const c={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:a,createNode:s};class l extends i.YAMLSeq{constructor(){super(),r._defineProperty(this,"add",i.YAMLMap.prototype.add.bind(this)),r._defineProperty(this,"delete",i.YAMLMap.prototype.delete.bind(this)),r._defineProperty(this,"get",i.YAMLMap.prototype.get.bind(this)),r._defineProperty(this,"has",i.YAMLMap.prototype.has.bind(this)),r._defineProperty(this,"set",i.YAMLMap.prototype.set.bind(this)),this.tag=l.tag}toJSON(e,t){const n=new Map;t&&t.onCreate&&t.onCreate(n);for(const e of this.items){let r,o;if(e instanceof i.Pair?(r=i.toJSON(e.key,"",t),o=i.toJSON(e.value,r,t)):r=i.toJSON(e,"",t),n.has(r))throw new Error("Ordered maps must not include duplicate keys");n.set(r,o)}return n}}r._defineProperty(l,"tag","tag:yaml.org,2002:omap");const u={identify:e=>e instanceof Map,nodeClass:l,default:!1,tag:"tag:yaml.org,2002:omap",resolve:function(e,t){const n=a(e,t),o=[];for(const{key:e}of n.items)if(e instanceof i.Scalar){if(o.includes(e.value)){const e="Ordered maps must not include duplicate keys";throw new r.YAMLSemanticError(t,e)}o.push(e.value)}return Object.assign(new l,n)},createNode:function(e,t,n){const r=s(e,t,n),i=new l;return i.items=r.items,i}};class p extends i.YAMLMap{constructor(){super(),this.tag=p.tag}add(e){const t=e instanceof i.Pair?e:new i.Pair(e);i.findPair(this.items,t.key)||this.items.push(t)}get(e,t){const n=i.findPair(this.items,e);return!t&&n instanceof i.Pair?n.key instanceof i.Scalar?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw new Error("Expected boolean value for set(key, value) in a YAML set, not "+typeof t);const n=i.findPair(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new i.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,n);throw new Error("Set items must all have null values")}}r._defineProperty(p,"tag","tag:yaml.org,2002:set");const f={identify:e=>e instanceof Set,nodeClass:p,default:!1,tag:"tag:yaml.org,2002:set",resolve:function(e,t){const n=i.resolveMap(e,t);if(!n.hasAllNullValues())throw new r.YAMLSemanticError(t,"Set items must all have null values");return Object.assign(new p,n)},createNode:function(e,t,n){const r=new p;for(const i of t)r.items.push(e.createPair(i,null,n));return r}},d=(e,t)=>{const n=t.split(":").reduce((e,t)=>60*e+Number(t),0);return"-"===e?-n:n},h=({value:e})=>{if(isNaN(e)||!isFinite(e))return i.stringifyNumber(e);let t="";e<0&&(t="-",e=Math.abs(e));const n=[e%60];return e<60?n.unshift(0):(e=Math.round((e-n[0])/60),n.unshift(e%60),e>=60&&(e=Math.round((e-n[0])/60),n.unshift(e))),t+n.map(e=>e<10?"0"+String(e):String(e)).join(":").replace(/000000\d*$/,"")},m={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(e,t,n)=>d(t,n.replace(/_/g,"")),stringify:h},v={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(e,t,n)=>d(t,n.replace(/_/g,"")),stringify:h},g={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(e,t,n,r,i,o,a,s,c)=>{s&&(s=(s+"00").substr(1,3));let l=Date.UTC(t,n-1,r,i||0,o||0,a||0,s||0);if(c&&"Z"!==c){let e=d(c[0],c.slice(1));Math.abs(e)<30&&(e*=60),l-=6e4*e}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function b(e){const t="undefined"!=typeof process&&process.env||{};return e?"undefined"!=typeof YAML_SILENCE_DEPRECATION_WARNINGS?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:"undefined"!=typeof YAML_SILENCE_WARNINGS?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function y(e,t){if(b(!1)){const n="undefined"!=typeof process&&process.emitWarning;n?n(e,t):console.warn(t?`${t}: ${e}`:e)}}const x={};t.binary=o,t.floatTime=v,t.intTime=m,t.omap=u,t.pairs=c,t.set=f,t.timestamp=g,t.warn=y,t.warnFileDeprecation=function(e){if(b(!0)){y(`The endpoint 'yaml/${e.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/")}' will be removed in a future release.`,"DeprecationWarning")}},t.warnOptionDeprecation=function(e,t){if(!x[e]&&b(!0)){x[e]=!0;let n=`The option '${e}' will be removed in a future release`;n+=t?`, use '${t}' instead.`:".",y(n,"DeprecationWarning")}}},function(e,t,n){"use strict";const r=n(670),i=process.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"",yellow:"",green:"",normal:""};function o(e,t){function n(e,t){return r.stringify(e)===r.stringify(Object.assign({},e,t))}return n(e,t)&&n(t,e)}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,(function(e,t){return t.toUpperCase()}))};function a(e){let t=(e=e.replace("[]","Array")).split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}e.exports={colour:i,uniqueOnly:function(e,t,n){return n.indexOf(e)===t},hasDuplicates:function(e){return new Set(e).size!==e.length},allSame:function(e){return new Set(e).size<=1},distinctArray:function(e){return e.length===function(e){let t=[];for(let n of e){t.find((function(e,t,r){return o(e,n)}))||t.push(n)}return t}(e).length},firstDupe:function(e){return e.find((function(t,n,r){return e.indexOf(t)<n}))},hash:function(e){let t,n=0;if(0===e.length)return n;for(let r=0;r<e.length;r++)t=e.charCodeAt(r),n=(n<<5)-n+t,n|=0;return n},parameterTypeProperties:["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],arrayProperties:["items","minItems","maxItems","uniqueItems"],httpMethods:["get","post","put","delete","patch","head","options","trace"],sanitise:a,sanitiseAll:function(e){return a(e.split("/").join("_"))}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(675)},function(e,t,n){"use strict";n.r(t),n.d(t,"add",(function(){return p})),n.d(t,"done",(function(){return f})),n.d(t,"toJS",(function(){return d})),n.d(t,"fromExternalJS",(function(){return h})),n.d(t,"load",(function(){return m})),n.d(t,"dispose",(function(){return v})),n.d(t,"search",(function(){return g}));var r=n(1),i=n(101);try{n(687)}catch(e){}var o=function(){Object.defineProperty(this,"add",{enumerable:!0,configurable:!0,writable:!0,value:p}),Object.defineProperty(this,"done",{enumerable:!0,configurable:!0,writable:!0,value:f}),Object.defineProperty(this,"search",{enumerable:!0,configurable:!0,writable:!0,value:g}),Object.defineProperty(this,"toJS",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"load",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(this,"dispose",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(this,"fromExternalJS",{enumerable:!0,configurable:!0,writable:!0,value:h})};t.default=o;var a,s,c,l=[];function u(){(a=new i.Builder).field("title"),a.field("description"),a.ref("ref"),a.pipeline.add(i.trimmer,i.stopWordFilter,i.stemmer),c=new Promise((function(e){s=e}))}i.tokenizer.separator=/\s+/,u();function p(e,t,n){var r=l.push(n)-1,i={title:e.toLowerCase(),description:t.toLowerCase(),ref:r};a.add(i)}function f(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(e){return s(a.build()),[2]}))}))}function d(){return Object(r.b)(this,void 0,void 0,(function(){var e;return Object(r.e)(this,(function(t){switch(t.label){case 0:return e={store:l},[4,c];case 1:return[2,(e.index=t.sent().toJSON(),e)]}}))}))}function h(e,t){return Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.e)(this,(function(r){switch(r.label){case 0:if(r.trys.push([0,2,,3]),importScripts(e),!self[t])throw new Error("Broken index file format");return[4,m(self[t])];case 1:return r.sent(),[3,3];case 2:return n=r.sent(),console.error("Failed to load search index: "+n.message),[3,3];case 3:return[2]}}))}))}function m(e){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(t){return l=e.store,s(i.Index.load(e.index)),[2]}))}))}function v(){return Object(r.b)(this,void 0,void 0,(function(){return Object(r.e)(this,(function(e){return l=[],u(),[2]}))}))}function g(e,t){return void 0===t&&(t=0),Object(r.b)(this,void 0,void 0,(function(){var n;return Object(r.e)(this,(function(r){switch(r.label){case 0:return 0===e.trim().length?[2,[]]:[4,c];case 1:return n=r.sent().query((function(t){e.trim().toLowerCase().split(/\s+/).forEach((function(e){if(1!==e.length){var n=function(e){return"*"+i.stemmer(new i.Token(e,{}))+"*"}(e);t.term(n,{})}}))})),t>0&&(n=n.slice(0,t)),[2,n.map((function(e){return{meta:l[e.ref],score:e.score}}))]}}))}))}},function(e,t,n){var r=n(109);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(272);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(131),i=n(90),o=n(273);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(165),i=n(276);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.14.0",mode:r?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++n+r).toString(36)}},function(e,t,n){var r=n(38);e.exports=r},function(e,t,n){var r=n(91),i=n(204),o=n(695).indexOf,a=n(278);e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){var r=n(279),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(90),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(110);e.exports=r("document","documentElement")},function(e,t,n){var r=n(387),i=n(90);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},function(e,t,n){var r,i,o=n(38),a=n(284),s=o.process,c=s&&s.versions,l=c&&c.v8;l?i=(r=l.split("."))[0]<4?1:r[0]+r[1]:a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(i=r[1]),e.exports=i&&+i},function(e,t,n){var r=n(134);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(285),i=n(271),o=n(61)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:a?i(t):"Object"==(r=i(t))&&"function"==typeof t.callee?"Arguments":r}},function(e,t,n){var r=n(38);e.exports=r.Promise},function(e,t,n){var r=n(92),i=n(134),o=n(61)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(38),s=n(90),c=n(388),l=n(385),u=n(273),p=n(393),f=n(287),d=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,x={},w=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},O=function(e){return function(){w(e)}},k=function(e){w(e.data)},j=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return x[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},m=function(e){delete x[e]},f?r=function(e){v.nextTick(O(e))}:b&&b.now?r=function(e){b.now(O(e))}:g&&!p?(o=(i=new g).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(j)?(r=j,a.addEventListener("message",k,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:h,clear:m}},function(e,t,n){var r=n(284);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(92),i=n(109),o=n(207);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(130),i=n(722),o=n(281),a=n(282),s=n(286),c=n(102),l=n(133),u=n(61),p=n(165),f=n(166),d=n(396),h=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g=function(){return this};e.exports=function(e,t,n,u,d,b,y){i(n,t,u);var x,w,O,k=function(e){if(e===d&&_)return _;if(!m&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",E=!1,S=e.prototype,C=S[v]||S["@@iterator"]||d&&S[d],_=!m&&C||k(d),P="Array"==t&&S.entries||C;if(P&&(x=o(P.call(new e)),h!==Object.prototype&&x.next&&(p||o(x)===h||(a?a(x,h):"function"!=typeof x[v]&&c(x,v,g)),s(x,j,!0,!0),p&&(f[j]=g))),"values"==d&&C&&"values"!==C.name&&(E=!0,_=function(){return C.call(this)}),p&&!y||S[v]===_||c(S,v,_),f[t]=_,d)if(w={values:k("values"),keys:b?_:k("keys"),entries:k("entries")},y)for(O in w)(m||E||!(O in S))&&l(S,O,w[O]);else r({target:t,proto:!0,forced:m||E},w);return w}},function(e,t,n){"use strict";var r,i,o,a=n(90),s=n(281),c=n(102),l=n(91),u=n(61),p=n(165),f=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var h=null==r||a((function(){var e={};return r[f].call(e)!==e}));h&&(r={}),p&&!h||l(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OasSpec=void 0;const r=n(89),i=n(78),o=n(88);t.OasSpec=()=>({any(e,{report:t,type:n,location:a,key:s,resolve:c}){var l,u;const p=i.oasTypeOf(e);if(n.items)return void("array"!==p&&t({message:`Expected type \`${n.name}\` (array) but got \`${p}\``}));if("object"!==p)return void t({message:`Expected type \`${n.name}\` (object) but got \`${p}\``});const f="function"==typeof n.required?n.required(e,s):n.required;for(let n of f||[])e.hasOwnProperty(n)||t({message:`The field \`${n}\` must be present on this level.`,location:[{reportOnKey:!0}]});const d=n.requiredOneOf||null;if(d){let n=!1;for(let t of d||[])e.hasOwnProperty(t)&&(n=!0);n||t({message:"Must contain at least one of the following fields: path, components, webhooks.",location:[{reportOnKey:!0}]})}for(const s of Object.keys(e)){const p=a.child([s]);let f=e[s],d=n.properties[s];if(void 0===d&&(d=n.additionalProperties),"function"==typeof d&&(d=d(f,s)),r.isNamedType(d))continue;const h=d,m=i.oasTypeOf(f);if(void 0!==h){if(null!==h)if(!1!==h.resolvable&&o.isRef(f)&&(f=c(f).node),h.enum)h.enum.includes(f)||t({location:p,message:`\`${s}\` can be one of the following only: ${h.enum.map(e=>`"${e}"`).join(", ")}.`,suggest:i.getSuggest(f,h.enum)});else if(h.type&&!i.matchesJsonSchemaType(f,h.type,!1))t({message:`Expected type \`${h.type}\` but got \`${m}\`.`,location:p});else if("array"===m&&(null===(l=h.items)||void 0===l?void 0:l.type)){const e=null===(u=h.items)||void 0===u?void 0:u.type;for(let n=0;n<f.length;n++){const r=f[n];i.matchesJsonSchemaType(r,e,!1)||t({message:`Expected type \`${e}\` but got \`${i.oasTypeOf(r)}\`.`,location:p.child([n])})}}}else{if(s.startsWith("x-"))continue;t({message:`Property \`${s}\` is not expected here.`,suggest:i.getSuggest(s,Object.keys(n.properties)),location:p.key()})}}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation2xxResponse=void 0,t.Operation2xxResponse=()=>({ResponsesMap(e,{report:t}){Object.keys(e).some(e=>"default"===e||/2[Xx0-9]{2}/.test(e))||t({message:"Operation must have at least one `2xx` response.",location:{reportOnKey:!0}})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationIdUnique=void 0,t.OperationIdUnique=()=>{const e=new Set;return{Operation(t,{report:n,location:r}){t.operationId&&(e.has(t.operationId)&&n({message:"Every operation must have a unique `operationId`.",location:r.child([t.operationId])}),e.add(t.operationId))}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationParametersUnique=void 0,t.OperationParametersUnique=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(t,{report:n,key:r,parentLocations:i}){const o=`${t.in}___${t.name}`;e.has(o)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.\nRepeats of \`in:${t.in}\` + \`name:${t.name}\`.`,location:i.PathItem.child(["parameters",r])}),e.add(`${t.in}___${t.name}`)},Operation:{enter(){t=new Set},Parameter(e,{report:n,key:r,parentLocations:i}){const o=`${e.in}___${e.name}`;t.has(o)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${e.in}\` + \`name:${e.name}\`.`,location:i.Operation.child(["parameters",r])}),t.add(o)}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathParamsDefined=void 0;const r=/\{([a-zA-Z0-9_.-]+)\}+/g;t.PathParamsDefined=()=>{let e,t,n;return{PathItem:{enter(i,{key:o}){t=new Set,n=o,e=new Set(Array.from(o.toString().matchAll(r)).map(e=>e[1]))},Parameter(r,{report:i,location:o}){"path"===r.in&&r.name&&(t.add(r.name),e.has(r.name)||i({message:`Path parameter \`${r.name}\` is not used in the path \`${n}\`.`,location:o.child(["name"])}))},Operation:{leave(r,{report:i,location:o}){for(const r of Array.from(e.keys()))t.has(r)||i({message:`The operation does not define the path parameter \`{${r}}\` expected by path \`${n}\`.`,location:o.child(["parameters"]).key()})},Parameter(r,{report:i,location:o}){"path"===r.in&&r.name&&(t.add(r.name),e.has(r.name)||i({message:`Path parameter \`${r.name}\` is not used in the path \`${n}\`.`,location:o.child(["name"])}))}}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTagDefined=void 0,t.OperationTagDefined=()=>{let e;return{DefinitionRoot(t){var n;e=new Set((null!==(n=t.tags)&&void 0!==n?n:[]).map(e=>e.name))},Operation(t,{report:n,location:r}){if(t.tags)for(let i=0;i<t.tags.length;i++)e.has(t.tags[i])||n({message:"Operation tags should be defined in global tags.",location:r.child(["tags",i])})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoEnumTypeMismatch=void 0;const r=n(78);t.NoEnumTypeMismatch=()=>({Schema(e,{report:t,location:n}){if(e.enum&&e.type&&!Array.isArray(e.type)){const i=e.enum.filter(t=>!r.matchesJsonSchemaType(t,e.type,e.nullable));for(const o of i)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${r.oasTypeOf(o)}".`,location:n.child(["enum",e.enum.indexOf(o)])})}if(e.enum&&e.type&&Array.isArray(e.type)){const i={};for(const t of e.enum){i[t]=[];for(const n of e.type){r.matchesJsonSchemaType(t,n,e.nullable)||i[t].push(n)}i[t].length!==e.type.length&&delete i[t]}for(const r of Object.keys(i))t({message:`Enum value \`${r}\` must be of one type. Allowed types: \`${e.type}\`.`,location:n.child(["enum",e.enum.indexOf(r)])})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoPathTrailingSlash=void 0,t.NoPathTrailingSlash=()=>({PathItem(e,{report:t,key:n,location:r}){n.endsWith("/")&&"/"!==n&&t({message:`\`${n}\` should not have a trailing slash.`,location:r.key()})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathDeclarationMustExist=void 0,t.PathDeclarationMustExist=()=>({PathItem(e,{report:t,key:n}){-1!==n.indexOf("{}")&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0}})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationIdUrlSafe=void 0;const r=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/;t.OperationIdUrlSafe=()=>({Operation(e,{report:t,location:n}){e.operationId&&!r.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:n.child(["operationId"])})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsAlphabetical=void 0,t.TagsAlphabetical=()=>({DefinitionRoot(e,{report:t,location:n}){if(e.tags)for(let r=0;r<e.tags.length-1;r++)e.tags[r].name>e.tags[r+1].name&&t({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",r])})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoDescription=void 0;const r=n(78);t.InfoDescription=()=>({Info(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagDescription=void 0;const r=n(78);t.TagDescription=()=>({Tag(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoContact=void 0;const r=n(78);t.InfoContact=()=>({Info(e,{report:t,location:n}){e.contact||t({message:r.missingRequiredField("Info","contact"),location:n.child("contact").key()})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoLicense=void 0;const r=n(78);t.InfoLicense=()=>({Info(e,{report:t}){e.license||t({message:r.missingRequiredField("Info","license")})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationDescription=void 0;const r=n(78);t.OperationDescription=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("description",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathNotIncludeQuery=void 0,t.PathNotIncludeQuery=()=>({PathMap:{PathItem(e,{report:t,key:n}){n.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0}})}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParameterDescription=void 0,t.ParameterDescription=()=>({Parameter(e,{report:t,location:n}){void 0===e.description?t({message:"Parameter object description must be present.",location:{reportOnKey:!0}}):e.description||t({message:"Parameter object description must be non-empty string.",location:n.child(["description"])})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSingularTag=void 0,t.OperationSingularTag=()=>({Operation(e,{report:t,location:n}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:n.child(["tags"]).key()})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfoLicenseUrl=void 0;const r=n(78);t.InfoLicenseUrl=()=>({License(e,t){r.validateDefinedAndNonEmpty("url",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSecurityDefined=void 0,t.OperationSecurityDefined=()=>{let e=new Map;return{DefinitionRoot:{leave(t,{report:n}){for(const[t,r]of e.entries())if(!r.defined)for(const e of r.from)n({message:`There is no \`${t}\` security scheme defined.`,location:e.key()})}},SecurityScheme(t,{key:n}){e.set(n.toString(),{defined:!0,from:[]})},SecurityRequirement(t,{location:n}){for(const r of Object.keys(t)){const t=e.get(r),i=n.child([r]);t?t.from.push(i):e.set(r,{from:[i]})}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathsKebabCase=void 0,t.PathsKebabCase=()=>({PathItem(e,{report:t,key:n}){n.substr(1).split("/").every(e=>/^{.+}$/.test(e)||/^[a-z0-9-.]+$/.test(e))||t({message:`\`${n}\` does not use kebab-case.`,location:{reportOnKey:!0}})}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PathHttpVerbsOrder=void 0;const r=["get","head","post","put","patch","delete","options","trace"];t.PathHttpVerbsOrder=e=>{const t=e&&e.order||r;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(e,{report:n,location:r}){const i=Object.keys(e).filter(e=>t.includes(e));for(let e=0;e<i.length-1;e++){const o=t.indexOf(i[e]);t.indexOf(i[e+1])<o&&n({message:"Operation http verbs must be ordered.",location:Object.assign({reportOnKey:!0},r.child(i[e+1]))})}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonSchema=t.releaseAjvInstance=void 0;const r=n(747),i=n(88);let o=null;function a(e,t,n,i){const a=function(e,t){return o||(o=new r({schemaId:"auto",meta:!0,allErrors:!0,jsonPointers:!0,unknownFormats:"ignore",nullable:!0,missingRefs:"ignore",inlineRefs:!1,validateSchema:!1,defaultAdditionalProperties:!t,loadSchemaSync(t,n,r){const i=e({$ref:n},t.replace(/#$/,""));if(i&&i.location)return Object.assign({id:r},i.node)},logger:!1})),o}(n,i);return a.getSchema(t.absolutePointer)||a.addSchema(Object.assign({id:t.absolutePointer},e),t.absolutePointer),a.getSchema(t.absolutePointer)}t.releaseAjvInstance=function(){o=null},t.validateJsonSchema=function(e,t,n,r,o,s){const c=a(t,n,o,s);return c?{valid:!!c(e,r),errors:(c.errors||[]).map((function(e){let t=e.message,n="enum"===e.keyword?e.params.allowedValues:void 0;n&&(t+=" "+n.map(e=>`"${e}"`).join(", "));"type"===e.keyword&&(t="type "+t);const o=e.dataPath.substring(r.length+1),a=o.substring(o.lastIndexOf("/")+1);a&&(t=`\`${a}\` property ${t}`);if("additionalProperties"===e.keyword){const n=e.params.additionalProperty;t=`${t} \`${n}\``,e.dataPath+="/"+i.escapePointer(n)}return Object.assign(Object.assign({},e),{message:t,suggest:n})}))}:{valid:!0,errors:[]}}},function(e,t,n){"use strict";var r=n(135);e.exports=function(e){r.copy(e,this)}},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n<t.length;n++)n&&(a+=","),a+=e(t[n])||"null";return a+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var s=o.push(t)-1,c=Object.keys(t).sort(i&&i(t));for(a="",n=0;n<c.length;n++){var l=c[n],u=e(t[l]);u&&(a&&(a+=","),a+=JSON.stringify(l)+":"+u)}return o.splice(s,1),"{"+a+"}"}}(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r="",i=!0===e.schema.$async,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var s=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(s){var c="unknown keyword: "+s;if("log"!==e.opts.strictKeywords)throw new Error(c);e.logger.warn(c)}}if(e.isTop&&(r+=" var validate = ",i&&(e.async=!0,r+="async "),r+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(r+=" /*# sourceURL="+a+" */ ")),"boolean"==typeof e.schema||!o&&!e.schema.$ref){var l=e.level,u=e.dataLevel,p=e.schema["false schema"],f=e.schemaPath+e.util.getProperty("false schema"),d=e.errSchemaPath+"/false schema",h=!e.opts.allErrors,m="data"+(u||""),v="valid"+l;if(!1===e.schema){e.isTop?h=!0:r+=" var "+v+" = false; ",(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'false schema' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",!1!==e.opts.messages&&(r+=" , message: 'boolean schema is false' "),e.opts.verbose&&(r+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";var g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?r+=i?" return data; ":" validate.errors = null; return true; ":r+=" var "+v+" = true; ";return e.isTop&&(r+=" }; return validate; "),r}if(e.isTop){var b=e.isTop;l=e.level=0,u=e.dataLevel=0,m="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[void 0],void 0!==e.schema.default&&e.opts.useDefaults&&e.opts.strictDefaults){var y="default is ignored in the schema root";if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}r+=" var vErrors = null; ",r+=" var errors = 0; ",r+=" if (rootData === undefined) rootData = data; "}else{l=e.level,m="data"+((u=e.dataLevel)||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");r+=" var errs_"+l+" = errors;"}v="valid"+l,h=!e.opts.allErrors;var x="",w="",O=e.schema.type,k=Array.isArray(O);if(O&&e.opts.nullable&&!0===e.schema.nullable&&(k?-1==O.indexOf("null")&&(O=O.concat("null")):"null"!=O&&(O=[O,"null"],k=!0)),k&&1==O.length&&(O=O[0],k=!1),e.schema.$ref&&o){if("fail"==e.opts.extendRefs)throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');!0!==e.opts.extendRefs&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(r+=" "+e.RULES.all.$comment.code(e,"$comment")),O){if(e.opts.coerceTypes)var j=e.util.coerceToTypes(e.opts.coerceTypes,O);var E=e.RULES.types[O];if(j||k||!0===E||E&&!X(E)){f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type";var S=k?"checkDataTypes":"checkDataType";if(r+=" if ("+e.util[S](O,m,e.opts.strictNumbers,!0)+") { ",j){var C="dataType"+l,_="coerced"+l;r+=" var "+C+" = typeof "+m+"; ","array"==e.opts.coerceTypes&&(r+=" if ("+C+" == 'object' && Array.isArray("+m+")) "+C+" = 'array'; "),r+=" var "+_+" = undefined; ";var P="",A=j;if(A)for(var D,T=-1,I=A.length-1;T<I;)D=A[T+=1],T&&(r+=" if ("+_+" === undefined) { ",P+="}"),"array"==e.opts.coerceTypes&&"array"!=D&&(r+=" if ("+C+" == 'array' && "+m+".length == 1) { "+_+" = "+m+" = "+m+"[0]; "+C+" = typeof "+m+"; } "),"string"==D?r+=" if ("+C+" == 'number' || "+C+" == 'boolean') "+_+" = '' + "+m+"; else if ("+m+" === null) "+_+" = ''; ":"number"==D||"integer"==D?(r+=" if ("+C+" == 'boolean' || "+m+" === null || ("+C+" == 'string' && "+m+" && "+m+" == +"+m+" ","integer"==D&&(r+=" && !("+m+" % 1)"),r+=")) "+_+" = +"+m+"; "):"boolean"==D?r+=" if ("+m+" === 'false' || "+m+" === 0 || "+m+" === null) "+_+" = false; else if ("+m+" === 'true' || "+m+" === 1) "+_+" = true; ":"null"==D?r+=" if ("+m+" === '' || "+m+" === 0 || "+m+" === false) "+_+" = null; ":"array"==e.opts.coerceTypes&&"array"==D&&(r+=" if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+m+" == null) "+_+" = ["+m+"]; ");r+=" "+P+" if ("+_+" === undefined) { ",(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=k?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } else { ";var R=u?"data"+(u-1||""):"parentData";r+=" "+m+" = "+_+"; ",u||(r+="if ("+R+" !== undefined)"),r+=" "+R+"["+(u?e.dataPathArr[u]:"parentDataProperty")+"] = "+_+"; } "}else{(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=k?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}r+=" } "}}if(e.schema.$ref&&!o)r+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",h&&(r+=" } if (errors === ",r+=b?"0":"errs_"+l,r+=") { ",w+="}");else{var L=e.RULES;if(L)for(var N=-1,F=L.length-1;N<F;)if(X(E=L[N+=1])){if(E.type&&(r+=" if ("+e.util.checkDataType(E.type,m,e.opts.strictNumbers)+") { "),e.opts.useDefaults)if("object"==E.type&&e.schema.properties){p=e.schema.properties;var M=Object.keys(p);if(M)for(var B,z=-1,U=M.length-1;z<U;){if(void 0!==(q=p[B=M[z+=1]]).default){var $=m+e.util.getProperty(B);if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+$;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else r+=" if ("+$+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+$+" === null || "+$+" === '' "),r+=" ) "+$+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(q.default)+" ":r+=" "+JSON.stringify(q.default)+" ",r+="; "}}}else if("array"==E.type&&Array.isArray(e.schema.items)){var V=e.schema.items;if(V){T=-1;for(var q,H=V.length-1;T<H;)if(void 0!==(q=V[T+=1]).default){$=m+"["+T+"]";if(e.compositeRule){if(e.opts.strictDefaults){y="default is ignored for: "+$;if("log"!==e.opts.strictDefaults)throw new Error(y);e.logger.warn(y)}}else r+=" if ("+$+" === undefined ","empty"==e.opts.useDefaults&&(r+=" || "+$+" === null || "+$+" === '' "),r+=" ) "+$+" = ","shared"==e.opts.useDefaults?r+=" "+e.useDefault(q.default)+" ":r+=" "+JSON.stringify(q.default)+" ",r+="; "}}}var W=E.rules;if(W)for(var Q,Y=-1,K=W.length-1;Y<K;)if(Z(Q=W[Y+=1])){var G=Q.code(e,Q.keyword,E.type);G&&(r+=" "+G+" ",h&&(x+="}"))}if(h&&(r+=" "+x+" ",x=""),E.type&&(r+=" } ",O&&O===E.type&&!j)){r+=" else { ";var J;f=e.schemaPath+".type",d=e.errSchemaPath+"/type";(J=J||[]).push(r),r="",!1!==e.createErrors?(r+=" { keyword: 'type' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",r+=k?""+O.join(","):""+O,r+="' } ",!1!==e.opts.messages&&(r+=" , message: 'should be ",r+=k?""+O.join(","):""+O,r+="' "),e.opts.verbose&&(r+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+m+" "),r+=" } "):r+=" {} ";g=r;r=J.pop(),!e.compositeRule&&h?e.async?r+=" throw new ValidationError(["+g+"]); ":r+=" validate.errors = ["+g+"]; return false; ":r+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",r+=" } "}h&&(r+=" if (errors === ",r+=b?"0":"errs_"+l,r+=") { ",w+="}")}}function X(e){for(var t=e.rules,n=0;n<t.length;n++)if(Z(t[n]))return!0}function Z(t){return void 0!==e.schema[t.keyword]||t.implements&&function(t){for(var n=t.implements,r=0;r<n.length;r++)if(void 0!==e.schema[n[r]])return!0}(t)}return h&&(r+=" "+w+" "),b?(i?(r+=" if (errors === 0) return data; ",r+=" else throw new ValidationError(vErrors); "):(r+=" validate.errors = vErrors; ",r+=" return errors === 0; "),r+=" }; return validate;"):r+=" var "+v+" = errors === errs_"+l+";",r=e.util.cleanUpCode(r),b&&(r=e.util.finalCleanUpCode(r,i)),r}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var d="maximum"==t,h=d?"exclusiveMaximum":"exclusiveMinimum",m=e.schema[h],v=e.opts.$data&&m&&m.$data,g=d?"<":">",b=d?">":"<",y=void 0;if(v){var x=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,O="exclType"+o,k="exclIsNumber"+o,j="' + "+(C="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+x+"; ",i+=" var "+w+"; var "+O+" = typeof "+(x="schemaExcl"+o)+"; if ("+O+" != 'boolean' && "+O+" != 'undefined' && "+O+" != 'number') { ";var E;y=h;(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+c+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var S=i;i=E.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+O+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+x+" "+g+"= "+r+") ? "+p+" "+b+"= "+x+" : "+p+" "+b+" "+r+" ) : ( ("+w+" = "+x+" === true) ? "+p+" "+b+"= "+r+" : "+p+" "+b+" "+r+" ) || "+p+" !== "+p+") { var op"+o+" = "+w+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(y=h,l=e.errSchemaPath+"/"+h,r=x,f=v)}else{j=g;if((k="number"==typeof m)&&f){var C="'"+j+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+m+" "+g+"= "+r+" ? "+p+" "+b+"= "+m+" : "+p+" "+b+" "+r+" ) || "+p+" !== "+p+") { "}else{k&&void 0===s?(w=!0,y=h,l=e.errSchemaPath+"/"+h,r=m,b+="="):(k&&(r=Math[d?"min":"max"](m,s)),m===(!k||r)?(w=!0,y=h,l=e.errSchemaPath+"/"+h,b+="="):(w=!1,j+="="));C="'"+j+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+p+" "+b+" "+r+" || "+p+" !== "+p+") { "}}y=y||t,(E=E||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(y||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+C+", limit: "+r+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+j+" ",i+=f?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";S=i;return i=E.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+S+"]); ":i+=" validate.errors = ["+S+"]; return false; ":i+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",u&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+p+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var d=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var d="maxLength"==t?">":"<";i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+p+".length ":i+=" ucs2length("+p+") ",i+=" "+d+" "+r+") { ";var h=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var v=i;return i=m.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+v+"]); ":i+=" validate.errors = ["+v+"]; return false; ":i+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],c=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,u=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var d=t,h=h||[];h.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+c:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=h.pop(),!e.compositeRule&&u?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",u&&(i+=" else { "),i}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegistryDependencies=void 0;const r=n(289);t.RegistryDependencies=()=>{let e,t=new Set;return{DefinitionRoot:{leave(){e=new r.RedoclyClient,process.env.UPDATE_REGISTRY&&e.hasToken()&&e.updateDependencies(Array.from(t.keys()))}},ref(e){if(e.$ref){const n=e.$ref.split("#/")[0];r.RedoclyClient.isRegistryURL(n)&&t.add(n)}}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NoIdenticalPaths=void 0,t.NoIdenticalPaths=()=>({PathMap(e,{report:t,location:n}){const r=new Map;for(const i of Object.keys(e)){const e=i.replace(/{.+?}/g,"{VARIABLE}"),o=r.get(e);o?t({message:`The path already exists which differs only by path parameter name(s): \`${o}\` and \`${i}\`.`,location:n.child([i]).key()}):r.set(e,i)}}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationOperationId=void 0;const r=n(78);t.OperationOperationId=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("operationId",e,t)}})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationSummary=void 0;const r=n(78);t.OperationSummary=()=>({Operation(e,t){r.validateDefinedAndNonEmpty("summary",e,t)}})},function(e,t,n){"use strict";function r(e,t){const n=e.split("/"),r=t.split("/");if(n.length!==r.length)return!1;let i=0,o=0,a=!0;for(let e=0;e<n.length;e++){const t=n[e].match(/^{.+?}$/),s=r[e].match(/^{.+?}$/);t||s?(t&&i++,s&&o++):n[e]!==r[e]&&(a=!1)}return a&&i===o}Object.defineProperty(t,"__esModule",{value:!0}),t.NoAmbiguousPaths=void 0,t.NoAmbiguousPaths=()=>({PathMap(e,{report:t,location:n}){const i=[];for(const o of Object.keys(e)){const e=i.find(e=>r(e,o));e&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${e}\` and \`${o}\`.`,location:n.child([o]).key()}),i.push(o)}}})},function(e,t,n){"use strict";var r=n(169),i=new r.Schema({include:[n(292)],explicit:[n(807),n(808)]});r.Schema.DEFAULT=i,e.exports=i},function(e){e.exports=JSON.parse('{"name":"@redocly/reference-docs","version":"2.1.19","description":"Redocly Reference Docs","main":"lib/index.js","module":"lib-esm/index.js","author":"Roman Hotsiy <roman@redoc.ly>","license":"SEE LICENSE IN LICENSE.md","engines":{"node":">=12","npm":">=6.0.0"},"bin":{"redocly-api-reference":"bin/cli/commands/redocly-docs-cli.min.js","reference-docs":"bin/cli/commands/redocly-docs-cli.min.js"},"dependencies":{"@redocly/openapi-core":"^1.0.0-beta.50","@redocly/react-dropdown-aria":"2.0.12","@redocly/vscode-json-languageservice":"3.4.9","@wojtekmaj/enzyme-adapter-react-17":"^0.6.2","classnames":"^2.2.6","codemirror":"^5.59.4","decko":"^1.2.0","deepmerge":"^4.2.2","dompurify":"^2.0.12","eventemitter3":"^4.0.4","fast-deep-equal":"^3.1.3","handlebars":"^4.7.6","hotkeys-js":"^3.7.6","informed":"3.33.0","js-yaml":"^3.13.0","json-pointer":"^0.6.0","kleur":"^3.0.3","lunr":"^2.3.8","mark.js":"^8.11.1","marked":"^3.0.4","mkdirp":"^0.5.1","mobx-react":"^7.2.0","node-libs-browser":"^2.2.0","openapi-sampler":"^1.0.0","perfect-scrollbar":"^1.4.0","polished":"^3.6.5","prismjs":"^1.22.0","prop-types":"^15.7.2","query-string":"^6.13.6","react-codemirror2":"^7.1.0","react-tabs":"^3.1.1","serve-static":"^1.14.1","slugify":"^1.4.4","stickyfill":"^1.1.1","stringify-object":"^3.3.0","styled-components":"^4.1.1 || ^5.1.1","swagger-client":"^3.13.3","swagger2openapi":"^6.2.1","tslib":"^2.2.0","url-template":"^2.0.8","yargs":"^15.0.2"},"scripts":{"prepublishOnly-local":"npm run clean && npm run bundle && npm run compile-lib && npm run bundle-cli && npm run prepublish-test","clean":"rm -rf bin dist lib lib-esm cli-zip","bundle":"webpack --mode=production --optimize-minimize","compile-lib":"npm run compile-es5 && npm run compile-esm && npm run bundle-worker","compile-es5":"rm -rf lib && tsc -p tsconfig.lib.json && node scripts/minify.js lib","compile-esm":"rm -rf lib-esm && tsc -p tsconfig.lib-esm.json && node scripts/minify.js lib-esm","bundle-worker":"webpack --config webpack.config.worker.js --mode=production --optimize-minimize","bundle-cli":"webpack --config webpack.config.server.js --mode=production --optimize-minimize && cp -Rf src/cli/assets bin/cli/assets","publish-cli-s3":"scripts/publish-cli-s3.sh","publish-cdn":"scripts/publish-cdn.sh","pack-sourcemaps":"rm -rf reference-docs.sourcemaps.tag.gz && find lib lib-esm -name \\"*.js.map\\" | xargs tar -czvf reference-docs.sourcemaps.tag.gz","start":"webpack-dev-server --mode=development --hot","stats":"webpack --json --profile --mode=production -p > stats.json && npx webpack-bundle-analyzer stats.json","prettier":"prettier --write \\"src/cli/cli.ts\\" \\"src/**/*.{ts,tsx}\\" \\"playground/**/*.{ts,tsx}\\"","lint":"eslint --fix . --ext .ts,.tsx --cache","prepublish-test":"scripts/prepublish-test.sh","test":"npm run test:unit && npm run test:e2e","test:unit":"jest","test:unit:watch":"jest --watch","test:update-snapshot":"jest --updateSnapshot","test:e2e":"percy exec -- cypress run","cypress":"cypress open","list-licenses":"node ./scripts/list-licenses.js","license-check":"license-checker --production --onlyAllow \'MIT;ISC;Apache-2.0;Apache;CC0-1.0;BSD;BSD-2-Clause;BSD-3-Clause;UNKNOWN\' --summary","ts-check":"tsc --noEmit --skipLibCheck","precdn-serve":"mkdir -p playground/cdn-test/server-dist && cp -Rf dist/* playground/cdn-test/server-dist && cp -Rf playground/cdn-test/template-source/* playground/cdn-test/server-dist","cdn-serve":"http-server playground/cdn-test/server-dist","prepare":"husky install","pre-commit":"pretty-quick --staged && npm run lint"},"peerDependencies":{"core-js":"^3.1.4","mobx":"^6.3.2","react":"^16.8.4 || ^17.0.0","react-dom":"^16.8.4 || ^17.0.0","styled-components":"^4.1.1 || ^5.1.1"},"devDependencies":{"@babel/core":"^7.9.0","@babel/parser":"^7.9.4","@babel/plugin-proposal-nullish-coalescing-operator":"^7.8.3","@babel/plugin-proposal-optional-chaining":"^7.9.0","@babel/plugin-syntax-decorators":"^7.8.3","@babel/plugin-syntax-dynamic-import":"^7.7.4","@babel/plugin-syntax-jsx":"^7.8.3","@babel/plugin-syntax-typescript":"^7.8.3","@percy/cli":"^1.0.0-beta.68","@percy/cypress":"^3.1.1","@testing-library/jest-dom":"^4.2.4","@testing-library/react":"^11.1.0","@testing-library/user-event":"^12.1.10","@types/codemirror":"0.0.88","@types/dompurify":"^2.0.2","@types/enzyme-to-json":"^1.5.3","@types/jest":"^25.1.4","@types/json-pointer":"^1.0.30","@types/lodash":"^4.14.149","@types/mark.js":"^8.11.5","@types/marked":"^3.0.1","@types/node":"^14.14.37","@types/prismjs":"^1.16.1","@types/prop-types":"^15.7.3","@types/react":"^16.9.27","@types/react-dom":"^16.9.4","@types/react-tabs":"^2.3.2","@types/styled-components":"^5.1.9","@types/webpack":"^4.41.9","@types/webpack-env":"^1.14.1","@typescript-eslint/eslint-plugin":"^4.28.3","@typescript-eslint/parser":"^4.28.3","babel-loader":"^8.1.0","babel-plugin-styled-components":"^1.10.6","babylon":"7.0.0-beta.47","core-js":"^3.5.0","css-loader":"^3.3.2","cypress":"^8.4.0","cypress-file-upload":"^5.0.8","enzyme":"^3.7.0","enzyme-to-json":"^3.6.2","eslint":"^7.30.0","eslint-import-resolver-typescript":"^2.4.0","eslint-plugin-import":"^2.23.4","eslint-plugin-jsx-a11y":"^6.4.1","eslint-plugin-react":"^7.25.1","eslint-plugin-react-hooks":"^4.2.0","html-webpack-plugin":"^4.0.3","husky":"^7.0.0","jest":"^26.6.3","jest-styled-components":"^7.0.4","json-schema":"^0.2.5","lodash":"^4.17.20","mobx":"^6.3.2","prettier":"^2.3.2","pretty-quick":"^3.0.0","raw-loader":"^4.0.2","react":"^17.0.0","react-dom":"^17.0.0","react-hot-loader":"^4.12.18","react-test-renderer":"^17.0.2","string-replace-loader":"^2.2.0","style-loader":"^1.0.1","terser":"^5.6.1","ts-jest":"^26.4.4","ts-loader":"^6.2.2","ts-node":"^8.8.1","typescript":"4.4.2","unfetch":"^4.1.0","url-polyfill":"^1.1.7","webpack":"^4.42.1","webpack-cli":"^3.3.10","webpack-dev-server":"^3.11.0","worker-loader":"^2.0.0","workerize-loader":"^1.3.0","yaml-js":"^0.2.3"},"jest":{"verbose":true,"globals":{"ts-jest":{"diagnostics":{"ignoreCodes":[151001]}}},"testPathIgnorePatterns":["cypress"],"setupFilesAfterEnv":["<rootDir>/src/setupTests.ts"],"preset":"ts-jest","collectCoverage":true,"collectCoverageFrom":["src/**/*.{ts,tsx}"],"coverageReporters":["json","lcov","text-summary"],"coveragePathIgnorePatterns":["\\\\.d\\\\.ts$","/benchmark/","/node_modules/"],"modulePathIgnorePatterns":["/benchmark/","src/components/__tests__/mocks/*","src/models/*"],"snapshotSerializers":["enzyme-to-json/serializer"],"moduleNameMapper":{"\\\\.(css|less)$":"<rootDir>/src/empty.js"}},"prettier":{"singleQuote":true,"trailingComma":"all","printWidth":100,"arrowParens":"avoid"}}')},function(e,t,n){e.exports=n(822)},function(e,t,n){n(823);var r=n(29);e.exports=r.Object.keys},function(e,t,n){var r=n(50),i=n(30),o=n(294);e.exports=!r&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(30),i=/#|\.prototype\./,o=function(e,t){var n=s[a(e)];return n==l||n!=c&&("function"==typeof t?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},s=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},function(e,t,n){var r=n(62),i=n(79),o=n(295).indexOf,a=n(173);e.exports=function(e,t){var n,s=i(e),c=0,l=[];for(n in s)!r(a,n)&&r(s,n)&&l.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~o(l,n)||l.push(n));return l}},function(e,t,n){e.exports=n(824)},function(e,t,n){"use strict";var r=n(20),i=n(33),o=n(82),a=n(139),s=n(50),c=n(298),l=n(443),u=n(30),p=n(62),f=n(174),d=n(35),h=n(54),m=n(80),v=n(79),g=n(211),b=n(138),y=n(175),x=n(172),w=n(302),O=n(827),k=n(303),j=n(137),E=n(81),S=n(209),C=n(69),_=n(176),P=n(300),A=n(214),D=n(173),T=n(215),I=n(34),R=n(304),L=n(31),N=n(140),F=n(112),M=n(113).forEach,B=A("hidden"),z=I("toPrimitive"),U=F.set,$=F.getterFor("Symbol"),V=Object.prototype,q=i.Symbol,H=o("JSON","stringify"),W=j.f,Q=E.f,Y=O.f,K=S.f,G=P("symbols"),J=P("op-symbols"),X=P("string-to-symbol-registry"),Z=P("symbol-to-string-registry"),ee=P("wks"),te=i.QObject,ne=!te||!te.prototype||!te.prototype.findChild,re=s&&u((function(){return 7!=y(Q({},"a",{get:function(){return Q(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=W(V,t);r&&delete V[t],Q(e,t,n),r&&e!==V&&Q(V,t,r)}:Q,ie=function(e,t){var n=G[e]=y(q.prototype);return U(n,{type:"Symbol",tag:e,description:t}),s||(n.description=t),n},oe=l?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof q},ae=function(e,t,n){e===V&&ae(J,t,n),h(e);var r=g(t,!0);return h(n),p(G,r)?(n.enumerable?(p(e,B)&&e[B][r]&&(e[B][r]=!1),n=y(n,{enumerable:b(0,!1)})):(p(e,B)||Q(e,B,b(1,{})),e[B][r]=!0),re(e,r,n)):Q(e,r,n)},se=function(e,t){h(e);var n=v(t),r=x(n).concat(pe(n));return M(r,(function(t){s&&!ce.call(n,t)||ae(e,t,n[t])})),e},ce=function(e){var t=g(e,!0),n=K.call(this,t);return!(this===V&&p(G,t)&&!p(J,t))&&(!(n||!p(this,t)||!p(G,t)||p(this,B)&&this[B][t])||n)},le=function(e,t){var n=v(e),r=g(t,!0);if(n!==V||!p(G,r)||p(J,r)){var i=W(n,r);return!i||!p(G,r)||p(n,B)&&n[B][r]||(i.enumerable=!0),i}},ue=function(e){var t=Y(v(e)),n=[];return M(t,(function(e){p(G,e)||p(D,e)||n.push(e)})),n},pe=function(e){var t=e===V,n=Y(t?J:v(e)),r=[];return M(n,(function(e){!p(G,e)||t&&!p(V,e)||r.push(G[e])})),r};(c||(_((q=function(){if(this instanceof q)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=T(e),n=function(e){this===V&&n.call(J,e),p(this,B)&&p(this[B],t)&&(this[B][t]=!1),re(this,t,b(1,e))};return s&&ne&&re(V,t,{configurable:!0,set:n}),ie(t,e)}).prototype,"toString",(function(){return $(this).tag})),_(q,"withoutSetter",(function(e){return ie(T(e),e)})),S.f=ce,E.f=ae,j.f=le,w.f=O.f=ue,k.f=pe,R.f=function(e){return ie(I(e),e)},s&&(Q(q.prototype,"description",{configurable:!0,get:function(){return $(this).description}}),a||_(V,"propertyIsEnumerable",ce,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:q}),M(x(ee),(function(e){L(e)})),r({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=String(e);if(p(X,t))return X[t];var n=q(t);return X[t]=n,Z[n]=t,n},keyFor:function(e){if(!oe(e))throw TypeError(e+" is not a symbol");if(p(Z,e))return Z[e]},useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!c,sham:!s},{create:function(e,t){return void 0===t?y(e):se(y(e),t)},defineProperty:ae,defineProperties:se,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:ue,getOwnPropertySymbols:pe}),r({target:"Object",stat:!0,forced:u((function(){k.f(1)}))},{getOwnPropertySymbols:function(e){return k.f(m(e))}}),H)&&r({target:"JSON",stat:!0,forced:!c||u((function(){var e=q();return"[null]"!=H([e])||"{}"!=H({a:e})||"{}"!=H(Object(e))}))},{stringify:function(e,t,n){for(var r,i=[e],o=1;arguments.length>o;)i.push(arguments[o++]);if(r=t,(d(t)||void 0!==e)&&!oe(e))return f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!oe(t))return t}),i[1]=t,H.apply(null,i)}});q.prototype[z]||C(q.prototype,z,q.prototype.valueOf),N(q,"Symbol"),D[B]=!0},function(e,t,n){var r=n(298);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(50),i=n(81),o=n(54),a=n(172);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(82);e.exports=r("document","documentElement")},function(e,t,n){var r=n(33),i=n(447),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(301),i=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},function(e,t,n){var r=n(831),i=Array.prototype;e.exports=function(e){var t=e.filter;return e===i||e instanceof Array&&t===i.filter?r:t}},function(e,t,n){e.exports=n(833)},function(e,t,n){"use strict";var r=n(79),i=n(307),o=n(142),a=n(112),s=n(451),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var r=n(20),i=n(839),o=n(179),a=n(216),s=n(140),c=n(69),l=n(176),u=n(34),p=n(139),f=n(142),d=n(452),h=d.IteratorPrototype,m=d.BUGGY_SAFARI_ITERATORS,v=u("iterator"),g=function(){return this};e.exports=function(e,t,n,u,d,b,y){i(n,t,u);var x,w,O,k=function(e){if(e===d&&_)return _;if(!m&&e in S)return S[e];switch(e){case"keys":case"values":case"entries":return function(){return new n(this,e)}}return function(){return new n(this)}},j=t+" Iterator",E=!1,S=e.prototype,C=S[v]||S["@@iterator"]||d&&S[d],_=!m&&C||k(d),P="Array"==t&&S.entries||C;if(P&&(x=o(P.call(new e)),h!==Object.prototype&&x.next&&(p||o(x)===h||(a?a(x,h):"function"!=typeof x[v]&&c(x,v,g)),s(x,j,!0,!0),p&&(f[j]=g))),"values"==d&&C&&"values"!==C.name&&(E=!0,_=function(){return C.call(this)}),p&&!y||S[v]===_||c(S,v,_),f[t]=_,d)if(w={values:k("values"),keys:b?_:k("keys"),entries:k("entries")},y)for(O in w)(m||E||!(O in S))&&l(S,O,w[O]);else r({target:t,proto:!0,forced:m||E},w);return w}},function(e,t,n){"use strict";var r,i,o,a=n(30),s=n(179),c=n(69),l=n(62),u=n(34),p=n(139),f=u("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=s(s(o)))!==Object.prototype&&(r=i):d=!0);var h=null==r||a((function(){var e={};return r[f].call(e)!==e}));h&&(r={}),p&&!h||l(r,f)||c(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},function(e,t,n){var r=n(30);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){"use strict";var r=n(30);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){throw 1},1)}))}},function(e,t,n){var r=n(456);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(114),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t){var n="object"==typeof global&&global&&global.Object===Object&&global;e.exports=n},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(866),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),c=Array(s);++a<s;)c[a]=o[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=o[a];return l[t]=n(c),r(e,this,l)}}},function(e,t,n){var r=n(867),i=n(869)(r);e.exports=i},function(e,t,n){var r=n(871),i=n(220),o=n(55),a=n(221),s=n(219),c=n(311),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),u=!n&&i(e),p=!n&&!u&&a(e),f=!n&&!u&&!p&&c(e),d=n||u||p||f,h=d?r(e.length,String):[],m=h.length;for(var v in e)!t&&!l.call(e,v)||d&&("length"==v||p&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||s(v,m))||h.push(v);return h}},function(e,t,n){var r=n(182),i=n(875),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(143),i=n(877),o=n(55),a=n(222),s=r?r.prototype:void 0,c=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},function(e,t,n){var r=n(878);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(464);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";var r=n(20),i=n(30),o=n(174),a=n(35),s=n(80),c=n(111),l=n(180),u=n(306),p=n(178),f=n(34),d=n(213),h=f("isConcatSpreadable"),m=d>=51||!i((function(){var e=[];return e[h]=!1,e.concat()[0]!==e})),v=p("concat"),g=function(e){if(!a(e))return!1;var t=e[h];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!m||!v},{concat:function(e){var t,n,r,i,o,a=s(this),p=u(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(g(o=-1===t?a:arguments[t])){if(f+(i=c(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<i;n++,f++)n in o&&l(p,f,o[n])}else{if(f>=9007199254740991)throw TypeError("Maximum allowed index exceeded");l(p,f++,o)}return p.length=f,p}})},function(e,t,n){n(31)("iterator")},function(e,t,n){var r=n(914),i=Array.prototype;e.exports=function(e){var t=e.slice;return e===i||e instanceof Array&&t===i.slice?r:t}},function(e,t,n){e.exports=n(916)},function(e,t,n){n(224),n(917);var r=n(29);e.exports=r.Array.from},function(e,t,n){var r=n(54);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(34),i=n(142),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(34)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){n(477),n(314),n(928),n(483),n(484),n(934),n(224),n(141);var r=n(29);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(20),i=n(179),o=n(216),a=n(175),s=n(69),c=n(138),l=n(146),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return l(e,r.push,{that:r}),s(n,"errors",r),n};u.prototype=a(Error.prototype,{constructor:c(5,u),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:u})},function(e,t,n){var r=n(33);e.exports=r.Promise},function(e,t,n){var r=n(54),i=n(103),o=n(34)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[o])?t:i(n)}},function(e,t,n){var r,i,o,a=n(33),s=n(30),c=n(171),l=n(445),u=n(294),p=n(481),f=n(321),d=a.location,h=a.setImmediate,m=a.clearImmediate,v=a.process,g=a.MessageChannel,b=a.Dispatch,y=0,x={},w=function(e){if(x.hasOwnProperty(e)){var t=x[e];delete x[e],t()}},O=function(e){return function(){w(e)}},k=function(e){w(e.data)},j=function(e){a.postMessage(e+"",d.protocol+"//"+d.host)};h&&m||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return x[++y]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(y),y},m=function(e){delete x[e]},f?r=function(e){v.nextTick(O(e))}:b&&b.now?r=function(e){b.now(O(e))}:g&&!p?(o=(i=new g).port2,i.port1.onmessage=k,r=c(o.postMessage,o,1)):a.addEventListener&&"function"==typeof postMessage&&!a.importScripts&&d&&"file:"!==d.protocol&&!s(j)?(r=j,a.addEventListener("message",k,!1)):r="onreadystatechange"in u("script")?function(e){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(O(e),0)}),e.exports={set:h,clear:m}},function(e,t,n){var r=n(299);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(r)},function(e,t,n){var r=n(54),i=n(35),o=n(183);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(20),i=n(103),o=n(183),a=n(225),s=n(146);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(20),i=n(103),o=n(82),a=n(183),s=n(225),c=n(146);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1,p=!1;c(e,(function(e){var i=s++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||p||(p=!0,r(e))}),(function(e){c||p||(c=!0,a[i]=e,--u||l(new(o("AggregateError"))(a,"No one promise resolved")))}))})),--u||l(new(o("AggregateError"))(a,"No one promise resolved"))}));return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(324),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var l=s[c],u=a[l];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:l}),n.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(o(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,o){if(0===e.length)return e;var s=e;if("symbol"==typeof e?s=Symbol.prototype.toString.call(e):"string"!=typeof e&&(s=String(e)),"iso-8859-1"===n)return escape(s).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<s.length;++l){var u=s.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===r.RFC1738&&(40===u||41===u)?c+=s.charAt(l):u<128?c+=a[u]:u<2048?c+=a[192|u>>6]+a[128|63&u]:u<55296||u>=57344?c+=a[224|u>>12]+a[128|u>>6&63]+a[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&s.charCodeAt(l)),c+=a[240|u>>18]+a[128|u>>12&63]+a[128|u>>6&63]+a[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(o(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return o(t)&&!o(n)&&(a=s(t,r)),o(t)&&o(n)?(n.forEach((function(n,o){if(i.call(t,o)){var a=t[o];a&&"object"==typeof a&&n&&"object"==typeof n?t[o]=e(a,n,r):t.push(n)}else t[o]=n})),t):Object.keys(n).reduce((function(t,o){var a=n[o];return i.call(t,o)?t[o]=e(t[o],a,r):t[o]=a,t}),a)}}},function(e,t,n){var r=n(1004),i=n(1005);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){e.exports=n(1015)},function(e,t,n){e.exports=n(1027)},function(e,t,n){var r=n(490),i=n(491);e.exports=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,i){var o;o=2==e.length?e(n,r(i)):e(n,t,r(i));return o}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?i(n):n.results[a]=t,o(e,n.results))}))}},function(e,t,n){var r=n(1046);e.exports=function(e){var t=!1;return r((function(){t=!0})),function(n,i){t?e(n,i):r((function(){e(n,i)}))}}},function(e,t){function n(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(n.bind(e)),e.jobs={}}},function(e,t){e.exports=function(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])});return r}},function(e,t,n){var r=n(491),i=n(490);e.exports=function(e){if(!Object.keys(this.jobs).length)return;this.index=this.size,r(this),i(e)(null,this.results)}},function(e,t,n){var r=n(489),i=n(492),o=n(493);function a(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,a){var s=i(e,n);return r(e,t,s,(function n(i,o){i?a(i,o):(s.index++,s.index<(s.keyedList||e).length?r(e,t,s,n):a(null,s.results))})),o.bind(s,a)},e.exports.ascending=a,e.exports.descending=function(e,t){return-1*a(e,t)}},function(e,t,n){var r=n(1063),i=n(1086),o=n(309),a=n(55),s=n(1087);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(1070),i=n(93);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(1071),i=n(1074),o=n(1075);e.exports=function(e,t,n,a,s,c){var l=1&n,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var f=c.get(e),d=c.get(t);if(f&&d)return f==t&&d==e;var h=-1,m=!0,v=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],b=t[h];if(a)var y=l?a(b,g,h,t,e,c):a(g,b,h,e,t,c);if(void 0!==y){if(y)continue;m=!1;break}if(v){if(!i(t,(function(e,t){if(!o(v,t)&&(g===e||s(g,e,n,a,c)))return v.push(t)}))){m=!1;break}}else if(g!==b&&!s(g,b,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(83).Uint8Array;e.exports=r},function(e,t,n){var r=n(500),i=n(331),o=n(145);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(329),i=n(55);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(63);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r=n(329),i=n(333),o=n(331),a=n(501),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){e.exports=n(1121)},function(e,t,n){"use strict";const r=n(530);function i(e,t){const o=r(e,t,n(562));var a;return a=o,Object.keys(a).forEach(e=>{"argv"===e?i.__defineGetter__(e,a.__lookupGetter__(e)):"function"==typeof a[e]?i[e]=a[e].bind(a):(i.__defineGetter__("$0",()=>a.$0),i.__defineGetter__("parsed",()=>a.parsed))}),o}i(n(353).getProcessArgvWithoutBin()),e.exports=i},function(e,t,n){"use strict";
132
132
  /*!
133
133
  * serve-static
134
134
  * Copyright(c) 2010 Sencha Inc.
@@ -295,7 +295,7 @@ e.exports=function(e){return e.split(" ").map((function(e){return e.slice(0,1).t
295
295
  *
296
296
  * This source code is licensed under the MIT license found in the
297
297
  * LICENSE file in the root directory of this source tree.
298
- */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,p=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(f,0))},i=function(e,t){p=setTimeout(e,t)},o=function(){clearTimeout(p)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,b=-1,y=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,O=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+y;try{g(!0,e)?O.postMessage(null):(v=!1,g=null)}catch(e){throw O.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,O.postMessage(null))},i=function(e,n){b=d((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function j(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>S(a,n))void 0!==c&&0>S(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>S(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],_=[],P=1,A=null,D=3,T=!1,I=!1,R=!1;function L(e){for(var t=j(_);null!==t;){if(null===t.callback)E(_);else{if(!(t.startTime<=e))break;E(_),t.sortIndex=t.expirationTime,k(C,t)}t=j(_)}}function N(e){if(R=!1,L(e),!I)if(null!==j(C))I=!0,r(F);else{var t=j(_);null!==t&&i(N,t.startTime-e)}}function F(e,n){I=!1,R&&(R=!1,o()),T=!0;var r=D;try{for(L(n),A=j(C);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=A.callback;if("function"==typeof a){A.callback=null,D=A.priorityLevel;var s=a(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===j(C)&&E(C),L(n)}else E(C);A=j(C)}if(null!==A)var c=!0;else{var l=j(_);null!==l&&i(N,l.startTime-n),c=!1}return c}finally{A=null,D=r,T=!1}}var M=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||T||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return j(C)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,k(_,e),null===j(C)&&e===j(_)&&(R?o():R=!0,i(N,a-s))):(e.sortIndex=c,k(C,e),I||T||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=a(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var c=o[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},function(e,t,n){"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))},function(e,t,n){var r=n(686),i=["add","done","toJS","fromExternalJS","load","dispose","search"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['#!/usr/bin/env node\n/*!\n * Redocly Reference Docs CLI\n * (c) Copyright 2018 Redocly LLC, all rights reserved.\n * -------------------------------------------------------------\n * Version: "2.1.18"\n */!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=101)}([function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t,r){var n=r(0),i=r(43),o=r(3),s=r(44),a=r(50),u=r(77),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||s;e.exports=function(e){return o(c,e)&&(a||"string"==typeof c[e])||(a&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(41),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n,i;\n/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9\n * Copyright (C) 2020 Oliver Nightingale\n * @license MIT\n */!function(){var o,s,a,u,c,l,f,p,h,d,y,v,m,g,x,w,b,S,O,E,P,k,T,L,Q,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9"\n/*!\n * lunr.utils\n * Copyright (C) 2020 Oliver Nightingale\n */,j.utils={},j.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n<r.length;n++){var i=r[n],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},j.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new j.FieldRef(n,r,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue}\n/*!\n * lunr.Set\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},j.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var o=0;o<n.length;o++){var s=n[o];s in r.elements&&i.push(s)}return new j.Set(i)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.idf=function(e,t){var r=0;for(var n in e)"_index"!=n&&(r+=Object.keys(e[n]).length);var i=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(i))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)}\n/*!\n * lunr.tokenizer\n * Copyright (C) 2020 Oliver Nightingale\n */,j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))}));for(var r=e.toString().toLowerCase(),n=r.length,i=[],o=0,s=0;o<=n;o++){var a=o-s;if(r.charAt(o).match(j.tokenizer.separator)||o==n){if(a>0){var u=j.utils.clone(t)||{};u.position=[s,a],u.index=i.length,i.push(new j.Token(r.slice(s,o),u))}s=o+1}}return i},j.tokenizer.separator=/[\\s\\-]+/\n/*!\n * lunr.Pipeline\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach((function(e){var r=j.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},j.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],o=0;o<e.length;o++){var s=n(e[o],o,e);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)i.push(s[a]);else i.push(s)}e=i}return e},j.Pipeline.prototype.runString=function(e,t){var r=new j.Token(e,t);return this.run([r]).map((function(e){return e.toString()}))},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label}))}\n/*!\n * lunr.Vector\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,n=r-t,i=Math.floor(n/2),o=this.elements[2*i];n>1&&(o<e&&(t=i),o>e&&(r=i),o!=e);)n=r-t,i=t+Math.floor(n/2),o=this.elements[2*i];return o==e||o>e?2*i:o<e?2*(i+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},j.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var n=this.positionForIndex(e);this.elements[n]==e?this.elements[n+1]=r(this.elements[n+1],t):this.elements.splice(n,0,e,t)},j.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var n=this.elements[r];e+=n*n}return this._magnitude=Math.sqrt(e)},j.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,o=n.length,s=0,a=0,u=0,c=0;u<i&&c<o;)(s=r[u])<(a=n[c])?u+=2:s>a?c+=2:s==a&&(t+=r[u+1]*n[c+1],u+=2,c+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},j.Vector.prototype.toJSON=function(){return this.elements}\n/*!\n * lunr.stemmer\n * Copyright (C) 2020 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */,j.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},a="[aeiouy]",u="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),l=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),p=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),h=/^(.+?)(ss|i)es$/,d=/^(.+?)([^s])s$/,y=/^(.+?)eed$/,v=/^(.+?)(ed|ing)$/,m=/.$/,g=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\\\1$"),w=new RegExp("^"+u+a+"[^aeiouwxy]$"),b=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,O=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,E=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,k=/^(.+?)e$/,T=/ll$/,L=new RegExp("^"+u+a+"[^aeiouwxy]$"),Q=function(e){var t,r,n,i,a,u,Q;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),a=d,(i=h).test(e)?e=e.replace(i,"$1$2"):a.test(e)&&(e=e.replace(a,"$1$2")),a=v,(i=y).test(e)){var j=i.exec(e);(i=c).test(j[1])&&(i=m,e=e.replace(i,""))}else a.test(e)&&(t=(j=a.exec(e))[1],(a=p).test(t)&&(u=x,Q=w,(a=g).test(e=t)?e+="e":u.test(e)?(i=m,e=e.replace(i,"")):Q.test(e)&&(e+="e")));return(i=b).test(e)&&(e=(t=(j=i.exec(e))[1])+"i"),(i=S).test(e)&&(t=(j=i.exec(e))[1],r=j[2],(i=c).test(t)&&(e=t+o[r])),(i=O).test(e)&&(t=(j=i.exec(e))[1],r=j[2],(i=c).test(t)&&(e=t+s[r])),a=P,(i=E).test(e)?(t=(j=i.exec(e))[1],(i=l).test(t)&&(e=t)):a.test(e)&&(t=(j=a.exec(e))[1]+j[2],(a=l).test(t)&&(e=t)),(i=k).test(e)&&(t=(j=i.exec(e))[1],a=f,u=L,((i=l).test(t)||a.test(t)&&!u.test(t))&&(e=t)),a=l,(i=T).test(e)&&a.test(e)&&(i=m,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(Q)}),j.Pipeline.registerFunction(j.stemmer,"stemmer")\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2020 Oliver Nightingale\n */,j.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},j.stopWordFilter=j.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter")\n/*!\n * lunr.trimmer\n * Copyright (C) 2020 Oliver Nightingale\n */,j.trimmer=function(e){return e.update((function(e){return e.replace(/^\\W+/,"").replace(/\\W+$/,"")}))},j.Pipeline.registerFunction(j.trimmer,"trimmer")\n/*!\n * lunr.TokenSet\n * Copyright (C) 2020 Oliver Nightingale\n */,j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var r=new j.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var o,s=i.str.charAt(0);s in i.node.edges?o=i.node.edges[s]:(o=new j.TokenSet,i.node.edges[s]=o),1==i.str.length&&(o.final=!0),n.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else{a=new j.TokenSet;i.node.edges["*"]=a}if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var u=i.node.edges["*"];else{u=new j.TokenSet;i.node.edges["*"]=u}1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,l=i.str.charAt(0),f=i.str.charAt(1);f in i.node.edges?c=i.node.edges[f]:(c=new j.TokenSet,i.node.edges[f]=c),1==i.str.length&&(c.final=!0),n.push({node:c,editsRemaining:i.editsRemaining-1,str:l+i.str.slice(2)})}}}return r},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,r=t,n=0,i=e.length;n<i;n++){var o=e[n],s=n==i-1;if("*"==o)t.edges[o]=t,t.final=s;else{var a=new j.TokenSet;a.final=s,t.edges[o]=a,t=a}}return r},j.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),n=Object.keys(r.node.edges),i=n.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var o=0;o<i;o++){var s=n[o];t.push({prefix:r.prefix.concat(s),node:r.node.edges[s]})}}return e},j.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,n=0;n<r;n++){var i=t[n];e=e+i+this.edges[i].id}return e},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),o=i.length,s=Object.keys(r.node.edges),a=s.length,u=0;u<o;u++)for(var c=i[u],l=0;l<a;l++){var f=s[l];if(f==c||"*"==c){var p=r.node.edges[f],h=r.qNode.edges[c],d=p.final&&h.final,y=void 0;f in r.output.edges?(y=r.output.edges[f]).final=y.final||d:((y=new j.TokenSet).final=d,r.output.edges[f]=y),n.push({qNode:h,output:y,node:p})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(n=r;n<e.length;n++){var i=new j.TokenSet,o=e[n];t.edges[o]=i,this.uncheckedNodes.push({parent:t,char:o,child:i}),t=i}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}}\n/*!\n * lunr.Index\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query((function(t){new j.QueryParser(e,t).parse()}))},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new j.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var u=t.clauses[a],c=null,l=j.Set.empty;c=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var f=0;f<c.length;f++){var p=c[f];u.term=p;var h=j.TokenSet.fromClause(u),d=this.tokenSet.intersect(h).toArray();if(0===d.length&&u.presence===j.Query.presence.REQUIRED){for(var y=0;y<u.fields.length;y++){o[R=u.fields[y]]=j.Set.empty}break}for(var v=0;v<d.length;v++){var m=d[v],g=this.invertedIndex[m],x=g._index;for(y=0;y<u.fields.length;y++){var w=g[R=u.fields[y]],b=Object.keys(w),S=m+"/"+R,O=new j.Set(b);if(u.presence==j.Query.presence.REQUIRED&&(l=l.union(O),void 0===o[R]&&(o[R]=j.Set.complete)),u.presence!=j.Query.presence.PROHIBITED){if(n[R].upsert(x,u.boost,(function(e,t){return e+t})),!i[S]){for(var E=0;E<b.length;E++){var P,k=b[E],T=new j.FieldRef(k,R),L=w[k];void 0===(P=r[T])?r[T]=new j.MatchData(m,R,L):P.add(m,R,L)}i[S]=!0}}else void 0===s[R]&&(s[R]=j.Set.empty),s[R]=s[R].union(O)}}}if(u.presence===j.Query.presence.REQUIRED)for(y=0;y<u.fields.length;y++){o[R=u.fields[y]]=o[R].intersect(l)}}var Q=j.Set.complete,I=j.Set.empty;for(a=0;a<this.fields.length;a++){var R;o[R=this.fields[a]]&&(Q=Q.intersect(o[R])),s[R]&&(I=I.union(s[R]))}var _=Object.keys(r),F=[],C=Object.create(null);if(t.isNegated()){_=Object.keys(this.fieldVectors);for(a=0;a<_.length;a++){T=_[a];var A=j.FieldRef.fromString(T);r[T]=new j.MatchData}}for(a=0;a<_.length;a++){var N=(A=j.FieldRef.fromString(_[a])).docRef;if(Q.contains(N)&&!I.contains(N)){var D,M=this.fieldVectors[A],B=n[A.fieldName].similarity(M);if(void 0!==(D=C[N]))D.score+=B,D.matchData.combine(r[A]);else{var V={ref:N,score:B,matchData:r[A]};C[N]=V,F.push(V)}}}return F.sort((function(e,t){return t.score-e.score}))},j.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),o=e.invertedIndex,s=new j.TokenSet.Builder,a=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr \'"+j.version+"\' does not match serialized index \'"+e.version+"\'");for(var u=0;u<n.length;u++){var c=(f=n[u])[0],l=f[1];r[c]=new j.Vector(l)}for(u=0;u<o.length;u++){var f,p=(f=o[u])[0],h=f[1];s.insert(p),i[p]=h}return s.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=s.root,t.pipeline=a,new j.Index(t)}\n/*!\n * lunr.Builder\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\\//.test(e))throw new RangeError("Field \'"+e+"\' contains illegal character \'/\'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i<n.length;i++){var o=n[i],s=this._fields[o].extractor,a=s?s(e):e[o],u=this.tokenizer(a,{fields:[o]}),c=this.pipeline.run(u),l=new j.FieldRef(r,o),f=Object.create(null);this.fieldTermFrequencies[l]=f,this.fieldLengths[l]=0,this.fieldLengths[l]+=c.length;for(var p=0;p<c.length;p++){var h=c[p];if(null==f[h]&&(f[h]=0),f[h]+=1,null==this.invertedIndex[h]){var d=Object.create(null);d._index=this.termIndex,this.termIndex+=1;for(var y=0;y<n.length;y++)d[n[y]]=Object.create(null);this.invertedIndex[h]=d}null==this.invertedIndex[h][o][r]&&(this.invertedIndex[h][o][r]=Object.create(null));for(var v=0;v<this.metadataWhitelist.length;v++){var m=this.metadataWhitelist[v],g=h.metadata[m];null==this.invertedIndex[h][o][r][m]&&(this.invertedIndex[h][o][r][m]=[]),this.invertedIndex[h][o][r][m].push(g)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var o=j.FieldRef.fromString(e[i]),s=o.fieldName;n[s]||(n[s]=0),n[s]+=1,r[s]||(r[s]=0),r[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var u=a[i];r[u]=r[u]/n[u]}this.averageFieldLength=r},j.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),i=0;i<r;i++){for(var o=j.FieldRef.fromString(t[i]),s=o.fieldName,a=this.fieldLengths[o],u=new j.Vector,c=this.fieldTermFrequencies[o],l=Object.keys(c),f=l.length,p=this._fields[s].boost||1,h=this._documents[o.docRef].boost||1,d=0;d<f;d++){var y,v,m,g=l[d],x=c[g],w=this.invertedIndex[g]._index;void 0===n[g]?(y=j.idf(this.invertedIndex[g],this.documentCount),n[g]=y):y=n[g],v=y*((this._k1+1)*x)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+x),v*=p,v*=h,m=Math.round(1e3*v)/1e3,u.insert(w,m)}e[o]=u}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),o=0;o<i.length;o++){var s=i[o];n[s]=r[s].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},j.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var n=t[r],i=Object.keys(e.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var o=0;o<i.length;o++){var s=i[o],a=Object.keys(e.metadata[n][s]);null==this.metadata[n][s]&&(this.metadata[n][s]=Object.create(null));for(var u=0;u<a.length;u++){var c=a[u];null==this.metadata[n][s][c]?this.metadata[n][s][c]=e.metadata[n][s][c]:this.metadata[n][s][c]=this.metadata[n][s][c].concat(e.metadata[n][s][c])}}}},j.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var n=Object.keys(r),i=0;i<n.length;i++){var o=n[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(r[o]):this.metadata[e][t][o]=r[o]}else this.metadata[e][t]=r},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,j.utils.clone(t))}),this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},j.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,n=0;n<this.escapeCharPositions.length;n++)r=this.escapeCharPositions[n],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value \'"+t.str+"\'"),new j.QueryParseError(r,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator\'"+t.str+"\'";throw new j.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n){r="expecting term or field, found nothing";throw new j.QueryParseError(r,t.start,t.end)}switch(n.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:r="expecting term or field, found \'"+n.type+"\'";throw new j.QueryParseError(r,n.start,n.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map((function(e){return"\'"+e+"\'"})).join(", "),n="unrecognised field \'"+t.str+"\', possible fields: "+r;throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i){n="expecting term, found nothing";throw new j.QueryParseError(n,t.start,t.end)}switch(i.type){case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:n="expecting term, found \'"+i.type+"\'";throw new j.QueryParseError(n,i.start,i.end)}}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var n="Unexpected lexeme type \'"+r.type+"\'";throw new j.QueryParseError(n,r.start,r.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:n="Unexpected lexeme type \'"+i.type+"\'";throw new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:n="Unexpected lexeme type \'"+i.type+"\'";throw new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return j})?n.call(t,r,t,e):n)||(e.exports=i)}()},function(e,t,r){var n=r(10),i=r(11),o=r(16);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(45),i=r(0),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){var n=r(0),i=r(21).f,o=r(6),s=r(12),a=r(25),u=r(66),c=r(48);e.exports=function(e,t){var r,l,f,p,h,d=e.target,y=e.global,v=e.stat;if(r=y?n:v?n[d]||a(d,{}):(n[d]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=i(r,l))&&h.value:r[l],!c(y?l:d+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),s(r,l,p,e)}}},function(e,t,r){var n=r(2);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(10),i=r(42),o=r(4),s=r(40),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(o(e),t=s(t,!0),o(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(0),i=r(6),o=r(3),s=r(25),a=r(26),u=r(18),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,a){var u,c=!!a&&!!a.unsafe,p=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),(u=l(r)).source||(u.source=f.join("string"==typeof t?t:""))),e!==n?(c?!h&&e[t]&&(p=!0):delete e[t],p?e[t]=r:i(e,t,r)):p?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports=!1},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(64),i=r(23);e.exports=function(e){return n(i(e))}},function(e,t,r){var n,i,o,s=r(65),a=r(0),u=r(7),c=r(6),l=r(3),f=r(27),p=r(28),h=r(29),d=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new d),v=y.get,m=y.has,g=y.set;n=function(e,t){if(m.call(y,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(y,e,t),t},i=function(e){return v.call(y,e)||{}},o=function(e){return m.call(y,e)}}else{var x=p("state");h[x]=!0,n=function(e,t){if(l(e,x))throw new TypeError("Object already initialized");return t.facade=e,c(e,x,t),t},i=function(e){return l(e,x)?e[x]:{}},o=function(e){return l(e,x)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(4),i=r(76),o=r(47),s=r(52),a=r(78),u=r(79),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var l,f,p,h,d,y,v,m=r&&r.that,g=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),b=s(t,m,1+g+w),S=function(e){return l&&u(l),new c(!0,e)},O=function(e){return g?(n(e),w?b(e[0],e[1],S):b(e[0],e[1])):w?b(e,S):b(e)};if(x)l=e;else{if("function"!=typeof(f=a(e)))throw TypeError("Target is not iterable");if(i(f)){for(p=0,h=o(e.length);h>p;p++)if((d=O(e[p]))&&d instanceof c)return d;return new c(!1)}l=f.call(e)}for(y=l.next;!(v=y.call(l)).done;){try{d=O(v.value)}catch(e){throw u(l),e}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},function(e,t,r){"use strict";var n=r(13),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},function(e,t,r){var n=r(10),i=r(63),o=r(16),s=r(17),a=r(40),u=r(3),c=r(42),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=s(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can\'t call method on "+e);return e}},function(e,t,r){var n=r(0),i=r(7),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},function(e,t,r){var n=r(0),i=r(6);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(27),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(0),i=r(25),o=n["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,r){var n=r(43),i=r(44),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports={}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(3),i=r(41),o=r(28),s=r(72),a=o("IE_PROTO"),u=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=i(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,r){var n=r(4),i=r(73);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n,i=r(4),o=r(74),s=r(31),a=r(29),u=r(49),c=r(24),l=r(28),f=l("IE_PROTO"),p=function(){},h=function(e){return"<script>"+e+"<\\/script>"},d=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=n?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var r=s.length;r--;)delete d.prototype[s[r]];return d()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[f]=e):r=d(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(8);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n={};n[r(1)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(11).f,i=r(3),o=r(1)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){var n=r(22),i=r(0);e.exports="process"==n(i.process)},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){var n=r(7);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can\'t convert object to primitive value")}},function(e,t,r){var n=r(23);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(10),i=r(2),o=r(24);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(14),i=r(27);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.14.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(0);e.exports=n},function(e,t,r){var n=r(3),i=r(17),o=r(69).indexOf,s=r(29);e.exports=function(e,t){var r,a=i(e),u=0,c=[];for(r in a)!n(s,r)&&n(a,r)&&c.push(r);for(;t.length>u;)n(a,r=t[u++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(30),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(2),i=/#|\\.prototype\\./,o=function(e,t){var r=a[s(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,r){var n=r(8);e.exports=n("document","documentElement")},function(e,t,r){var n=r(51),i=r(2);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){var n,i,o=r(0),s=r(35),a=o.process,u=a&&a.versions,c=u&&u.v8;c?i=(n=c.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\\/(\\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\\/(\\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){var n=r(13);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(36),i=r(22),o=r(1)("toStringTag"),s="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:s?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(0);e.exports=n.Promise},function(e,t,r){var n=r(4),i=r(13),o=r(1)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||null==(r=n(s)[o])?t:i(r)}},function(e,t,r){var n,i,o,s=r(0),a=r(2),u=r(52),c=r(49),l=r(24),f=r(57),p=r(38),h=s.location,d=s.setImmediate,y=s.clearImmediate,v=s.process,m=s.MessageChannel,g=s.Dispatch,x=0,w={},b=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},S=function(e){return function(){b(e)}},O=function(e){b(e.data)},E=function(e){s.postMessage(e+"",h.protocol+"//"+h.host)};d&&y||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++x]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(x),x},y=function(e){delete w[e]},p?n=function(e){v.nextTick(S(e))}:g&&g.now?n=function(e){g.now(S(e))}:m&&!f?(o=(i=new m).port2,i.port1.onmessage=O,n=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&h&&"file:"!==h.protocol&&!a(E)?(n=E,s.addEventListener("message",O,!1)):n="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),b(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:d,clear:y}},function(e,t,r){var n=r(35);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(4),i=r(7),o=r(20);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(9),i=r(96),o=r(32),s=r(33),a=r(37),u=r(6),c=r(12),l=r(1),f=r(14),p=r(15),h=r(60),d=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m=function(){return this};e.exports=function(e,t,r,l,h,g,x){i(r,t,l);var w,b,S,O=function(e){if(e===h&&L)return L;if(!y&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",P=!1,k=e.prototype,T=k[v]||k["@@iterator"]||h&&k[h],L=!y&&T||O(h),Q="Array"==t&&k.entries||T;if(Q&&(w=o(Q.call(new e)),d!==Object.prototype&&w.next&&(f||o(w)===d||(s?s(w,d):"function"!=typeof w[v]&&u(w,v,m)),a(w,E,!0,!0),f&&(p[E]=m))),"values"==h&&T&&"values"!==T.name&&(P=!0,L=function(){return T.call(this)}),f&&!x||k[v]===L||u(k,v,L),p[t]=L,h)if(b={values:O("values"),keys:g?L:O("keys"),entries:O("entries")},x)for(S in b)(y||P||!(S in k))&&c(k,S,b[S]);else n({target:t,proto:!0,forced:y||P},b);return b}},function(e,t,r){"use strict";var n,i,o,s=r(2),a=r(32),u=r(6),c=r(3),l=r(1),f=r(14),p=l("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0);var d=null==n||s((function(){var e={};return n[p].call(e)!==e}));d&&(n={}),f&&!d||c(n,p)||u(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){r(62),r(80),r(82),r(91),r(92),r(93),r(94),r(97);var n=r(45);e.exports=n.Promise},function(e,t,r){"use strict";var n=r(9),i=r(32),o=r(33),s=r(34),a=r(6),u=r(16),c=r(19),l=function(e,t){var r=this;if(!(r instanceof l))return new l(e,t);o&&(r=o(new Error(void 0),i(r))),void 0!==t&&a(r,"message",String(t));var n=[];return c(e,n.push,{that:n}),a(r,"errors",n),r};l.prototype=s(Error.prototype,{constructor:u(5,l),message:u(5,""),name:u(5,"AggregateError")}),n({global:!0},{AggregateError:l})},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(2),i=r(22),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(0),i=r(26),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,r){var n=r(3),i=r(67),o=r(21),s=r(11);e.exports=function(e,t){for(var r=i(t),a=s.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||a(e,l,u(t,l))}}},function(e,t,r){var n=r(8),i=r(68),o=r(71),s=r(4);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(46),i=r(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){var n=r(17),i=r(47),o=r(70),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u.length),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,r){var n=r(30),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(2);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can\'t set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(10),i=r(11),o=r(4),s=r(75);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),a=n.length,u=0;a>u;)i.f(e,r=n[u++],t[r]);return e}},function(e,t,r){var n=r(46),i=r(31);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(1),i=r(15),o=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},function(e,t,r){var n=r(50);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(53),i=r(15),o=r(1)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(4);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},function(e,t,r){var n=r(36),i=r(12),o=r(81);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n=r(36),i=r(53);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){"use strict";var n,i,o,s,a=r(9),u=r(14),c=r(0),l=r(8),f=r(54),p=r(12),h=r(83),d=r(33),y=r(37),v=r(84),m=r(7),g=r(13),x=r(85),w=r(26),b=r(19),S=r(86),O=r(55),E=r(56).set,P=r(87),k=r(58),T=r(89),L=r(20),Q=r(39),j=r(18),I=r(48),R=r(1),_=r(90),F=r(38),C=r(51),A=R("species"),N="Promise",D=j.get,M=j.set,B=j.getterFor(N),V=f&&f.prototype,z=f,W=V,$=c.TypeError,q=c.document,G=c.process,U=L.f,J=U,H=!!(q&&q.createEvent&&c.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,K=!1,X=I(N,(function(){var e=w(z)!==String(z);if(!e&&66===C)return!0;if(u&&!W.finally)return!0;if(C>=51&&/native code/.test(z))return!1;var t=new z((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(t.constructor={})[A]=r,!(K=t.then((function(){}))instanceof r)||!e&&_&&!Y})),Z=X||!S((function(e){z.all(e).catch((function(){}))})),ee=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;P((function(){for(var n=e.value,i=1==e.state,o=0;r.length>o;){var s,a,u,c=r[o++],l=i?c.ok:c.fail,f=c.resolve,p=c.reject,h=c.domain;try{l?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===l?s=n:(h&&h.enter(),s=l(n),h&&(h.exit(),u=!0)),s===c.promise?p($("Promise-chain cycle")):(a=ee(s))?a.call(s,f,p):f(s)):p(n)}catch(e){h&&!u&&h.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ne(e)}))}},re=function(e,t,r){var n,i;H?((n=q.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!Y&&(i=c["on"+e])?i(n):"unhandledrejection"===e&&T("Unhandled promise rejection",r)},ne=function(e){E.call(c,(function(){var t,r=e.facade,n=e.value;if(ie(e)&&(t=Q((function(){F?G.emit("unhandledRejection",n,r):re("unhandledrejection",r,n)})),e.rejection=F||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){E.call(c,(function(){var t=e.facade;F?G.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},se=function(e,t,r){return function(n){e(t,n,r)}},ae=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,te(e,!0))},ue=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw $("Promise can\'t be resolved itself");var n=ee(t);n?P((function(){var r={done:!1};try{n.call(t,se(ue,r,e),se(ae,r,e))}catch(t){ae(r,t,e)}})):(e.value=t,e.state=1,te(e,!1))}catch(t){ae({done:!1},t,e)}}};if(X&&(W=(z=function(e){x(this,z,N),g(e),n.call(this);var t=D(this);try{e(se(ue,t),se(ae,t))}catch(e){ae(t,e)}}).prototype,(n=function(e){M(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(W,{then:function(e,t){var r=B(this),n=U(O(this,z));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=F?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&te(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=D(e);this.promise=e,this.resolve=se(ue,t),this.reject=se(ae,t)},L.f=U=function(e){return e===z||e===o?new i(e):J(e)},!u&&"function"==typeof f&&V!==Object.prototype)){s=V.then,K||(p(V,"then",(function(e,t){var r=this;return new z((function(e,t){s.call(r,e,t)})).then(e,t)}),{unsafe:!0}),p(V,"catch",W.catch,{unsafe:!0}));try{delete V.constructor}catch(e){}d&&d(V,W)}a({global:!0,wrap:!0,forced:X},{Promise:z}),y(z,N,!1,!0),v(N),o=l(N),a({target:N,stat:!0,forced:X},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),a({target:N,stat:!0,forced:u||X},{resolve:function(e){return k(u&&this===o?z:this,e)}}),a({target:N,stat:!0,forced:Z},{all:function(e){var t=this,r=U(t),n=r.resolve,i=r.reject,o=Q((function(){var r=g(t.resolve),o=[],s=0,a=1;b(e,(function(e){var u=s++,c=!1;o.push(void 0),a++,r.call(t,e).then((function(e){c||(c=!0,o[u]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=U(t),n=r.reject,i=Q((function(){var i=g(t.resolve);b(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=r(12);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(8),i=r(11),o=r(1),s=r(10),a=o("species");e.exports=function(e){var t=n(e),r=i.f;s&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(1)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},function(e,t,r){var n,i,o,s,a,u,c,l,f=r(0),p=r(21).f,h=r(56).set,d=r(57),y=r(88),v=r(38),m=f.MutationObserver||f.WebKitMutationObserver,g=f.document,x=f.process,w=f.Promise,b=p(f,"queueMicrotask"),S=b&&b.value;S||(n=function(){var e,t;for(v&&(e=x.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?s():o=void 0,e}}o=void 0,e&&e.enter()},d||v||y||!m||!g?w&&w.resolve?((c=w.resolve(void 0)).constructor=w,l=c.then,s=function(){l.call(c,n)}):s=v?function(){x.nextTick(n)}:function(){h.call(f,n)}:(a=!0,u=g.createTextNode(""),new m(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,s()),o=t}},function(e,t,r){var n=r(35);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,r){var n=r(0);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports="object"==typeof window},function(e,t,r){"use strict";var n=r(9),i=r(13),o=r(20),s=r(39),a=r(19);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),o=[],s=0,u=1;a(e,(function(e){var i=s++,a=!1;o.push(void 0),u++,r.call(t,e).then((function(e){a||(a=!0,o[i]={status:"fulfilled",value:e},--u||n(o))}),(function(e){a||(a=!0,o[i]={status:"rejected",reason:e},--u||n(o))}))})),--u||n(o)}));return c.error&&u(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(9),i=r(13),o=r(8),s=r(20),a=r(39),u=r(19);n({target:"Promise",stat:!0},{any:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,l=1,f=!1;u(e,(function(e){var i=a++,u=!1;s.push(void 0),l++,r.call(t,e).then((function(e){u||f||(f=!0,n(e))}),(function(e){u||f||(u=!0,s[i]=e,--l||c(new(o("AggregateError"))(s,"No one promise resolved")))}))})),--l||c(new(o("AggregateError"))(s,"No one promise resolved"))}));return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var n=r(9),i=r(14),o=r(54),s=r(2),a=r(8),u=r(55),c=r(58),l=r(12);if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,a("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),!i&&"function"==typeof o){var f=a("Promise").prototype.finally;o.prototype.finally!==f&&l(o.prototype,"finally",f,{unsafe:!0})}},function(e,t,r){"use strict";var n=r(95).charAt,i=r(18),o=r(59),s=i.set,a=i.getterFor("String Iterator");o(String,"String",(function(e){s(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=a(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(30),i=r(23),o=function(e){return function(t,r){var o,s,a=String(i(t)),u=n(r),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,r){"use strict";var n=r(60).IteratorPrototype,i=r(34),o=r(16),s=r(37),a=r(15),u=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),s(e,c,!1,!0),a[c]=u,e}},function(e,t,r){var n=r(0),i=r(98),o=r(99),s=r(6),a=r(1),u=a("iterator"),c=a("toStringTag"),l=o.values;for(var f in i){var p=n[f],h=p&&p.prototype;if(h){if(h[u]!==l)try{s(h,u,l)}catch(e){h[u]=l}if(h[c]||s(h,c,f),i[f])for(var d in o)if(h[d]!==o[d])try{s(h,d,o[d])}catch(e){h[d]=o[d]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(17),i=r(100),o=r(15),s=r(18),a=r(59),u=s.set,c=s.getterFor("Array Iterator");e.exports=a(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){var n=r(1),i=r(34),o=r(11),s=n("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},function(e,t,r){"use strict";r.r(t),r.d(t,"add",(function(){return p})),r.d(t,"done",(function(){return h})),r.d(t,"toJS",(function(){return d})),r.d(t,"fromExternalJS",(function(){return y})),r.d(t,"load",(function(){return v})),r.d(t,"dispose",(function(){return m})),r.d(t,"search",(function(){return g}));function n(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}Object.create;Object.create;var o=r(5);try{r(61)}catch(e){}var s,a,u,c=function(){Object.defineProperty(this,"add",{enumerable:!0,configurable:!0,writable:!0,value:p}),Object.defineProperty(this,"done",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(this,"search",{enumerable:!0,configurable:!0,writable:!0,value:g}),Object.defineProperty(this,"toJS",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"load",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(this,"dispose",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(this,"fromExternalJS",{enumerable:!0,configurable:!0,writable:!0,value:y})},l=(t.default=c,[]);function f(){(s=new o.Builder).field("title"),s.field("description"),s.ref("ref"),s.pipeline.add(o.trimmer,o.stopWordFilter,o.stemmer),u=new Promise((function(e){a=e}))}o.tokenizer.separator=/\\s+/,f();function p(e,t,r){var n=l.push(r)-1,i={title:e.toLowerCase(),description:t.toLowerCase(),ref:n};s.add(i)}function h(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return a(s.build()),[2]}))}))}function d(){return n(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return e={store:l},[4,u];case 1:return[2,(e.index=t.sent().toJSON(),e)]}}))}))}function y(e,t){return n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),importScripts(e),!self[t])throw new Error("Broken index file format");return[4,v(self[t])];case 1:return n.sent(),[3,3];case 2:return r=n.sent(),console.error("Failed to load search index: "+r.message),[3,3];case 3:return[2]}}))}))}function v(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return l=e.store,a(o.Index.load(e.index)),[2]}))}))}function m(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return l=[],f(),[2]}))}))}function g(e,t){return void 0===t&&(t=0),n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return 0===e.trim().length?[2,[]]:[4,u];case 1:return r=n.sent().query((function(t){e.trim().toLowerCase().split(/\\s+/).forEach((function(e){if(1!==e.length){var r=function(e){return"*"+o.stemmer(new o.Token(e,{}))+"*"}(e);t.term(r,{})}}))})),t>0&&(r=r.slice(0,t)),[2,r.map((function(e){return{meta:l[e.ref],score:e.score}}))]}}))}))}addEventListener("message",(function(e){var r,n=e.data,i=n.type,o=n.method,s=n.id,a=n.params;"RPC"===i&&o&&((r=t[o])?Promise.resolve().then((function(){return r.apply(t,a)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:s,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:s,error:t})}))})),postMessage({type:"RPC",method:"ready"})}]);'])),{name:"[hash].worker.js"});return r(e,i),e}},function(e,t){e.exports=function(e,t){var n=0,r={};e.addEventListener("message",(function(t){var n=t.data;if("RPC"===n.type)if(n.id){var i=r[n.id];i&&(delete r[n.id],n.error?i[1](Object.assign(Error(n.error.message),n.error)):i[0](n.result))}else{var o=document.createEvent("Event");o.initEvent(n.method,!1,!1),o.data=n.params,e.dispatchEvent(o)}})),t.forEach((function(t){e[t]=function(){var i=arguments;return new Promise((function(o,a){var s=++n;r[s]=[o,a],e.postMessage({type:"RPC",id:s,method:t,params:[].slice.call(i)})}))}}))}},function(e,t,n){n(688),n(706),n(708),n(717),n(718),n(719),n(720),n(723);var r=n(381);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(130),i=n(281),o=n(282),a=n(283),s=n(102),c=n(203),l=n(206),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return l(e,r.push,{that:r}),s(n,"errors",r),n};u.prototype=a(Error.prototype,{constructor:c(5,u),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:u})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(90),i=n(271),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(38),i=n(275),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(91),i=n(693),o=n(270),a=n(132);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},function(e,t,n){var r=n(110),i=n(694),o=n(697),a=n(92);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(382),i=n(280).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(204),i=n(383),o=n(696),a=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(279),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(90);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(109);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(131),i=n(132),o=n(92),a=n(701);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(382),i=n(280);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(61),i=n(166),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(386);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(389),i=n(166),o=n(61)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(92);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(285),i=n(133),o=n(707);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(285),i=n(389);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r,i,o,a,s=n(130),c=n(165),l=n(38),u=n(110),p=n(390),f=n(133),d=n(709),h=n(282),m=n(286),v=n(710),g=n(109),b=n(134),y=n(711),x=n(275),w=n(206),O=n(712),k=n(391),j=n(392).set,E=n(713),S=n(394),C=n(715),_=n(207),P=n(288),A=n(205),D=n(384),T=n(61),I=n(716),R=n(287),L=n(387),N=T("species"),F="Promise",M=A.get,B=A.set,z=A.getterFor(F),U=p&&p.prototype,$=p,V=U,q=l.TypeError,H=l.document,W=l.process,Q=_.f,Y=Q,K=!!(H&&H.createEvent&&l.dispatchEvent),G="function"==typeof PromiseRejectionEvent,J=!1,X=D(F,(function(){var e=x($)!==String($);if(!e&&66===L)return!0;if(c&&!V.finally)return!0;if(L>=51&&/native code/.test($))return!1;var t=new $((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(t.constructor={})[N]=n,!(J=t.then((function(){}))instanceof n)||!e&&I&&!G})),Z=X||!O((function(e){$.all(e).catch((function(){}))})),ee=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,l=n[o++],u=i?l.ok:l.fail,p=l.resolve,f=l.reject,d=l.domain;try{u?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===u?a=r:(d&&d.enter(),a=u(r),d&&(d.exit(),c=!0)),a===l.promise?f(q("Promise-chain cycle")):(s=ee(a))?s.call(a,p,f):p(a)):f(r)}catch(e){d&&!c&&d.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)}))}},ne=function(e,t,n){var r,i;K?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!G&&(i=l["on"+e])?i(r):"unhandledrejection"===e&&C("Unhandled promise rejection",n)},re=function(e){j.call(l,(function(){var t,n=e.facade,r=e.value;if(ie(e)&&(t=P((function(){R?W.emit("unhandledRejection",r,n):ne("unhandledrejection",n,r)})),e.rejection=R||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){j.call(l,(function(){var t=e.facade;R?W.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)}))},ae=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,te(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw q("Promise can't be resolved itself");var r=ee(t);r?E((function(){var n={done:!1};try{r.call(t,ae(ce,n,e),ae(se,n,e))}catch(t){se(n,t,e)}})):(e.value=t,e.state=1,te(e,!1))}catch(t){se({done:!1},t,e)}}};if(X&&(V=($=function(e){y(this,$,F),b(e),r.call(this);var t=M(this);try{e(ae(ce,t),ae(se,t))}catch(e){se(t,e)}}).prototype,(r=function(e){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(V,{then:function(e,t){var n=z(this),r=Q(k(this,$));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ae(ce,t),this.reject=ae(se,t)},_.f=Q=function(e){return e===$||e===o?new i(e):Y(e)},!c&&"function"==typeof p&&U!==Object.prototype)){a=U.then,J||(f(U,"then",(function(e,t){var n=this;return new $((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),f(U,"catch",V.catch,{unsafe:!0}));try{delete U.constructor}catch(e){}h&&h(U,V)}s({global:!0,wrap:!0,forced:X},{Promise:$}),m($,F,!1,!0),v(F),o=u(F),s({target:F,stat:!0,forced:X},{reject:function(e){var t=Q(this);return t.reject.call(void 0,e),t.promise}}),s({target:F,stat:!0,forced:c||X},{resolve:function(e){return S(c&&this===o?$:this,e)}}),s({target:F,stat:!0,forced:Z},{all:function(e){var t=this,n=Q(t),r=n.resolve,i=n.reject,o=P((function(){var n=b(t.resolve),o=[],a=0,s=1;w(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Q(t),r=n.reject,i=P((function(){var i=b(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(133);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(110),i=n(132),o=n(61),a=n(131),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(61)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r,i,o,a,s,c,l,u,p=n(38),f=n(270).f,d=n(392).set,h=n(393),m=n(714),v=n(287),g=p.MutationObserver||p.WebKitMutationObserver,b=p.document,y=p.process,x=p.Promise,w=f(p,"queueMicrotask"),O=w&&w.value;O||(r=function(){var e,t;for(v&&(e=y.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},h||v||m||!g||!b?x&&x.resolve?((l=x.resolve(void 0)).constructor=x,u=l.then,a=function(){u.call(l,r)}):a=v?function(){y.nextTick(r)}:function(){d.call(p,r)}:(s=!0,c=b.createTextNode(""),new g(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=O||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(284);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(38);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(130),i=n(134),o=n(207),a=n(288),s=n(206);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(130),i=n(134),o=n(110),a=n(207),s=n(288),c=n(206);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1,p=!1;c(e,(function(e){var i=s++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||p||(p=!0,r(e))}),(function(e){c||p||(c=!0,a[i]=e,--u||l(new(o("AggregateError"))(a,"No one promise resolved")))}))})),--u||l(new(o("AggregateError"))(a,"No one promise resolved"))}));return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(130),i=n(165),o=n(390),a=n(90),s=n(110),c=n(391),l=n(394),u=n(133);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&"function"==typeof o){var p=s("Promise").prototype.finally;o.prototype.finally!==p&&u(o.prototype,"finally",p,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(721).charAt,i=n(205),o=n(395),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(279),i=n(272),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";var r=n(396).IteratorPrototype,i=n(283),o=n(203),a=n(286),s=n(166),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,l,!1,!0),s[l]=c,e}},function(e,t,n){var r=n(38),i=n(724),o=n(725),a=n(102),s=n(61),c=s("iterator"),l=s("toStringTag"),u=o.values;for(var p in i){var f=r[p],d=f&&f.prototype;if(d){if(d[c]!==u)try{a(d,c,u)}catch(e){d[c]=u}if(d[l]||a(d,l,p),i[p])for(var h in o)if(d[h]!==o[h])try{a(d,h,o[h])}catch(e){d[h]=o[h]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(204),i=n(726),o=n(166),a=n(205),s=n(395),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(61),i=n(283),o=n(132),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(728);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){
298
+ */var r,i,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,p=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(f,0))},i=function(e,t){p=setTimeout(e,t)},o=function(){clearTimeout(p)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var m=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var v=!1,g=null,b=-1,y=5,x=0;t.unstable_shouldYield=function(){return t.unstable_now()>=x},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,O=w.port2;w.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();x=e+y;try{g(!0,e)?O.postMessage(null):(v=!1,g=null)}catch(e){throw O.postMessage(null),e}}else v=!1},r=function(e){g=e,v||(v=!0,O.postMessage(null))},i=function(e,n){b=d((function(){e(t.unstable_now())}),n)},o=function(){h(b),b=-1}}function k(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<S(i,t)))break e;e[r]=t,e[n]=i,n=r}}function j(e){return void 0===(e=e[0])?null:e}function E(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var o=2*(r+1)-1,a=e[o],s=o+1,c=e[s];if(void 0!==a&&0>S(a,n))void 0!==c&&0>S(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==c&&0>S(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function S(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],_=[],P=1,A=null,D=3,T=!1,I=!1,R=!1;function L(e){for(var t=j(_);null!==t;){if(null===t.callback)E(_);else{if(!(t.startTime<=e))break;E(_),t.sortIndex=t.expirationTime,k(C,t)}t=j(_)}}function N(e){if(R=!1,L(e),!I)if(null!==j(C))I=!0,r(F);else{var t=j(_);null!==t&&i(N,t.startTime-e)}}function F(e,n){I=!1,R&&(R=!1,o()),T=!0;var r=D;try{for(L(n),A=j(C);null!==A&&(!(A.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=A.callback;if("function"==typeof a){A.callback=null,D=A.priorityLevel;var s=a(A.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?A.callback=s:A===j(C)&&E(C),L(n)}else E(C);A=j(C)}if(null!==A)var c=!0;else{var l=j(_);null!==l&&i(N,l.startTime-n),c=!1}return c}finally{A=null,D=r,T=!1}}var M=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){I||T||(I=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return j(C)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:P++,callback:n,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,k(_,e),null===j(C)&&e===j(_)&&(R?o():R=!0,i(N,a-s))):(e.sortIndex=c,k(C,e),I||T||(I=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},function(e,t,n){"use strict";e.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase())},function(e,t,n){"use strict";var r=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],o(n),o(r))}function a(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(r),n=1;n<t.length;n++)t=(e=o(t,n).join("")).match(r);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=a(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),s=0;s<o.length;s++){var c=o[s];e=e.replace(new RegExp(c,"g"),t[c])}return e}(e)}}},function(e,t,n){"use strict";e.exports=(e,t)=>{if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];const n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n={},r=Object.keys(e),i=Array.isArray(t),o=0;o<r.length;o++){var a=r[o],s=e[a];(i?-1!==t.indexOf(a):t(a,s,e))&&(n[a]=s)}return n}},function(e,t,n){"use strict";e.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports=function(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=e=>Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))},function(e,t,n){var r=n(686),i=["add","done","toJS","fromExternalJS","load","dispose","search"];e.exports=function(){var e=new Worker(URL.createObjectURL(new Blob(['#!/usr/bin/env node\n/*!\n * Redocly Reference Docs CLI\n * (c) Copyright 2018 Redocly LLC, all rights reserved.\n * -------------------------------------------------------------\n * Version: "2.1.19"\n */!function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=101)}([function(e,t){var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof global&&global)||function(){return this}()||Function("return this")()},function(e,t,r){var n=r(0),i=r(43),o=r(3),s=r(44),a=r(50),u=r(77),c=i("wks"),l=n.Symbol,f=u?l:l&&l.withoutSetter||s;e.exports=function(e){return o(c,e)&&(a||"string"==typeof c[e])||(a&&o(l,e)?c[e]=l[e]:c[e]=f("Symbol."+e)),c[e]}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){var n=r(41),i={}.hasOwnProperty;e.exports=Object.hasOwn||function(e,t){return i.call(n(e),t)}},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,r){var n,i;\n/**\n * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9\n * Copyright (C) 2020 Oliver Nightingale\n * @license MIT\n */!function(){var o,s,a,u,c,l,f,p,h,d,y,v,m,g,x,w,b,S,O,E,P,k,T,L,Q,j=function(e){var t=new j.Builder;return t.pipeline.add(j.trimmer,j.stopWordFilter,j.stemmer),t.searchPipeline.add(j.stemmer),e.call(t,t),t.build()};j.version="2.3.9"\n/*!\n * lunr.utils\n * Copyright (C) 2020 Oliver Nightingale\n */,j.utils={},j.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),j.utils.asString=function(e){return null==e?"":e.toString()},j.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),n=0;n<r.length;n++){var i=r[n],o=e[i];if(Array.isArray(o))t[i]=o.slice();else{if("string"!=typeof o&&"number"!=typeof o&&"boolean"!=typeof o)throw new TypeError("clone is not deep and does not support nested objects");t[i]=o}}return t},j.FieldRef=function(e,t,r){this.docRef=e,this.fieldName=t,this._stringValue=r},j.FieldRef.joiner="/",j.FieldRef.fromString=function(e){var t=e.indexOf(j.FieldRef.joiner);if(-1===t)throw"malformed field ref string";var r=e.slice(0,t),n=e.slice(t+1);return new j.FieldRef(n,r,e)},j.FieldRef.prototype.toString=function(){return null==this._stringValue&&(this._stringValue=this.fieldName+j.FieldRef.joiner+this.docRef),this._stringValue}\n/*!\n * lunr.Set\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Set=function(e){if(this.elements=Object.create(null),e){this.length=e.length;for(var t=0;t<this.length;t++)this.elements[e[t]]=!0}else this.length=0},j.Set.complete={intersect:function(e){return e},union:function(){return this},contains:function(){return!0}},j.Set.empty={intersect:function(){return this},union:function(e){return e},contains:function(){return!1}},j.Set.prototype.contains=function(e){return!!this.elements[e]},j.Set.prototype.intersect=function(e){var t,r,n,i=[];if(e===j.Set.complete)return this;if(e===j.Set.empty)return e;this.length<e.length?(t=this,r=e):(t=e,r=this),n=Object.keys(t.elements);for(var o=0;o<n.length;o++){var s=n[o];s in r.elements&&i.push(s)}return new j.Set(i)},j.Set.prototype.union=function(e){return e===j.Set.complete?j.Set.complete:e===j.Set.empty?this:new j.Set(Object.keys(this.elements).concat(Object.keys(e.elements)))},j.idf=function(e,t){var r=0;for(var n in e)"_index"!=n&&(r+=Object.keys(e[n]).length);var i=(t-r+.5)/(r+.5);return Math.log(1+Math.abs(i))},j.Token=function(e,t){this.str=e||"",this.metadata=t||{}},j.Token.prototype.toString=function(){return this.str},j.Token.prototype.update=function(e){return this.str=e(this.str,this.metadata),this},j.Token.prototype.clone=function(e){return e=e||function(e){return e},new j.Token(e(this.str,this.metadata),this.metadata)}\n/*!\n * lunr.tokenizer\n * Copyright (C) 2020 Oliver Nightingale\n */,j.tokenizer=function(e,t){if(null==e||null==e)return[];if(Array.isArray(e))return e.map((function(e){return new j.Token(j.utils.asString(e).toLowerCase(),j.utils.clone(t))}));for(var r=e.toString().toLowerCase(),n=r.length,i=[],o=0,s=0;o<=n;o++){var a=o-s;if(r.charAt(o).match(j.tokenizer.separator)||o==n){if(a>0){var u=j.utils.clone(t)||{};u.position=[s,a],u.index=i.length,i.push(new j.Token(r.slice(s,o),u))}s=o+1}}return i},j.tokenizer.separator=/[\\s\\-]+/\n/*!\n * lunr.Pipeline\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Pipeline=function(){this._stack=[]},j.Pipeline.registeredFunctions=Object.create(null),j.Pipeline.registerFunction=function(e,t){t in this.registeredFunctions&&j.utils.warn("Overwriting existing registered function: "+t),e.label=t,j.Pipeline.registeredFunctions[e.label]=e},j.Pipeline.warnIfFunctionNotRegistered=function(e){e.label&&e.label in this.registeredFunctions||j.utils.warn("Function is not registered with pipeline. This may cause problems when serialising the index.\\n",e)},j.Pipeline.load=function(e){var t=new j.Pipeline;return e.forEach((function(e){var r=j.Pipeline.registeredFunctions[e];if(!r)throw new Error("Cannot load unregistered function: "+e);t.add(r)})),t},j.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach((function(e){j.Pipeline.warnIfFunctionNotRegistered(e),this._stack.push(e)}),this)},j.Pipeline.prototype.after=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");r+=1,this._stack.splice(r,0,t)},j.Pipeline.prototype.before=function(e,t){j.Pipeline.warnIfFunctionNotRegistered(t);var r=this._stack.indexOf(e);if(-1==r)throw new Error("Cannot find existingFn");this._stack.splice(r,0,t)},j.Pipeline.prototype.remove=function(e){var t=this._stack.indexOf(e);-1!=t&&this._stack.splice(t,1)},j.Pipeline.prototype.run=function(e){for(var t=this._stack.length,r=0;r<t;r++){for(var n=this._stack[r],i=[],o=0;o<e.length;o++){var s=n(e[o],o,e);if(null!=s&&""!==s)if(Array.isArray(s))for(var a=0;a<s.length;a++)i.push(s[a]);else i.push(s)}e=i}return e},j.Pipeline.prototype.runString=function(e,t){var r=new j.Token(e,t);return this.run([r]).map((function(e){return e.toString()}))},j.Pipeline.prototype.reset=function(){this._stack=[]},j.Pipeline.prototype.toJSON=function(){return this._stack.map((function(e){return j.Pipeline.warnIfFunctionNotRegistered(e),e.label}))}\n/*!\n * lunr.Vector\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Vector=function(e){this._magnitude=0,this.elements=e||[]},j.Vector.prototype.positionForIndex=function(e){if(0==this.elements.length)return 0;for(var t=0,r=this.elements.length/2,n=r-t,i=Math.floor(n/2),o=this.elements[2*i];n>1&&(o<e&&(t=i),o>e&&(r=i),o!=e);)n=r-t,i=t+Math.floor(n/2),o=this.elements[2*i];return o==e||o>e?2*i:o<e?2*(i+1):void 0},j.Vector.prototype.insert=function(e,t){this.upsert(e,t,(function(){throw"duplicate index"}))},j.Vector.prototype.upsert=function(e,t,r){this._magnitude=0;var n=this.positionForIndex(e);this.elements[n]==e?this.elements[n+1]=r(this.elements[n+1],t):this.elements.splice(n,0,e,t)},j.Vector.prototype.magnitude=function(){if(this._magnitude)return this._magnitude;for(var e=0,t=this.elements.length,r=1;r<t;r+=2){var n=this.elements[r];e+=n*n}return this._magnitude=Math.sqrt(e)},j.Vector.prototype.dot=function(e){for(var t=0,r=this.elements,n=e.elements,i=r.length,o=n.length,s=0,a=0,u=0,c=0;u<i&&c<o;)(s=r[u])<(a=n[c])?u+=2:s>a?c+=2:s==a&&(t+=r[u+1]*n[c+1],u+=2,c+=2);return t},j.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},j.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),t=1,r=0;t<this.elements.length;t+=2,r++)e[r]=this.elements[t];return e},j.Vector.prototype.toJSON=function(){return this.elements}\n/*!\n * lunr.stemmer\n * Copyright (C) 2020 Oliver Nightingale\n * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt\n */,j.stemmer=(o={ational:"ate",tional:"tion",enci:"ence",anci:"ance",izer:"ize",bli:"ble",alli:"al",entli:"ent",eli:"e",ousli:"ous",ization:"ize",ation:"ate",ator:"ate",alism:"al",iveness:"ive",fulness:"ful",ousness:"ous",aliti:"al",iviti:"ive",biliti:"ble",logi:"log"},s={icate:"ic",ative:"",alize:"al",iciti:"ic",ical:"ic",ful:"",ness:""},a="[aeiouy]",u="[^aeiou][^aeiouy]*",c=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),l=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*[aeiouy][aeiou]*[^aeiou][^aeiouy]*"),f=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy][aeiou]*[^aeiou][^aeiouy]*([aeiouy][aeiou]*)?$"),p=new RegExp("^([^aeiou][^aeiouy]*)?[aeiouy]"),h=/^(.+?)(ss|i)es$/,d=/^(.+?)([^s])s$/,y=/^(.+?)eed$/,v=/^(.+?)(ed|ing)$/,m=/.$/,g=/(at|bl|iz)$/,x=new RegExp("([^aeiouylsz])\\\\1$"),w=new RegExp("^"+u+a+"[^aeiouwxy]$"),b=/^(.+?[^aeiou])y$/,S=/^(.+?)(ational|tional|enci|anci|izer|bli|alli|entli|eli|ousli|ization|ation|ator|alism|iveness|fulness|ousness|aliti|iviti|biliti|logi)$/,O=/^(.+?)(icate|ative|alize|iciti|ical|ful|ness)$/,E=/^(.+?)(al|ance|ence|er|ic|able|ible|ant|ement|ment|ent|ou|ism|ate|iti|ous|ive|ize)$/,P=/^(.+?)(s|t)(ion)$/,k=/^(.+?)e$/,T=/ll$/,L=new RegExp("^"+u+a+"[^aeiouwxy]$"),Q=function(e){var t,r,n,i,a,u,Q;if(e.length<3)return e;if("y"==(n=e.substr(0,1))&&(e=n.toUpperCase()+e.substr(1)),a=d,(i=h).test(e)?e=e.replace(i,"$1$2"):a.test(e)&&(e=e.replace(a,"$1$2")),a=v,(i=y).test(e)){var j=i.exec(e);(i=c).test(j[1])&&(i=m,e=e.replace(i,""))}else a.test(e)&&(t=(j=a.exec(e))[1],(a=p).test(t)&&(u=x,Q=w,(a=g).test(e=t)?e+="e":u.test(e)?(i=m,e=e.replace(i,"")):Q.test(e)&&(e+="e")));return(i=b).test(e)&&(e=(t=(j=i.exec(e))[1])+"i"),(i=S).test(e)&&(t=(j=i.exec(e))[1],r=j[2],(i=c).test(t)&&(e=t+o[r])),(i=O).test(e)&&(t=(j=i.exec(e))[1],r=j[2],(i=c).test(t)&&(e=t+s[r])),a=P,(i=E).test(e)?(t=(j=i.exec(e))[1],(i=l).test(t)&&(e=t)):a.test(e)&&(t=(j=a.exec(e))[1]+j[2],(a=l).test(t)&&(e=t)),(i=k).test(e)&&(t=(j=i.exec(e))[1],a=f,u=L,((i=l).test(t)||a.test(t)&&!u.test(t))&&(e=t)),a=l,(i=T).test(e)&&a.test(e)&&(i=m,e=e.replace(i,"")),"y"==n&&(e=n.toLowerCase()+e.substr(1)),e},function(e){return e.update(Q)}),j.Pipeline.registerFunction(j.stemmer,"stemmer")\n/*!\n * lunr.stopWordFilter\n * Copyright (C) 2020 Oliver Nightingale\n */,j.generateStopWordFilter=function(e){var t=e.reduce((function(e,t){return e[t]=t,e}),{});return function(e){if(e&&t[e.toString()]!==e.toString())return e}},j.stopWordFilter=j.generateStopWordFilter(["a","able","about","across","after","all","almost","also","am","among","an","and","any","are","as","at","be","because","been","but","by","can","cannot","could","dear","did","do","does","either","else","ever","every","for","from","get","got","had","has","have","he","her","hers","him","his","how","however","i","if","in","into","is","it","its","just","least","let","like","likely","may","me","might","most","must","my","neither","no","nor","not","of","off","often","on","only","or","other","our","own","rather","said","say","says","she","should","since","so","some","than","that","the","their","them","then","there","these","they","this","tis","to","too","twas","us","wants","was","we","were","what","when","where","which","while","who","whom","why","will","with","would","yet","you","your"]),j.Pipeline.registerFunction(j.stopWordFilter,"stopWordFilter")\n/*!\n * lunr.trimmer\n * Copyright (C) 2020 Oliver Nightingale\n */,j.trimmer=function(e){return e.update((function(e){return e.replace(/^\\W+/,"").replace(/\\W+$/,"")}))},j.Pipeline.registerFunction(j.trimmer,"trimmer")\n/*!\n * lunr.TokenSet\n * Copyright (C) 2020 Oliver Nightingale\n */,j.TokenSet=function(){this.final=!1,this.edges={},this.id=j.TokenSet._nextId,j.TokenSet._nextId+=1},j.TokenSet._nextId=1,j.TokenSet.fromArray=function(e){for(var t=new j.TokenSet.Builder,r=0,n=e.length;r<n;r++)t.insert(e[r]);return t.finish(),t.root},j.TokenSet.fromClause=function(e){return"editDistance"in e?j.TokenSet.fromFuzzyString(e.term,e.editDistance):j.TokenSet.fromString(e.term)},j.TokenSet.fromFuzzyString=function(e,t){for(var r=new j.TokenSet,n=[{node:r,editsRemaining:t,str:e}];n.length;){var i=n.pop();if(i.str.length>0){var o,s=i.str.charAt(0);s in i.node.edges?o=i.node.edges[s]:(o=new j.TokenSet,i.node.edges[s]=o),1==i.str.length&&(o.final=!0),n.push({node:o,editsRemaining:i.editsRemaining,str:i.str.slice(1)})}if(0!=i.editsRemaining){if("*"in i.node.edges)var a=i.node.edges["*"];else{a=new j.TokenSet;i.node.edges["*"]=a}if(0==i.str.length&&(a.final=!0),n.push({node:a,editsRemaining:i.editsRemaining-1,str:i.str}),i.str.length>1&&n.push({node:i.node,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)}),1==i.str.length&&(i.node.final=!0),i.str.length>=1){if("*"in i.node.edges)var u=i.node.edges["*"];else{u=new j.TokenSet;i.node.edges["*"]=u}1==i.str.length&&(u.final=!0),n.push({node:u,editsRemaining:i.editsRemaining-1,str:i.str.slice(1)})}if(i.str.length>1){var c,l=i.str.charAt(0),f=i.str.charAt(1);f in i.node.edges?c=i.node.edges[f]:(c=new j.TokenSet,i.node.edges[f]=c),1==i.str.length&&(c.final=!0),n.push({node:c,editsRemaining:i.editsRemaining-1,str:l+i.str.slice(2)})}}}return r},j.TokenSet.fromString=function(e){for(var t=new j.TokenSet,r=t,n=0,i=e.length;n<i;n++){var o=e[n],s=n==i-1;if("*"==o)t.edges[o]=t,t.final=s;else{var a=new j.TokenSet;a.final=s,t.edges[o]=a,t=a}}return r},j.TokenSet.prototype.toArray=function(){for(var e=[],t=[{prefix:"",node:this}];t.length;){var r=t.pop(),n=Object.keys(r.node.edges),i=n.length;r.node.final&&(r.prefix.charAt(0),e.push(r.prefix));for(var o=0;o<i;o++){var s=n[o];t.push({prefix:r.prefix.concat(s),node:r.node.edges[s]})}}return e},j.TokenSet.prototype.toString=function(){if(this._str)return this._str;for(var e=this.final?"1":"0",t=Object.keys(this.edges).sort(),r=t.length,n=0;n<r;n++){var i=t[n];e=e+i+this.edges[i].id}return e},j.TokenSet.prototype.intersect=function(e){for(var t=new j.TokenSet,r=void 0,n=[{qNode:e,output:t,node:this}];n.length;){r=n.pop();for(var i=Object.keys(r.qNode.edges),o=i.length,s=Object.keys(r.node.edges),a=s.length,u=0;u<o;u++)for(var c=i[u],l=0;l<a;l++){var f=s[l];if(f==c||"*"==c){var p=r.node.edges[f],h=r.qNode.edges[c],d=p.final&&h.final,y=void 0;f in r.output.edges?(y=r.output.edges[f]).final=y.final||d:((y=new j.TokenSet).final=d,r.output.edges[f]=y),n.push({qNode:h,output:y,node:p})}}}return t},j.TokenSet.Builder=function(){this.previousWord="",this.root=new j.TokenSet,this.uncheckedNodes=[],this.minimizedNodes={}},j.TokenSet.Builder.prototype.insert=function(e){var t,r=0;if(e<this.previousWord)throw new Error("Out of order word insertion");for(var n=0;n<e.length&&n<this.previousWord.length&&e[n]==this.previousWord[n];n++)r++;this.minimize(r),t=0==this.uncheckedNodes.length?this.root:this.uncheckedNodes[this.uncheckedNodes.length-1].child;for(n=r;n<e.length;n++){var i=new j.TokenSet,o=e[n];t.edges[o]=i,this.uncheckedNodes.push({parent:t,char:o,child:i}),t=i}t.final=!0,this.previousWord=e},j.TokenSet.Builder.prototype.finish=function(){this.minimize(0)},j.TokenSet.Builder.prototype.minimize=function(e){for(var t=this.uncheckedNodes.length-1;t>=e;t--){var r=this.uncheckedNodes[t],n=r.child.toString();n in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[n]:(r.child._str=n,this.minimizedNodes[n]=r.child),this.uncheckedNodes.pop()}}\n/*!\n * lunr.Index\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},j.Index.prototype.search=function(e){return this.query((function(t){new j.QueryParser(e,t).parse()}))},j.Index.prototype.query=function(e){for(var t=new j.Query(this.fields),r=Object.create(null),n=Object.create(null),i=Object.create(null),o=Object.create(null),s=Object.create(null),a=0;a<this.fields.length;a++)n[this.fields[a]]=new j.Vector;e.call(t,t);for(a=0;a<t.clauses.length;a++){var u=t.clauses[a],c=null,l=j.Set.empty;c=u.usePipeline?this.pipeline.runString(u.term,{fields:u.fields}):[u.term];for(var f=0;f<c.length;f++){var p=c[f];u.term=p;var h=j.TokenSet.fromClause(u),d=this.tokenSet.intersect(h).toArray();if(0===d.length&&u.presence===j.Query.presence.REQUIRED){for(var y=0;y<u.fields.length;y++){o[R=u.fields[y]]=j.Set.empty}break}for(var v=0;v<d.length;v++){var m=d[v],g=this.invertedIndex[m],x=g._index;for(y=0;y<u.fields.length;y++){var w=g[R=u.fields[y]],b=Object.keys(w),S=m+"/"+R,O=new j.Set(b);if(u.presence==j.Query.presence.REQUIRED&&(l=l.union(O),void 0===o[R]&&(o[R]=j.Set.complete)),u.presence!=j.Query.presence.PROHIBITED){if(n[R].upsert(x,u.boost,(function(e,t){return e+t})),!i[S]){for(var E=0;E<b.length;E++){var P,k=b[E],T=new j.FieldRef(k,R),L=w[k];void 0===(P=r[T])?r[T]=new j.MatchData(m,R,L):P.add(m,R,L)}i[S]=!0}}else void 0===s[R]&&(s[R]=j.Set.empty),s[R]=s[R].union(O)}}}if(u.presence===j.Query.presence.REQUIRED)for(y=0;y<u.fields.length;y++){o[R=u.fields[y]]=o[R].intersect(l)}}var Q=j.Set.complete,I=j.Set.empty;for(a=0;a<this.fields.length;a++){var R;o[R=this.fields[a]]&&(Q=Q.intersect(o[R])),s[R]&&(I=I.union(s[R]))}var _=Object.keys(r),F=[],C=Object.create(null);if(t.isNegated()){_=Object.keys(this.fieldVectors);for(a=0;a<_.length;a++){T=_[a];var A=j.FieldRef.fromString(T);r[T]=new j.MatchData}}for(a=0;a<_.length;a++){var N=(A=j.FieldRef.fromString(_[a])).docRef;if(Q.contains(N)&&!I.contains(N)){var D,M=this.fieldVectors[A],B=n[A.fieldName].similarity(M);if(void 0!==(D=C[N]))D.score+=B,D.matchData.combine(r[A]);else{var V={ref:N,score:B,matchData:r[A]};C[N]=V,F.push(V)}}}return F.sort((function(e,t){return t.score-e.score}))},j.Index.prototype.toJSON=function(){var e=Object.keys(this.invertedIndex).sort().map((function(e){return[e,this.invertedIndex[e]]}),this),t=Object.keys(this.fieldVectors).map((function(e){return[e,this.fieldVectors[e].toJSON()]}),this);return{version:j.version,fields:this.fields,fieldVectors:t,invertedIndex:e,pipeline:this.pipeline.toJSON()}},j.Index.load=function(e){var t={},r={},n=e.fieldVectors,i=Object.create(null),o=e.invertedIndex,s=new j.TokenSet.Builder,a=j.Pipeline.load(e.pipeline);e.version!=j.version&&j.utils.warn("Version mismatch when loading serialised index. Current version of lunr \'"+j.version+"\' does not match serialized index \'"+e.version+"\'");for(var u=0;u<n.length;u++){var c=(f=n[u])[0],l=f[1];r[c]=new j.Vector(l)}for(u=0;u<o.length;u++){var f,p=(f=o[u])[0],h=f[1];s.insert(p),i[p]=h}return s.finish(),t.fields=e.fields,t.fieldVectors=r,t.invertedIndex=i,t.tokenSet=s.root,t.pipeline=a,new j.Index(t)}\n/*!\n * lunr.Builder\n * Copyright (C) 2020 Oliver Nightingale\n */,j.Builder=function(){this._ref="id",this._fields=Object.create(null),this._documents=Object.create(null),this.invertedIndex=Object.create(null),this.fieldTermFrequencies={},this.fieldLengths={},this.tokenizer=j.tokenizer,this.pipeline=new j.Pipeline,this.searchPipeline=new j.Pipeline,this.documentCount=0,this._b=.75,this._k1=1.2,this.termIndex=0,this.metadataWhitelist=[]},j.Builder.prototype.ref=function(e){this._ref=e},j.Builder.prototype.field=function(e,t){if(/\\//.test(e))throw new RangeError("Field \'"+e+"\' contains illegal character \'/\'");this._fields[e]=t||{}},j.Builder.prototype.b=function(e){this._b=e<0?0:e>1?1:e},j.Builder.prototype.k1=function(e){this._k1=e},j.Builder.prototype.add=function(e,t){var r=e[this._ref],n=Object.keys(this._fields);this._documents[r]=t||{},this.documentCount+=1;for(var i=0;i<n.length;i++){var o=n[i],s=this._fields[o].extractor,a=s?s(e):e[o],u=this.tokenizer(a,{fields:[o]}),c=this.pipeline.run(u),l=new j.FieldRef(r,o),f=Object.create(null);this.fieldTermFrequencies[l]=f,this.fieldLengths[l]=0,this.fieldLengths[l]+=c.length;for(var p=0;p<c.length;p++){var h=c[p];if(null==f[h]&&(f[h]=0),f[h]+=1,null==this.invertedIndex[h]){var d=Object.create(null);d._index=this.termIndex,this.termIndex+=1;for(var y=0;y<n.length;y++)d[n[y]]=Object.create(null);this.invertedIndex[h]=d}null==this.invertedIndex[h][o][r]&&(this.invertedIndex[h][o][r]=Object.create(null));for(var v=0;v<this.metadataWhitelist.length;v++){var m=this.metadataWhitelist[v],g=h.metadata[m];null==this.invertedIndex[h][o][r][m]&&(this.invertedIndex[h][o][r][m]=[]),this.invertedIndex[h][o][r][m].push(g)}}}},j.Builder.prototype.calculateAverageFieldLengths=function(){for(var e=Object.keys(this.fieldLengths),t=e.length,r={},n={},i=0;i<t;i++){var o=j.FieldRef.fromString(e[i]),s=o.fieldName;n[s]||(n[s]=0),n[s]+=1,r[s]||(r[s]=0),r[s]+=this.fieldLengths[o]}var a=Object.keys(this._fields);for(i=0;i<a.length;i++){var u=a[i];r[u]=r[u]/n[u]}this.averageFieldLength=r},j.Builder.prototype.createFieldVectors=function(){for(var e={},t=Object.keys(this.fieldTermFrequencies),r=t.length,n=Object.create(null),i=0;i<r;i++){for(var o=j.FieldRef.fromString(t[i]),s=o.fieldName,a=this.fieldLengths[o],u=new j.Vector,c=this.fieldTermFrequencies[o],l=Object.keys(c),f=l.length,p=this._fields[s].boost||1,h=this._documents[o.docRef].boost||1,d=0;d<f;d++){var y,v,m,g=l[d],x=c[g],w=this.invertedIndex[g]._index;void 0===n[g]?(y=j.idf(this.invertedIndex[g],this.documentCount),n[g]=y):y=n[g],v=y*((this._k1+1)*x)/(this._k1*(1-this._b+this._b*(a/this.averageFieldLength[s]))+x),v*=p,v*=h,m=Math.round(1e3*v)/1e3,u.insert(w,m)}e[o]=u}this.fieldVectors=e},j.Builder.prototype.createTokenSet=function(){this.tokenSet=j.TokenSet.fromArray(Object.keys(this.invertedIndex).sort())},j.Builder.prototype.build=function(){return this.calculateAverageFieldLengths(),this.createFieldVectors(),this.createTokenSet(),new j.Index({invertedIndex:this.invertedIndex,fieldVectors:this.fieldVectors,tokenSet:this.tokenSet,fields:Object.keys(this._fields),pipeline:this.searchPipeline})},j.Builder.prototype.use=function(e){var t=Array.prototype.slice.call(arguments,1);t.unshift(this),e.apply(this,t)},j.MatchData=function(e,t,r){for(var n=Object.create(null),i=Object.keys(r||{}),o=0;o<i.length;o++){var s=i[o];n[s]=r[s].slice()}this.metadata=Object.create(null),void 0!==e&&(this.metadata[e]=Object.create(null),this.metadata[e][t]=n)},j.MatchData.prototype.combine=function(e){for(var t=Object.keys(e.metadata),r=0;r<t.length;r++){var n=t[r],i=Object.keys(e.metadata[n]);null==this.metadata[n]&&(this.metadata[n]=Object.create(null));for(var o=0;o<i.length;o++){var s=i[o],a=Object.keys(e.metadata[n][s]);null==this.metadata[n][s]&&(this.metadata[n][s]=Object.create(null));for(var u=0;u<a.length;u++){var c=a[u];null==this.metadata[n][s][c]?this.metadata[n][s][c]=e.metadata[n][s][c]:this.metadata[n][s][c]=this.metadata[n][s][c].concat(e.metadata[n][s][c])}}}},j.MatchData.prototype.add=function(e,t,r){if(!(e in this.metadata))return this.metadata[e]=Object.create(null),void(this.metadata[e][t]=r);if(t in this.metadata[e])for(var n=Object.keys(r),i=0;i<n.length;i++){var o=n[i];o in this.metadata[e][t]?this.metadata[e][t][o]=this.metadata[e][t][o].concat(r[o]):this.metadata[e][t][o]=r[o]}else this.metadata[e][t]=r},j.Query=function(e){this.clauses=[],this.allFields=e},j.Query.wildcard=new String("*"),j.Query.wildcard.NONE=0,j.Query.wildcard.LEADING=1,j.Query.wildcard.TRAILING=2,j.Query.presence={OPTIONAL:1,REQUIRED:2,PROHIBITED:3},j.Query.prototype.clause=function(e){return"fields"in e||(e.fields=this.allFields),"boost"in e||(e.boost=1),"usePipeline"in e||(e.usePipeline=!0),"wildcard"in e||(e.wildcard=j.Query.wildcard.NONE),e.wildcard&j.Query.wildcard.LEADING&&e.term.charAt(0)!=j.Query.wildcard&&(e.term="*"+e.term),e.wildcard&j.Query.wildcard.TRAILING&&e.term.slice(-1)!=j.Query.wildcard&&(e.term=e.term+"*"),"presence"in e||(e.presence=j.Query.presence.OPTIONAL),this.clauses.push(e),this},j.Query.prototype.isNegated=function(){for(var e=0;e<this.clauses.length;e++)if(this.clauses[e].presence!=j.Query.presence.PROHIBITED)return!1;return!0},j.Query.prototype.term=function(e,t){if(Array.isArray(e))return e.forEach((function(e){this.term(e,j.utils.clone(t))}),this),this;var r=t||{};return r.term=e.toString(),this.clause(r),this},j.QueryParseError=function(e,t,r){this.name="QueryParseError",this.message=e,this.start=t,this.end=r},j.QueryParseError.prototype=new Error,j.QueryLexer=function(e){this.lexemes=[],this.str=e,this.length=e.length,this.pos=0,this.start=0,this.escapeCharPositions=[]},j.QueryLexer.prototype.run=function(){for(var e=j.QueryLexer.lexText;e;)e=e(this)},j.QueryLexer.prototype.sliceString=function(){for(var e=[],t=this.start,r=this.pos,n=0;n<this.escapeCharPositions.length;n++)r=this.escapeCharPositions[n],e.push(this.str.slice(t,r)),t=r+1;return e.push(this.str.slice(t,this.pos)),this.escapeCharPositions.length=0,e.join("")},j.QueryLexer.prototype.emit=function(e){this.lexemes.push({type:e,str:this.sliceString(),start:this.start,end:this.pos}),this.start=this.pos},j.QueryLexer.prototype.escapeCharacter=function(){this.escapeCharPositions.push(this.pos-1),this.pos+=1},j.QueryLexer.prototype.next=function(){if(this.pos>=this.length)return j.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},j.QueryLexer.prototype.width=function(){return this.pos-this.start},j.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},j.QueryLexer.prototype.backup=function(){this.pos-=1},j.QueryLexer.prototype.acceptDigitRun=function(){var e,t;do{t=(e=this.next()).charCodeAt(0)}while(t>47&&t<58);e!=j.QueryLexer.EOS&&this.backup()},j.QueryLexer.prototype.more=function(){return this.pos<this.length},j.QueryLexer.EOS="EOS",j.QueryLexer.FIELD="FIELD",j.QueryLexer.TERM="TERM",j.QueryLexer.EDIT_DISTANCE="EDIT_DISTANCE",j.QueryLexer.BOOST="BOOST",j.QueryLexer.PRESENCE="PRESENCE",j.QueryLexer.lexField=function(e){return e.backup(),e.emit(j.QueryLexer.FIELD),e.ignore(),j.QueryLexer.lexText},j.QueryLexer.lexTerm=function(e){if(e.width()>1&&(e.backup(),e.emit(j.QueryLexer.TERM)),e.ignore(),e.more())return j.QueryLexer.lexText},j.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.EDIT_DISTANCE),j.QueryLexer.lexText},j.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(j.QueryLexer.BOOST),j.QueryLexer.lexText},j.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(j.QueryLexer.TERM)},j.QueryLexer.termSeparator=j.tokenizer.separator,j.QueryLexer.lexText=function(e){for(;;){var t=e.next();if(t==j.QueryLexer.EOS)return j.QueryLexer.lexEOS;if(92!=t.charCodeAt(0)){if(":"==t)return j.QueryLexer.lexField;if("~"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexEditDistance;if("^"==t)return e.backup(),e.width()>0&&e.emit(j.QueryLexer.TERM),j.QueryLexer.lexBoost;if("+"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if("-"==t&&1===e.width())return e.emit(j.QueryLexer.PRESENCE),j.QueryLexer.lexText;if(t.match(j.QueryLexer.termSeparator))return j.QueryLexer.lexTerm}else e.escapeCharacter()}},j.QueryParser=function(e,t){this.lexer=new j.QueryLexer(e),this.query=t,this.currentClause={},this.lexemeIdx=0},j.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=j.QueryParser.parseClause;e;)e=e(this);return this.query},j.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},j.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},j.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},j.QueryParser.parseClause=function(e){var t=e.peekLexeme();if(null!=t)switch(t.type){case j.QueryLexer.PRESENCE:return j.QueryParser.parsePresence;case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+t.type;throw t.str.length>=1&&(r+=" with value \'"+t.str+"\'"),new j.QueryParseError(r,t.start,t.end)}},j.QueryParser.parsePresence=function(e){var t=e.consumeLexeme();if(null!=t){switch(t.str){case"-":e.currentClause.presence=j.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=j.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator\'"+t.str+"\'";throw new j.QueryParseError(r,t.start,t.end)}var n=e.peekLexeme();if(null==n){r="expecting term or field, found nothing";throw new j.QueryParseError(r,t.start,t.end)}switch(n.type){case j.QueryLexer.FIELD:return j.QueryParser.parseField;case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:r="expecting term or field, found \'"+n.type+"\'";throw new j.QueryParseError(r,n.start,n.end)}}},j.QueryParser.parseField=function(e){var t=e.consumeLexeme();if(null!=t){if(-1==e.query.allFields.indexOf(t.str)){var r=e.query.allFields.map((function(e){return"\'"+e+"\'"})).join(", "),n="unrecognised field \'"+t.str+"\', possible fields: "+r;throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.fields=[t.str];var i=e.peekLexeme();if(null==i){n="expecting term, found nothing";throw new j.QueryParseError(n,t.start,t.end)}switch(i.type){case j.QueryLexer.TERM:return j.QueryParser.parseTerm;default:n="expecting term, found \'"+i.type+"\'";throw new j.QueryParseError(n,i.start,i.end)}}},j.QueryParser.parseTerm=function(e){var t=e.consumeLexeme();if(null!=t){e.currentClause.term=t.str.toLowerCase(),-1!=t.str.indexOf("*")&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(null!=r)switch(r.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:var n="Unexpected lexeme type \'"+r.type+"\'";throw new j.QueryParseError(n,r.start,r.end)}else e.nextClause()}},j.QueryParser.parseEditDistance=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="edit distance must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.editDistance=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:n="Unexpected lexeme type \'"+i.type+"\'";throw new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},j.QueryParser.parseBoost=function(e){var t=e.consumeLexeme();if(null!=t){var r=parseInt(t.str,10);if(isNaN(r)){var n="boost must be numeric";throw new j.QueryParseError(n,t.start,t.end)}e.currentClause.boost=r;var i=e.peekLexeme();if(null!=i)switch(i.type){case j.QueryLexer.TERM:return e.nextClause(),j.QueryParser.parseTerm;case j.QueryLexer.FIELD:return e.nextClause(),j.QueryParser.parseField;case j.QueryLexer.EDIT_DISTANCE:return j.QueryParser.parseEditDistance;case j.QueryLexer.BOOST:return j.QueryParser.parseBoost;case j.QueryLexer.PRESENCE:return e.nextClause(),j.QueryParser.parsePresence;default:n="Unexpected lexeme type \'"+i.type+"\'";throw new j.QueryParseError(n,i.start,i.end)}else e.nextClause()}},void 0===(i="function"==typeof(n=function(){return j})?n.call(t,r,t,e):n)||(e.exports=i)}()},function(e,t,r){var n=r(10),i=r(11),o=r(16);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){var n=r(45),i=r(0),o=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},function(e,t,r){var n=r(0),i=r(21).f,o=r(6),s=r(12),a=r(25),u=r(66),c=r(48);e.exports=function(e,t){var r,l,f,p,h,d=e.target,y=e.global,v=e.stat;if(r=y?n:v?n[d]||a(d,{}):(n[d]||{}).prototype)for(l in t){if(p=t[l],f=e.noTargetGet?(h=i(r,l))&&h.value:r[l],!c(y?l:d+(v?".":"#")+l,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;u(p,f)}(e.sham||f&&f.sham)&&o(p,"sham",!0),s(r,l,p,e)}}},function(e,t,r){var n=r(2);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,r){var n=r(10),i=r(42),o=r(4),s=r(40),a=Object.defineProperty;t.f=n?a:function(e,t,r){if(o(e),t=s(t,!0),o(r),i)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(0),i=r(6),o=r(3),s=r(25),a=r(26),u=r(18),c=u.get,l=u.enforce,f=String(String).split("String");(e.exports=function(e,t,r,a){var u,c=!!a&&!!a.unsafe,p=!!a&&!!a.enumerable,h=!!a&&!!a.noTargetGet;"function"==typeof r&&("string"!=typeof t||o(r,"name")||i(r,"name",t),(u=l(r)).source||(u.source=f.join("string"==typeof t?t:""))),e!==n?(c?!h&&e[t]&&(p=!0):delete e[t],p?e[t]=r:i(e,t,r)):p?e[t]=r:s(t,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||a(this)}))},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t){e.exports=!1},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(64),i=r(23);e.exports=function(e){return n(i(e))}},function(e,t,r){var n,i,o,s=r(65),a=r(0),u=r(7),c=r(6),l=r(3),f=r(27),p=r(28),h=r(29),d=a.WeakMap;if(s||f.state){var y=f.state||(f.state=new d),v=y.get,m=y.has,g=y.set;n=function(e,t){if(m.call(y,e))throw new TypeError("Object already initialized");return t.facade=e,g.call(y,e,t),t},i=function(e){return v.call(y,e)||{}},o=function(e){return m.call(y,e)}}else{var x=p("state");h[x]=!0,n=function(e,t){if(l(e,x))throw new TypeError("Object already initialized");return t.facade=e,c(e,x,t),t},i=function(e){return l(e,x)?e[x]:{}},o=function(e){return l(e,x)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!u(t)||(r=i(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return r}}}},function(e,t,r){var n=r(4),i=r(76),o=r(47),s=r(52),a=r(78),u=r(79),c=function(e,t){this.stopped=e,this.result=t};e.exports=function(e,t,r){var l,f,p,h,d,y,v,m=r&&r.that,g=!(!r||!r.AS_ENTRIES),x=!(!r||!r.IS_ITERATOR),w=!(!r||!r.INTERRUPTED),b=s(t,m,1+g+w),S=function(e){return l&&u(l),new c(!0,e)},O=function(e){return g?(n(e),w?b(e[0],e[1],S):b(e[0],e[1])):w?b(e,S):b(e)};if(x)l=e;else{if("function"!=typeof(f=a(e)))throw TypeError("Target is not iterable");if(i(f)){for(p=0,h=o(e.length);h>p;p++)if((d=O(e[p]))&&d instanceof c)return d;return new c(!1)}l=f.call(e)}for(y=l.next;!(v=y.call(l)).done;){try{d=O(v.value)}catch(e){throw u(l),e}if("object"==typeof d&&d&&d instanceof c)return d}return new c(!1)}},function(e,t,r){"use strict";var n=r(13),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},function(e,t,r){var n=r(10),i=r(63),o=r(16),s=r(17),a=r(40),u=r(3),c=r(42),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=s(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(u(e,t))return o(!i.f.call(e,t),e[t])}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can\'t call method on "+e);return e}},function(e,t,r){var n=r(0),i=r(7),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},function(e,t,r){var n=r(0),i=r(6);e.exports=function(e,t){try{i(n,e,t)}catch(r){n[e]=t}return t}},function(e,t,r){var n=r(27),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(e){return i.call(e)}),e.exports=n.inspectSource},function(e,t,r){var n=r(0),i=r(25),o=n["__core-js_shared__"]||i("__core-js_shared__",{});e.exports=o},function(e,t,r){var n=r(43),i=r(44),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},function(e,t){e.exports={}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(e,t,r){var n=r(3),i=r(41),o=r(28),s=r(72),a=o("IE_PROTO"),u=Object.prototype;e.exports=s?Object.getPrototypeOf:function(e){return e=i(e),n(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,r){var n=r(4),i=r(73);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),t=r instanceof Array}catch(e){}return function(r,o){return n(r),i(o),t?e.call(r,o):r.__proto__=o,r}}():void 0)},function(e,t,r){var n,i=r(4),o=r(74),s=r(31),a=r(29),u=r(49),c=r(24),l=r(28),f=l("IE_PROTO"),p=function(){},h=function(e){return"<script>"+e+"<\\/script>"},d=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(e){}var e,t;d=n?function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t}(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F);for(var r=s.length;r--;)delete d.prototype[s[r]];return d()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p.prototype=i(e),r=new p,p.prototype=null,r[f]=e):r=d(),void 0===t?r:o(r,t)}},function(e,t,r){var n=r(8);e.exports=n("navigator","userAgent")||""},function(e,t,r){var n={};n[r(1)("toStringTag")]="z",e.exports="[object z]"===String(n)},function(e,t,r){var n=r(11).f,i=r(3),o=r(1)("toStringTag");e.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},function(e,t,r){var n=r(22),i=r(0);e.exports="process"==n(i.process)},function(e,t){e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},function(e,t,r){var n=r(7);e.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can\'t convert object to primitive value")}},function(e,t,r){var n=r(23);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(10),i=r(2),o=r(24);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(e,t,r){var n=r(14),i=r(27);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.14.0",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++r+n).toString(36)}},function(e,t,r){var n=r(0);e.exports=n},function(e,t,r){var n=r(3),i=r(17),o=r(69).indexOf,s=r(29);e.exports=function(e,t){var r,a=i(e),u=0,c=[];for(r in a)!n(s,r)&&n(a,r)&&c.push(r);for(;t.length>u;)n(a,r=t[u++])&&(~o(c,r)||c.push(r));return c}},function(e,t,r){var n=r(30),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},function(e,t,r){var n=r(2),i=/#|\\.prototype\\./,o=function(e,t){var r=a[s(e)];return r==c||r!=u&&("function"==typeof t?n(t):!!t)},s=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",c=o.POLYFILL="P";e.exports=o},function(e,t,r){var n=r(8);e.exports=n("document","documentElement")},function(e,t,r){var n=r(51),i=r(2);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},function(e,t,r){var n,i,o=r(0),s=r(35),a=o.process,u=a&&a.versions,c=u&&u.v8;c?i=(n=c.split("."))[0]<4?1:n[0]+n[1]:s&&(!(n=s.match(/Edge\\/(\\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\\/(\\d+)/))&&(i=n[1]),e.exports=i&&+i},function(e,t,r){var n=r(13);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 0:return function(){return e.call(t)};case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,r){var n=r(36),i=r(22),o=r(1)("toStringTag"),s="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:s?i(t):"Object"==(n=i(t))&&"function"==typeof t.callee?"Arguments":n}},function(e,t,r){var n=r(0);e.exports=n.Promise},function(e,t,r){var n=r(4),i=r(13),o=r(1)("species");e.exports=function(e,t){var r,s=n(e).constructor;return void 0===s||null==(r=n(s)[o])?t:i(r)}},function(e,t,r){var n,i,o,s=r(0),a=r(2),u=r(52),c=r(49),l=r(24),f=r(57),p=r(38),h=s.location,d=s.setImmediate,y=s.clearImmediate,v=s.process,m=s.MessageChannel,g=s.Dispatch,x=0,w={},b=function(e){if(w.hasOwnProperty(e)){var t=w[e];delete w[e],t()}},S=function(e){return function(){b(e)}},O=function(e){b(e.data)},E=function(e){s.postMessage(e+"",h.protocol+"//"+h.host)};d&&y||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return w[++x]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},n(x),x},y=function(e){delete w[e]},p?n=function(e){v.nextTick(S(e))}:g&&g.now?n=function(e){g.now(S(e))}:m&&!f?(o=(i=new m).port2,i.port1.onmessage=O,n=u(o.postMessage,o,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&h&&"file:"!==h.protocol&&!a(E)?(n=E,s.addEventListener("message",O,!1)):n="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),b(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:d,clear:y}},function(e,t,r){var n=r(35);e.exports=/(?:iphone|ipod|ipad).*applewebkit/i.test(n)},function(e,t,r){var n=r(4),i=r(7),o=r(20);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},function(e,t,r){"use strict";var n=r(9),i=r(96),o=r(32),s=r(33),a=r(37),u=r(6),c=r(12),l=r(1),f=r(14),p=r(15),h=r(60),d=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m=function(){return this};e.exports=function(e,t,r,l,h,g,x){i(r,t,l);var w,b,S,O=function(e){if(e===h&&L)return L;if(!y&&e in k)return k[e];switch(e){case"keys":case"values":case"entries":return function(){return new r(this,e)}}return function(){return new r(this)}},E=t+" Iterator",P=!1,k=e.prototype,T=k[v]||k["@@iterator"]||h&&k[h],L=!y&&T||O(h),Q="Array"==t&&k.entries||T;if(Q&&(w=o(Q.call(new e)),d!==Object.prototype&&w.next&&(f||o(w)===d||(s?s(w,d):"function"!=typeof w[v]&&u(w,v,m)),a(w,E,!0,!0),f&&(p[E]=m))),"values"==h&&T&&"values"!==T.name&&(P=!0,L=function(){return T.call(this)}),f&&!x||k[v]===L||u(k,v,L),p[t]=L,h)if(b={values:O("values"),keys:g?L:O("keys"),entries:O("entries")},x)for(S in b)(y||P||!(S in k))&&c(k,S,b[S]);else n({target:t,proto:!0,forced:y||P},b);return b}},function(e,t,r){"use strict";var n,i,o,s=r(2),a=r(32),u=r(6),c=r(3),l=r(1),f=r(14),p=l("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0);var d=null==n||s((function(){var e={};return n[p].call(e)!==e}));d&&(n={}),f&&!d||c(n,p)||u(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(e,t,r){r(62),r(80),r(82),r(91),r(92),r(93),r(94),r(97);var n=r(45);e.exports=n.Promise},function(e,t,r){"use strict";var n=r(9),i=r(32),o=r(33),s=r(34),a=r(6),u=r(16),c=r(19),l=function(e,t){var r=this;if(!(r instanceof l))return new l(e,t);o&&(r=o(new Error(void 0),i(r))),void 0!==t&&a(r,"message",String(t));var n=[];return c(e,n.push,{that:n}),a(r,"errors",n),r};l.prototype=s(Error.prototype,{constructor:u(5,l),message:u(5,""),name:u(5,"AggregateError")}),n({global:!0},{AggregateError:l})},function(e,t,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},function(e,t,r){var n=r(2),i=r(22),o="".split;e.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,r){var n=r(0),i=r(26),o=n.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,r){var n=r(3),i=r(67),o=r(21),s=r(11);e.exports=function(e,t){for(var r=i(t),a=s.f,u=o.f,c=0;c<r.length;c++){var l=r[c];n(e,l)||a(e,l,u(t,l))}}},function(e,t,r){var n=r(8),i=r(68),o=r(71),s=r(4);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(s(e)),r=o.f;return r?t.concat(r(e)):t}},function(e,t,r){var n=r(46),i=r(31).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},function(e,t,r){var n=r(17),i=r(47),o=r(70),s=function(e){return function(t,r,s){var a,u=n(t),c=i(u.length),l=o(s,c);if(e&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},function(e,t,r){var n=r(30),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){var n=r(2);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,r){var n=r(7);e.exports=function(e){if(!n(e)&&null!==e)throw TypeError("Can\'t set "+String(e)+" as a prototype");return e}},function(e,t,r){var n=r(10),i=r(11),o=r(4),s=r(75);e.exports=n?Object.defineProperties:function(e,t){o(e);for(var r,n=s(t),a=n.length,u=0;a>u;)i.f(e,r=n[u++],t[r]);return e}},function(e,t,r){var n=r(46),i=r(31);e.exports=Object.keys||function(e){return n(e,i)}},function(e,t,r){var n=r(1),i=r(15),o=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},function(e,t,r){var n=r(50);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,r){var n=r(53),i=r(15),o=r(1)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){var n=r(4);e.exports=function(e){var t=e.return;if(void 0!==t)return n(t.call(e)).value}},function(e,t,r){var n=r(36),i=r(12),o=r(81);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,r){"use strict";var n=r(36),i=r(53);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,r){"use strict";var n,i,o,s,a=r(9),u=r(14),c=r(0),l=r(8),f=r(54),p=r(12),h=r(83),d=r(33),y=r(37),v=r(84),m=r(7),g=r(13),x=r(85),w=r(26),b=r(19),S=r(86),O=r(55),E=r(56).set,P=r(87),k=r(58),T=r(89),L=r(20),Q=r(39),j=r(18),I=r(48),R=r(1),_=r(90),F=r(38),C=r(51),A=R("species"),N="Promise",D=j.get,M=j.set,B=j.getterFor(N),V=f&&f.prototype,z=f,W=V,$=c.TypeError,q=c.document,G=c.process,U=L.f,J=U,H=!!(q&&q.createEvent&&c.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,K=!1,X=I(N,(function(){var e=w(z)!==String(z);if(!e&&66===C)return!0;if(u&&!W.finally)return!0;if(C>=51&&/native code/.test(z))return!1;var t=new z((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(t.constructor={})[A]=r,!(K=t.then((function(){}))instanceof r)||!e&&_&&!Y})),Z=X||!S((function(e){z.all(e).catch((function(){}))})),ee=function(e){var t;return!(!m(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;P((function(){for(var n=e.value,i=1==e.state,o=0;r.length>o;){var s,a,u,c=r[o++],l=i?c.ok:c.fail,f=c.resolve,p=c.reject,h=c.domain;try{l?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===l?s=n:(h&&h.enter(),s=l(n),h&&(h.exit(),u=!0)),s===c.promise?p($("Promise-chain cycle")):(a=ee(s))?a.call(s,f,p):f(s)):p(n)}catch(e){h&&!u&&h.exit(),p(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&ne(e)}))}},re=function(e,t,r){var n,i;H?((n=q.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!Y&&(i=c["on"+e])?i(n):"unhandledrejection"===e&&T("Unhandled promise rejection",r)},ne=function(e){E.call(c,(function(){var t,r=e.facade,n=e.value;if(ie(e)&&(t=Q((function(){F?G.emit("unhandledRejection",n,r):re("unhandledrejection",r,n)})),e.rejection=F||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){E.call(c,(function(){var t=e.facade;F?G.emit("rejectionHandled",t):re("rejectionhandled",t,e.value)}))},se=function(e,t,r){return function(n){e(t,n,r)}},ae=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,te(e,!0))},ue=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw $("Promise can\'t be resolved itself");var n=ee(t);n?P((function(){var r={done:!1};try{n.call(t,se(ue,r,e),se(ae,r,e))}catch(t){ae(r,t,e)}})):(e.value=t,e.state=1,te(e,!1))}catch(t){ae({done:!1},t,e)}}};if(X&&(W=(z=function(e){x(this,z,N),g(e),n.call(this);var t=D(this);try{e(se(ue,t),se(ae,t))}catch(e){ae(t,e)}}).prototype,(n=function(e){M(this,{type:N,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(W,{then:function(e,t){var r=B(this),n=U(O(this,z));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=F?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&te(r,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n,t=D(e);this.promise=e,this.resolve=se(ue,t),this.reject=se(ae,t)},L.f=U=function(e){return e===z||e===o?new i(e):J(e)},!u&&"function"==typeof f&&V!==Object.prototype)){s=V.then,K||(p(V,"then",(function(e,t){var r=this;return new z((function(e,t){s.call(r,e,t)})).then(e,t)}),{unsafe:!0}),p(V,"catch",W.catch,{unsafe:!0}));try{delete V.constructor}catch(e){}d&&d(V,W)}a({global:!0,wrap:!0,forced:X},{Promise:z}),y(z,N,!1,!0),v(N),o=l(N),a({target:N,stat:!0,forced:X},{reject:function(e){var t=U(this);return t.reject.call(void 0,e),t.promise}}),a({target:N,stat:!0,forced:u||X},{resolve:function(e){return k(u&&this===o?z:this,e)}}),a({target:N,stat:!0,forced:Z},{all:function(e){var t=this,r=U(t),n=r.resolve,i=r.reject,o=Q((function(){var r=g(t.resolve),o=[],s=0,a=1;b(e,(function(e){var u=s++,c=!1;o.push(void 0),a++,r.call(t,e).then((function(e){c||(c=!0,o[u]=e,--a||n(o))}),i)})),--a||n(o)}));return o.error&&i(o.value),r.promise},race:function(e){var t=this,r=U(t),n=r.reject,i=Q((function(){var i=g(t.resolve);b(e,(function(e){i.call(t,e).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(e,t,r){var n=r(12);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},function(e,t,r){"use strict";var n=r(8),i=r(11),o=r(1),s=r(10),a=o("species");e.exports=function(e){var t=n(e),r=i.f;s&&t&&!t[a]&&r(t,a,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,r){if(!(e instanceof t))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return e}},function(e,t,r){var n=r(1)("iterator"),i=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){i=!0}};s[n]=function(){return this},Array.from(s,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},function(e,t,r){var n,i,o,s,a,u,c,l,f=r(0),p=r(21).f,h=r(56).set,d=r(57),y=r(88),v=r(38),m=f.MutationObserver||f.WebKitMutationObserver,g=f.document,x=f.process,w=f.Promise,b=p(f,"queueMicrotask"),S=b&&b.value;S||(n=function(){var e,t;for(v&&(e=x.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?s():o=void 0,e}}o=void 0,e&&e.enter()},d||v||y||!m||!g?w&&w.resolve?((c=w.resolve(void 0)).constructor=w,l=c.then,s=function(){l.call(c,n)}):s=v?function(){x.nextTick(n)}:function(){h.call(f,n)}:(a=!0,u=g.createTextNode(""),new m(n).observe(u,{characterData:!0}),s=function(){u.data=a=!a})),e.exports=S||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,s()),o=t}},function(e,t,r){var n=r(35);e.exports=/web0s(?!.*chrome)/i.test(n)},function(e,t,r){var n=r(0);e.exports=function(e,t){var r=n.console;r&&r.error&&(1===arguments.length?r.error(e):r.error(e,t))}},function(e,t){e.exports="object"==typeof window},function(e,t,r){"use strict";var n=r(9),i=r(13),o=r(20),s=r(39),a=r(19);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=o.f(t),n=r.resolve,u=r.reject,c=s((function(){var r=i(t.resolve),o=[],s=0,u=1;a(e,(function(e){var i=s++,a=!1;o.push(void 0),u++,r.call(t,e).then((function(e){a||(a=!0,o[i]={status:"fulfilled",value:e},--u||n(o))}),(function(e){a||(a=!0,o[i]={status:"rejected",reason:e},--u||n(o))}))})),--u||n(o)}));return c.error&&u(c.value),r.promise}})},function(e,t,r){"use strict";var n=r(9),i=r(13),o=r(8),s=r(20),a=r(39),u=r(19);n({target:"Promise",stat:!0},{any:function(e){var t=this,r=s.f(t),n=r.resolve,c=r.reject,l=a((function(){var r=i(t.resolve),s=[],a=0,l=1,f=!1;u(e,(function(e){var i=a++,u=!1;s.push(void 0),l++,r.call(t,e).then((function(e){u||f||(f=!0,n(e))}),(function(e){u||f||(u=!0,s[i]=e,--l||c(new(o("AggregateError"))(s,"No one promise resolved")))}))})),--l||c(new(o("AggregateError"))(s,"No one promise resolved"))}));return l.error&&c(l.value),r.promise}})},function(e,t,r){"use strict";var n=r(9),i=r(14),o=r(54),s=r(2),a=r(8),u=r(55),c=r(58),l=r(12);if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,a("Promise")),r="function"==typeof e;return this.then(r?function(r){return c(t,e()).then((function(){return r}))}:e,r?function(r){return c(t,e()).then((function(){throw r}))}:e)}}),!i&&"function"==typeof o){var f=a("Promise").prototype.finally;o.prototype.finally!==f&&l(o.prototype,"finally",f,{unsafe:!0})}},function(e,t,r){"use strict";var n=r(95).charAt,i=r(18),o=r(59),s=i.set,a=i.getterFor("String Iterator");o(String,"String",(function(e){s(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=a(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,r){var n=r(30),i=r(23),o=function(e){return function(t,r){var o,s,a=String(i(t)),u=n(r),c=a.length;return u<0||u>=c?e?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):o:e?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,r){"use strict";var n=r(60).IteratorPrototype,i=r(34),o=r(16),s=r(37),a=r(15),u=function(){return this};e.exports=function(e,t,r){var c=t+" Iterator";return e.prototype=i(n,{next:o(1,r)}),s(e,c,!1,!0),a[c]=u,e}},function(e,t,r){var n=r(0),i=r(98),o=r(99),s=r(6),a=r(1),u=a("iterator"),c=a("toStringTag"),l=o.values;for(var f in i){var p=n[f],h=p&&p.prototype;if(h){if(h[u]!==l)try{s(h,u,l)}catch(e){h[u]=l}if(h[c]||s(h,c,f),i[f])for(var d in o)if(h[d]!==o[d])try{s(h,d,o[d])}catch(e){h[d]=o[d]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,r){"use strict";var n=r(17),i=r(100),o=r(15),s=r(18),a=r(59),u=s.set,c=s.getterFor("Array Iterator");e.exports=a(Array,"Array",(function(e,t){u(this,{type:"Array Iterator",target:n(e),index:0,kind:t})}),(function(){var e=c(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,r){var n=r(1),i=r(34),o=r(11),s=n("unscopables"),a=Array.prototype;null==a[s]&&o.f(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},function(e,t,r){"use strict";r.r(t),r.d(t,"add",(function(){return p})),r.d(t,"done",(function(){return h})),r.d(t,"toJS",(function(){return d})),r.d(t,"fromExternalJS",(function(){return y})),r.d(t,"load",(function(){return v})),r.d(t,"dispose",(function(){return m})),r.d(t,"search",(function(){return g}));function n(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(e){o(e)}}function a(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function i(e,t){var r,n,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,n=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}}Object.create;Object.create;var o=r(5);try{r(61)}catch(e){}var s,a,u,c=function(){Object.defineProperty(this,"add",{enumerable:!0,configurable:!0,writable:!0,value:p}),Object.defineProperty(this,"done",{enumerable:!0,configurable:!0,writable:!0,value:h}),Object.defineProperty(this,"search",{enumerable:!0,configurable:!0,writable:!0,value:g}),Object.defineProperty(this,"toJS",{enumerable:!0,configurable:!0,writable:!0,value:d}),Object.defineProperty(this,"load",{enumerable:!0,configurable:!0,writable:!0,value:v}),Object.defineProperty(this,"dispose",{enumerable:!0,configurable:!0,writable:!0,value:m}),Object.defineProperty(this,"fromExternalJS",{enumerable:!0,configurable:!0,writable:!0,value:y})},l=(t.default=c,[]);function f(){(s=new o.Builder).field("title"),s.field("description"),s.ref("ref"),s.pipeline.add(o.trimmer,o.stopWordFilter,o.stemmer),u=new Promise((function(e){a=e}))}o.tokenizer.separator=/\\s+/,f();function p(e,t,r){var n=l.push(r)-1,i={title:e.toLowerCase(),description:t.toLowerCase(),ref:n};s.add(i)}function h(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return a(s.build()),[2]}))}))}function d(){return n(this,void 0,void 0,(function(){var e;return i(this,(function(t){switch(t.label){case 0:return e={store:l},[4,u];case 1:return[2,(e.index=t.sent().toJSON(),e)]}}))}))}function y(e,t){return n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:if(n.trys.push([0,2,,3]),importScripts(e),!self[t])throw new Error("Broken index file format");return[4,v(self[t])];case 1:return n.sent(),[3,3];case 2:return r=n.sent(),console.error("Failed to load search index: "+r.message),[3,3];case 3:return[2]}}))}))}function v(e){return n(this,void 0,void 0,(function(){return i(this,(function(t){return l=e.store,a(o.Index.load(e.index)),[2]}))}))}function m(){return n(this,void 0,void 0,(function(){return i(this,(function(e){return l=[],f(),[2]}))}))}function g(e,t){return void 0===t&&(t=0),n(this,void 0,void 0,(function(){var r;return i(this,(function(n){switch(n.label){case 0:return 0===e.trim().length?[2,[]]:[4,u];case 1:return r=n.sent().query((function(t){e.trim().toLowerCase().split(/\\s+/).forEach((function(e){if(1!==e.length){var r=function(e){return"*"+o.stemmer(new o.Token(e,{}))+"*"}(e);t.term(r,{})}}))})),t>0&&(r=r.slice(0,t)),[2,r.map((function(e){return{meta:l[e.ref],score:e.score}}))]}}))}))}addEventListener("message",(function(e){var r,n=e.data,i=n.type,o=n.method,s=n.id,a=n.params;"RPC"===i&&o&&((r=t[o])?Promise.resolve().then((function(){return r.apply(t,a)})):Promise.reject("No such method")).then((function(e){postMessage({type:"RPC",id:s,result:e})})).catch((function(e){var t={message:e};e.stack&&(t.message=e.message,t.stack=e.stack,t.name=e.name),postMessage({type:"RPC",id:s,error:t})}))})),postMessage({type:"RPC",method:"ready"})}]);'])),{name:"[hash].worker.js"});return r(e,i),e}},function(e,t){e.exports=function(e,t){var n=0,r={};e.addEventListener("message",(function(t){var n=t.data;if("RPC"===n.type)if(n.id){var i=r[n.id];i&&(delete r[n.id],n.error?i[1](Object.assign(Error(n.error.message),n.error)):i[0](n.result))}else{var o=document.createEvent("Event");o.initEvent(n.method,!1,!1),o.data=n.params,e.dispatchEvent(o)}})),t.forEach((function(t){e[t]=function(){var i=arguments;return new Promise((function(o,a){var s=++n;r[s]=[o,a],e.postMessage({type:"RPC",id:s,method:t,params:[].slice.call(i)})}))}}))}},function(e,t,n){n(688),n(706),n(708),n(717),n(718),n(719),n(720),n(723);var r=n(381);e.exports=r.Promise},function(e,t,n){"use strict";var r=n(130),i=n(281),o=n(282),a=n(283),s=n(102),c=n(203),l=n(206),u=function(e,t){var n=this;if(!(n instanceof u))return new u(e,t);o&&(n=o(new Error(void 0),i(n))),void 0!==t&&s(n,"message",String(t));var r=[];return l(e,r.push,{that:r}),s(n,"errors",r),n};u.prototype=a(Error.prototype,{constructor:c(5,u),message:c(5,""),name:c(5,"AggregateError")}),r({global:!0},{AggregateError:u})},function(e,t,n){"use strict";var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!r.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},function(e,t,n){var r=n(90),i=n(271),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(38),i=n(275),o=r.WeakMap;e.exports="function"==typeof o&&/native code/.test(i(o))},function(e,t,n){var r=n(91),i=n(693),o=n(270),a=n(132);e.exports=function(e,t){for(var n=i(t),s=a.f,c=o.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},function(e,t,n){var r=n(110),i=n(694),o=n(697),a=n(92);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(382),i=n(280).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(204),i=n(383),o=n(696),a=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},function(e,t,n){var r=n(279),i=Math.max,o=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):o(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(90);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},function(e,t,n){var r=n(109);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},function(e,t,n){var r=n(131),i=n(132),o=n(92),a=n(701);e.exports=r?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=r.length,c=0;s>c;)i.f(e,n=r[c++],t[n]);return e}},function(e,t,n){var r=n(382),i=n(280);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t,n){var r=n(61),i=n(166),o=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},function(e,t,n){var r=n(386);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(e,t,n){var r=n(389),i=n(166),o=n(61)("iterator");e.exports=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){var r=n(92);e.exports=function(e){var t=e.return;if(void 0!==t)return r(t.call(e)).value}},function(e,t,n){var r=n(285),i=n(133),o=n(707);r||i(Object.prototype,"toString",o,{unsafe:!0})},function(e,t,n){"use strict";var r=n(285),i=n(389);e.exports=r?{}.toString:function(){return"[object "+i(this)+"]"}},function(e,t,n){"use strict";var r,i,o,a,s=n(130),c=n(165),l=n(38),u=n(110),p=n(390),f=n(133),d=n(709),h=n(282),m=n(286),v=n(710),g=n(109),b=n(134),y=n(711),x=n(275),w=n(206),O=n(712),k=n(391),j=n(392).set,E=n(713),S=n(394),C=n(715),_=n(207),P=n(288),A=n(205),D=n(384),T=n(61),I=n(716),R=n(287),L=n(387),N=T("species"),F="Promise",M=A.get,B=A.set,z=A.getterFor(F),U=p&&p.prototype,$=p,V=U,q=l.TypeError,H=l.document,W=l.process,Q=_.f,Y=Q,K=!!(H&&H.createEvent&&l.dispatchEvent),G="function"==typeof PromiseRejectionEvent,J=!1,X=D(F,(function(){var e=x($)!==String($);if(!e&&66===L)return!0;if(c&&!V.finally)return!0;if(L>=51&&/native code/.test($))return!1;var t=new $((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(t.constructor={})[N]=n,!(J=t.then((function(){}))instanceof n)||!e&&I&&!G})),Z=X||!O((function(e){$.all(e).catch((function(){}))})),ee=function(e){var t;return!(!g(e)||"function"!=typeof(t=e.then))&&t},te=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;E((function(){for(var r=e.value,i=1==e.state,o=0;n.length>o;){var a,s,c,l=n[o++],u=i?l.ok:l.fail,p=l.resolve,f=l.reject,d=l.domain;try{u?(i||(2===e.rejection&&oe(e),e.rejection=1),!0===u?a=r:(d&&d.enter(),a=u(r),d&&(d.exit(),c=!0)),a===l.promise?f(q("Promise-chain cycle")):(s=ee(a))?s.call(a,p,f):p(a)):f(r)}catch(e){d&&!c&&d.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&re(e)}))}},ne=function(e,t,n){var r,i;K?((r=H.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),l.dispatchEvent(r)):r={promise:t,reason:n},!G&&(i=l["on"+e])?i(r):"unhandledrejection"===e&&C("Unhandled promise rejection",n)},re=function(e){j.call(l,(function(){var t,n=e.facade,r=e.value;if(ie(e)&&(t=P((function(){R?W.emit("unhandledRejection",r,n):ne("unhandledrejection",n,r)})),e.rejection=R||ie(e)?2:1,t.error))throw t.value}))},ie=function(e){return 1!==e.rejection&&!e.parent},oe=function(e){j.call(l,(function(){var t=e.facade;R?W.emit("rejectionHandled",t):ne("rejectionhandled",t,e.value)}))},ae=function(e,t,n){return function(r){e(t,r,n)}},se=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,te(e,!0))},ce=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw q("Promise can't be resolved itself");var r=ee(t);r?E((function(){var n={done:!1};try{r.call(t,ae(ce,n,e),ae(se,n,e))}catch(t){se(n,t,e)}})):(e.value=t,e.state=1,te(e,!1))}catch(t){se({done:!1},t,e)}}};if(X&&(V=($=function(e){y(this,$,F),b(e),r.call(this);var t=M(this);try{e(ae(ce,t),ae(se,t))}catch(e){se(t,e)}}).prototype,(r=function(e){B(this,{type:F,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(V,{then:function(e,t){var n=z(this),r=Q(k(this,$));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=R?W.domain:void 0,n.parent=!0,n.reactions.push(r),0!=n.state&&te(n,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r,t=M(e);this.promise=e,this.resolve=ae(ce,t),this.reject=ae(se,t)},_.f=Q=function(e){return e===$||e===o?new i(e):Y(e)},!c&&"function"==typeof p&&U!==Object.prototype)){a=U.then,J||(f(U,"then",(function(e,t){var n=this;return new $((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),f(U,"catch",V.catch,{unsafe:!0}));try{delete U.constructor}catch(e){}h&&h(U,V)}s({global:!0,wrap:!0,forced:X},{Promise:$}),m($,F,!1,!0),v(F),o=u(F),s({target:F,stat:!0,forced:X},{reject:function(e){var t=Q(this);return t.reject.call(void 0,e),t.promise}}),s({target:F,stat:!0,forced:c||X},{resolve:function(e){return S(c&&this===o?$:this,e)}}),s({target:F,stat:!0,forced:Z},{all:function(e){var t=this,n=Q(t),r=n.resolve,i=n.reject,o=P((function(){var n=b(t.resolve),o=[],a=0,s=1;w(e,(function(e){var c=a++,l=!1;o.push(void 0),s++,n.call(t,e).then((function(e){l||(l=!0,o[c]=e,--s||r(o))}),i)})),--s||r(o)}));return o.error&&i(o.value),n.promise},race:function(e){var t=this,n=Q(t),r=n.reject,i=P((function(){var i=b(t.resolve);w(e,(function(e){i.call(t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}})},function(e,t,n){var r=n(133);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){"use strict";var r=n(110),i=n(132),o=n(61),a=n(131),s=o("species");e.exports=function(e){var t=r(e),n=i.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(61)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o={};o[r]=function(){return{next:function(){return{done:n=!0}}}},e(o)}catch(e){}return n}},function(e,t,n){var r,i,o,a,s,c,l,u,p=n(38),f=n(270).f,d=n(392).set,h=n(393),m=n(714),v=n(287),g=p.MutationObserver||p.WebKitMutationObserver,b=p.document,y=p.process,x=p.Promise,w=f(p,"queueMicrotask"),O=w&&w.value;O||(r=function(){var e,t;for(v&&(e=y.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},h||v||m||!g||!b?x&&x.resolve?((l=x.resolve(void 0)).constructor=x,u=l.then,a=function(){u.call(l,r)}):a=v?function(){y.nextTick(r)}:function(){d.call(p,r)}:(s=!0,c=b.createTextNode(""),new g(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=O||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},function(e,t,n){var r=n(284);e.exports=/web0s(?!.*chrome)/i.test(r)},function(e,t,n){var r=n(38);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},function(e,t){e.exports="object"==typeof window},function(e,t,n){"use strict";var r=n(130),i=n(134),o=n(207),a=n(288),s=n(206);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=o.f(t),r=n.resolve,c=n.reject,l=a((function(){var n=i(t.resolve),o=[],a=0,c=1;s(e,(function(e){var i=a++,s=!1;o.push(void 0),c++,n.call(t,e).then((function(e){s||(s=!0,o[i]={status:"fulfilled",value:e},--c||r(o))}),(function(e){s||(s=!0,o[i]={status:"rejected",reason:e},--c||r(o))}))})),--c||r(o)}));return l.error&&c(l.value),n.promise}})},function(e,t,n){"use strict";var r=n(130),i=n(134),o=n(110),a=n(207),s=n(288),c=n(206);r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a.f(t),r=n.resolve,l=n.reject,u=s((function(){var n=i(t.resolve),a=[],s=0,u=1,p=!1;c(e,(function(e){var i=s++,c=!1;a.push(void 0),u++,n.call(t,e).then((function(e){c||p||(p=!0,r(e))}),(function(e){c||p||(c=!0,a[i]=e,--u||l(new(o("AggregateError"))(a,"No one promise resolved")))}))})),--u||l(new(o("AggregateError"))(a,"No one promise resolved"))}));return u.error&&l(u.value),n.promise}})},function(e,t,n){"use strict";var r=n(130),i=n(165),o=n(390),a=n(90),s=n(110),c=n(391),l=n(394),u=n(133);if(r({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),n="function"==typeof e;return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!i&&"function"==typeof o){var p=s("Promise").prototype.finally;o.prototype.finally!==p&&u(o.prototype,"finally",p,{unsafe:!0})}},function(e,t,n){"use strict";var r=n(721).charAt,i=n(205),o=n(395),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(e){a(this,{type:"String Iterator",string:String(e),index:0})}),(function(){var e,t=s(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(279),i=n(272),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}};e.exports={codeAt:o(!1),charAt:o(!0)}},function(e,t,n){"use strict";var r=n(396).IteratorPrototype,i=n(283),o=n(203),a=n(286),s=n(166),c=function(){return this};e.exports=function(e,t,n){var l=t+" Iterator";return e.prototype=i(r,{next:o(1,n)}),a(e,l,!1,!0),s[l]=c,e}},function(e,t,n){var r=n(38),i=n(724),o=n(725),a=n(102),s=n(61),c=s("iterator"),l=s("toStringTag"),u=o.values;for(var p in i){var f=r[p],d=f&&f.prototype;if(d){if(d[c]!==u)try{a(d,c,u)}catch(e){d[c]=u}if(d[l]||a(d,l,p),i[p])for(var h in o)if(d[h]!==o[h])try{a(d,h,o[h])}catch(e){d[h]=o[h]}}}},function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(e,t,n){"use strict";var r=n(204),i=n(726),o=n(166),a=n(205),s=n(395),c=a.set,l=a.getterFor("Array Iterator");e.exports=s(Array,"Array",(function(e,t){c(this,{type:"Array Iterator",target:r(e),index:0,kind:t})}),(function(){var e=l(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(e,t,n){var r=n(61),i=n(283),o=n(132),a=r("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},function(e,t,n){"use strict";var r=n(728);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t){
299
299
  /*!
300
300
  * Stickyfill -- `position: sticky` polyfill
301
301
  * v. 1.1.1 | https://github.com/wilddeer/stickyfill