\n "," | \n \n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])));var e=this.addon.options&&Object.keys(this.addon.options).length||this.addon.schema&&Object.keys(this.addon.schema).length;return(0,n.dy)(Lo||(Lo=Zo(['\n \n ',"\n \n "])),e||this.addon.network||this.addon.audio?(0,n.dy)(Bo||(Bo=Zo(["\n ","\n ","\n ","\n "])),e?(0,n.dy)(Ho||(Ho=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.network?(0,n.dy)(Vo||(Vo=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):"",this.addon.audio?(0,n.dy)($o||($o=Zo(["\n \n "])),this.hass,this.addon,this.supervisor):""):this.supervisor.localize("addon.configuration.no_configuration"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(No||(No=Zo(["\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n }\n "])))]}}]}}),n.oi),r(93546);function pa(e){return(pa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ha(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ma(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function ya(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){ma(o,n,i,a,s,"next",e)}function s(e){ma(o,n,i,a,s,"throw",e)}a(void 0)}))}}function va(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ba(e,t){return(ba=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ga(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=ja(e);if(t){var i=ja(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return wa(this,r)}}function wa(e,t){return!t||"object"!==pa(t)&&"function"!=typeof t?ka(e):t}function ka(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(){Ea=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Pa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n ','\n \n ',"\n \n \n \n "])),this._error?(0,n.dy)(la||(la=ha(['',""])),this._error):"",this._content?(0,n.dy)(da||(da=ha([""])),this._content):(0,n.dy)(ua||(ua=ha([""])))):(0,n.dy)(sa||(sa=ha([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(fa||(fa=ha(["\n ha-card {\n display: block;\n }\n .content {\n margin: auto;\n padding: 8px;\n max-width: 1024px;\n }\n ha-markdown {\n padding: 16px;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(r=ya(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,l.ii)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.documentation.get_logs","error",(0,d.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi);var Ta,za,Ra=r(76666),Fa=r(63864);function Ma(e){return(Ma="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function La(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ba(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ha(e,t){return(Ha=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Va(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ua(e);if(t){var i=Ua(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return $a(this,r)}}function $a(e,t){return!t||"object"!==Ma(t)&&"function"!=typeof t?Na(e):t}function Na(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qa(){qa=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Qa(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n "])),this.progress,this._buttonTapped,this.disabled)}},{kind:"method",key:"_buttonTapped",value:(r=regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.progress=!0,t={method:this.method,path:this.path,data:this.data},e.prev=2,e.next=5,this.hass.callApi(this.method,this.path,this.data);case 5:r=e.sent,this.progress=!1,this._progressButton.actionSuccess(),t.success=!0,t.response=r,e.next=18;break;case 12:e.prev=12,e.t0=e.catch(2),this.progress=!1,this._progressButton.actionError(),t.success=!1,t.response=e.t0;case 18:(0,a.B)(this,"hass-api-called",t);case 19:case"end":return e.stop()}}),e,this,[[2,12]])})),o=function(){var e=this,t=arguments;return new Promise((function(n,i){var o=r.apply(e,t);function a(e){Ia(o,n,i,a,s,"next",e)}function s(e){Ia(o,n,i,a,s,"throw",e)}a(void 0)}))},function(){return o.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return(0,n.iv)(za||(za=La(["\n :host([disabled]) {\n pointer-events: none;\n }\n "])))}}]}}),n.oi);function as(e){return(as="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ss(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ls(e,t){return(ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Es(e);if(t){var i=Es(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return us(this,r)}}function us(e,t){return!t||"object"!==as(t)&&"function"!=typeof t?fs(e):t}function fs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ps(){ps=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!ys(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n \n ',"\n ","\n \n \n ","\n \n ","\n \n "])),(0,Ra.$)({value:!0,big:Boolean(this.value&&this.value.length>4)}),!this.icon||this.value||this.image?"":(0,n.dy)(es||(es=ss([""])),this.icon),this.value&&!this.image?(0,n.dy)(ts||(ts=ss(["",""])),this.value):"",this.label?(0,n.dy)(rs||(rs=ss(['\n \n ',"\n \n "])),(0,Ra.$)({label:!0,big:this.label.length>5}),this.label):"",this.description?(0,n.dy)(ns||(ns=ss([' '," "])),this.description):"")}},{kind:"get",static:!0,key:"styles",value:function(){return[(0,n.iv)(is||(is=ss(["\n .badge-container {\n display: inline-block;\n text-align: center;\n vertical-align: top;\n padding: var(--ha-label-badge-padding, 0 0 0 0);\n }\n .label-badge {\n position: relative;\n display: block;\n margin: 0 auto;\n width: var(--ha-label-badge-size, 2.5em);\n text-align: center;\n height: var(--ha-label-badge-size, 2.5em);\n line-height: var(--ha-label-badge-size, 2.5em);\n font-size: var(--ha-label-badge-font-size, 1.5em);\n border-radius: 50%;\n border: 0.1em solid var(--ha-label-badge-color, var(--primary-color));\n color: var(--label-badge-text-color, rgb(76, 76, 76));\n\n white-space: nowrap;\n background-color: var(--label-badge-background-color, white);\n background-size: cover;\n transition: border 0.3s ease-in-out;\n }\n .label-badge .value {\n font-size: 90%;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .label-badge .value.big {\n font-size: 70%;\n }\n .label-badge .label {\n position: absolute;\n bottom: -1em;\n /* Make the label as wide as container+border. (parent_borderwidth / font-size) */\n left: -0.2em;\n right: -0.2em;\n line-height: 1em;\n font-size: 0.5em;\n }\n .label-badge .label span {\n box-sizing: border-box;\n max-width: 100%;\n display: inline-block;\n background-color: var(--ha-label-badge-color, var(--primary-color));\n color: var(--ha-label-badge-label-color, white);\n border-radius: 1em;\n padding: 9% 16% 8% 16%; /* mostly apitalized text, not much descenders => bit more top margin */\n font-weight: 500;\n overflow: hidden;\n text-transform: uppercase;\n text-overflow: ellipsis;\n transition: background-color 0.3s ease-in-out;\n text-transform: var(--ha-label-badge-label-text-transform, uppercase);\n }\n .label-badge .label.big span {\n font-size: 90%;\n padding: 10% 12% 7% 12%; /* push smaller text a bit down to center vertically */\n }\n .badge-container .title {\n margin-top: 1em;\n font-size: var(--ha-label-badge-title-font-size, 0.9em);\n width: var(--ha-label-badge-title-width, 5em);\n font-weight: var(--ha-label-badge-title-font-weight, 400);\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: normal;\n }\n "])))]}},{kind:"method",key:"updated",value:function(e){ks(Es(r.prototype),"updated",this).call(this,e),e.has("image")&&(this.shadowRoot.getElementById("badge").style.backgroundImage=this.image?"url(".concat(this.image,")"):"")}}]}}),n.oi);customElements.define("ha-label-badge",_s);r(14089);var Cs,Ps,xs,Os,Ss,As,Ds,js,Ts,zs,Rs,Fs,Ms,Is,Ls,Bs,Hs,Vs,$s,Ns,Us,qs,Zs,Ks,Qs,Ys,Ws,Xs,Js,Gs,ec,tc,rc,nc,ic,oc,ac,sc,cc,lc,dc,uc,fc,pc,hc=r(70203),mc=(r(23295),r(21050),function(e,t){(0,a.B)(e,"show-dialog",{dialogTag:"dialog-hassio-markdown",dialogImport:function(){return r.e(884).then(r.bind(r,56884))},dialogParams:t})}),yc=r(7628),vc=(0,o.Z)((function(e,t){return t.some((function(t){return e.includes(t)}))}));function bc(e){return(bc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gc(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function wc(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){gc(o,n,i,a,s,"next",e)}function s(e){gc(o,n,i,a,s,"throw",e)}a(void 0)}))}}function kc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _c(e,t){return(_c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cc(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Mc(e);if(t){var i=Mc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Pc(this,r)}}function Pc(e,t){return!t||"object"!==bc(t)&&"function"!=typeof t?xc(e):t}function xc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oc(){Oc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!Dc(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n \n \n \n ','\n \n\n \n ',". \n ",'\n \n \n \n ','\n \n ',"\n\n \n ',"\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n ","\n \n\n ","\n \n \n ","\n \n \n ","\n ",'\n \n \n \n ',"\n \n \n ","\n \n \n \n\n ","\n "])),this.addon.update_available?(0,n.dy)(Ps||(Ps=kc(['\n \n \n \n ','\n \n \n ',"\n \n ","\n \n \n \n "])),this.supervisor.localize("common.update_available","count",1),this.hass,this.supervisor.localize("addon.dashboard.new_update_available","name",this.addon.name,"version",this.addon.version_latest),this.supervisor.localize("common.running_version","version",this.addon.version),"M12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22M12,7L7,12H10V16H14V12H17L12,7Z",!this.addon.available&&a?vc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(Os||(Os=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(xs||(xs=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")):"",this.addon.changelog?(0,n.dy)(Ss||(Ss=kc(["\n \n ","\n \n "])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(As||(As=kc([""]))),this._updateClicked,this.supervisor.localize("common.update")):"",this.addon.protected?"":(0,n.dy)(Ds||(Ds=kc(['\n \n \n \n ','\n \n \n \n ","\n \n \n \n \n "])),this.supervisor.localize("addon.dashboard.protection_mode.title"),this.supervisor.localize("addon.dashboard.protection_mode.content"),this._protectionToggled,this.supervisor.localize("addon.dashboard.protection_mode.enable")),this.narrow?"":this.addon.name,this.addon.version?(0,n.dy)(js||(js=kc(["\n ","\n "])),this._computeIsRunning?(0,n.dy)(Ts||(Ts=kc(["\n \n (',")\n \n "])),this.addon.version,this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")):(0,n.dy)(Ms||(Ms=kc(['",""])),this._openChangelog,this.supervisor.localize("addon.dashboard.changelog")),this.addon.description,this.supervisor.localize("addon.dashboard.visit_addon_page","name",(0,n.dy)(Is||(Is=kc(['',""])),this.addon.url,this.addon.name)),this.addon.logo?(0,n.dy)(Ls||(Ls=kc(['\n \n '])),this.addon.slug):"","stable"!==this.addon.stage?(0,n.dy)(Bs||(Bs=kc([" \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n \n ',"\n \n \n \n\n ","\n ","\n ","\n ","\n \n "])),(0,Ra.$)({"addon-options":!0,started:"started"===this.addon.state}),this.narrow,this.supervisor.localize("addon.dashboard.option.boot.title"),this.supervisor.localize("addon.dashboard.option.boot.description"),this._startOnBootToggled,"auto"===this.addon.boot,"once"!==this.addon.startup?(0,n.dy)(Ws||(Ws=kc(["\n \n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.watchdog.title"),this.supervisor.localize("addon.dashboard.option.watchdog.description"),this._watchdogToggled,this.addon.watchdog):"",this.addon.auto_update||null!==(o=this.hass.userData)&&void 0!==o&&o.showAdvanced?(0,n.dy)(Xs||(Xs=kc(["\n \n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.auto_update.title"),this.supervisor.localize("addon.dashboard.option.auto_update.description"),this._autoUpdateToggled,this.addon.auto_update):"",!this._computeCannotIngressSidebar&&this.addon.ingress?(0,n.dy)(Js||(Js=kc(["\n \n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.ingress_panel.title"),this.supervisor.localize("addon.dashboard.option.ingress_panel.description"),this._panelToggled,this.addon.ingress_panel):"",this._computeUsesProtectedOptions?(0,n.dy)(Gs||(Gs=kc(["\n \n \n ','\n \n \n ',"\n \n \n \n "])),this.narrow,this.supervisor.localize("addon.dashboard.option.protected.title"),this.supervisor.localize("addon.dashboard.option.protected.description"),this._protectionToggled,this.addon.protected):""):"","started"===this.addon.state?(0,n.dy)(ec||(ec=kc(["\n \n ','\n \n '," \n \n ",""])),this.narrow,this.supervisor.localize("addon.dashboard.hostname"),this.addon.hostname,s.map((function(e){var t;return(0,n.dy)(tc||(tc=kc(["\n \n "])),e.description,null!==(t=e.value)&&void 0!==t?t:0,e.tooltip)}))):"",this._error?(0,n.dy)(rc||(rc=kc(['',""])),this._error):"",this.addon.version||!a||this.addon.available?"":vc(this.supervisor.info.supported_arch,this.addon.arch)?(0,n.dy)(ic||(ic=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_version","core_version_installed",this.supervisor.core.version,"core_version_needed",a.homeassistant)):(0,n.dy)(nc||(nc=kc(['\n \n ',"\n \n "])),this.supervisor.localize("addon.dashboard.not_available_arch")),this.addon.version?this._computeIsRunning?(0,n.dy)(oc||(oc=kc(['\n \n ",'\n \n \n ","\n \n "])),this._stopClicked,this.supervisor.localize("addon.dashboard.stop"),this._restartClicked,this.supervisor.localize("addon.dashboard.restart")):(0,n.dy)(ac||(ac=kc(["\n \n ","\n \n "])),this._startClicked,this.supervisor.localize("addon.dashboard.start")):(0,n.dy)(sc||(sc=kc(["\n \n ","\n \n "])),!this.addon.available,this._installClicked,this.supervisor.localize("addon.dashboard.install")),this.addon.version?(0,n.dy)(cc||(cc=kc([" ","\n ",'\n \n ","\n \n ",""])),this._computeShowWebUI?(0,n.dy)(lc||(lc=kc(["\n \n \n ',"\n \n \n "])),this._pathWebui,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._computeShowIngressUI?(0,n.dy)(dc||(dc=kc(["\n \n ","\n \n "])),this._openIngress,this.supervisor.localize("addon.dashboard.open_web_ui")):"",this._uninstallClicked,this.supervisor.localize("addon.dashboard.uninstall"),this.addon.build?(0,n.dy)(uc||(uc=kc(['\n \n ',"\n \n "])),this.hass,this.addon.slug,this.supervisor.localize("addon.dashboard.rebuild")):""):"",this.addon.long_description?(0,n.dy)(fc||(fc=kc(['\n \n \n '),"icon_experimental",''),"icon_deprecated",'')):this.supervisor.localize("addon.dashboard.capability.".concat(t,".description"))})}},{kind:"get",key:"_computeIsRunning",value:function(){var e;return"started"===(null===(e=this.addon)||void 0===e?void 0:e.state)}},{kind:"get",key:"_pathWebui",value:function(){return this.addon.webui&&this.addon.webui.replace("[HOST]",document.location.hostname)}},{kind:"get",key:"_computeShowWebUI",value:function(){return!this.addon.ingress&&this.addon.webui&&this._computeIsRunning}},{kind:"method",key:"_openIngress",value:function(){(0,s.c)("/hassio/ingress/".concat(this.addon.slug))}},{kind:"get",key:"_computeShowIngressUI",value:function(){return this.addon.ingress&&this._computeIsRunning}},{kind:"get",key:"_computeCannotIngressSidebar",value:function(){return!this.addon.ingress||!(0,Fa.I)(this.hass.config.version,0,92)}},{kind:"get",key:"_computeUsesProtectedOptions",value:function(){return this.addon.docker_api||this.addon.full_access||this.addon.host_pid}},{kind:"method",key:"_startOnBootToggled",value:(C=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={boot:"auto"===this.addon.boot?"manual":"auto"},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return C.apply(this,arguments)})},{kind:"method",key:"_watchdogToggled",value:(_=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={watchdog:!this.addon.watchdog},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return _.apply(this,arguments)})},{kind:"method",key:"_autoUpdateToggled",value:(E=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={auto_update:!this.addon.auto_update},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return E.apply(this,arguments)})},{kind:"method",key:"_protectionToggled",value:(k=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={protected:!this.addon.protected},e.prev=2,e.next=5,(0,l.NI)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"security"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return k.apply(this,arguments)})},{kind:"method",key:"_panelToggled",value:(w=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,t={ingress_panel:!this.addon.ingress_panel},e.prev=2,e.next=5,(0,l.d3)(this.hass,this.addon.slug,t);case 5:r={success:!0,response:void 0,path:"option"},(0,a.B)(this,"hass-api-called",r),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),this._error=this.supervisor.localize("addon.failed_to_save","error",(0,d.js)(e.t0));case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(){return w.apply(this,arguments)})},{kind:"method",key:"_openChangelog",value:(g=wc(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,l.CH)(this.hass,this.addon.slug);case 3:(t=e.sent).includes("# ".concat(this.addon.version))&&t.includes("# ".concat(this.addon.version_latest))&&(r=t.split("# ".concat(this.addon.version))[0]).includes("# ".concat(this.addon.version_latest))&&(t=r),mc(this,{title:this.supervisor.localize("addon.dashboard.changelog"),content:t}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.get_changelog"),text:(0,d.js)(e.t0)});case 11:case"end":return e.stop()}}),e,this,[[0,8]])}))),function(){return g.apply(this,arguments)})},{kind:"method",key:"_installClicked",value:(b=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.fU)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"install"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.install"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return b.apply(this,arguments)})},{kind:"method",key:"_stopClicked",value:(v=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.ow)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.stop"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return v.apply(this,arguments)})},{kind:"method",key:"_restartClicked",value:(y=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.P$)(this.hass,this.addon.slug);case 5:n={success:!0,response:void 0,path:"stop"},(0,a.B)(this,"hass-api-called",n),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.restart"),text:(0,d.js)(e.t0)});case 12:r.progress=!1;case 13:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return y.apply(this,arguments)})},{kind:"method",key:"_updateClicked",value:(m=wc(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(0,yc.z)(this,{supervisor:this.supervisor,name:this.addon.name,version:this.addon.version_latest,backupParams:{name:"addon_".concat(this.addon.slug,"_").concat(this.addon.version),addons:[this.addon.slug],homeassistant:!1},updateHandler:function(){var e=wc(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t._updateAddon());case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()});case 1:case"end":return e.stop()}}),e,this)}))),function(){return m.apply(this,arguments)})},{kind:"method",key:"_updateAddon",value:(p=wc(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,l.V_)(this.hass,this.addon.slug);case 2:(0,a.B)(this,"supervisor-collection-refresh",{collection:"addon"}),t={success:!0,response:void 0,path:"update"},(0,a.B)(this,"hass-api-called",t);case 5:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{kind:"method",key:"_startClicked",value:(c=wc(regeneratorRuntime.mark((function e(t){var r,n,i,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.prev=2,e.next=5,(0,l.su)(this.hass,this.addon.slug);case 5:if((n=e.sent).valid){e.next=11;break}return e.next=9,(0,h.g7)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start_invalid_config"),text:n.message.split(" Got ")[0],confirm:function(){return o._openConfiguration()},confirmText:this.supervisor.localize("addon.dashboard.action_error.go_to_config"),dismissText:this.supervisor.localize("common.cancel")});case 9:return r.progress=!1,e.abrupt("return");case 11:e.next=18;break;case 13:return e.prev=13,e.t0=e.catch(2),(0,h.Ys)(this,{title:"Failed to validate addon configuration",text:(0,d.js)(e.t0)}),r.progress=!1,e.abrupt("return");case 18:return e.prev=18,e.next=21,(0,l.kP)(this.hass,this.addon.slug);case 21:return e.next=23,(0,l.AD)(this.hass,this.addon.slug);case 23:this.addon=e.sent,i={success:!0,response:void 0,path:"start"},(0,a.B)(this,"hass-api-called",i),e.next=31;break;case 28:e.prev=28,e.t1=e.catch(18),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.start"),text:(0,d.js)(e.t1)});case 31:r.progress=!1;case 32:case"end":return e.stop()}}),e,this,[[2,13],[18,28]])}))),function(e){return c.apply(this,arguments)})},{kind:"method",key:"_openConfiguration",value:function(){(0,s.c)("/hassio/addon/".concat(this.addon.slug,"/config"))}},{kind:"method",key:"_uninstallClicked",value:(r=wc(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(r=t.currentTarget).progress=!0,e.next=4,(0,h.g7)(this,{title:this.addon.name,text:"Are you sure you want to uninstall this add-on?",confirmText:"uninstall add-on",dismissText:"no"});case 4:if(e.sent){e.next=8;break}return r.progress=!1,e.abrupt("return");case 8:return this._error=void 0,e.prev=9,e.next=12,(0,l.Yn)(this.hass,this.addon.slug);case 12:n={success:!0,response:void 0,path:"uninstall"},(0,a.B)(this,"hass-api-called",n),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(9),(0,h.Ys)(this,{title:this.supervisor.localize("addon.dashboard.action_error.uninstall"),text:(0,d.js)(e.t0)});case 19:r.progress=!1;case 20:case"end":return e.stop()}}),e,this,[[9,16]])}))),function(e){return r.apply(this,arguments)})},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(pc||(pc=kc(['\n :host {\n display: block;\n }\n ha-card {\n display: block;\n margin-bottom: 16px;\n }\n ha-card.warning {\n background-color: var(--error-color);\n color: white;\n }\n ha-card.warning .card-header {\n color: white;\n }\n ha-card.warning .card-content {\n color: white;\n }\n ha-card.warning mwc-button {\n --mdc-theme-primary: white !important;\n }\n .warning {\n color: var(--error-color);\n --mdc-theme-primary: var(--error-color);\n }\n .light-color {\n color: var(--secondary-text-color);\n }\n .addon-header {\n padding-left: 8px;\n font-size: 24px;\n color: var(--ha-card-header-color, --primary-text-color);\n }\n .addon-version {\n float: right;\n font-size: 15px;\n vertical-align: middle;\n }\n .errors {\n color: var(--error-color);\n margin-bottom: 16px;\n }\n .description {\n margin-bottom: 16px;\n }\n img.logo {\n max-width: 100%;\n max-height: 60px;\n margin: 16px 0;\n display: block;\n }\n\n ha-switch {\n display: flex;\n }\n ha-svg-icon.running {\n color: var(--success-color);\n }\n ha-svg-icon.stopped {\n color: var(--error-color);\n }\n ha-call-api-button {\n font-weight: 500;\n color: var(--primary-color);\n }\n protection-enable mwc-button {\n --mdc-theme-primary: white;\n }\n .description a {\n color: var(--primary-color);\n }\n .red {\n --ha-label-badge-color: var(--label-badge-red, #df4c1e);\n }\n .blue {\n --ha-label-badge-color: var(--label-badge-blue, #039be5);\n }\n .green {\n --ha-label-badge-color: var(--label-badge-green, #0da035);\n }\n .yellow {\n --ha-label-badge-color: var(--label-badge-yellow, #f4b400);\n }\n .security {\n margin-bottom: 16px;\n }\n .card-actions {\n justify-content: space-between;\n display: flex;\n }\n .security h3 {\n margin-bottom: 8px;\n font-weight: normal;\n }\n .security ha-label-badge {\n cursor: pointer;\n margin-right: 4px;\n --ha-label-badge-padding: 8px 0 0 0;\n }\n .changelog {\n display: contents;\n }\n .changelog-link {\n color: var(--primary-color);\n text-decoration: underline;\n cursor: pointer;\n }\n ha-markdown {\n padding: 16px;\n }\n ha-settings-row {\n padding: 0;\n height: 54px;\n width: 100%;\n }\n ha-settings-row > span[slot="description"] {\n white-space: normal;\n color: var(--secondary-text-color);\n }\n ha-settings-row[three-line] {\n height: 74px;\n }\n\n .addon-options {\n max-width: 90%;\n }\n\n .addon-container {\n display: grid;\n grid-auto-flow: column;\n grid-template-columns: 60% 40%;\n }\n\n .addon-container > div:last-of-type {\n align-self: end;\n }\n\n @media (max-width: 720px) {\n .addon-options {\n max-width: 100%;\n }\n .addon-container {\n display: block;\n }\n }\n '])))]}}]}}),n.oi);function Nc(e){return(Nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Uc(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function qc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zc(e,t){return(Zc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kc(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Wc(e);if(t){var i=Wc(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Qc(this,r)}}function Qc(e,t){return!t||"object"!==Nc(t)&&"function"!=typeof t?Yc(e):t}function Yc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wc(e){return(Wc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xc(){Xc=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!el(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r","\n \n ",'\n \n ','\n \n \n \n ","\n \n \n \n "])),this.addon.name,this._error?(0,n.dy)(al||(al=dl(['',""])),this._error):"",this._content?(0,n.dy)(sl||(sl=dl([""])),this._content):"",this._refresh,this.supervisor.localize("common.refresh"))}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(cl||(cl=dl(["\n :host,\n ha-card {\n display: block;\n }\n "])))]}},{kind:"method",key:"_loadData",value:(o=fl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._error=void 0,e.prev=1,e.next=4,(0,l.kr)(this.hass,this.addon.slug);case 4:this._content=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e.catch(1),this._error=this.supervisor.localize("addon.logs.get_logs","error",(0,d.js)(e.t0));case 10:case"end":return e.stop()}}),e,this,[[1,7]])}))),function(){return o.apply(this,arguments)})},{kind:"method",key:"_refresh",value:(r=fl(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._loadData();case 2:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})}]}}),n.oi);function jl(e){return(jl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function zl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){return(Rl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fl(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=Ll(e);if(t){var i=Ll(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return Ml(this,r)}}function Ml(e,t){return!t||"object"!==jl(t)&&"function"!=typeof t?Il(e):t}function Il(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Bl(){Bl=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!$l(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r\n =0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this._error);if(!this.addon)return(0,n.dy)(ld||(ld=md([""])));var e=[{translationKey:"addon.panel.info",path:"/hassio/addon/".concat(this.addon.slug,"/info"),iconPath:"M13.5,4A1.5,1.5 0 0,0 12,5.5A1.5,1.5 0 0,0 13.5,7A1.5,1.5 0 0,0 15,5.5A1.5,1.5 0 0,0 13.5,4M13.14,8.77C11.95,8.87 8.7,11.46 8.7,11.46C8.5,11.61 8.56,11.6 8.72,11.88C8.88,12.15 8.86,12.17 9.05,12.04C9.25,11.91 9.58,11.7 10.13,11.36C12.25,10 10.47,13.14 9.56,18.43C9.2,21.05 11.56,19.7 12.17,19.3C12.77,18.91 14.38,17.8 14.54,17.69C14.76,17.54 14.6,17.42 14.43,17.17C14.31,17 14.19,17.12 14.19,17.12C13.54,17.55 12.35,18.45 12.19,17.88C12,17.31 13.22,13.4 13.89,10.71C14,10.07 14.3,8.67 13.14,8.77Z"}];this.addon.documentation&&e.push({translationKey:"addon.panel.documentation",path:"/hassio/addon/".concat(this.addon.slug,"/documentation"),iconPath:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}),this.addon.version&&e.push({translationKey:"addon.panel.configuration",path:"/hassio/addon/".concat(this.addon.slug,"/config"),iconPath:"M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z"},{translationKey:"addon.panel.log",path:"/hassio/addon/".concat(this.addon.slug,"/logs"),iconPath:"M18 7C16.9 7 16 7.9 16 9V15C16 16.1 16.9 17 18 17H20C21.1 17 22 16.1 22 15V11H20V15H18V9H22V7H18M2 7V17H8V15H4V7H2M11 7C9.9 7 9 7.9 9 9V15C9 16.1 9.9 17 11 17H13C14.1 17 15 16.1 15 15V9C15 7.9 14.1 7 13 7H11M11 9H13V15H11V9Z"});var t=this._computeTail(this.route);return(0,n.dy)(dd||(dd=md(["\n ',"\n \n \n "])),this.hass,this.supervisor.localize,this.narrow,this.addon.version?"/hassio/dashboard":"/hassio/store",t,e,this.addon.name,t,this.narrow,this.hass,this.supervisor,this.addon)}},{kind:"get",static:!0,key:"styles",value:function(){return[u.Qx,f.l,(0,n.iv)(ud||(ud=md(["\n :host {\n color: var(--primary-text-color);\n }\n .content {\n padding: 24px 0 32px;\n display: flex;\n flex-direction: column;\n align-items: center;\n }\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config {\n margin-bottom: 24px;\n width: 600px;\n }\n hassio-addon-logs {\n max-width: calc(100% - 8px);\n min-width: 600px;\n }\n @media only screen and (max-width: 600px) {\n hassio-addon-info,\n hassio-addon-network,\n hassio-addon-audio,\n hassio-addon-config,\n hassio-addon-logs {\n max-width: 100%;\n min-width: 100%;\n }\n }\n "])))]}},{kind:"method",key:"firstUpdated",value:(h=hd(regeneratorRuntime.mark((function e(){var t,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==this.route.path){e.next=8;break}if(!(t=(0,c.io)("addon"))){e.next=8;break}return e.next=5,(0,l.yt)(this.hass);case 5:e.sent.addons.some((function(e){return e.slug===t}))?(0,s.c)("/hassio/addon/".concat(t),{replace:!0}):this._error=this.supervisor.localize("my.error_addon_not_found");case 8:this.addEventListener("hass-api-called",(function(e){return r._apiCalled(e)}));case 9:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{kind:"method",key:"_apiCalled",value:(p=hd(regeneratorRuntime.mark((function e(t){var r,n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.detail.success){e.next=2;break}return e.abrupt("return");case 2:if((n=null===(r=t.detail.path)||void 0===r?void 0:r.split("/"))&&0!==n.length){e.next=5;break}return e.abrupt("return");case 5:if(i=n[n.length-1],["uninstall","install","update","start","stop"].includes(i)&&(0,a.B)(this,"supervisor-collection-refresh",{collection:"supervisor"}),"uninstall"!==i){e.next=11;break}window.history.back(),e.next=13;break;case 11:return e.next=13,this._routeDataChanged();case 13:case"end":return e.stop()}}),e,this)}))),function(e){return p.apply(this,arguments)})},{kind:"method",key:"updated",value:function(e){e.has("route")&&!this.addon&&this._routeDataChanged()}},{kind:"method",key:"_routeDataChanged",value:(r=hd(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.route.path.split("/")[1]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,(0,l.AD)(this.hass,t);case 6:r=e.sent,this.addon=r,e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),this._error="Error fetching addon info: ".concat((0,d.js)(e.t0)),this.addon=void 0;case 14:case"end":return e.stop()}}),e,this,[[3,10]])}))),function(){return r.apply(this,arguments)})}]}}),n.oi)},93546:function(e,t,r){"use strict";var n,i=r(50424),o=r(55358),a=r(47181),s=r(91107);function c(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}var l=function(){var e,t=(e=regeneratorRuntime.mark((function e(t,i,o){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n||(n=(0,s.Ud)(new Worker(new URL(r.p+r.u(971),r.b)))),e.abrupt("return",n.renderMarkdown(t,i,o));case 2:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){c(o,n,i,a,s,"next",e)}function s(e){c(o,n,i,a,s,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var i=x(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return m(this,r)}}function m(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(){v=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.forEach((function(t){t.kind===r&&"own"===t.placement&&this.defineClassElement(e,t)}),this)}),this)},initializeClassElements:function(e,t){var r=e.prototype;["method","field"].forEach((function(n){t.forEach((function(t){var i=t.placement;if(t.kind===n&&("static"===i||"prototype"===i)){var o="static"===i?e:r;this.defineClassElement(o,t)}}),this)}),this)},defineClassElement:function(e,t){var r=t.descriptor;if("field"===t.kind){var n=t.initializer;r={enumerable:r.enumerable,writable:r.writable,configurable:r.configurable,value:void 0===n?void 0:n.call(e)}}Object.defineProperty(e,t.key,r)},decorateClass:function(e,t){var r=[],n=[],i={static:[],prototype:[],own:[]};if(e.forEach((function(e){this.addElementPlacement(e,i)}),this),e.forEach((function(e){if(!w(e))return r.push(e);var t=this.decorateElement(e,i);r.push(t.element),r.push.apply(r,t.extras),n.push.apply(n,t.finishers)}),this),!t)return{elements:r,finishers:n};var o=this.decorateConstructor(r,t);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,t,r){var n=t[e.placement];if(!r&&-1!==n.indexOf(e.key))throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,t){for(var r=[],n=[],i=e.decorators,o=i.length-1;o>=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0;o--){var a=t[e.placement];a.splice(a.indexOf(e.key),1);var s=this.fromElementDescriptor(e),c=this.toElementFinisherExtras((0,i[o])(s)||s);e=c.element,this.addElementPlacement(e,t),c.finisher&&n.push(c.finisher);var l=c.extras;if(l){for(var d=0;d=0;n--){var i=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,t[n])(i)||i);if(void 0!==o.finisher&&r.push(o.finisher),void 0!==o.elements){e=o.elements;for(var a=0;ae.length)&&(t=e.length);for(var r=0,n=new Array(t);r"])),this.content,this.allowSvg,this.breaks):(0,i.dy)(O||(O=j([""])))}},{kind:"get",static:!0,key:"styles",value:function(){return(0,i.iv)(A||(A=j(["\n :host {\n display: block;\n }\n ha-markdown-element {\n -ms-user-select: text;\n -webkit-user-select: text;\n -moz-user-select: text;\n }\n ha-markdown-element > *:first-child {\n margin-top: 0;\n }\n ha-markdown-element > *:last-child {\n margin-bottom: 0;\n }\n ha-markdown-element a {\n color: var(--primary-color);\n }\n ha-markdown-element img {\n max-width: 100%;\n }\n ha-markdown-element code,\n pre {\n background-color: var(--markdown-code-background-color, none);\n border-radius: 3px;\n }\n ha-markdown-element svg {\n background-color: var(--markdown-svg-background-color, none);\n color: var(--markdown-svg-color, none);\n }\n ha-markdown-element code {\n font-size: 85%;\n padding: 0.2em 0.4em;\n }\n ha-markdown-element pre code {\n padding: 0;\n }\n ha-markdown-element pre {\n padding: 16px;\n overflow: auto;\n line-height: 1.45;\n font-family: var(--code-font-family, monospace);\n }\n ha-markdown-element h2 {\n font-size: 1.5em;\n font-weight: bold;\n }\n "])))}}]}}),i.oi)}}]);
+//# sourceMappingURL=649b5acd.js.map
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/649b5acd.js.gz b/supervisor/api/panel/frontend_es5/649b5acd.js.gz
new file mode 100644
index 000000000..261248d9d
Binary files /dev/null and b/supervisor/api/panel/frontend_es5/649b5acd.js.gz differ
diff --git a/supervisor/api/panel/frontend_es5/649b5acd.js.map b/supervisor/api/panel/frontend_es5/649b5acd.js.map
new file mode 100644
index 000000000..3ad7bb39a
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/649b5acd.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"649b5acd.js","sources":["webpack://home-assistant-frontend/649b5acd.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/6de58640.js b/supervisor/api/panel/frontend_es5/6de58640.js
new file mode 100644
index 000000000..bde3f1ebc
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/6de58640.js
@@ -0,0 +1,2 @@
+(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[354],{91107:function(t,n,r){"use strict";function e(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var e,o,a=[],i=!0,u=!1;try{for(r=r.call(t);!(i=(e=r.next()).done)&&(a.push(e.value),!n||a.length!==n);i=!0);}catch(c){u=!0,o=c}finally{try{i||null==r.return||r.return()}finally{if(u)throw o}}return a}(t,n)||l(t,n)||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 o(t,n,r){return n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}function a(t,n,r){return(a=i()?Reflect.construct:function(t,n,r){var e=[null];e.push.apply(e,n);var o=new(Function.bind.apply(t,e));return r&&u(o,r.prototype),o}).apply(null,arguments)}function i(){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(t){return!1}}function u(t,n){return(u=Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function c(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(t)||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 l(t,n){if(t){if("string"==typeof t)return f(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,n):void 0}}function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r1&&void 0!==arguments[1]?arguments[1]:self;n.addEventListener("message",(function r(i){if(i&&i.data){var u,l=Object.assign({path:[]},i.data),f=l.id,s=l.type,p=l.path,y=(i.data.argumentList||[]).map(O);try{var v=p.slice(0,-1).reduce((function(t,n){return t[n]}),t),h=p.reduce((function(t,n){return t[n]}),t);switch(s){case"GET":u=h;break;case"SET":v[p.slice(-1)[0]]=O(i.data.value),u=!0;break;case"APPLY":u=h.apply(v,y);break;case"CONSTRUCT":var m;u=P(a(h,c(y)));break;case"ENDPOINT":var w=new MessageChannel,S=w.port1,E=w.port2;d(t,E),u=A(S,[S]);break;case"RELEASE":u=void 0;break;default:return}}catch(m){u=o({value:m},b,0)}Promise.resolve(u).catch((function(t){return o({value:t},b,0)})).then((function(t){var o=e(j(t),2),a=o[0],i=o[1];n.postMessage(Object.assign(Object.assign({},a),{id:f}),i),"RELEASE"===s&&(n.removeEventListener("message",r),g(n))}))}})),n.start&&n.start()}function g(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function w(t){if(t)throw new Error("Proxy has been released and is not useable")}function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=!1,a=new Proxy(r,{get:function(r,e){if(w(o),e===v)return function(){return T(t,{type:"RELEASE",path:n.map((function(t){return t.toString()}))}).then((function(){g(t),o=!0}))};if("then"===e){if(0===n.length)return{then:function(){return a}};var i=T(t,{type:"GET",path:n.map((function(t){return t.toString()}))}).then(O);return i.then.bind(i)}return S(t,[].concat(c(n),[e]))},set:function(r,a,i){w(o);var u=e(j(i),2),l=u[0],f=u[1];return T(t,{type:"SET",path:[].concat(c(n),[a]).map((function(t){return t.toString()})),value:l},f).then(O)},apply:function(r,a,i){w(o);var u=n[n.length-1];if(u===y)return T(t,{type:"ENDPOINT"}).then(O);if("bind"===u)return S(t,n.slice(0,-1));var c=e(E(i),2),l=c[0],f=c[1];return T(t,{type:"APPLY",path:n.map((function(t){return t.toString()})),argumentList:l},f).then(O)},construct:function(r,a){w(o);var i=e(E(a),2),u=i[0],c=i[1];return T(t,{type:"CONSTRUCT",path:n.map((function(t){return t.toString()})),argumentList:u},c).then(O)}});return a}function E(t){var n,r=t.map(j);return[r.map((function(t){return t[0]})),(n=r.map((function(t){return t[1]})),Array.prototype.concat.apply([],n))]}var _=new WeakMap;function A(t,n){return _.set(t,n),t}function P(t){return Object.assign(t,o({},p,!0))}function j(t){var n,r=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=l(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}(m);try{for(r.s();!(n=r.n()).done;){var o=e(n.value,2),a=o[0],i=o[1];if(i.canHandle(t)){var u=e(i.serialize(t),2);return[{type:"HANDLER",name:a,value:u[0]},u[1]]}}}catch(c){r.e(c)}finally{r.f()}return[{type:"RAW",value:t},_.get(t)||[]]}function O(t){switch(t.type){case"HANDLER":return m.get(t.name).deserialize(t.value);case"RAW":return t.value}}function T(t,n,r){return new Promise((function(e){var o=new Array(4).fill(0).map((function(){return Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)})).join("-");t.addEventListener("message",(function n(r){r.data&&r.data.id&&r.data.id===o&&(t.removeEventListener("message",n),e(r.data))})),t.start&&t.start(),t.postMessage(Object.assign({id:o},n),r)}))}},58556:function(t,n,r){"use strict";var e;(e="undefined"!=typeof process&&"[object process]"==={}.toString.call(process)||"undefined"!=typeof navigator&&"ReactNative"===navigator.product?global:self).Proxy||(e.Proxy=r(87082)(),e.Proxy.revocable=e.Proxy.revocable)},87082:function(t){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}t.exports=function(){var t,r=null;function e(t){return!!t&&("object"===n(t)||"function"==typeof t)}function o(t){if(null!==t&&!e(t))throw new TypeError("Object prototype may only be an Object or null: "+t)}var a=Object,i=Boolean(a.create)||!({__proto__:null}instanceof a),u=a.create||(i?function(t){return o(t),{__proto__:t}}:function(t){if(o(t),null===t)throw new SyntaxError("Native Object.create is required to create objects with null prototype");var n=function(){};return n.prototype=t,new n}),c=function(){return null},l=a.getPrototypeOf||([].__proto__===Array.prototype?function(t){var n=t.__proto__;return e(n)?n:null}:c);return(t=function(n,f){if(void 0===(this&&this instanceof t?this.constructor:void 0))throw new TypeError("Constructor Proxy requires 'new'");if(!e(n)||!e(f))throw new TypeError("Cannot create proxy with a non-object as target or handler");var s=function(){};r=function(){n=null,s=function(t){throw new TypeError("Cannot perform '".concat(t,"' on a proxy that has been revoked"))}},setTimeout((function(){r=null}),0);var p=f;for(var y in f={get:null,set:null,apply:null,construct:null},p){if(!(y in f))throw new TypeError("Proxy polyfill does not support trap '".concat(y,"'"));f[y]=p[y]}"function"==typeof p&&(f.apply=p.apply.bind(p));var v,b=l(n),h=!1,m=!1;"function"==typeof n?(v=function(){var t=this&&this.constructor===v,r=Array.prototype.slice.call(arguments);if(s(t?"construct":"apply"),t&&f.construct)return f.construct.call(this,n,r);if(!t&&f.apply)return f.apply(n,this,r);if(t){r.unshift(n);var e=n.bind.apply(n,r);return new e}return n.apply(this,r)},h=!0):n instanceof Array?(v=[],m=!0):v=i||null!==b?u(b):{};var d=f.get?function(t){return s("get"),f.get(this,t,v)}:function(t){return s("get"),this[t]},g=f.set?function(t,n){s("set");f.set(this,t,n,v)}:function(t,n){s("set"),this[t]=n},w=a.getOwnPropertyNames(n),S={};w.forEach((function(t){if(!h&&!m||!(t in v)){var r=a.getOwnPropertyDescriptor(n,t),e={enumerable:Boolean(r.enumerable),get:d.bind(n,t),set:g.bind(n,t)};a.defineProperty(v,t,e),S[t]=!0}}));var E=!0;if(h||m){var _=a.setPrototypeOf||([].__proto__===Array.prototype?function(t,n){return o(n),t.__proto__=n,t}:c);b&&_(v,b)||(E=!1)}if(f.get||!E)for(var A in n)S[A]||a.defineProperty(v,A,{get:d.bind(n,A)});return a.seal(n),a.seal(v),v}).revocable=function(n,e){return{proxy:new t(n,e),revoke:r}},t}}}]);
+//# sourceMappingURL=6de58640.js.map
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/6de58640.js.gz b/supervisor/api/panel/frontend_es5/6de58640.js.gz
new file mode 100644
index 000000000..2f137d86a
Binary files /dev/null and b/supervisor/api/panel/frontend_es5/6de58640.js.gz differ
diff --git a/supervisor/api/panel/frontend_es5/6de58640.js.map b/supervisor/api/panel/frontend_es5/6de58640.js.map
new file mode 100644
index 000000000..8701ac685
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/6de58640.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"6de58640.js","sources":["webpack://home-assistant-frontend/6de58640.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/71906b61.js b/supervisor/api/panel/frontend_es5/71906b61.js
new file mode 100644
index 000000000..e17ac2f45
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/71906b61.js
@@ -0,0 +1,2 @@
+(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[468],{91100:function(e,t,n){var r=n(79668),u=n(48544);n(27301);function i(e){return null==e}function s(e){(e=function(e){var t={};for(var n in e)t[n]=e[n];return t}(e||{})).whiteList=e.whiteList||r.whiteList,e.onAttr=e.onAttr||r.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||r.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||r.safeAttrValue,this.options=e}s.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,n=t.whiteList,r=t.onAttr,s=t.onIgnoreAttr,o=t.safeAttrValue;return u(e,(function(e,t,u,a,l){var c=n[u],D=!1;if(!0===c?D=c:"function"==typeof c?D=c(a):c instanceof RegExp&&(D=c.test(a)),!0!==D&&(D=!1),a=o(u,a)){var p,h={position:t,sourcePosition:e,source:l,isWhite:D};return D?i(p=r(u,a,h))?u+":"+a:p:i(p=s(u,a,h))?void 0:p}}))},e.exports=s},79668:function(e,t){function n(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var r=/javascript\s*\:/gim;t.whiteList=n(),t.getDefaultWhiteList=n,t.onAttr=function(e,t,n){},t.onIgnoreAttr=function(e,t,n){},t.safeAttrValue=function(e,t){return r.test(t)?"":t}},8300:function(e,t,n){var r=n(79668),u=n(91100);for(var i in(t=e.exports=function(e,t){return new u(t).process(e)}).FilterCSS=u,r)t[i]=r[i];"undefined"!=typeof window&&(window.filterCSS=e.exports)},48544:function(e,t,n){var r=n(27301);e.exports=function(e,t){";"!==(e=r.trimRight(e))[e.length-1]&&(e+=";");var n=e.length,u=!1,i=0,s=0,o="";function a(){if(!u){var n=r.trim(e.slice(i,s)),a=n.indexOf(":");if(-1!==a){var l=r.trim(n.slice(0,a)),c=r.trim(n.slice(a+1));if(l){var D=t(i,o.length,l,c,n);D&&(o+=D+"; ")}}}i=s+1}for(;se.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};function u(){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}}r.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:u,changeDefaults:function(e){r.exports.defaults=e}};var i=/[&<>"']/,s=/[&<>"']/g,o=/[<>"']|&(?!#?\w+;)/,a=/[<>"']|&(?!#?\w+;)/g,l={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return l[e]},D=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(D,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g,f=/[^\w:]/g,g=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i,d={},m=/^[^:]+:\/*[^/]*$/,A=/^([^:]+:)[\s\S]*$/,k=/^([^:]+:\/*[^/]*)[\s\S]*$/;function F(e,t){d[" "+e]||(m.test(e)?d[" "+e]=e+"/":d[" "+e]=x(e,"/",!0));var n=-1===(e=d[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(A,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(k,"$1")+t:e+t}function x(e,t,n){var r=e.length;if(0===r)return"";for(var u=0;u=0&&"\\"===n[u];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n[n.length-1].trim()||n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},$=r.exports.defaults,I=_,R=y,L=b,O=z;function j(e,t,n,r){var u=t.href,i=t.title?L(t.title):null,s=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var o={type:"link",raw:n,href:u,title:i,text:s,tokens:r.inlineTokens(s,[])};return r.state.inLink=!1,o}return{type:"image",raw:n,href:u,title:i,text:L(s)}}var q=function(){function e(e){this.options=e||$}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=I(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}var u={type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:[]};return this.lexer.inline(u.text,u.tokens),u}},t.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},t.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(n,[]),text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,u,i,s,o,a,l,c,D,p=t[1].trim(),h=p.length>1,f={type:"list",raw:"",ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]};p=h?"\\d{1,9}\\"+p.slice(-1):"\\"+p,this.options.pedantic&&(p=h?p:"[*+-]");for(var g=new RegExp("^( {0,3}"+p+")((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))");e&&!this.rules.block.hr.test(e)&&(t=g.exec(e));){c=t[2].split("\n"),this.options.pedantic?(i=2,D=c[0].trimLeft()):(i=t[2].search(/[^ ]/),i=t[1].length+(i>4?1:i),D=c[0].slice(i-t[1].length)),o=!1,n=t[0],!c[0]&&/^ *$/.test(c[1])&&(n=t[1]+c.slice(0,2).join("\n")+"\n",f.loose=!0,c=[]);var d=new RegExp("^ {0,"+Math.min(3,i-1)+"}(?:[*+-]|\\d{1,9}[.)])");for(s=1;s=i)&&l.trim()){n=t[1]+c.slice(0,s).join("\n")+"\n";break}D+="\n"+l.slice(i)}else l.trim()||(o=!0),l.search(/[^ ]/)>=i?D+="\n"+l.slice(i):D+="\n"+l}f.loose||(a?f.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(D))&&(u="[ ] "!==r[0],D=D.replace(/^\[[ xX]\] +/,"")),f.items.push({type:"list_item",raw:n,task:!!r,checked:u,loose:!1,text:D}),f.raw+=n,e=e.slice(n.length)}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=D.trimRight(),f.raw=f.raw.trimRight();var m=f.items.length;for(s=0;s/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]):L(t[0]):t[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=I(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var u=O(t[2],"()");if(u>-1){var i=(0===t[0].indexOf("!")?5:4)+t[1].length+u;t[2]=t[2].substring(0,u),t[0]=t[0].substring(0,i).trim(),t[3]=""}}var s=t[2],o="";if(this.options.pedantic){var a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);a&&(s=a[1],o=a[3])}else o=t[3]?t[3].slice(1,-1):"";return s=s.trim(),/^$/.test(n)?s.slice(1):s.slice(1,-1)),j(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:o?o.replace(this.rules.inline._escapes,"$1"):o},t[0],this.lexer)}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return j(n,r,n[0],this.lexer)}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var u=r[1]||r[2]||"";if(!u||u&&(""===n||this.rules.inline.punctuation.exec(n))){var i,s,o=r[0].length-1,a=o,l=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+o);null!=(r=c.exec(t));)if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(s=i.length,r[3]||r[4])a+=s;else if(!((r[5]||r[6])&&o%3)||(o+s)%3){if(!((a-=s)>0)){if(s=Math.min(s,s+a+l),Math.min(o,s)%2){var D=e.slice(1,o+r.index+s);return{type:"em",raw:e.slice(0,o+r.index+s+1),text:D,tokens:this.lexer.inlineTokens(D,[])}}var p=e.slice(2,o+r.index+s-1);return{type:"strong",raw:e.slice(0,o+r.index+s+1),text:p,tokens:this.lexer.inlineTokens(p,[])}}}else l+=s}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),u=/^ /.test(n)&&/ $/.test(n);return r&&u&&(n=n.substring(1,n.length-1)),n=L(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2],[])}},t.autolink=function(e,t){var n,r,u=this.rules.inline.autolink.exec(e);if(u)return r="@"===u[2]?"mailto:"+(n=L(this.options.mangle?t(u[1]):u[1])):n=L(u[1]),{type:"link",raw:u[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,u;if("@"===n[2])u="mailto:"+(r=L(this.options.mangle?t(n[0]):n[0]));else{var i;do{i=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(i!==n[0]);r=L(n[0]),u="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:u,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):L(r[0]):r[0]:L(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}},e}(),Z=w,P=E,Q=B,U={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*|$)|\\n*|$)|\\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:Z,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?'|\([^()]*\))/};U.def=P(U.def).replace("label",U._label).replace("title",U._title).getRegex(),U.bullet=/(?:[*+-]|\d{1,9}[.)])/,U.listItemStart=P(/^( *)(bull) */).replace("bull",U.bullet).getRegex(),U.list=P(U.list).replace(/bull/g,U.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+U.def.source+")").getRegex(),U._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",U._comment=/|$)/,U.html=P(U.html,"i").replace("comment",U._comment).replace("tag",U._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),U.paragraph=P(U._paragraph).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",U._tag).getRegex(),U.blockquote=P(U.blockquote).replace("paragraph",U.paragraph).getRegex(),U.normal=Q({},U),U.gfm=Q({},U.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)\\|?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),U.gfm.table=P(U.gfm.table).replace("hr",U.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",U._tag).getRegex(),U.pedantic=Q({},U.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",U._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Z,paragraph:P(U.normal._paragraph).replace("hr",U.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",U.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var V={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Z,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\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:Z,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};V.punctuation=P(V.punctuation).replace(/punctuation/g,V._punctuation).getRegex(),V.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,V.escapedEmSt=/\\\*|\\_/g,V._comment=P(U._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),V.emStrong.lDelim=P(V.emStrong.lDelim).replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimAst=P(V.emStrong.rDelimAst,"g").replace(/punct/g,V._punctuation).getRegex(),V.emStrong.rDelimUnd=P(V.emStrong.rDelimUnd,"g").replace(/punct/g,V._punctuation).getRegex(),V._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,V._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,V._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])?)+(?![-_])/,V.autolink=P(V.autolink).replace("scheme",V._scheme).replace("email",V._email).getRegex(),V._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,V.tag=P(V.tag).replace("comment",V._comment).replace("attribute",V._attribute).getRegex(),V._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,V._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,V._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,V.link=P(V.link).replace("label",V._label).replace("href",V._href).replace("title",V._title).getRegex(),V.reflink=P(V.reflink).replace("label",V._label).getRegex(),V.reflinkSearch=P(V.reflinkSearch,"g").replace("reflink",V.reflink).replace("nolink",V.nolink).getRegex(),V.normal=Q({},V),V.pedantic=Q({},V.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:P(/^!?\[(label)\]\((.*?)\)/).replace("label",V._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V._label).getRegex()}),V.gfm=Q({},V.normal,{escape:P(V.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]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+=""+n+";";return r}var Y=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new H,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var t={block:X.normal,inline:N.normal};this.options.pedantic?(t.block=X.pedantic,t.inline=N.pedantic):this.options.gfm&&(t.block=X.gfm,this.options.breaks?t.inline=N.breaks:t.inline=N.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,u,i=t.prototype;return i.lex=function(e){var 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},i.blockTokens=function(e,t){var n,r,u,i,s=this;for(void 0===t&&(t=[]),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(r){return!!(n=r.call({lexer:s},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])||"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])||"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(u=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;s.options.extensions.startBlock.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(u=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(u)))r=t[t.length-1],i&&"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),i=u.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])&&"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){var o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}throw new Error(o)}return this.state.top=!0,t},i.inline=function(e,t){this.inlineQueue.push({src:e,tokens:t})},i.inlineTokens=function(e,t){var n,r,u,i=this;void 0===t&&(t=[]);var s,o,a,l=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(l));)c.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,s.index)+"["+G("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(l));)l=l.slice(0,s.index)+"["+G("a",s[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(l));)l=l.slice(0,s.index)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(o||(a=""),o=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(r){return!!(n=r.call({lexer:i},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])&&"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])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,l,a))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,K))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,K))){if(u=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;i.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(u=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(u,J))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(a=n.raw.slice(-1)),o=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){var D="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(D);break}throw new Error(D)}}else e=e.substring(n.raw.length),t.push(n);return t},n=t,u=[{key:"rules",get:function(){return{block:X,inline:N}}}],(r=null)&&e(n.prototype,r),u&&e(n,u),t}(),ee=r.exports.defaults,te=v,ne=b,re=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var u=this.options.highlight(e,r);null!=u&&u!==e&&(n=!0,e=u)}return e=e.replace(/\n$/,"")+"\n",r?''+(n?e:ne(e,!0))+" \n":""+(n?e:ne(e,!0))+" \n"},t.blockquote=function(e){return"\n"+e+" \n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?" \n":" \n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},t.listitem=function(e){return""+e+"\n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return""+e+" \n"},t.table=function(e,t){return t&&(t=""+t+""),"\n"},t.tablerow=function(e){return"\n"+e+" \n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+" "},t.br=function(){return this.options.xhtml?" ":" "},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"+n+""},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r=' ":">"},t.text=function(e){return e},e}(),ue=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ie=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),se=re,oe=ue,ae=ie,le=r.exports.defaults,ce=C,De=Y,pe=function(){function e(e){this.options=e||le,this.options.renderer=this.options.renderer||new se,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new oe,this.slugger=new ae}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,u,i,s,o,a,l,c,D,p,h,f,g,d,m,A,k,F,x="",b=e.length;for(n=0;n0&&"paragraph"===d.tokens[0].type?(d.tokens[0].text=k+" "+d.tokens[0].text,d.tokens[0].tokens&&d.tokens[0].tokens.length>0&&"text"===d.tokens[0].tokens[0].type&&(d.tokens[0].tokens[0].text=k+" "+d.tokens[0].tokens[0].text)):d.tokens.unshift({type:"text",text:k}):g+=k),g+=this.parse(d.tokens,f),c+=this.renderer.listitem(g,A,m);x+=this.renderer.list(c,p,h);continue;case"html":x+=this.renderer.html(D.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(D.tokens));continue;case"text":for(c=D.tokens?this.parseInline(D.tokens):D.text;n+1An error occurred:"+ke(a.message+"",!0)+" ";throw a}}return Ce.options=Ce.setOptions=function(e){return me(Ce.defaults,e),xe(Ce.defaults),Ce},Ce.getDefaults=Fe,Ce.defaults=be,Ce.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;rAn error occurred:"+ke(r.message+"",!0)+" ";throw r}},Ce.Parser=pe,Ce.parser=pe.parse,Ce.Renderer=fe,Ce.TextRenderer=ge,Ce.Lexer=De,Ce.lexer=De.lex,Ce.Tokenizer=he,Ce.Slugger=de,Ce.parse=Ce,Ce},"object"===s(t)?e.exports=i():void 0===(u="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=u)},60841:function(e,t,n){var r=n(8300).FilterCSS,u=n(8300).getDefaultWhiteList,i=n(58511);function s(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var o=new r;function a(e){return e.replace(l,"<").replace(c,">")}var l=//g,D=/"/g,p=/"/g,h=/([a-zA-Z0-9]*);?/gim,f=/:?/gim,g=/&newline;?/gim,d=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a)\:/gi,m=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,A=/u\s*r\s*l\s*\(.*/gi;function k(e){return e.replace(D,""")}function F(e){return e.replace(p,'"')}function x(e){return e.replace(h,(function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))}))}function b(e){return e.replace(f,":").replace(g," ")}function C(e){for(var t="",n=0,r=e.length;n/g;t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=s,t.onTag=function(e,t,n){},t.onIgnoreTag=function(e,t,n){},t.onTagAttr=function(e,t,n){},t.onIgnoreTagAttr=function(e,t,n){},t.safeAttrValue=function(e,t,n,r){if(n=E(n),"href"===t||"src"===t){if("#"===(n=i.trim(n)))return"#";if("http://"!==n.substr(0,7)&&"https://"!==n.substr(0,8)&&"mailto:"!==n.substr(0,7)&&"tel:"!==n.substr(0,4)&&"data:image/"!==n.substr(0,11)&&"ftp://"!==n.substr(0,6)&&"./"!==n.substr(0,2)&&"../"!==n.substr(0,3)&&"#"!==n[0]&&"/"!==n[0])return""}else if("background"===t){if(d.lastIndex=0,d.test(n))return""}else if("style"===t){if(m.lastIndex=0,m.test(n))return"";if(A.lastIndex=0,A.test(n)&&(d.lastIndex=0,d.test(n)))return"";!1!==r&&(n=(r=r||o).process(n))}return n=v(n)},t.escapeHtml=a,t.escapeQuote=k,t.unescapeQuote=F,t.escapeHtmlEntities=x,t.escapeDangerHtml5Entities=b,t.clearNonPrintableCharacter=C,t.friendlyAttrValue=E,t.escapeAttrValue=v,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var n=!Array.isArray(e),r=[],u=!1;return{onIgnoreTag:function(s,o,a){if(function(t){return!!n||-1!==i.indexOf(e,t)}(s)){if(a.isClosing){var l="[/removed]",c=a.position+l.length;return r.push([!1!==u?u:a.position,c]),u=!1,l}return u||(u=a.position),"[removed]"}return t(s,o,a)},remove:function(e){var t="",n=0;return i.forEach(r,(function(r){t+=e.slice(n,r[0]),n=r[1]})),t+=e.slice(n)}}},t.stripCommentTag=function(e){return e.replace(w,"")},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter((function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))}))).join("")},t.cssFilter=o,t.getDefaultCSSWhiteList=u},62173:function(e,t,n){var r=n(60841),u=n(79542),i=n(61585);function s(e,t){return new i(t).process(e)}for(var o in(t=e.exports=s).filterXSS=s,t.FilterXSS=i,r)t[o]=r[o];for(var o in u)t[o]=u[o];"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},79542:function(e,t,n){var r=n(58511);function u(e){var t=r.spaceIndex(e);if(-1===t)var n=e.slice(1,-1);else n=e.slice(1,t+1);return"/"===(n=r.trim(n).toLowerCase()).slice(0,1)&&(n=n.slice(1)),"/"===n.slice(-1)&&(n=n.slice(0,-1)),n}function i(e){return""===e.slice(0,2)}var s=/[^a-zA-Z0-9_:\.\-]/gim;function o(e,t){for(;t0;t--){var n=e[t];if(" "!==n)return"="===n?t:-1}}function l(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,n){"use strict";var r="",s=0,o=!1,a=!1,l=0,c=e.length,D="",p="";e:for(l=0;l"===h){r+=n(e.slice(s,o)),D=u(p=e.slice(o,l+1)),r+=t(o,r.length,D,p,i(p)),s=l+1,o=!1;continue}if('"'===h||"'"===h)for(var f=1,g=e.charAt(l-f);""===g.trim()||"="===g;){if("="===g){a=h;continue e}g=e.charAt(l-++f)}}else if(h===a){a=!1;continue}}return s";var A=function(e){var t=a.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var n="/"===(e=a.trim(e.slice(t+1,-1)))[e.length-1];return n&&(e=a.trim(e.slice(0,-1))),{html:e,closing:n}}(s),k=n[u],F=o(A.html,(function(e,t){var n,r=-1!==a.indexOf(k,e);return l(n=c(u,e,t,r))?r?(t=p(u,e,t,f))?e+'="'+t+'"':e:l(n=D(u,e,t,r))?void 0:n:n}));s="<"+u;return F&&(s+=" "+F),A.closing&&(s+=" /"),s+=">"}return l(d=i(u,s,m))?h(s):d}),h);return g&&(d=g.remove(d)),d},e.exports=c}}]);
+//# sourceMappingURL=71906b61.js.map
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/71906b61.js.gz b/supervisor/api/panel/frontend_es5/71906b61.js.gz
new file mode 100644
index 000000000..600ed2b78
Binary files /dev/null and b/supervisor/api/panel/frontend_es5/71906b61.js.gz differ
diff --git a/supervisor/api/panel/frontend_es5/71906b61.js.map b/supervisor/api/panel/frontend_es5/71906b61.js.map
new file mode 100644
index 000000000..6a00679f2
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/71906b61.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"71906b61.js","sources":["webpack://home-assistant-frontend/71906b61.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/799b0b1b.js.gz b/supervisor/api/panel/frontend_es5/799b0b1b.js.gz
deleted file mode 100644
index b7d4465d0..000000000
Binary files a/supervisor/api/panel/frontend_es5/799b0b1b.js.gz and /dev/null differ
diff --git a/supervisor/api/panel/frontend_es5/799b0b1b.js.map b/supervisor/api/panel/frontend_es5/799b0b1b.js.map
deleted file mode 100644
index 01620ba0d..000000000
--- a/supervisor/api/panel/frontend_es5/799b0b1b.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"799b0b1b.js","sources":["webpack://home-assistant-frontend/799b0b1b.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/e1f7ebc5.js b/supervisor/api/panel/frontend_es5/8849adea.js
similarity index 96%
rename from supervisor/api/panel/frontend_es5/e1f7ebc5.js
rename to supervisor/api/panel/frontend_es5/8849adea.js
index 173d40f51..87cb056ef 100644
--- a/supervisor/api/panel/frontend_es5/e1f7ebc5.js
+++ b/supervisor/api/panel/frontend_es5/8849adea.js
@@ -1,2 +1,2 @@
-!function(){"use strict";var r,t,n={5425:function(r,t,n){var e=n(91107);n(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(f){a=!0,o=f}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return u(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(r);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(r,t)}(r,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 u(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);na?1*u:0}))}};(0,e.Jj)(i)}},e={};function o(r){var t=e[r];if(void 0!==t)return t.exports;var u=e[r]={exports:{}};return n[r](u,u.exports,o),u.exports}o.m=n,o.x=function(){var r=o.O(void 0,[354],(function(){return o(5425)}));return r=o.O(r)},r=[],o.O=function(t,n,e,u){if(!n){var i=1/0;for(l=0;l=u)&&Object.keys(o.O).every((function(r){return o.O[r](n[f])}))?n.splice(f--,1):(a=!1,u0&&r[l-1][2]>u;l--)r[l]=r[l-1];r[l]=[n,e,u]},o.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(t,{a:t}),t},o.d=function(r,t){for(var n in t)o.o(t,n)&&!o.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(r){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](r,t),t}),[]))},o.u=function(r){return"e612d98f.js"},o.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},o.p="/api/hassio/app/frontend_es5/",function(){var r={477:1,425:1};o.f.i=function(t,n){r[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],n=t.push.bind(t);t.push=function(t){var e=t[0],u=t[1],i=t[2];for(var a in u)o.o(u,a)&&(o.m[a]=u[a]);for(i&&i(o);e.length;)r[e.pop()]=1;n(t)}}(),t=o.x,o.x=function(){return o.e(354).then(t)};o.x()}();
-//# sourceMappingURL=e1f7ebc5.js.map
\ No newline at end of file
+!function(){"use strict";var r,t,n={5425:function(r,t,n){var e=n(91107);n(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,u=[],i=!0,a=!1;try{for(n=n.call(r);!(i=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);i=!0);}catch(f){a=!0,o=f}finally{try{i||null==n.return||n.return()}finally{if(a)throw o}}return u}(r,t)||function(r,t){if(!r)return;if("string"==typeof r)return u(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(r);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(r,t)}(r,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 u(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);na?1*u:0}))}};(0,e.Jj)(i)}},e={};function o(r){var t=e[r];if(void 0!==t)return t.exports;var u=e[r]={exports:{}};return n[r](u,u.exports,o),u.exports}o.m=n,o.x=function(){var r=o.O(void 0,[354],(function(){return o(5425)}));return r=o.O(r)},r=[],o.O=function(t,n,e,u){if(!n){var i=1/0;for(l=0;l=u)&&Object.keys(o.O).every((function(r){return o.O[r](n[f])}))?n.splice(f--,1):(a=!1,u0&&r[l-1][2]>u;l--)r[l]=r[l-1];r[l]=[n,e,u]},o.n=function(r){var t=r&&r.__esModule?function(){return r.default}:function(){return r};return o.d(t,{a:t}),t},o.d=function(r,t){for(var n in t)o.o(t,n)&&!o.o(r,n)&&Object.defineProperty(r,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(r){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](r,t),t}),[]))},o.u=function(r){return"6de58640.js"},o.o=function(r,t){return Object.prototype.hasOwnProperty.call(r,t)},o.p="/api/hassio/app/frontend_es5/",function(){var r={477:1,425:1};o.f.i=function(t,n){r[t]||importScripts(o.p+o.u(t))};var t=self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[],n=t.push.bind(t);t.push=function(t){var e=t[0],u=t[1],i=t[2];for(var a in u)o.o(u,a)&&(o.m[a]=u[a]);for(i&&i(o);e.length;)r[e.pop()]=1;n(t)}}(),t=o.x,o.x=function(){return o.e(354).then(t)};o.x()}();
+//# sourceMappingURL=8849adea.js.map
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/8849adea.js.gz b/supervisor/api/panel/frontend_es5/8849adea.js.gz
new file mode 100644
index 000000000..7d78d5af0
Binary files /dev/null and b/supervisor/api/panel/frontend_es5/8849adea.js.gz differ
diff --git a/supervisor/api/panel/frontend_es5/8849adea.js.map b/supervisor/api/panel/frontend_es5/8849adea.js.map
new file mode 100644
index 000000000..7f4fcdba7
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/8849adea.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"8849adea.js","sources":["webpack://home-assistant-frontend/8849adea.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/9e6dea06.js b/supervisor/api/panel/frontend_es5/9e6dea06.js
deleted file mode 100644
index aa1556460..000000000
--- a/supervisor/api/panel/frontend_es5/9e6dea06.js
+++ /dev/null
@@ -1,2 +0,0 @@
-(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[633],{27232:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=new WeakMap;n.default=function(e){var n=t.get(e);return n||(n=Object.create(null),t.set(e,n)),n}},52443:function(e,n,t){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(n,"__esModule",{value:!0}),n.Locale=void 0;var a=t(87480),i=t(43965),o=t(39460),l=a.__importStar(t(16085)),c=a.__importDefault(t(27232)),u=l.supplemental.likelySubtags,d=["ca","co","hc","kf","kn","nu"],s=/^[a-z0-9]{3,8}(-[a-z0-9]{3,8})*$/i;function g(e,n,t,r,i){return void 0===r&&(r=[]),i?{lang:e&&"und"!==e?e:i.lang,script:n||i.script,region:t||i.region,variants:a.__spreadArray(a.__spreadArray([],r),i.variants)}:{lang:e||"und",script:n,region:t,variants:r}}function f(e){var n=o.parseUnicodeLocaleId(e),t=n.lang,r=t.lang,a=t.script,i=t.region,l=t.variants;if(a&&i){var c=u[o.emitUnicodeLanguageId({lang:r,script:a,region:i,variants:[]})];if(c){var d=o.parseUnicodeLanguageId(c);return n.lang=g(void 0,void 0,void 0,l,d),o.emitUnicodeLocaleId(n)}}if(a){var s=u[o.emitUnicodeLanguageId({lang:r,script:a,variants:[]})];if(s){var f=o.parseUnicodeLanguageId(s);return n.lang=g(void 0,void 0,i,l,f),o.emitUnicodeLocaleId(n)}}if(i){var p=u[o.emitUnicodeLanguageId({lang:r,region:i,variants:[]})];if(p){var v=o.parseUnicodeLanguageId(p);return n.lang=g(void 0,a,void 0,l,v),o.emitUnicodeLocaleId(n)}}var y=u[r]||u[o.emitUnicodeLanguageId({lang:"und",script:a,variants:[]})];if(!y)throw new Error("No match for addLikelySubtags");var b=o.parseUnicodeLanguageId(y);return n.lang=g(void 0,a,i,l,b),o.emitUnicodeLocaleId(n)}var p=function(){function e(n,t){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.Locale must be called with 'new'");var l,u=e.relevantExtensionKeys,d=["initializedLocale","locale","calendar","collation","hourCycle","numberingSystem"];if(u.indexOf("kf")>-1&&d.push("caseFirst"),u.indexOf("kn")>-1&&d.push("numeric"),void 0===n)throw new TypeError("First argument to Intl.Locale constructor can't be empty or missing");if("string"!=typeof n&&"object"!==r(n))throw new TypeError("tag must be a string or object");n="object"===r(n)&&(l=c.default(n))&&l.initializedLocale?l.locale:n.toString(),l=c.default(this);var g=i.CoerceOptionsToObject(t);n=function(e,n){i.invariant("string"==typeof e,"language tag must be a string"),i.invariant(o.isStructurallyValidLanguageTag(e),"malformed language tag",RangeError);var t=i.GetOption(n,"language","string",void 0,void 0);void 0!==t&&i.invariant(o.isUnicodeLanguageSubtag(t),"Malformed unicode_language_subtag",RangeError);var r=i.GetOption(n,"script","string",void 0,void 0);void 0!==r&&i.invariant(o.isUnicodeScriptSubtag(r),"Malformed unicode_script_subtag",RangeError);var l=i.GetOption(n,"region","string",void 0,void 0);void 0!==l&&i.invariant(o.isUnicodeRegionSubtag(l),"Malformed unicode_region_subtag",RangeError);var c=o.parseUnicodeLanguageId(e);return void 0!==t&&(c.lang=t),void 0!==r&&(c.script=r),void 0!==l&&(c.region=l),Intl.getCanonicalLocales(o.emitUnicodeLocaleId(a.__assign(a.__assign({},o.parseUnicodeLocaleId(e)),{lang:c})))[0]}(n,g);var f=Object.create(null),p=i.GetOption(g,"calendar","string",void 0,void 0);if(void 0!==p&&!s.test(p))throw new RangeError("invalid calendar");f.ca=p;var v=i.GetOption(g,"collation","string",void 0,void 0);if(void 0!==v&&!s.test(v))throw new RangeError("invalid collation");f.co=v;var y=i.GetOption(g,"hourCycle","string",["h11","h12","h23","h24"],void 0);f.hc=y;var b=i.GetOption(g,"caseFirst","string",["upper","lower","false"],void 0);f.kf=b;var m,h=i.GetOption(g,"numeric","boolean",void 0,void 0);void 0!==h&&(m=String(h)),f.kn=m;var L=i.GetOption(g,"numberingSystem","string",void 0,void 0);if(void 0!==L&&!s.test(L))throw new RangeError("Invalid numberingSystem");f.nu=L;var _=function(e,n,t){for(var r,a=[],l=o.parseUnicodeLocaleId(e),c=0,u=l.extensions;c-1&&(l.caseFirst=_.kf),u.indexOf("kn")>-1&&(l.numeric=i.SameValue(_.kn,"true")),l.numberingSystem=_.nu}return e.prototype.maximize=function(){var n=c.default(this).locale;try{return new e(f(n))}catch(t){return new e(n)}},e.prototype.minimize=function(){var n=c.default(this).locale;try{return new e(function(e){var n=f(e);if(!n)return e;n=o.emitUnicodeLanguageId(a.__assign(a.__assign({},o.parseUnicodeLanguageId(n)),{variants:[]}));var t=o.parseUnicodeLocaleId(e),r=t.lang,i=r.lang,l=r.script,c=r.region,u=r.variants;return f(o.emitUnicodeLanguageId({lang:i,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,void 0,u)})):c&&f(o.emitUnicodeLanguageId({lang:i,region:c,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,void 0,c,u)})):l&&f(o.emitUnicodeLanguageId({lang:i,script:l,variants:[]}))===n?o.emitUnicodeLocaleId(a.__assign(a.__assign({},t),{lang:g(i,l,void 0,u)})):e}(n))}catch(t){return new e(n)}},e.prototype.toString=function(){return c.default(this).locale},Object.defineProperty(e.prototype,"baseName",{get:function(){var e=c.default(this).locale;return o.emitUnicodeLanguageId(o.parseUnicodeLanguageId(e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calendar",{get:function(){return c.default(this).calendar},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"collation",{get:function(){return c.default(this).collation},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hourCycle",{get:function(){return c.default(this).hourCycle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caseFirst",{get:function(){return c.default(this).caseFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numeric",{get:function(){return c.default(this).numeric},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberingSystem",{get:function(){return c.default(this).numberingSystem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).lang},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"script",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).script},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"region",{get:function(){var e=c.default(this).locale;return o.parseUnicodeLanguageId(e).region},enumerable:!1,configurable:!0}),e.relevantExtensionKeys=d,e}();n.Locale=p;try{"undefined"!=typeof Symbol&&Object.defineProperty(p.prototype,Symbol.toStringTag,{value:"Intl.Locale",writable:!1,enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype.constructor,"length",{value:1,writable:!1,enumerable:!1,configurable:!0})}catch(v){}n.default=p},33633:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t(52443);t(32812).shouldPolyfill()&&Object.defineProperty(Intl,"Locale",{value:r.Locale,writable:!0,enumerable:!1,configurable:!0})},32812:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.shouldPolyfill=void 0,n.shouldPolyfill=function(){return"undefined"==typeof Intl||!("Locale"in Intl)||function(){try{return"x-private"===new Intl.Locale("und-x-private").toString()}catch(e){return!0}}()}}}]);
-//# sourceMappingURL=9e6dea06.js.map
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/9e6dea06.js.gz b/supervisor/api/panel/frontend_es5/9e6dea06.js.gz
deleted file mode 100644
index eebf2792e..000000000
Binary files a/supervisor/api/panel/frontend_es5/9e6dea06.js.gz and /dev/null differ
diff --git a/supervisor/api/panel/frontend_es5/9e6dea06.js.map b/supervisor/api/panel/frontend_es5/9e6dea06.js.map
deleted file mode 100644
index 0ccfb6a6c..000000000
--- a/supervisor/api/panel/frontend_es5/9e6dea06.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"9e6dea06.js","sources":["webpack://home-assistant-frontend/9e6dea06.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/9f0e09af.js b/supervisor/api/panel/frontend_es5/9f0e09af.js
new file mode 100644
index 000000000..6b2da856f
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/9f0e09af.js
@@ -0,0 +1,2 @@
+(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[160],{71160:function(e,n,t){"use strict";function r(e){return Intl.getCanonicalLocales(e)}function u(e,n){var t=n.tzData,r=n.uppercaseLinks,u=e.toUpperCase(),i=Object.keys(t).reduce((function(e,n){return e[n.toUpperCase()]=n,e}),{}),o=r[u]||i[u];return"Etc/UTC"===o||"Etc/GMT"===o?"UTC":o}function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e){if("symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return String(e)}function a(e){if(void 0===e)return NaN;if(null===e)return 0;if("boolean"==typeof e)return e?1:0;if("number"==typeof e)return e;if("symbol"===i(e)||"bigint"==typeof e)throw new TypeError("Cannot convert symbol/bigint to number");return Number(e)}function c(e){return isFinite(e)?Math.abs(e)>8640000000000001?NaN:function(e){var n=a(e);if(isNaN(n)||s(n,-0))return 0;if(isFinite(n))return n;var t=Math.floor(Math.abs(n));return n<0&&(t=-t),s(t,-0)?0:t}(e):NaN}function l(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)}function s(e,n){return Object.is?Object.is(e,n):e===n?0!==e||1/e==1/n:e!=e&&n!=n}function f(e){return new Array(e)}function p(e,n){return Object.prototype.hasOwnProperty.call(e,n)}function m(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"===i(e)?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"===i(e)?"Symbol":"bigint"==typeof e?"BigInt":void 0}t.r(n),t.d(n,{ArrayCreate:function(){return f},CanonicalizeLocaleList:function(){return r},CanonicalizeTimeZoneName:function(){return u},CoerceOptionsToObject:function(){return I},ComputeExponent:function(){return oe},ComputeExponentForMagnitude:function(){return te},CurrencyDigits:function(){return ae},DateFromTime:function(){return w},Day:function(){return d},DayFromYear:function(){return v},DayWithinYear:function(){return E},DaysInYear:function(){return F},FormatNumericToParts:function(){return ve},FormatNumericToString:function(){return ie},GetNumberOption:function(){return L},GetOption:function(){return j},GetOptionsObject:function(){return U},HasOwnProperty:function(){return p},HourFromTime:function(){return N},InLeapYear:function(){return C},InitializeNumberFormat:function(){return Ee},IsSanctionedSimpleUnitIdentifier:function(){return z},IsValidTimeZoneName:function(){return X},IsWellFormedCurrencyCode:function(){return V},IsWellFormedUnitIdentifier:function(){return Q},MinFromTime:function(){return O},MonthFromTime:function(){return S},OrdinaryHasInstance:function(){return M},PartitionNumberPattern:function(){return ye},PartitionPattern:function(){return Ce},RangePatternType:function(){return we},SANCTIONED_UNITS:function(){return R},SIMPLE_UNITS:function(){return G},SameValue:function(){return s},SecFromTime:function(){return B},SetNumberFormatDigitOptions:function(){return Fe},SetNumberFormatUnitOptions:function(){return he},SupportedLocales:function(){return Se},TimeClip:function(){return c},TimeFromYear:function(){return b},ToNumber:function(){return a},ToObject:function(){return l},ToRawFixed:function(){return ue},ToRawPrecision:function(){return re},ToString:function(){return o},Type:function(){return m},WeekDay:function(){return y},YearFromTime:function(){return h},_formatToParts:function(){return me},defineProperty:function(){return ee},getInternalSlot:function(){return q},getMagnitude:function(){return Z},getMultiInternalSlots:function(){return J},invariant:function(){return ne},isLiteralPart:function(){return K},isMissingLocaleDataError:function(){return Ne},msFromTime:function(){return x},removeUnitNamespace:function(){return P},setInternalSlot:function(){return H},setMultiInternalSlots:function(){return W}});var D=864e5;function g(e,n){return e-Math.floor(e/n)*n}function d(e){return Math.floor(e/D)}function y(e){return g(d(e)+4,7)}function v(e){return Date.UTC(e,0)/D}function b(e){return Date.UTC(e,0)}function h(e){return new Date(e).getUTCFullYear()}function F(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function E(e){return d(e)-v(h(e))}function C(e){return 365===F(h(e))?0:1}function S(e){var n=E(e),t=C(e);if(n>=0&&n<31)return 0;if(n<59+t)return 1;if(n<90+t)return 2;if(n<120+t)return 3;if(n<151+t)return 4;if(n<181+t)return 5;if(n<212+t)return 6;if(n<243+t)return 7;if(n<273+t)return 8;if(n<304+t)return 9;if(n<334+t)return 10;if(n<365+t)return 11;throw new Error("Invalid time")}function w(e){var n=E(e),t=S(e),r=C(e);if(0===t)return n+1;if(1===t)return n-30;if(2===t)return n-58-r;if(3===t)return n-89-r;if(4===t)return n-119-r;if(5===t)return n-150-r;if(6===t)return n-180-r;if(7===t)return n-211-r;if(8===t)return n-242-r;if(9===t)return n-272-r;if(10===t)return n-303-r;if(11===t)return n-333-r;throw new Error("Invalid time")}var A=1e3;function N(e){return g(Math.floor(e/36e5),24)}function O(e){return g(Math.floor(e/6e4),60)}function B(e){return g(Math.floor(e/A),60)}function M(e,n,t){if("function"!=typeof e)return!1;if(null==t?void 0:t.boundTargetFunction)return n instanceof(null==t?void 0:t.boundTargetFunction);if("object"!==i(n))return!1;var r=e.prototype;if("object"!==i(r))throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(r,n)}function x(e){return g(e,A)}function I(e){return void 0===e?Object.create(null):l(e)}function k(e,n,t,r){if(void 0!==e){if(e=Number(e),isNaN(e)||et)throw new RangeError(e+" is outside of range ["+n+", "+t+"]");return Math.floor(e)}return r}function L(e,n,t,r,u){return k(e[n],t,r,u)}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,n,t,r,u){if("object"!==T(e))throw new TypeError("Options must be an object");var i=e[n];if(void 0!==i){if("boolean"!==t&&"string"!==t)throw new TypeError("invalid type");if("boolean"===t&&(i=Boolean(i)),"string"===t&&(i=o(i)),void 0!==r&&!r.filter((function(e){return e==i})).length)throw new RangeError(i+" is not within "+r.join(", "));return i}return u}function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e){if(void 0===e)return Object.create(null);if("object"===_(e))return e;throw new TypeError("Options must be an object")}var R=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"];function P(e){return e.slice(e.indexOf("-")+1)}var G=R.map(P);function z(e){return G.indexOf(e)>-1}function X(e,n){var t=n.tzData,r=n.uppercaseLinks,u=e.toUpperCase(),i=new Set,o=new Set;return Object.keys(t).map((function(e){return e.toUpperCase()})).forEach((function(e){return i.add(e)})),Object.keys(r).forEach((function(e){o.add(e.toUpperCase()),i.add(r[e].toUpperCase())})),i.has(u)||o.has(u)}var Y=/[^A-Z]/;function V(e){return 3===(e=e.replace(/([a-z])/g,(function(e,n){return n.toUpperCase()}))).length&&!Y.test(e)}function Q(e){if(z(e=e.replace(/([A-Z])/g,(function(e,n){return n.toLowerCase()}))))return!0;var n=e.split("-per-");if(2!==n.length)return!1;var t=n[0],r=n[1];return!(!z(t)||!z(r))}function Z(e){return Math.floor(Math.log(e)*Math.LOG10E)}function $(e,n){if("function"==typeof e.repeat)return e.repeat(n);for(var t=new Array(n),r=0;rm[m.length-1])return m[m.length-1].length-1;var D=m.indexOf(p);if(-1===D)return 0;var g=m[D];return"0"===s[g].other?0:g.length-s[g].other.match(/0+/)[0].length}}function re(e,n,t){var r,u,i,o,a=t;if(0===e)r=$("0",a),u=0,i=0;else{var c=e.toString(),l=c.indexOf("e"),s=c.split("e"),f=s[0],p=s[1],m=f.replace(".","");if(l>=0&&m.length<=a)u=+p,r=m+$("0",a-m.length),i=e;else{var D=(u=Z(e))-a+1,g=Math.round(y(e,D));y(g,a-1)>=10&&(u+=1,g=Math.floor(g/10)),r=g.toString(),i=y(g,a-1-u)}}if(u>=a-1?(r+=$("0",u-a+1),o=u+1):u>=0?(r=r.slice(0,u+1)+"."+r.slice(u+1),o=u+1):(r="0."+$("0",-u-1)+r,o=1),r.indexOf(".")>=0&&t>n){for(var d=t-n;d>0&&"0"===r[r.length-1];)r=r.slice(0,-1),d--;"."===r[r.length-1]&&(r=r.slice(0,-1))}return{formattedString:r,roundedNumber:i,integerDigitsCount:o};function y(e,n){return n<0?e*Math.pow(10,-n):e/Math.pow(10,n)}}function ue(e,n,t){var r,u,i=t,o=Math.round(e*Math.pow(10,i)),a=o/Math.pow(10,i);if(o<1e21)r=o.toString();else{var c=(r=o.toString()).split("e"),l=c[0],s=c[1];r=l.replace(".",""),r+=$("0",Math.max(+s-r.length+1,0))}if(0!==i){var f=r.length;if(f<=i)r=$("0",i+1-f)+r,f=i+1;var p=r.slice(0,f-i),m=r.slice(f-i);r=p+"."+m,u=p.length}else u=r.length;for(var D=t-n;D>0&&"0"===r[r.length-1];)r=r.slice(0,-1),D--;return"."===r[r.length-1]&&(r=r.slice(0,-1)),{formattedString:r,roundedNumber:a,integerDigitsCount:u}}function ie(e,n){var t,r=n<0||s(n,-0);switch(r&&(n=-n),e.roundingType){case"significantDigits":t=re(n,e.minimumSignificantDigits,e.maximumSignificantDigits);break;case"fractionDigits":t=ue(n,e.minimumFractionDigits,e.maximumFractionDigits);break;default:(t=re(n,1,2)).integerDigitsCount>1&&(t=ue(n,0,0))}n=t.roundedNumber;var u=t.formattedString,i=t.integerDigitsCount,o=e.minimumIntegerDigits;i\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEE0-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDD78\uDD7A-\uDDCB\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6\uDF00-\uDF92\uDF94-\uDFCA]/,se=new RegExp("^"+le.source),fe=new RegExp(le.source+"$"),pe=/[#0](?:[\.,][#0]+)*/g;function me(e,n,t,r){var u,i,o=e.sign,a=e.exponent,c=e.magnitude,l=r.notation,s=r.style,f=r.numberingSystem,p=n.numbers.nu[0],m=null;if("compact"===l&&c&&(m=function(e,n,t,r,u,i,o){var a,c,l=e.roundedNumber,s=e.sign,f=e.magnitude,p=String(Math.pow(10,f)),m=t.numbers.nu[0];if("currency"===r&&"name"!==i){var D=null===(a=((g=t.numbers.currency)[o]||g[m]).short)||void 0===a?void 0:a[p];if(!D)return null;c=de(n,l,D)}else{var g,d=((g=t.numbers.decimal)[o]||g[m])[u][p];if(!d)return null;c=de(n,l,d)}if("0"===c)return null;return c=ge(c,s).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0")}(e,t,n,s,r.compactDisplay,r.currencyDisplay,f)),"currency"===s&&"name"!==r.currencyDisplay){var D=n.currencies[r.currency];if(D)switch(r.currencyDisplay){case"code":u=r.currency;break;case"symbol":u=D.symbol;break;default:u=D.narrow}else u=r.currency}if(m)i=m;else if("decimal"===s||"unit"===s||"currency"===s&&"name"===r.currencyDisplay)i=ge((n.numbers.decimal[f]||n.numbers.decimal[p]).standard,o);else if("currency"===s){i=ge((d=n.numbers.currency[f]||n.numbers.currency[p])[r.currencySign],o)}else{i=ge(n.numbers.percent[f]||n.numbers.percent[p],o)}var g=pe.exec(i)[0];if(i=i.replace(pe,"{0}").replace(/'(.)'/g,"$1"),"currency"===s&&"name"!==r.currencyDisplay){var d,y=(d=n.numbers.currency[f]||n.numbers.currency[p]).currencySpacing.afterInsertBetween;y&&!fe.test(u)&&(i=i.replace("¤{0}","¤"+y+"{0}"));var v=d.currencySpacing.beforeInsertBetween;v&&!se.test(u)&&(i=i.replace("{0}¤","{0}"+v+"¤"))}for(var b=i.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),h=[],F=n.numbers.symbols[f]||n.numbers.symbols[p],E=0,C=b;E0?(f=c.slice(0,m),p=c.slice(m+1)):f=c,i&&("compact"!==t||l>=1e4)){var D=e.group,g=[],d=o.split(".")[0].split(","),y=3,v=3;d.length>1&&(y=d[d.length-1].length),d.length>2&&(v=d[d.length-2].length);var b=f.length-y;if(b>0){for(g.push(f.slice(b,b+y)),b-=v;b>0;b-=v)g.push(f.slice(b,b+v));g.push(f.slice(0,b+v))}else g.push(f);for(;g.length>0;){var h=g.pop();a.push({type:"integer",value:h}),g.length>0&&a.push({type:"group",value:D})}}else a.push({type:"integer",value:f});if(void 0!==p&&a.push({type:"decimal",value:e.decimal},{type:"fraction",value:p}),("scientific"===t||"engineering"===t)&&isFinite(l)){a.push({type:"exponentSeparator",value:e.exponential}),r<0&&(a.push({type:"exponentMinusSign",value:e.minusSign}),r=-r);var F=ue(r,0,0);a.push({type:"exponentInteger",value:F.formattedString})}return a}function ge(e,n){e.indexOf(";")<0&&(e=e+";-"+e);var t=e.split(";"),r=t[0],u=t[1];switch(n){case 0:return r;case-1:return u;default:return u.indexOf("-")>=0?u.replace(/-/g,"+"):"+"+r}}function de(e,n,t){return t[e.select(n)]||t.other}function ye(e,n,t){var r,u,i,o=t.getInternalSlots,a=o(e),c=a.pl,l=a.dataLocaleData,f=a.numberingSystem,p=l.numbers.symbols[f]||l.numbers.symbols[l.numbers.nu[0]],m=0,D=0;if(isNaN(n))u=p.nan;else if(isFinite(n)){"percent"===a.style&&(n*=100),D=(r=oe(e,n,{getInternalSlots:o}))[0],m=r[1];var g=ie(a,n=D<0?n*Math.pow(10,-D):n/Math.pow(10,D));u=g.formattedString,n=g.roundedNumber}else u=p.infinity;switch(a.signDisplay){case"never":i=0;break;case"auto":i=s(n,0)||n>0||isNaN(n)?0:-1;break;case"always":i=s(n,0)||n>0||isNaN(n)?1:-1;break;default:i=0===n||isNaN(n)?0:n>0?1:-1}return me({roundedNumber:n,formattedString:u,exponent:D,magnitude:m,sign:i},a.dataLocaleData,c,a)}function ve(e,n,t){for(var r=ye(e,n,t),u=f(0),i=0,o=r;i-1;)ne((r=e.indexOf("}",t))>t,"Invalid pattern "+e),t>u&&n.push({type:"literal",value:e.substring(u,t)}),n.push({type:e.substring(t+1,r),value:void 0}),u=r+1,t=e.indexOf("{",u);return u=2&&"-"===t[r-2]&&(r-=2),t=t.slice(0,r)}}},76099:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.BestFitMatcher=void 0;var r=t(96512),u=t(30598);n.BestFitMatcher=function(e,n,t){var i,o=Array.from(e).reduce((function(e,n){return e[n]=n,e}),{}),a=new Set;e.forEach((function(e){var n=new Intl.Locale(e).minimize().toString();o[n]=e,a.add(n)}));for(var c=0,l=n;c2){var S=p.indexOf("-x-");if(-1===S)p+=D;else{var w=p.slice(0,S),A=p.slice(S,p.length);p=w+D+A}p=Intl.getCanonicalLocales(p)[0]}return m.locale=p,m}},71387:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.UnicodeExtensionValue=void 0;var r=t(30598);n.UnicodeExtensionValue=function(e,n){r.invariant(2===n.length,"key must have 2 elements");var t=e.length,u="-"+n+"-",i=e.indexOf(u);if(-1!==i){for(var o=i+4,a=o,c=o,l=!1;!l;){var s=e.indexOf("-",c);2===(-1===s?t-c:s-c)?l=!0:-1===s?(a=t,l=!0):(a=s,c=s+1)}return e.slice(o,a)}if(u="-"+n,-1!==(i=e.indexOf(u))&&i+3===t)return""}},30598:function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.invariant=n.UNICODE_EXTENSION_SEQUENCE_REGEX=void 0,n.UNICODE_EXTENSION_SEQUENCE_REGEX=/-u(?:-[0-9a-z]{2,8})+/gi,n.invariant=function(e,n,t){if(void 0===t&&(t=Error),!e)throw new t(n)}},17595:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ResolveLocale=n.LookupSupportedLocales=n.match=void 0;var r=t(92904);n.match=function(e,n,t,u){var i=n.reduce((function(e,n){return e.add(n),e}),new Set);return r.ResolveLocale(i,e,{localeMatcher:(null==u?void 0:u.algorithm)||"best fit"},[],{},(function(){return t})).locale};var u=t(42776);Object.defineProperty(n,"LookupSupportedLocales",{enumerable:!0,get:function(){return u.LookupSupportedLocales}});var i=t(92904);Object.defineProperty(n,"ResolveLocale",{enumerable:!0,get:function(){return i.ResolveLocale}})}}]);
+//# sourceMappingURL=9f0e09af.js.map
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/9f0e09af.js.gz b/supervisor/api/panel/frontend_es5/9f0e09af.js.gz
new file mode 100644
index 000000000..78f935ef9
Binary files /dev/null and b/supervisor/api/panel/frontend_es5/9f0e09af.js.gz differ
diff --git a/supervisor/api/panel/frontend_es5/9f0e09af.js.map b/supervisor/api/panel/frontend_es5/9f0e09af.js.map
new file mode 100644
index 000000000..f66be4c22
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/9f0e09af.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"9f0e09af.js","sources":["webpack://home-assistant-frontend/9f0e09af.js"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
diff --git a/supervisor/api/panel/frontend_es5/9fa7e44f.js b/supervisor/api/panel/frontend_es5/9fa7e44f.js
new file mode 100644
index 000000000..14f67615c
--- /dev/null
+++ b/supervisor/api/panel/frontend_es5/9fa7e44f.js
@@ -0,0 +1,2 @@
+(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[102],{86876:function(t,e,n){"use strict";n.d(e,{wQ:function(){return ft},xi:function(){return ct},at:function(){return lt}});var r=n(77885),i=n(23414),o=n(19753),s=n(64928),a=n(80340);var u=1e4,h="()[]{}";function l(t,e,n){var r=t.prop(e<0?a.md.openedBy:a.md.closedBy);if(r)return r;if(1==t.name.length){var i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function c(t,e,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=i.maxScanDistance||u,a=i.brackets||h,c=(0,s.qz)(t),v=c.resolve(e,n);return(r=l(v.type,n,a))?f(t,e,n,v,r,a):d(t,e,n,c,v.type,o,a)}function f(t,e,n,r,i,o){var s=r.parent,a={from:r.from,to:r.to},u=0,h=null==s?void 0:s.cursor;if(h&&(n<0?h.childBefore(r.from):h.childAfter(r.to)))do{if(n<0?h.to<=r.from:h.from>=r.to){if(0==u&&i.indexOf(h.type.name)>-1)return{start:a,end:{from:h.from,to:h.to},matched:!0};if(l(h.type,n,o))u++;else if(l(h.type,-n,o)&&0==--u)return{start:a,end:{from:h.from,to:h.to},matched:!1}}}while(n<0?h.prevSibling():h.nextSibling());return{start:a,matched:!1}}function d(t,e,n,r,i,o,s){var a=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),u=s.indexOf(a);if(u<0||u%2==0!=n>0)return null;for(var h={from:n<0?e-1:e,to:n>0?e+1:e},l=t.doc.iterRange(e,n>0?t.doc.length:0),c=0,f=0;!l.next().done&&f<=o;){var d=l.value;n<0&&(f+=d.length);for(var v=e+f*n,p=n>0?0:d.length-1,g=n>0?d.length:-1;p!=g;p+=n){var m=s.indexOf(d[p]);if(!(m<0||r.resolve(v+p,1).type!=i))if(m%2==0==n>0)c++;else{if(1==c)return{start:h,end:{from:v+p,to:v+p+1},matched:m>>1==u>>1};c--}}n>0&&(f+=d.length)}return l.done?{start:h,matched:!1}:null}function v(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function C(t,e,n){for(var i=(0,s.qz)(t).resolveInner(e.head),o=n?a.md.closedBy:a.md.openedBy,u=e.head;;){var h=n?i.childAfter(u):i.childBefore(u);if(!h)break;A(t,h,o)?i=h:u=n?h.to:h.from}var l,f;return f=i.type.prop(o)&&(l=n?c(t,i.from,1):c(t,i.to,-1))&&l.matched?n?l.end.to:l.end.from:n?i.to:i.from,r.jT.cursor(f,n?-1:1)}function M(t,e){return y(t,(function(n){return n.empty?t.moveVertically(n,e):k(n,e)}))}var O=function(t){return M(t,!1)},T=function(t){return M(t,!0)};function D(t,e){return y(t,(function(n){return n.empty?t.moveVertically(n,e,t.dom.clientHeight):k(n,e)}))}var E=function(t){return D(t,!1)},R=function(t){return D(t,!0)};function P(t,e,n){var i=t.visualLineAt(e.head),o=t.moveToLineBoundary(e,n);if(o.head==e.head&&o.head!=(n?i.to:i.from)&&(o=t.moveToLineBoundary(e,n,!1)),!n&&o.head==i.from&&i.length){var s=/^\s*/.exec(t.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(o=r.jT.cursor(i.from+s))}return o}var L=function(t){return y(t,(function(e){return P(t,e,!0)}))},B=function(t){return y(t,(function(e){return P(t,e,!1)}))};function I(t,e,n){var i=!1,o=g(t.selection,(function(e){var o=c(t,e.head,-1)||c(t,e.head,1)||e.head>0&&c(t,e.head-1,1)||e.headn&&(o="delete.forward"),n=Math.min(n,s),i=Math.max(i,s)}return n==i?{range:t}:{changes:{from:n,to:i},range:r.jT.cursor(n)}}));return!s.changes.empty&&(i(n.update(s,{scrollIntoView:!0,userEvent:o})),!0)}var tt=function(t,e){return Z(t,(function(n){var r,a,u=t.state,h=u.doc.lineAt(n);if(!e&&n>h.from&&n=s.number){var u=n[n.length-1];u.to=a.to,u.ranges.push(o)}else n.push({from:s.from,to:a.to,ranges:[o]});r=a.number+1}}catch(h){i.e(h)}finally{i.f()}return n}function at(t,e,n){var i,o=[],s=[],a=v(st(t));try{for(a.s();!(i=a.n()).done;){var u=i.value;if(n?u.to!=t.doc.length:0!=u.from){var h=t.doc.lineAt(n?u.to+1:u.from-1),l=h.length+1;if(n){o.push({from:u.to,to:h.to},{from:u.from,insert:h.text+t.lineBreak});var c,f=v(u.ranges);try{for(f.s();!(c=f.n()).done;){var d=c.value;s.push(r.jT.range(Math.min(t.doc.length,d.anchor+l),Math.min(t.doc.length,d.head+l)))}}catch(y){f.e(y)}finally{f.f()}}else{o.push({from:h.from,to:u.from},{from:u.to,insert:t.lineBreak+h.text});var p,g=v(u.ranges);try{for(g.s();!(p=g.n()).done;){var m=p.value;s.push(r.jT.range(m.anchor-l,m.head-l))}}catch(y){g.e(y)}finally{g.f()}}}}}catch(y){a.e(y)}finally{a.f()}return!!o.length&&(e(t.update({changes:o,scrollIntoView:!0,selection:r.jT.create(s,t.selection.mainIndex),userEvent:"move.line"})),!0)}function ut(t,e,n){var r,i=[],o=v(st(t));try{for(o.s();!(r=o.n()).done;){var s=r.value;n?i.push({from:s.from,insert:t.doc.slice(s.from,s.to)+t.lineBreak}):i.push({from:s.to,insert:t.lineBreak+t.doc.slice(s.from,s.to)})}}catch(a){o.e(a)}finally{o.f()}return e(t.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}function ht(t,e){var n=-1;return t.changeByRange((function(i){for(var o=[],s=i.from;s<=i.to;){var a=t.doc.lineAt(s);a.number>n&&(i.empty||i.to>a.from)&&(e(a,o,i),n=a.number),s=a.to+1}var u=t.changes(o);return{changes:o,range:r.jT.range(u.mapPos(i.anchor,1),u.mapPos(i.head,1))}}))}var lt=function(t){var e=t.state;return(0,t.dispatch)(e.update(ht(e,(function(t,n){n.push({from:t.from,insert:e.facet(s.c)})})),{userEvent:"input.indent"})),!0},ct=function(t){var e=t.state;return(0,t.dispatch)(e.update(ht(e,(function(t,n){var r=/^\s*/.exec(t.text)[0];if(r){for(var o=(0,i.IS)(r,e.tabSize),a=0,u=(0,s.SS)(e,Math.max(0,o-(0,s.y1)(e)));a1?o=r.jT.create([i.main]):i.main.empty||(o=r.jT.create([r.jT.cursor(i.main.head)])),!!o&&(n(m(e,o)),!0)}},{key:"Alt-l",mac:"Ctrl-l",run:function(t){var e=t.state,n=t.dispatch,i=st(e).map((function(t){var n=t.from,i=t.to;return r.jT.range(n,Math.min(i+1,e.doc.length))}));return n(e.update({selection:r.jT.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:function(t){var e=t.state,n=t.dispatch,i=g(e.selection,(function(t){for(var n,i=(0,s.qz)(e).resolveInner(t.head,1);!(i.from=t.to||i.to>t.to&&i.from<=t.from)&&(null===(n=i.parent)||void 0===n?void 0:n.parent);)i=i.parent;return r.jT.range(i.to,i.from)}));return n(m(e,i)),!0},preventDefault:!0},{key:"Mod-[",run:ct},{key:"Mod-]",run:lt},{key:"Mod-Alt-\\",run:function(t){var e=t.state,n=t.dispatch,r=Object.create(null),i=new s.Gn(e,{overrideIndentation:function(t){var e=r[t];return null==e?-1:e}}),o=ht(e,(function(t,n,o){var a=(0,s.K0)(i,t.from);if(null!=a){/\S/.test(t.text)||(a=0);var u=/^\s*/.exec(t.text)[0],h=(0,s.SS)(e,a);(u!=h||o.from0?n--:r=e&&(n=i.type.prop(a.md.closedBy))&&n.indexOf(o.name)>-1&&t.doc.lineAt(i.to).from==t.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(e,n),h=new s.Gn(e,{simulateBreak:n,simulateDoubleBreak:!!u}),l=(0,s.K0)(h,n);null==l&&(l=/^\s*/.exec(e.doc.lineAt(n).text)[0].length);for(var c=e.doc.lineAt(n);oc.from&&nn?n:Math.max(0,e-1)}))}},{mac:"Mod-Delete",run:ot}].concat([{key:"Ctrl-b",run:w,shift:V,preventDefault:!0},{key:"Ctrl-f",run:x,shift:_},{key:"Ctrl-p",run:O,shift:q},{key:"Ctrl-n",run:T,shift:W},{key:"Ctrl-a",run:function(t){return y(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).from,1)}))},shift:function(t){return N(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).from)}))}},{key:"Ctrl-e",run:function(t){return y(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).to,-1)}))},shift:function(t){return N(t,(function(e){return r.jT.cursor(t.visualLineAt(e.head).to)}))}},{key:"Ctrl-d",run:nt},{key:"Ctrl-h",run:et},{key:"Ctrl-k",run:ot},{key:"Ctrl-Alt-h",run:it},{key:"Ctrl-o",run:function(t){var e=t.state,n=t.dispatch,o=e.changeByRange((function(t){return{changes:{from:t.from,to:t.to,insert:i.xv.of(["",""])},range:r.jT.cursor(t.from)}}));return n(e.update(o,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(t){var e=t.state,n=t.dispatch,o=e.changeByRange((function(t){if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};var n=t.from,o=e.doc.lineAt(n),s=n==o.from?n-1:(0,i.cp)(o.text,n-o.from,!1)+o.from,a=n==o.to?n+1:(0,i.cp)(o.text,n-o.from,!0)+o.from;return{changes:{from:s,to:a,insert:e.doc.slice(n,a).append(e.doc.slice(s,n))},range:r.jT.cursor(a)}}));return!o.changes.empty&&(n(e.update(o,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Alt-<",run:J},{key:"Alt->",run:X},{key:"Ctrl-v",run:R},{key:"Alt-v",run:E}].map((function(t){return{mac:t.key,run:t.run,shift:t.shift}}))))},11254:function(t,e,n){"use strict";n.d(e,{Eu:function(){return N}});var r=n(19753),i=n(13764),o=n(77885);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.i;)t.dom.removeChild(t.elements.pop().dom)}}]),t}(),D=function(){function t(e,n){var r=this;h(this,t),this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");var i=function(t){r.dom.addEventListener(t,(function(r){var i=e.visualLineAtHeight(r.clientY,e.contentDOM.getBoundingClientRect().top);n.domEventHandlers[t](e,i,r)&&r.preventDefault()}))};for(var o in n.domEventHandlers)i(o);this.markers=M(n.markers(e)),n.initialSpacer&&(this.spacer=new E(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}return c(t,[{key:"update",value:function(t){var e=this.markers;if(this.markers=M(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){var n=this.config.updateSpacer(this.spacer.markers[0],t);n!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[n])}var r=t.view.viewport;return!i.Xs.eq(this.markers,e,r.from,r.to)}}]),t}(),E=function(){function t(e,n,r,i){h(this,t),this.height=-1,this.above=0,this.dom=document.createElement("div"),this.update(e,n,r,i)}return c(t,[{key:"update",value:function(t,e,n,r){if(this.height!=e&&(this.dom.style.height=(this.height=e)+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),this.markers!=r){this.markers=r;for(var i;i=this.dom.lastChild;)i.remove();var o,s="cm-gutterElement",u=a(r);try{for(u.s();!(o=u.n()).done;){var h=o.value;h.toDOM&&this.dom.appendChild(h.toDOM(t));var l=h.elementClass;l&&(s+=" "+l)}}catch(c){u.e(c)}finally{u.f()}this.dom.className=s}}}]),t}();var R=o.r$.define(),P=o.r$.define({combine:function(t){return(0,o.BO)(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers:function(t,e){var n=Object.assign({},t),r=function(t){var r=n[t],i=e[t];n[t]=r?function(t,e,n){return r(t,e,n)||i(t,e,n)}:i};for(var i in e)r(i);return n}})}}),L=function(t){f(n,t);var e=v(n);function n(t){var r;return h(this,n),(r=e.call(this)).number=t,r}return c(n,[{key:"eq",value:function(t){return this.number==t.number}},{key:"toDOM",value:function(t){return document.createTextNode(this.number)}}]),n}(m);function B(t,e){return t.state.facet(P).formatNumber(e,t.state)}var I=w({class:"cm-lineNumbers",markers:function(t){return t.state.facet(R)},lineMarker:function(t,e,n){return n.some((function(t){return t.toDOM}))?null:new L(B(t,t.state.doc.lineAt(e.from).number))},initialSpacer:function(t){return new L(B(t,j(t.state.doc.lines)))},updateSpacer:function(t,e){var n=B(e.view,j(e.view.state.doc.lines));return n==t.number?t:new L(n)}});function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[P.of(t),I]}function j(t){for(var e=9;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?e:m.get(e.base||e,e.modified.concat(t).sort((function(t,e){return t.id-e.id})))}}}]),t}(),g=0,m=function(){function t(){c(this,t),this.instances=[],this.id=g++}return d(t,null,[{key:"get",value:function(e,n){if(!n.length)return e;var r=n[0].instances.find((function(t){return t.base==e&&(r=n,i=t.modified,r.length==i.length&&r.every((function(t,e){return t==i[e]})));var r,i}));if(r)return r;var i,o=[],s=new p(o,e,n),a=h(n);try{for(a.s();!(i=a.n()).done;){i.value.instances.push(s)}}catch(m){a.e(m)}finally{a.f()}var u,l=y(n),c=h(e.set);try{for(c.s();!(u=c.n()).done;){var f,d=u.value,v=h(l);try{for(v.s();!(f=v.n()).done;){var g=f.value;o.push(t.get(d,g))}}catch(m){v.e(m)}finally{v.f()}}}catch(m){c.e(m)}finally{c.f()}return s}}]),t}();function y(t){for(var e=[t],n=0;n0&&c+3==s.length){u=1;break}var f=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!f)throw new RangeError("Invalid path: "+s);if(a.push("*"==f[0]?null:'"'==f[0][0]?JSON.parse(f[0]):f[0]),(c+=f[0].length)==s.length)break;var d=s[c++];if(c==s.length&&"!"==d){u=0;break}if("/"!=d)throw new RangeError("Invalid path: "+s);l=s.slice(c)}var v=a.length-1,p=a[v];if(!p)throw new RangeError("Invalid path: "+s);var g=new A(r,u,v>0?a.slice(0,v):null);e[p]=g.sort(e[p])}}}catch(m){o.e(m)}finally{o.f()}}return b.add(e)}var b=new r.md,w=s.r$.define({combine:function(t){return t.length?C.combinedMatch(t):null}}),x=s.r$.define({combine:function(t){return t.length?t[0].match:null}});function S(t){return t.facet(w)||t.facet(x)}var A=function(){function t(e,n,r,i){c(this,t),this.tags=e,this.mode=n,this.context=r,this.next=i}return d(t,[{key:"sort",value:function(t){return!t||t.depththis.at&&(this.at=t),this.class=e)}},{key:"flush",value:function(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}},{key:"highlightRange",value:function(t,e,n,i,o,s){var a=t.type,u=t.from,l=t.to;if(!(u>=n||l<=e)){T[o]=a.name,a.isTop&&(s=a);for(var c=i,f=a.prop(b),d=!1;f;){if(!f.context||R(f.context,T,o)){var v,p=h(f.tags);try{for(p.s();!(v=p.n()).done;){var g=v.value,m=this.style(g,s);m&&(c&&(c+=" "),c+=m,1==f.mode?i+=(i?" ":"")+m:0==f.mode&&(d=!0))}}catch(M){p.e(M)}finally{p.f()}break}f=f.next}if(this.startSpan(t.from,c),!d){var y=t.tree&&t.tree.prop(r.md.mounted);if(y&&y.overlay){for(var k=t.node.enter(y.overlay[0].from+u,1),w=t.firstChild(),x=0,S=u;;x++){var A=xS&&w)for(;t.from=C)&&t.nextSibling()););if(!A)break;this.highlightRange(k.cursor,A.from+u,A.to+u,i,o,y.tree.type),S=A.to+u,this.startSpan(S,c)}w&&t.parent()}else if(t.firstChild()){do{if(!(t.to<=e)){if(t.from>=n)break;this.highlightRange(t,e,n,i,o+1,s),this.startSpan(Math.min(n,t.to),c)}}while(t.nextSibling());t.parent()}}}}}]),t}();function E(t,e,n,r,i){var o=new D(e,r,i);o.highlightRange(t.cursor(),e,n,"",0,t.type),o.flush(n)}function R(t,e,n){if(t.length>n-1)return!1;for(var r=n-1,i=t.length-1;i>=0;i--,r--){var o=t[i];if(o&&o!=e[r])return!1}return!0}var P=p.define,L=P(),B=P(),I=P(B),N=P(),j=P(N),V=P(N),_=P(),H=P(_),z=P(),q=P(),W=P(),F=P(W),$=P(),U={comment:L,lineComment:P(L),blockComment:P(L),docComment:P(L),name:B,variableName:P(B),typeName:I,tagName:P(I),propertyName:P(B),className:P(B),labelName:P(B),namespace:P(B),macroName:P(B),literal:N,string:j,docString:P(j),character:P(j),number:V,integer:P(V),float:P(V),bool:P(N),regexp:P(N),escape:P(N),color:P(N),url:P(N),keyword:z,self:P(z),null:P(z),atom:P(z),unit:P(z),modifier:P(z),operatorKeyword:P(z),controlKeyword:P(z),definitionKeyword:P(z),operator:q,derefOperator:P(q),arithmeticOperator:P(q),logicOperator:P(q),bitwiseOperator:P(q),compareOperator:P(q),updateOperator:P(q),definitionOperator:P(q),typeOperator:P(q),controlOperator:P(q),punctuation:W,separator:P(W),bracket:F,angleBracket:P(F),squareBracket:P(F),paren:P(F),brace:P(F),content:_,heading:H,heading1:P(H),heading2:P(H),heading3:P(H),heading4:P(H),heading5:P(H),heading6:P(H),contentSeparator:P(_),list:P(_),quote:P(_),emphasis:P(_),strong:P(_),link:P(_),monospace:P(_),strikethrough:P(_),inserted:P(),deleted:P(),changed:P(),invalid:P(),meta:$,documentMeta:P($),annotation:P($),processingInstruction:P($),definition:p.defineModifier(),constant:p.defineModifier(),function:p.defineModifier(),standard:p.defineModifier(),local:p.defineModifier(),special:p.defineModifier()};U.link,U.heading,U.emphasis,U.strong,U.strikethrough,U.keyword,U.atom,U.bool,U.url,U.contentSeparator,U.labelName,U.literal,U.inserted,U.string,U.deleted,U.regexp,U.escape,U.string,U.variableName,U.variableName,U.typeName,U.namespace,U.className,U.variableName,U.macroName,U.propertyName,U.comment,U.meta,U.invalid,U.link,U.heading,U.emphasis,U.strong,U.keyword,U.atom,U.bool,U.url,U.labelName,U.inserted,U.deleted,U.literal,U.string,U.number,U.regexp,U.escape,U.string,U.variableName,U.variableName,U.variableName,U.variableName,U.typeName,U.namespace,U.macroName,U.propertyName,U.operator,U.comment,U.meta,U.invalid,U.punctuation},62118:function(t,e,n){"use strict";n.d(e,{m8:function(){return p},f$:function(){return E}});var r=n(77885),i=n(19753);function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{};return[v,d.of(t),i.tk.domEventHandlers({beforeinput:function(t,e){return"historyUndo"==t.inputType?m(e):"historyRedo"==t.inputType&&y(e)}})]}function g(t,e){return function(n){var r=n.state,i=n.dispatch,o=r.field(v,!1);if(!o)return!1;var s=o.pop(t,r,e);return!!s&&(i(s),!0)}}var m=g(0,!1),y=g(1,!1),k=g(0,!0),b=g(1,!0);var w=function(){function t(e,n,r,i,o){a(this,t),this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return h(t,[{key:"setSelAfter",value:function(e){return new t(this.changes,this.effects,this.mapped,this.startSelection,e)}},{key:"toJSON",value:function(){var t,e,n;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(t){return t.toJSON()}))}}}],[{key:"fromJSON",value:function(e){return new t(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}},{key:"fromTransaction",value:function(e){var n,r=A,i=o(e.startState.facet(f));try{for(i.s();!(n=i.n()).done;){var s=(0,n.value)(e);s.length&&(r=r.concat(s))}}catch(a){i.e(a)}finally{i.f()}return!r.length&&e.changes.empty?null:new t(e.changes.invert(e.startState.doc),r,void 0,e.startState.selection,A)}},{key:"selection",value:function(e){return new t(void 0,A,void 0,void 0,e)}}]),t}();function x(t,e,n,r){var i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function S(t,e){return t.length?e.length?t.concat(e):t:e}var A=[];function C(t,e){if(t.length){var n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),x(t,t.length-1,1e9,n.setSelAfter(r)))}return[w.selection([e])]}function M(t){var e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function O(t,e){if(!t.length)return t;for(var n=t.length,r=A;n;){var i=T(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){var o=t.slice(0,n);return o[n-1]=i,o}e=i.mapped,n--,r=i.selectionsAfter}return r.length?[w.selection(r)]:A}function T(t,e,n){var i=S(t.selectionsAfter.length?t.selectionsAfter.map((function(t){return t.map(e)})):A,n);if(!t.changes)return w.selection(i);var o=t.changes.map(e),s=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(s):s;return new w(o,r.Py.mapEffects(t.effects,e),a,t.startSelection.map(s),i)}var D=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;a(this,t),this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return h(t,[{key:"isolate",value:function(){return this.prevTime?new t(this.done,this.undone):this}},{key:"addChanges",value:function(e,n,r,i,o){var s=this.done,a=s[s.length-1];return new t(s=a&&a.changes&&!a.changes.empty&&e.changes&&(!a.selectionsAfter.length&&n-this.prevTime=a&&i<=u&&(r=!0)}})),r}(a.changes,e.changes)||"input.type.compose"==r)?x(s,s.length-1,o,new w(e.changes.compose(a.changes),S(e.effects,a.effects),a.mapped,a.startSelection,A)):x(s,s.length,o,e),A,n,r)}},{key:"addSelection",value:function(e,n,r,i){var o,s,a=this.done.length?this.done[this.done.length-1].selectionsAfter:A;return a.length>0&&n-this.prevTime=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:[];p(this,t),this.data=e,this.topNode=r,i.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(i.yy.prototype,"tree",{get:function(){return x(this)}}),this.parser=n,this.extension=[R.of(this),i.yy.languageData.of((function(t,e,n){return t.facet(w(t,e,n))}))].concat(o)}return m(t,[{key:"isActiveAt",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;return w(t,e,n)==this.data}},{key:"findRegions",value:function(t){var e=this,n=t.facet(R);if((null==n?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];var i=[];return function t(n,o){if(n.prop(y)!=e.data){var s=n.prop(r.md.mounted);if(s){if(s.tree.prop(y)==e.data){if(s.overlay){var a,u=d(s.overlay);try{for(u.s();!(a=u.n()).done;){var h=a.value;i.push({from:h.from+o,to:h.to+o})}}catch(v){u.e(v)}finally{u.f()}}else i.push({from:o,to:o+n.length});return}if(s.overlay){var l=i.length;if(t(s.tree,s.overlay[0].from+o),i.length>l)return}}for(var c=0;c1&&void 0!==arguments[1]?arguments[1]:e.length;p(this,t),this.doc=e,this.length=n,this.cursorPos=0,this.string="",this.cursor=e.iter()}return m(t,[{key:"syncTo",value:function(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}},{key:"chunk",value:function(t){return this.syncTo(t),this.string}},{key:"lineChunks",get:function(){return!0}},{key:"read",value:function(t,e){var n=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-n,e-n)}}]),t}(),A=null,C=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0;p(this,t),this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=s,this.skipped=a,this.scheduleOn=u,this.parse=null,this.tempSkipped=[]}return m(t,[{key:"startParse",value:function(){return this.parser.startParse(new S(this.state.doc),this.fragments)}},{key:"work",value:function(t,e){var n=this;return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=r.mp.empty&&(null==e?this.treeLen==this.state.doc.length:this.treeLen>=e)?(this.takeTree(),!0):this.withContext((function(){var i;n.parse||(n.parse=n.startParse()),null!=e&&(null==n.parse.stoppedAt||n.parse.stoppedAt>e)&&eo)return!1}}))}},{key:"takeTree",value:function(){var t,e,n=this;this.parse&&(t=this.parse.parsedPos)>this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext((function(){for(;!(e=n.parse.advance()););})),this.tree=e,this.fragments=this.withoutTempSkipped(r.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}},{key:"withContext",value:function(t){var e=A;A=this;try{return t()}finally{A=e}}},{key:"withoutTempSkipped",value:function(t){for(var e;e=this.tempSkipped.pop();)t=M(t,e.from,e.to);return t}},{key:"changes",value:function(e,n){var i=this.fragments,o=this.tree,s=this.treeLen,a=this.viewport,u=this.skipped;if(this.takeTree(),!e.empty){var h=[];if(e.iterChangedRanges((function(t,e,n,r){return h.push({fromA:t,toA:e,fromB:n,toB:r})})),i=r.i9.applyChanges(i,h),o=r.mp.empty,s=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){u=[];var l,c=d(this.skipped);try{for(c.s();!(l=c.n()).done;){var f=l.value,v=e.mapPos(f.from,1),p=e.mapPos(f.to,-1);vt.from&&(this.fragments=M(this.fragments,i,o),this.skipped.splice(n--,1))}return this.skipped.length=t}}],[{key:"getSkippingParser",value:function(t){return new(function(e){u(i,e);var n=l(i);function i(){return p(this,i),n.apply(this,arguments)}return m(i,[{key:"createParse",value:function(e,n,i){var o=i[0].from,s=i[i.length-1].to;return{parsedPos:o,advance:function(){var e=A;if(e){var n,a=d(i);try{for(a.s();!(n=a.n()).done;){var u=n.value;e.tempSkipped.push(u)}}catch(h){a.e(h)}finally{a.f()}t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=s,new r.mp(r.Jq.none,[],[],s-o)},stoppedAt:null,stopAt:function(){}}}}]),i}(r._b))}},{key:"get",value:function(){return A}}]),t}();function M(t,e,n){return r.i9.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}var O=function(){function t(e){p(this,t),this.context=e,this.tree=e.tree}return m(t,[{key:"apply",value:function(e){if(!e.docChanged)return this;var n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(25,r)||n.takeTree(),new t(n)}}],[{key:"init",value:function(e){var n=new C(e.facet(R).parser,e,[],r.mp.empty,0,{from:0,to:e.doc.length},[],null);return n.work(25)||n.takeTree(),new t(n)}}]),t}();b.state=i.QQ.define({create:O.init,update:function(t,e){var n,r=d(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is(b.setState))return i.value}}catch(o){r.e(o)}finally{r.f()}return e.startState.facet(R)!=e.state.facet(R)?O.init(e.state):t.apply(e)}});var T="undefined"!=typeof window&&window.requestIdleCallback||function(t,e){var n=e.timeout;return setTimeout(t,n)},D="undefined"!=typeof window&&window.cancelIdleCallback||clearTimeout,E=o.lg.fromClass(function(){function t(e){p(this,t),this.view=e,this.working=-1,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}return m(t,[{key:"update",value:function(t){var e=this.view.state.field(b.state).context;t.viewportChanged&&(e.updateViewport(t.view.viewport)&&e.reset(),this.view.viewport.to>e.treeLen&&this.scheduleWork()),t.docChanged&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}},{key:"scheduleWork",value:function(){if(!(this.working>-1)){var t=this.view.state,e=t.field(b.state),n=e.context.fragments;e.tree==e.context.tree&&e.context.treeLen>=t.doc.length&&n.length&&0==n[0].from&&n[0].to>=t.doc.length||(this.working=T(this.work,{timeout:500}))}}},{key:"work",value:function(t){this.working=-1;var e=Date.now();if(this.chunkEnd=i+1e6)){var s=Math.min(this.chunkBudget,t?Math.max(25,t.timeRemaining()):100),a=o.context.work(s,i+1e6);this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0||o.context.movedPast(i))&&(o.context.takeTree(),this.view.dispatch({effects:b.setState.of(new O(o.context))})),!a&&this.chunkBudget>0&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}}}},{key:"checkAsyncSchedule",value:function(t){var e=this;t.scheduleOn&&(t.scheduleOn.then((function(){return e.scheduleWork()})),t.scheduleOn=null)}},{key:"destroy",value:function(){this.working>=0&&D(this.working)}}]),t}(),{eventHandlers:{focus:function(){this.scheduleWork()}}}),R=i.r$.define({combine:function(t){return t.length?t[0]:null},enables:[b.state,E]}),P=i.r$.define(),L=i.r$.define({combine:function(t){if(!t.length)return" ";if(!/^(?: +|\t+)$/.test(t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return t[0]}});function B(t){var e=t.facet(L);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function I(t,e){var n="",r=t.tabSize;if(9==t.facet(L).charCodeAt(0))for(;e>=r;)n+="\t",e-=r;for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};p(this,t),this.state=e,this.options=n,this.unit=B(e)}return m(t,[{key:"lineAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(t),r=this.options.simulateBreak;return null!=r&&r>=n.from&&r<=n.to?(e<0?r1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";var n=this.lineAt(t,e),r=n.text,i=n.from;return r.slice(t-i,Math.min(r.length,t+100-i))}},{key:"column",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(t,e),r=n.text,i=n.from,o=this.countColumn(r,t-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(o+=s-this.countColumn(r,r.search(/\S|$/))),o}},{key:"countColumn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.length;return(0,s.IS)(t,this.state.tabSize,e)}},{key:"lineIndent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.lineAt(t,e),r=n.text,i=n.from,o=this.options.overrideIndentation;if(o){var s=o(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}},{key:"simulatedBreak",get:function(){return this.options.simulateBreak||null}}]),t}(),V=new r.md;function _(t){var e=t.type.prop(V);if(e)return e;var n,i=t.firstChild;if(i&&(n=i.type.prop(r.md.closedBy))){var o=t.lastChild,s=o&&n.indexOf(o.name)>-1;return function(t){return F(t,!0,1,void 0,s&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(t)?o.from:void 0)}}return null==t.parent?z:null}function H(t,e,n){for(;t;t=t.parent){var r=_(t);if(r)return r(new q(n,e,t))}return null}function z(){return 0}var q=function(t){u(n,t);var e=l(n);function n(t,r,i){var o;return p(this,n),(o=e.call(this,t.state,t.options)).base=t,o.pos=r,o.node=i,o}return m(n,[{key:"textAfter",get:function(){return this.textAfterPos(this.pos)}},{key:"baseIndent",get:function(){for(var t=this.state.doc.lineAt(this.node.from);;){for(var e=this.node.resolve(t.from);e.parent&&e.parent.from==e.from;)e=e.parent;if(W(e,this.node))break;t=this.state.doc.lineAt(e.from)}return this.lineIndent(t.from)}},{key:"continue",value:function(){var t=this.node.parent;return t?H(t,this.pos,this.base):0}}]),n}(j);function W(t,e){for(var n=e;n;n=n.parent)if(t==n)return!0;return!1}function F(t,e,n,r,i){var o=t.textAfter,s=o.match(/^\s*/)[0].length,a=r&&o.slice(s,s+r.length)==r||i==t.pos+s,u=e?function(t){var e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;for(var i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),s=null==i||i<=o.from?o.to:Math.min(o.to,i),a=n.to;;){var u=e.childAfter(a);if(!u||u==r)return null;if(!u.type.isSkipped)return u.from!?|~^]/,o=/^[:\[\(\{]/,s=["true","false"],a=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function u(t,e){var n=t.peek();if(e.incomment)return t.skipTo("#}")?(t.eatWhile(/\#|}/),e.incomment=!1):t.skipToEnd(),"comment";if(e.intag){if(e.operator){if(e.operator=!1,t.match(s))return"atom";if(t.match(a))return"number"}if(e.sign){if(e.sign=!1,t.match(s))return"atom";if(t.match(a))return"number"}if(e.instring)return n==e.instring&&(e.instring=!1),t.next(),"string";if("'"==n||'"'==n)return e.instring=n,t.next(),"string";if(t.match(e.intag+"}")||t.eat("-")&&t.match(e.intag+"}"))return e.intag=!1,"tag";if(t.match(i))return e.operator=!0,"operator";if(t.match(o))e.sign=!0;else if(t.eat(" ")||t.sol()){if(t.match(r))return"keyword";if(t.match(s))return"atom";if(t.match(a))return"number";t.sol()&&t.next()}else t.next();return"variable"}if(t.eat("{")){if(t.eat("#"))return e.incomment=!0,t.skipTo("#}")?(t.eatWhile(/\#|}/),e.incomment=!1):t.skipToEnd(),"comment";if(n=t.eat(/\{|%/))return e.intag=n,"{"==n&&(e.intag="}"),t.eat("-"),"tag"}t.next()}r=new RegExp("(("+r.join(")|(")+"))\\b"),s=new RegExp("(("+s.join(")|(")+"))\\b");var h={startState:function(){return{tokenize:u}},token:function(t,e){return e.tokenize(t,e)},languageData:{commentTokens:{block:{open:"{#",close:"#}"}}}}},8987:function(t,e,n){"use strict";n.d(e,{r:function(){return i}});var r=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i"),i={token:function(t,e){var n=t.peek(),i=e.escaped;if(e.escaped=!1,"#"==n&&(0==t.pos||/\s/.test(t.string.charAt(t.pos-1))))return t.skipToEnd(),"comment";if(t.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(e.literal&&t.indentation()>e.keyCol)return t.skipToEnd(),"string";if(e.literal&&(e.literal=!1),t.sol()){if(e.keyCol=0,e.pair=!1,e.pairStart=!1,t.match("---"))return"def";if(t.match("..."))return"def";if(t.match(/^\s*-\s+/))return"meta"}if(t.match(/^(\{|\}|\[|\])/))return"{"==n?e.inlinePairs++:"}"==n?e.inlinePairs--:"["==n?e.inlineList++:e.inlineList--,"meta";if(e.inlineList>0&&!i&&","==n)return t.next(),"meta";if(e.inlinePairs>0&&!i&&","==n)return e.keyCol=0,e.pair=!1,e.pairStart=!1,t.next(),"meta";if(e.pairStart){if(t.match(/^\s*(\||\>)\s*/))return e.literal=!0,"meta";if(t.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==e.inlinePairs&&t.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(e.inlinePairs>0&&t.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(t.match(r))return"keyword"}return!e.pair&&t.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(e.pair=!0,e.keyCol=t.indentation(),"atom"):e.pair&&t.match(/^:\s*/)?(e.pairStart=!0,"meta"):(e.pairStart=!1,e.escaped="\\"==n,t.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}}},13764:function(t,e,n){"use strict";n.d(e,{Xs:function(){return d},f_:function(){return p},uU:function(){return h}});var r=n(77885);function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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 s,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:t;return new l(t,e,this)}}]),t}();h.prototype.startSide=h.prototype.endSide=0,h.prototype.point=!1,h.prototype.mapMode=r.gc.TrackDel;var l=function t(e,n,r){s(this,t),this.from=e,this.to=n,this.value=r};function c(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}var f=function(){function t(e,n,r,i){s(this,t),this.from=e,this.to=n,this.value=r,this.maxPoint=i}return u(t,[{key:"length",get:function(){return this.to[this.to.length-1]}},{key:"findIndex",value:function(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from,o=r,s=i.length;;){if(o==s)return o;var a=o+s>>1,u=i[a]-t||(n?this.value[a].endSide:this.value[a].startSide)-e;if(a==o)return u>=0?o:s;u>=0?s=a:o=a+1}}},{key:"between",value:function(t,e,n,r){for(var i=this.findIndex(e,-1e9,!0),o=this.findIndex(n,1e9,!1,i);i(d=n.mapPos(c,h.endSide))||f==d&&h.startSide>0&&h.endSide<=0)continue;(d-f||h.endSide-h.startSide)<0||(s<0&&(s=f),h.point&&(a=Math.max(a,d-f)),r.push(h),i.push(f-s),o.push(d-s))}return{mapped:r.length?new t(i,o,r,a):null,pos:s}}}]),t}(),d=function(){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.empty,i=arguments.length>3?arguments[3]:void 0;s(this,t),this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}return u(t,[{key:"length",get:function(){var t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}},{key:"size",get:function(){if(this.isEmpty)return 0;var t,e=this.nextLayer.size,n=i(this.chunk);try{for(n.s();!(t=n.n()).done;){e+=t.value.value.length}}catch(r){n.e(r)}finally{n.f()}return e}},{key:"chunkEnd",value:function(t){return this.chunkPos[t]+this.chunk[t].length}},{key:"update",value:function(e){var n=e.add,r=void 0===n?[]:n,i=e.sort,o=void 0!==i&&i,s=e.filterFrom,a=void 0===s?0:s,u=e.filterTo,h=void 0===u?this.length:u,f=e.filter;if(0==r.length&&!f)return this;if(o&&r.slice().sort(c),this.isEmpty)return r.length?t.of(r):this;for(var d=new m(this,null,-1).goto(0),v=0,g=[],y=new p;d.value||v=0){var k=r[v++];y.addInner(k.from,k.to,k.value)||g.push(k)}else 1==d.rangeIndex&&d.chunkIndexthis.chunkEnd(d.chunkIndex)||hd.to||h=i&&t<=i+o.length&&!1===o.between(i,t-i,e-i,n))return}this.nextLayer.between(t,e,n)}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return y.from([this]).goto(t)}},{key:"isEmpty",get:function(){return this.nextLayer==this}}],[{key:"iter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return y.from(t).goto(e)}},{key:"compare",value:function(t,e,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=t.filter((function(t){return t.maxPoint>=500||!t.isEmpty&&e.indexOf(t)<0&&t.maxPoint>=i})),s=e.filter((function(e){return e.maxPoint>=500||!e.isEmpty&&t.indexOf(e)<0&&e.maxPoint>=i})),a=g(o,s),u=new b(o,a,i),h=new b(s,a,i);n.iterGaps((function(t,e,n){return w(u,t,h,e,n,r)})),n.empty&&0==n.length&&w(u,0,h,0,0,r)}},{key:"eq",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=1e9);var i=t.filter((function(t){return!t.isEmpty&&e.indexOf(t)<0})),o=e.filter((function(e){return!e.isEmpty&&t.indexOf(e)<0}));if(i.length!=o.length)return!1;if(!i.length)return!0;for(var s=g(i,o),a=new b(i,s,0).goto(n),u=new b(o,s,0).goto(n);;){if(a.to!=u.to||!x(a.active,u.active)||a.point&&(!u.point||!a.point.eq(u.point)))return!1;if(a.to>=r)return!0;a.next(),u.next()}}},{key:"spans",value:function(t,e,n,r){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=new b(t,null,i).goto(e),s=e,a=o.openStart;;){var u=Math.min(o.to,n);if(o.point?(r.point(s,u,o.point,o.activeForPoint(o.to),a),a=o.openEnd(u)+(o.to>u?1:0)):u>s&&(r.span(s,u,o.active,a),a=o.openEnd(u)),o.to>n)break;s=o.to,o.next()}return a}},{key:"of",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=new p,o=i(t instanceof l?[t]:n?v(t):t);try{for(o.s();!(e=o.n()).done;){var s=e.value;r.add(s.from,s.to,s.value)}}catch(a){o.e(a)}finally{o.f()}return r.finish()}}]),t}();function v(t){if(t.length>1)for(var e=t[0],n=1;n0)return t.slice().sort(c);e=r}return t}d.empty=new d([],[],null,-1),d.empty.nextLayer=d.empty;var p=function(){function t(){s(this,t),this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}return u(t,[{key:"finishChunk",value:function(t){this.chunks.push(new f(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}},{key:"add",value:function(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new t)).add(e,n,r)}},{key:"addInner",value:function(t,e,n){var r=t-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=n,this.lastFrom=t,this.lastTo=e,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}},{key:"addChunk",value:function(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);var n=e.value.length-1;return this.last=e.value[n],this.lastFrom=e.from[n]+t,this.lastTo=e.to[n]+t,!0}},{key:"finish",value:function(){return this.finishInner(d.empty)}},{key:"finishInner",value:function(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;var e=new d(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}]),t}();function g(t,e){var n,r=new Map,o=i(t);try{for(o.s();!(n=o.n()).done;)for(var s=n.value,a=0;a3&&void 0!==arguments[3]?arguments[3]:0;s(this,t),this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}return u(t,[{key:"startSide",get:function(){return this.value?this.value.startSide:0}},{key:"endSide",get:function(){return this.value?this.value.endSide:0}},{key:"goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}},{key:"gotoInner",value:function(t,e,n){for(;this.chunkIndex=this.minPoint)break}}},{key:"setRangeIndex",value:function(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:-1e9,r=i(this.heap);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.goto(t,n)}}catch(a){r.e(a)}finally{r.f()}for(var s=this.heap.length>>1;s>=0;s--)k(this.heap,s);return this.next(),this}},{key:"forward",value:function(t,e){var n,r=i(this.heap);try{for(r.s();!(n=r.n()).done;){n.value.forward(t,e)}}catch(s){r.e(s)}finally{r.f()}for(var o=this.heap.length>>1;o>=0;o--)k(this.heap,o);(this.to-t||this.value.endSide-e)<0&&this.next()}},{key:"next",value:function(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{var t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),k(this.heap,0)}}}],[{key:"from",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],o=0;o=r&&i.push(new m(s,n,r,o));return 1==i.length?i[0]:new t(i)}}]),t}();function k(t,e){for(var n=t[e];;){var r=1+(e<<1);if(r>=t.length)break;var i=t[r];if(r+1=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}var b=function(){function t(e,n,r){s(this,t),this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=y.from(e,n,r)}return u(t,[{key:"goto",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}},{key:"forward",value:function(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}},{key:"removeActive",value:function(t){S(this.active,t),S(this.activeTo,t),S(this.activeRank,t),this.minActive=C(this.active,this.activeTo)}},{key:"addActive",value:function(t){for(var e=0,n=this.cursor,r=n.value,i=n.to,o=n.rank;e-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&S(n,i)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}var o=this.cursor.value;if(o.point){if(!(e&&this.cursor.to==this.to&&this.cursor.fromt&&this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(n),this.cursor.next()}}if(n){for(var s=0;s=0&&!(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)&&e.push(this.active[n]);return e.reverse()}},{key:"openEnd",value:function(t){for(var e=0,n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}]),t}();function w(t,e,n,r,i,o){t.goto(e),n.goto(r);for(var s=r+i,a=r,u=r-e;;){var h=t.to+u-n.to||t.endSide-n.endSide,l=h<0?t.to+u:n.to,c=Math.min(l,s);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&x(t.activeForPoint(t.to+u),n.activeForPoint(n.to))||o.comparePoint(a,c,t.point,n.point):c>a&&!x(t.active,n.active)&&o.compareRange(a,c,t.active,n.active),l>s)break;a=l,h<=0&&t.next(),h>=0&&n.next()}}function x(t,e){if(t.length!=e.length)return!1;for(var n=0;n=e;r--)t[r+1]=t[r];t[e]=n}function C(t,e){for(var n=-1,r=1e9,i=0;is?-1:i==r.length?function(t,e){var n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}(t,e.clientX):(0,o.IS)(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function u(t,e){var n=a(t,e),i=t.state.selection;return n?{update:function(t){if(t.docChanged){var e=t.changes.mapPos(t.startState.doc.line(n.line).from),r=t.state.doc.lineAt(e);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(t.changes)}},get:function(e,u,h){var l=a(t,e);if(!l)return i;var c=function(t,e,n){var i=Math.min(e.line,n.line),a=Math.max(e.line,n.line),u=[];if(e.off>s||n.off>s||e.col<0||n.col<0)for(var h=Math.min(e.off,n.off),l=Math.max(e.off,n.off),c=i;c<=a;c++){var f=t.doc.line(c);f.length<=l&&u.push(r.jT.range(f.from+h,f.to+l))}else for(var d=Math.min(e.col,n.col),v=Math.max(e.col,n.col),p=i;p<=a;p++){var g=t.doc.line(p),m=(0,o.Gz)(g.text,d,t.tabSize),y=(0,o.Gz)(g.text,v,t.tabSize);m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n-1?n.panels[r]:null}var f=r.lg.fromClass(function(){function t(e){o(this,t),this.input=e.state.facet(g),this.specs=this.input.filter((function(t){return t})),this.panels=this.specs.map((function(t){return t(e)}));var n=e.state.facet(l);this.top=new d(e,!0,n.topContainer),this.bottom=new d(e,!1,n.bottomContainer),this.top.sync(this.panels.filter((function(t){return t.top}))),this.bottom.sync(this.panels.filter((function(t){return!t.top})));var r,i=u(this.panels);try{for(i.s();!(r=i.n()).done;){var s=r.value;s.dom.classList.add("cm-panel"),s.mount&&s.mount()}}catch(a){i.e(a)}finally{i.f()}}return a(t,[{key:"update",value:function(t){var e=t.state.facet(l);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new d(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new d(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();var n=t.state.facet(g);if(n!=this.input){var r,i=n.filter((function(t){return t})),o=[],s=[],a=[],h=[],c=u(i);try{for(c.s();!(r=c.n()).done;){var f=r.value,v=this.specs.indexOf(f),p=void 0;v<0?(p=f(t.view),h.push(p)):(p=this.panels[v]).update&&p.update(t),o.push(p),(p.top?s:a).push(p)}}catch(S){c.e(S)}finally{c.f()}this.specs=i,this.panels=o,this.top.sync(s),this.bottom.sync(a);for(var m=0,y=h;m=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(u){a=!0,i=u}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||E(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){if(t){if("string"==typeof t)return R(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(t,e):void 0}}function R(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,o=arguments.length>4?arguments[4]:void 0;P(this,t),this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?function(t){return o(I(t))}:I,this.query=this.normalize(n)}return B(t,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,w.gm)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var t=this.peek();if(t<0)return this.done=!0,this;var e=(0,w.bg)(t),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,w.nZ)(t);for(var r=this.normalize(e),i=0,o=n;;i++){var s=r.charCodeAt(i),a=this.match(s,o);if(a)return this.value=a,this;if(i==r.length-1)break;o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(P(this,t),this.to=o,this.curLine="",this.done=!1,this.value=j,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new q(e,n,r,i,o);this.re=new RegExp(n,V+((null==r?void 0:r.ignoreCase)?"i":"")),this.iter=e.iter();var s=e.lineAt(i);this.curLineStart=s.from,this.matchPos=i,this.getLine(this.curLineStart)}return B(t,[{key:"getLine",value:function(t){this.iter.next(t),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;var e=this.matchPos<=this.to&&this.re.exec(this.curLine);if(e){var n=this.curLineStart+e.index,r=n+e[0].length;if(this.matchPos=r+(n==r?1:0),n==this.curLine.length&&this.nextLine(),nthis.value.to)return this.value={from:n,to:r,match:e},this;t=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=r||i.to<=n){var o=new t(n,e.sliceString(n,r));return H.set(e,o),o}if(i.from==n&&i.to==r)return i;var s=i.text,a=i.from;return a>n&&(s=e.sliceString(n,a)+s,a=n),i.to=this.to?this.to:this.text.lineAt(t).to}},{key:"next",value:function(){for(;;){var t=this.re.lastIndex=this.matchPos-this.flat.from,e=this.re.exec(this.flat.text);if(e&&!e[0]&&e.index==t&&(this.re.lastIndex=t+1,e=this.re.exec(this.flat.text)),e&&this.flat.tothis.flat.text.length-10&&(e=null),e){var n=this.flat.from+e.index,r=n+e[0].length;return this.value={from:n,to:r,match:e},this.matchPos=r+(n==r?1:0),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=z.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),t}();function W(t){var e=k("input",{class:"cm-textfield",name:"line"});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(e.value);if(n){var r=t.state,o=r.doc.lineAt(r.selection.main.head),s=D(n,5),a=s[1],u=s[2],h=s[3],l=s[4],c=h?+h.slice(1):0,f=u?+u:o.number;if(u&&l){var d=f/100;a&&(d=d*("-"==a?-1:1)+o.number/r.doc.lines),f=Math.round(r.doc.lines*d)}else u&&a&&(f=f*("-"==a?-1:1)+o.number);var v=r.doc.line(Math.max(1,Math.min(r.doc.lines,f)));t.dispatch({effects:F.of(!1),selection:i.jT.cursor(v.from+Math.max(0,Math.min(c,v.length))),scrollIntoView:!0}),t.focus()}}return{dom:k("form",{class:"cm-gotoLine",onkeydown:function(e){27==e.keyCode?(e.preventDefault(),t.dispatch({effects:F.of(!1)}),t.focus()):13==e.keyCode&&(e.preventDefault(),n())},onsubmit:function(t){t.preventDefault(),n()}},k("label",t.state.phrase("Go to line"),": ",e)," ",k("button",{class:"cm-button",type:"submit"},t.state.phrase("go"))),pos:-10}}var F=i.Py.define(),$=i.QQ.define({create:function(){return!0},update:function(t,e){var n,r=T(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(F)&&(t=i.value)}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t?W:null}))}}),U=r.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),G={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100},K=i.r$.define({combine:function(t){return(0,i.BO)(t,G,{highlightWordAroundCursor:function(t,e){return t||e},minSelectionLength:Math.min,maxMatches:Math.min})}});function J(t){var e=[Z,Y];return t&&e.push(K.of(t)),e}var X=r.p.mark({class:"cm-selectionMatch"}),Q=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"}),Y=r.lg.fromClass(function(){function t(e){P(this,t),this.decorations=this.getDeco(e)}return B(t,[{key:"update",value:function(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}},{key:"getDeco",value:function(t){var e=t.state.facet(K),n=t.state,o=n.selection;if(o.ranges.length>1)return r.p.none;var s,a=o.main,u=null;if(a.empty){if(!e.highlightWordAroundCursor)return r.p.none;var h=n.wordAt(a.head);if(!h)return r.p.none;u=n.charCategorizer(a.head),s=n.sliceDoc(h.from,h.to)}else{var l=a.to-a.from;if(l200)return r.p.none;if(!(s=n.sliceDoc(a.from,a.to).trim()))return r.p.none}var c,f=[],d=T(t.visibleRanges);try{for(d.s();!(c=d.n()).done;)for(var v=c.value,p=new N(n.doc,s,v.from,v.to);!p.nextOverlapping().done;){var g=p.value,m=g.from,y=g.to;if((!u||(0==m||u(n.sliceDoc(m-1,m))!=i.D0.Word)&&(y==n.doc.length||u(n.sliceDoc(y,y+1))!=i.D0.Word))&&(u&&m<=a.from&&y>=a.to?f.push(Q.range(m,y)):(m>=a.to||y<=a.from)&&f.push(X.range(m,y)),f.length>e.maxMatches))return r.p.none}}catch(k){d.e(k)}finally{d.f()}return r.p.set(f)}}]),t}(),{decorations:function(t){return t.decorations}}),Z=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var tt=i.r$.define({combine:function(t){return{top:t.some((function(t){return t.top}))}}});var et=function(){function t(e,n,r){P(this,t),this.search=e,this.replace=n,this.caseInsensitive=r}return B(t,[{key:"eq",value:function(t){return this.search==t.search&&this.replace==t.replace&&this.caseInsensitive==t.caseInsensitive&&this.constructor==t.constructor}}]),t}(),nt=function(t){S(n,t);var e=C(n);function n(t,r,i){var o;return P(this,n),(o=e.call(this,t,r,i)).unquoted=t.replace(/\\([nrt\\])/g,(function(t,e){return"n"==e?"\n":"r"==e?"\r":"t"==e?"\t":"\\"})),o}return B(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new N(t,this.unquoted,e,n,this.caseInsensitive?function(t){return t.toLowerCase()}:void 0)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).nextOverlapping();return r.done&&(r=this.cursor(t,0,e).nextOverlapping()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=n;;){for(var i=Math.max(e,r-1e4-this.unquoted.length),o=this.cursor(t,i,r),s=null;!o.nextOverlapping().done;)s=o.value;if(s)return s;if(i==e)return null;r-=1e4}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace}},{key:"matchAll",value:function(t,e){for(var n=this.cursor(t),r=[];!n.next().done;){if(r.length>=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-this.unquoted.length),Math.min(n+this.unquoted.length,t.length));!i.next().done;)r(i.value.from,i.value.to)}},{key:"valid",get:function(){return!!this.search}}]),n}(et),rt=function(t){S(n,t);var e=C(n);function n(t,r,i){var o;return P(this,n),(o=e.call(this,t,r,i)).valid=!!t&&function(t){try{return new RegExp(t,V),!0}catch(e){return!1}}(t),o}return B(n,[{key:"cursor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length;return new _(t,this.search,this.caseInsensitive?{ignoreCase:!0}:void 0,e,n)}},{key:"nextMatch",value:function(t,e,n){var r=this.cursor(t,n).next();return r.done&&(r=this.cursor(t,0,e).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(t,e,n){for(var r=1;;r++){for(var i=Math.max(e,n-1e4*r),o=this.cursor(t,i,n),s=null;!o.next().done;)s=o.value;if(s&&(i==e||s.from>i+10))return s;if(i==e)return null}}},{key:"prevMatch",value:function(t,e,n){return this.prevMatchInRange(t,0,e)||this.prevMatchInRange(t,n,t.length)}},{key:"getReplacement",value:function(t){return this.replace.replace(/\$([$&\d+])/g,(function(e,n){return"$"==n?"$":"&"==n?t.match[0]:"0"!=n&&+n=e)return null;r.push(n.value)}return r}},{key:"highlight",value:function(t,e,n,r){for(var i=this.cursor(t,Math.max(0,e-250),Math.min(n+250,t.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(et),it=i.Py.define(),ot=i.Py.define(),st=i.QQ.define({create:function(t){return new at(yt(t),mt)},update:function(t,e){var n,r=T(e.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(it)?t=new at(i.value,t.panel):i.is(ot)&&(t=new at(t.query,i.value?mt:null))}}catch(o){r.e(o)}finally{r.f()}return t},provide:function(t){return g.from(t,(function(t){return t.panel}))}}),at=function t(e,n){P(this,t),this.query=e,this.panel=n},ut=r.p.mark({class:"cm-searchMatch"}),ht=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),lt=r.lg.fromClass(function(){function t(e){P(this,t),this.view=e,this.decorations=this.highlight(e.state.field(st))}return B(t,[{key:"update",value:function(t){var e=t.state.field(st);(e!=t.startState.field(st)||t.docChanged||t.selectionSet)&&(this.decorations=this.highlight(e))}},{key:"highlight",value:function(t){var e=t.query;if(!t.panel||!e.valid)return r.p.none;for(var n=this.view,i=new m.f_,o=0,s=n.visibleRanges,a=s.length;os[o+1].from-500;)l=s[++o].to;e.highlight(n.state.doc,h,l,(function(t,e){var r=n.state.selection.ranges.some((function(n){return n.from==t&&n.to==e}));i.add(t,e,r?ht:ut)}))}return i.finish()}}]),t}(),{decorations:function(t){return t.decorations}});function ct(t){return function(e){var n=e.state.field(st,!1);return n&&n.query.valid?t(e,n):kt(e)}}var ft=ct((function(t,e){var n=e.query,r=t.state.selection.main,i=r.from,o=r.to,s=n.nextMatch(t.state.doc,i,o);return!(!s||s.from==i&&s.to==o)&&(t.dispatch({selection:{anchor:s.from,head:s.to},scrollIntoView:!0,effects:At(t,s)}),!0)})),dt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,s=i.to,a=n.prevMatch(r.doc,o,s);return!!a&&(t.dispatch({selection:{anchor:a.from,head:a.to},scrollIntoView:!0,effects:At(t,a)}),!0)})),vt=ct((function(t,e){var n=e.query.matchAll(t.state.doc,1e3);return!(!n||!n.length)&&(t.dispatch({selection:i.jT.create(n.map((function(t){return i.jT.range(t.from,t.to)})))}),!0)})),pt=ct((function(t,e){var n=e.query,r=t.state,i=r.selection.main,o=i.from,s=i.to,a=n.nextMatch(r.doc,o,o);if(!a)return!1;var u,h,l=[];if(a.from==o&&a.to==s&&(h=r.toText(n.getReplacement(a)),l.push({from:a.from,to:a.to,insert:h}),a=n.nextMatch(r.doc,a.from,a.to)),a){var c=0==l.length||l[0].from>=a.to?0:a.to-a.from-h.length;u={anchor:a.from-c,head:a.to-c}}return t.dispatch({changes:l,selection:u,scrollIntoView:!!u,effects:a?At(t,a):void 0}),!0})),gt=ct((function(t,e){var n=e.query,r=n.matchAll(t.state.doc,1e9).map((function(t){return{from:t.from,to:t.to,insert:n.getReplacement(t)}}));return!!r.length&&(t.dispatch({changes:r}),!0)}));function mt(t){var e=t.state.field(st).query;return{dom:xt({view:t,query:e,updateQuery:function(n){e.eq(n)||(e=n,t.dispatch({effects:it.of(e)}))}}),mount:function(){this.dom.querySelector("[name=search]").select()},pos:80,top:t.state.facet(tt).top}}function yt(t,e){var n=t.selection.main,r=n.empty||n.to>n.from+100?"":t.sliceDoc(n.from,n.to);return e&&!r?e:new nt(r.replace(/\n/g,"\\n"),"",(null==e?void 0:e.caseInsensitive)||!1)}var kt=function(t){var e=t.state.field(st,!1);if(e&&e.panel){var n=c(t,mt);if(!n)return!1;n.dom.querySelector("[name=search]").focus()}else t.dispatch({effects:[ot.of(!0),e?it.of(yt(t.state,e.query)):i.Py.appendConfig.of(Mt)]});return!0},bt=function(t){var e=t.state.field(st,!1);if(!e||!e.panel)return!1;var n=c(t,mt);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:ot.of(!1)}),!0},wt=[{key:"Mod-f",run:kt,scope:"editor search-panel"},{key:"F3",run:ft,shift:dt,scope:"editor search-panel"},{key:"Mod-g",run:ft,shift:dt,scope:"editor search-panel"},{key:"Escape",run:bt,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(t){var e=t.state,n=t.dispatch,r=e.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var o=r.main,s=o.from,a=o.to,u=[],h=0,l=new N(e.doc,e.sliceDoc(s,a));!l.next().done;){if(u.length>1e3)return!1;l.value.from==s&&(h=u.length),u.push(i.jT.range(l.value.from,l.value.to))}return n(e.update({selection:i.jT.create(u,h)})),!0}},{key:"Alt-g",run:function(t){var e=c(t,W);if(!e){var n=[F.of(!0)];null==t.state.field($,!1)&&n.push(i.Py.appendConfig.of([$,U])),t.dispatch({effects:n}),e=c(t,W)}return e&&e.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(t){var e=t.state,n=t.dispatch,r=e.selection.ranges;if(r.some((function(t){return t.from===t.to})))return function(t){var e=t.state,n=t.dispatch,r=e.selection,o=i.jT.create(r.ranges.map((function(t){return e.wordAt(t.head)||i.jT.cursor(t.head)})),r.mainIndex);return!o.eq(r)&&(n(e.update({selection:o})),!0)}({state:e,dispatch:n});var o=e.sliceDoc(r[0].from,r[0].to);if(e.selection.ranges.some((function(t){return e.sliceDoc(t.from,t.to)!=o})))return!1;var s=function(t,e){var n=t.selection.ranges,r=new N(t.doc,e,n[n.length-1].to).next();if(!r.done)return r.value;for(var i=new N(t.doc,e,0,Math.max(0,n[n.length-1].from-1));!i.next().done;)if(!n.some((function(t){return t.from===i.value.from})))return i.value;return null}(e,o);return!!s&&(n(e.update({selection:e.selection.addRange(i.jT.range(s.from,s.to)),scrollIntoView:!0})),!0)},preventDefault:!0}];function xt(t){function e(e){return t.view.state.phrase(e)}var n=k("input",{value:t.query.search,placeholder:e("Find"),"aria-label":e("Find"),class:"cm-textfield",name:"search",onchange:a,onkeyup:a}),i=k("input",{value:t.query.replace,placeholder:e("Replace"),"aria-label":e("Replace"),class:"cm-textfield",name:"replace",onchange:a,onkeyup:a}),o=k("input",{type:"checkbox",name:"case",checked:!t.query.caseInsensitive,onchange:a}),s=k("input",{type:"checkbox",name:"re",checked:t.query instanceof rt,onchange:a});function a(){t.updateQuery(new(s.checked?rt:nt)(n.value,i.value,!o.checked))}function u(t,e,n){return k("button",{class:"cm-button",name:t,onclick:e},n)}return k("div",{onkeydown:function(e){(0,r.$1)(t.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==n?(e.preventDefault(),(e.shiftKey?dt:ft)(t.view)):13==e.keyCode&&e.target==i&&(e.preventDefault(),pt(t.view))},class:"cm-search"},[n,u("next",(function(){return ft(t.view)}),[e("next")]),u("prev",(function(){return dt(t.view)}),[e("previous")]),u("select",(function(){return vt(t.view)}),[e("all")]),k("label",null,[o,e("match case")]),k("label",null,[s,e("regexp")]),k("br"),i,u("replace",(function(){return pt(t.view)}),[e("replace")]),u("replaceAll",(function(){return gt(t.view)}),[e("replace all")]),k("button",{name:"close",onclick:function(){return bt(t.view)},"aria-label":e("close")},["×"])])}var St=/[\s\.,:;?!]/;function At(t,e){var n=e.from,i=e.to,o=t.state.doc.lineAt(n).from,s=t.state.doc.lineAt(i).to,a=Math.max(o,n-30),u=Math.min(s,i+30),h=t.state.sliceDoc(a,u);if(a!=o)for(var l=0;l<30;l++)if(!St.test(h[l+1])&&St.test(h[l])){h=h.slice(l);break}if(u!=s)for(var c=h.length-1;c>h.length-30;c--)if(!St.test(h[c-1])&&St.test(h[c])){h=h.slice(0,c);break}return r.tk.announce.of("".concat(t.state.phrase("current match"),". ").concat(h," ").concat(t.state.phrase("on line")," ").concat(t.state.doc.lineAt(n).number))}var Ct=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Mt=[st,i.Wl.fallback(lt),Ct]},77885:function(t,e,n){"use strict";n.d(e,{q6:function(){return Y},n0:function(){return g},as:function(){return m},D0:function(){return lt},F6:function(){return z},jT:function(){return C},yy:function(){return dt},r$:function(){return D},gc:function(){return p},Wl:function(){return _},Py:function(){return et},QQ:function(){return B},YW:function(){return nt},BO:function(){return vt}});var r=n(23414);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return s(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"invertedDesc",get:function(){for(var e=[],n=0;n1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e)}},{key:"mapPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.Simple,r=0,i=0,o=0;ot)return i+(t-r);i+=s}else{if(n!=p.Simple&&u>=t&&(n==p.TrackDel&&rt||n==p.TrackBefore&&rt))return null;if(u>t||u==t&&e<0&&!s)return t==r||e<0?i:i+a;i+=a}r=u}if(t>r)throw new RangeError("Position ".concat(t," is out of range for changeset of length ").concat(r));return i}},{key:"touchesRange",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,n=0,r=0;n=0&&r<=e&&s>=t)return!(re)||"cover";r=s}return!1}},{key:"toString",value:function(){for(var t="",e=0;e=0?":"+r:"")}return t}},{key:"toJSON",value:function(){return this.sections}}],[{key:"fromJSON",value:function(e){if(!Array.isArray(e)||e.length%2||e.some((function(t){return"number"!=typeof t})))throw new RangeError("Invalid JSON representation of ChangeDesc");return new t(e)}}]),t}(),m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=u(n);function n(t,r){var i;return c(this,n),(i=e.call(this,t)).inserted=r,i}return d(n,[{key:"apply",value:function(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return b(this,(function(e,n,r,i,o){return t=t.replace(r,r+(n-e),o)}),!1),t}},{key:"mapDesc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return w(this,t,e,!0)}},{key:"invert",value:function(t){for(var e=this.sections.slice(),i=[],o=0,s=0;o=0){e[o]=u,e[o+1]=a;for(var h=o>>1;i.length1&&void 0!==arguments[1]&&arguments[1];return t.empty?this:w(this,t,e,!0)}},{key:"iterChanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,t,e)}},{key:"desc",get:function(){return new g(this.sections)}},{key:"filter",value:function(t){var e=[],r=[],i=[],o=new S(this);t:for(var s=0,a=0;;){for(var u=s==t.length?1e9:t[s++];a0&&k(r,e,o.text),o.forward(h),a+=h}for(var c=t[s++];a>1].toJSON()))}return t}}],[{key:"of",value:function(t,e,i){var s=[],a=[],u=0,h=null;function l(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(t||s.length){um||p<0||m>e)throw new RangeError("Invalid change range ".concat(p," to ").concat(m," (in doc of length ").concat(e,")"));var w=b?"string"==typeof b?r.xv.of(b.split(i||v)):b:r.xv.empty,x=w.length;if(p==m&&0==x)return;pu&&y(s,p-u,-1),y(s,m-p,x),k(a,s,w),u=m}}(t),l(!h),h}},{key:"empty",value:function(t){return new n(t?[t,-1]:[],[])}},{key:"fromJSON",value:function(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");for(var e=[],i=[],o=0;o3&&void 0!==arguments[3]&&arguments[3];if(!(0==e&&n<=0)){var i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:0==e&&0==t[i]?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}}function k(t,e,n){if(0!=n.length){var i=e.length-2>>1;if(i>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)u=t.sections[a++],h=t.sections[a++];e(o,l,s,c,f),o=l,s=c}}}function w(t,e,n){for(var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=[],o=r?[]:null,s=new S(t),a=new S(e),u=0,h=0;;)if(-1==s.ins)u+=s.len,s.next();else if(-1==a.ins&&h=0&&(s.done||hh&&!s.done&&u+s.len=0)){if(s.done&&a.done)return o?new m(i,o):new g(i);throw new Error("Mismatched change set lengths")}for(var c=0,f=u+s.len;;)if(a.ins>=0&&h>u&&h+a.len2&&void 0!==arguments[2]&&arguments[2],r=[],i=n?[]:null,o=new S(t),s=new S(e),a=!1;;){if(o.done&&s.done)return i?new m(r,i):new g(r);if(0==o.ins)y(r,o.len,0,a),o.next();else if(0!=s.len||s.done){if(o.done||s.done)throw new Error("Mismatched change set lengths");var u=Math.min(o.len2,s.len),h=r.length;if(-1==o.ins){var l=-1==s.ins?-1:s.off?0:s.ins;y(r,u,l,a),i&&l&&k(i,r,s.text)}else-1==s.ins?(y(r,o.off?0:o.len,u,a),i&&k(i,r,o.textBit(u))):(y(r,o.off?0:o.len,s.off?0:s.ins,a),i&&!s.off&&k(i,r,s.text));a=(o.ins>u||s.ins>=0&&s.len>u)&&(a||r.length>h),o.forward2(u),s.forward(u)}else y(r,0,s.ins,a),i&&k(i,r,s.text),s.next()}}var S=function(){function t(e){c(this,t),this.set=e,this.i=0,this.next()}return d(t,[{key:"next",value:function(){var t=this.set.sections;this.i>1;return e>=t.length?r.xv.empty:t[e]}},{key:"textBit",value:function(t){var e=this.set.inserted,n=this.i-2>>1;return n>=e.length&&!t?r.xv.empty:e[n].slice(this.off,null==t?void 0:this.off+t)}},{key:"forward",value:function(t){t==this.len?this.next():(this.len-=t,this.off+=t)}},{key:"forward2",value:function(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}]),t}(),A=function(){function t(e,n,r){c(this,t),this.from=e,this.to=n,this.flags=r}return d(t,[{key:"anchor",get:function(){return 16&this.flags?this.to:this.from}},{key:"head",get:function(){return 16&this.flags?this.from:this.to}},{key:"empty",get:function(){return this.from==this.to}},{key:"assoc",get:function(){return 4&this.flags?-1:8&this.flags?1:0}},{key:"bidiLevel",get:function(){var t=3&this.flags;return 3==t?null:t}},{key:"goalColumn",get:function(){var t=this.flags>>5;return 33554431==t?void 0:t}},{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,r=e.mapPos(this.from,n),i=e.mapPos(this.to,n);return r==this.from&&i==this.to?this:new t(r,i,this.flags)}},{key:"extend",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t;if(t<=this.anchor&&e>=this.anchor)return C.range(t,e);var n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return C.range(this.anchor,n)}},{key:"eq",value:function(t){return this.anchor==t.anchor&&this.head==t.head}},{key:"toJSON",value:function(){return{anchor:this.anchor,head:this.head}}}],[{key:"fromJSON",value:function(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return C.range(t.anchor,t.head)}}]),t}(),C=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;c(this,t),this.ranges=e,this.mainIndex=n}return d(t,[{key:"map",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:t.create(this.ranges.map((function(t){return t.map(e,n)})),this.mainIndex)}},{key:"eq",value:function(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(var e=0;e1&&void 0!==arguments[1])||arguments[1];return t.create([e].concat(this.ranges),n?0:this.mainIndex+1)}},{key:"replaceRange",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,r=this.ranges.slice();return r[n]=e,t.create(r,this.mainIndex)}},{key:"toJSON",value:function(){return{ranges:this.ranges.map((function(t){return t.toJSON()})),main:this.mainIndex}}}],[{key:"fromJSON",value:function(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new t(e.ranges.map((function(t){return A.fromJSON(t)})),e.main)}},{key:"single",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new t([t.range(e,n)],0)}},{key:"create",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(var r=0,i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return new A(t,t,(0==e?0:e<0?4:8)|(null==n?3:Math.min(2,n))|(null!=r?r:33554431)<<5)}},{key:"range",value:function(t,e,n){var r=(null!=n?n:33554431)<<5;return e1&&void 0!==arguments[1]?arguments[1]:0,n=t[e];t.sort((function(t,e){return t.from-e.from})),e=t.indexOf(n);for(var r=1;ri.head?C.range(a,s):C.range(s,a))}}return new C(t,e)}function O(t,e){var n,r=o(t.ranges);try{for(r.s();!(n=r.n()).done;){if(n.value.to>e)throw new RangeError("Selection points outside of document")}}catch(i){r.e(i)}finally{r.f()}}var T=0,D=function(){function t(e,n,r,i,o){c(this,t),this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.extensions=o,this.id=T++,this.default=e([])}return d(t,[{key:"of",value:function(t){return new R([],this,0,t)}},{key:"compute",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new R(t,this,1,e)}},{key:"computeN",value:function(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new R(t,this,2,e)}},{key:"from",value:function(t,e){return e||(e=function(t){return t}),this.compute([t],(function(n){return e(n.field(t))}))}}],[{key:"define",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new t(e.combine||function(t){return t},e.compareInput||function(t,e){return t===e},e.compare||(e.combine?function(t,e){return t===e}:E),!!e.static,e.enables)}}]),t}();function E(t,e){return t==e||t.length==e.length&&t.every((function(t,n){return t===e[n]}))}var R=function(){function t(e,n,r,i){c(this,t),this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=T++}return d(t,[{key:"dynamicSlot",value:function(t){var e,n,r=this.value,i=this.facet.compareInput,s=t[this.id]>>1,a=2==this.type,u=!1,h=!1,l=[],c=o(this.dependencies);try{for(c.s();!(n=c.n()).done;){var f=n.value;"doc"==f?u=!0:"selection"==f?h=!0:0==(1&(null!==(e=t[f.id])&&void 0!==e?e:1))&&l.push(t[f.id])}}catch(d){c.e(d)}finally{c.f()}return function(t,e){if(!e||e.reconfigured)return t.values[s]=r(t),1;if(!(u&&e.docChanged||h&&(e.docChanged||e.selection)||l.some((function(e){return(1&F(t,e))>0}))))return 0;var n=r(t),o=e.startState.values[s];return(a?function(t,e,n){if(t.length!=e.length)return!1;for(var r=0;r>1}var L=D.define({static:!0}),B=function(){function t(e,n,r,i,o){c(this,t),this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}return d(t,[{key:"create",value:function(t){var e=this,n=t.facet(L).find((function(t){return t.field==e}));return((null==n?void 0:n.create)||this.createF)(t)}},{key:"slot",value:function(t){var e=this,n=t[this.id]>>1;return function(t,r){if(!r||r.reconfigured&&null==P(r.startState,e.id))return t.values[n]=e.create(t),1;var i,o=0;r.reconfigured?(i=r.startState.values[P(r.startState,e.id)],o=1):i=r.startState.values[n];var s=e.updateF(i,r);return o||e.compareF(i,s)||(o=1),o&&(t.values[n]=s),o}}},{key:"init",value:function(t){return[this,L.of({field:this,create:t})]}},{key:"extension",get:function(){return this}}],[{key:"define",value:function(e){var n=new t(T++,e.create,e.update,e.compare||function(t,e){return t===e},e);return e.provide&&(n.provides=e.provide(n)),n}}]),t}(),I=2,N=1,j=0;function V(t){return function(e){return new H(e,t)}}var _={fallback:V(3),default:V(I),extend:V(N),override:V(j)},H=function t(e,n){c(this,t),this.inner=e,this.prec=n},z=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new q(this,t)}},{key:"reconfigure",value:function(e){return t.reconfigure.of({compartment:this,extension:e})}},{key:"get",value:function(t){return t.config.compartments.get(this)}}]),t}(),q=function t(e,n){c(this,t),this.compartment=e,this.inner=n},W=function(){function t(e,n,r,i,o){for(c(this,t),this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.statusTemplate=[];this.statusTemplate.length>1]}}],[{key:"resolve",value:function(e,n,r){var i,s=[],a=Object.create(null),u=new Map,h=o(function(t,e,n){var r=[[],[],[],[]],i=new Map;function s(t,a){var u=i.get(t);if(null!=u){if(u>=a)return;var h=r[u].indexOf(t);h>-1&&r[u].splice(h,1),t instanceof q&&n.delete(t.compartment)}if(i.set(t,a),Array.isArray(t)){var l,c=o(t);try{for(c.s();!(l=c.n()).done;){s(l.value,a)}}catch(v){c.e(v)}finally{c.f()}}else if(t instanceof q){if(n.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");var f=e.get(t.compartment)||t.inner;n.set(t.compartment,f),s(f,a)}else if(t instanceof H)s(t.inner,t.prec);else if(t instanceof B)r[a].push(t),t.provides&&s(t.provides,a);else if(t instanceof R)r[a].push(t),t.facet.extensions&&s(t.facet.extensions,a);else{var d=t.extension;if(!d)throw new Error("Unrecognized extension value in extension set (".concat(t,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));s(d,a)}}return s(t,I),r.reduce((function(t,e){return t.concat(e)}))}(e,n,u));try{for(h.s();!(i=h.n()).done;){var l=i.value;l instanceof B?s.push(l):(a[l.facet.id]||(a[l.facet.id]=[])).push(l)}}catch(k){h.e(k)}finally{h.f()}for(var c=Object.create(null),f=[],d=[],v=function(){var t=g[p];c[t.id]=d.length<<1,d.push((function(e){return t.slot(e)}))},p=0,g=s;p>1;return function(t,n){var u,h=n?n.reconfigured?n.startState.config.address[e.id]:a<<1:null,l=null==h,c=o(s);try{for(c.s();!(u=c.n()).done;)1&F(t,u.value)&&(l=!0)}catch(k){c.e(k)}finally{c.f()}if(!l)return 0;for(var f=[],d=0;d>1,r=t.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;t.status[n]=4;var i=t.config.dynamicSlots[n](t,t.applying);return t.status[n]=2|i}function $(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}var U=D.define(),G=D.define({combine:function(t){return t.some((function(t){return t}))},static:!0}),K=D.define({combine:function(t){return t.length?t[0]:void 0},static:!0}),J=D.define(),X=D.define(),Q=D.define(),Y=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,null,[{key:"define",value:function(){return new Z}}]),t}(),Z=function(){function t(){c(this,t)}return d(t,[{key:"of",value:function(t){return new Y(this,t)}}]),t}(),tt=function(){function t(e){c(this,t),this.map=e}return d(t,[{key:"of",value:function(t){return new et(this,t)}}]),t}(),et=function(){function t(e,n){c(this,t),this.type=e,this.value=n}return d(t,[{key:"map",value:function(e){var n=this.type.map(this.value,e);return void 0===n?void 0:n==this.value?this:new t(this.type,n)}},{key:"is",value:function(t){return this.type==t}}],[{key:"define",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new tt(t.map||function(t){return t})}},{key:"mapEffects",value:function(t,e){if(!t.length)return t;var n,r=[],i=o(t);try{for(i.s();!(n=i.n()).done;){var s=n.value.map(e);s&&r.push(s)}}catch(a){i.e(a)}finally{i.f()}return r}}]),t}();et.reconfigure=et.define(),et.appendConfig=et.define();var nt=function(){function t(e,n,r,i,o,s){c(this,t),this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=s,this._doc=null,this._state=null,r&&O(r,n.newLength),o.some((function(e){return e.type==t.time}))||(this.annotations=o.concat(t.time.of(Date.now())))}return d(t,[{key:"newDoc",get:function(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}},{key:"newSelection",get:function(){return this.selection||this.startState.selection.map(this.changes)}},{key:"state",get:function(){return this._state||this.startState.applyTransaction(this),this._state}},{key:"annotation",value:function(t){var e,n=o(this.annotations);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.type==t)return r.value}}catch(i){n.e(i)}finally{n.f()}}},{key:"docChanged",get:function(){return!this.changes.empty}},{key:"reconfigured",get:function(){return this.startState.config!=this.state.config}},{key:"isUserEvent",value:function(e){var n=this.annotation(t.userEvent);return n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&"."==n[e.length])}}]),t}();function rt(t,e){for(var n=[],r=0,i=0;;){var o=void 0,s=void 0;if(r=t[r]))o=t[r++],s=t[r++];else{if(!(i=0;i--){var o=n[i](t);o&&Object.keys(o).length&&(r=it(t,ot(e,o,t.changes.newLength),!0))}return r==t?t:new nt(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(t){var e,n=t.startState,r=!0,i=o(n.facet(J));try{for(i.s();!(e=i.n()).done;){var s=(0,e.value)(t);if(!1===s){r=!1;break}Array.isArray(s)&&(r=!0===r?s:rt(r,s))}}catch(d){i.e(d)}finally{i.f()}if(!0!==r){var a,u;if(!1===r)u=t.changes.invertedDesc,a=m.empty(n.doc.length);else{var h=t.changes.filter(r);a=h.changes,u=h.filtered.invertedDesc}t=new nt(n,a,t.selection&&t.selection.map(u),et.mapEffects(t.effects,u),t.annotations,t.scrollIntoView)}for(var l=n.facet(X),c=l.length-1;c>=0;c--){var f=l[c](t);t=f instanceof nt?f:Array.isArray(f)&&1==f.length&&f[0]instanceof nt?f[0]:st(n,ut(f),!1)}return t}(a):a)}nt.time=Y.define(),nt.userEvent=Y.define(),nt.addToHistory=Y.define(),nt.remote=Y.define();var at=[];function ut(t){return null==t?at:Array.isArray(t)?t:[t]}var ht,lt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(lt||(lt={})),ct=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{ht=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(pt){}function ft(t){return function(e){if(!/\S/.test(e))return lt.Space;if(function(t){if(ht)return ht.test(t);for(var e=0;e""&&(n.toUpperCase()!=n.toLowerCase()||ct.test(n)))return!0}return!1}(e))return lt.Word;for(var n=0;n-1)return lt.Word;return lt.Other}}var dt=function(){function t(e,n,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(c(this,t),this.config=e,this.doc=n,this.selection=r,this.applying=null,this.status=e.statusTemplate.slice(),i&&i.startState.config==e)this.values=i.startState.values.slice();else if(this.values=e.dynamicSlots.map((function(t){return null})),i)for(var o in e.address){var s=e.address[o],a=i.startState.config.address[o];null!=a&&0==(1&s)&&(this.values[s>>1]=$(i.startState,a))}this.applying=i,i&&(i._state=this);for(var u=0;u1&&void 0!==arguments[1])||arguments[1],n=this.config.address[t.id];if(null!=n)return F(this,n),$(this,n);if(e)throw new RangeError("Field is not present in this state")}},{key:"update",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof m?e:m.of(e,this.doc.length,this.facet(t.lineSeparator))}},{key:"toText",value:function(e){return r.xv.of(e.split(this.facet(t.lineSeparator)||v))}},{key:"sliceDoc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(t,e,this.lineBreak)}},{key:"facet",value:function(t){var e=this.config.address[t.id];return null==e?t.default:(F(this,e),$(this,e))}},{key:"toJSON",value:function(t){var e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(var n in t){var r=t[n];r instanceof B&&(e[n]=r.spec.toJSON(this.field(t[n]),this))}return e}},{key:"tabSize",get:function(){return this.facet(t.tabSize)}},{key:"lineBreak",get:function(){return this.facet(t.lineSeparator)||"\n"}},{key:"phrase",value:function(e){var n,r=o(this.facet(t.phrases));try{for(r.s();!(n=r.n()).done;){var i=n.value;if(Object.prototype.hasOwnProperty.call(i,e))return i[e]}}catch(s){r.e(s)}finally{r.f()}return e}},{key:"languageDataAt",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,i=[],s=o(this.facet(U));try{for(s.s();!(n=s.n()).done;){var a,u=n.value,h=o(u(this,e,r));try{for(h.s();!(a=h.n()).done;){var l=a.value;Object.prototype.hasOwnProperty.call(l,t)&&i.push(l[t])}}catch(c){h.e(c)}finally{h.f()}}}catch(c){s.e(c)}finally{s.f()}return i}},{key:"charCategorizer",value:function(t){return ft(this.languageDataAt("wordChars",t).join(""))}},{key:"wordAt",value:function(t){for(var e=this.doc.lineAt(t),n=e.text,i=e.from,o=e.length,s=this.charCategorizer(t),a=t-i,u=t-i;a>0;){var h=(0,r.cp)(n,a,!1);if(s(n.slice(h,a))!=lt.Word)break;a=h}for(;u1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");var i=[];if(r){var o=function(t){var n=r[t],o=e[t];i.push(n.init((function(t){return n.spec.fromJSON(o,t)})))};for(var s in r)o(s)}return t.create({doc:e.doc,selection:C.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}},{key:"create",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=W.resolve(e.extensions||[],new Map),i=e.doc instanceof r.xv?e.doc:r.xv.of((e.doc||"").split(n.staticFacet(t.lineSeparator)||v)),o=e.selection?e.selection instanceof C?e.selection:C.single(e.selection.anchor,e.selection.head):C.single(0);return O(o,i.length),n.staticFacet(G)||(o=o.asSingle()),new t(n,i,o)}}]),t}();function vt(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i={},s=o(t);try{for(s.s();!(n=s.n()).done;)for(var a=n.value,u=0,h=Object.keys(a);u=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function h(t,e){if(t){if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=i,s=r;s=this.string.length}},{key:"sol",value:function(){return 0==this.pos}},{key:"peek",value:function(){return this.string.charAt(this.pos)||void 0}},{key:"next",value:function(){if(this.pose}},{key:"eatSpace",value:function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}},{key:"skipToEnd",value:function(){this.pos=this.string.length}},{key:"skipTo",value:function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}},{key:"backUp",value:function(t){this.pos-=t}},{key:"column",value:function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}},{key:"current",value:function(){return this.string.slice(this.start,this.pos)}}]),t}();function S(t){if("object"!=m(t))return t;var e={};for(var n in t){var r=t[n];e[n]=r instanceof Array?r.slice():r}return e}var A=function(t){c(n,t);var e=d(n);function n(t){var i;y(this,n);var s,a,u=(0,o.kU)(t.languageData),h={token:(a=t).token,blankLine:a.blankLine||function(){},startState:a.startState||function(){return!0},copyState:a.copyState||S,indent:a.indent||function(){return null},languageData:a.languageData||{}},l=new(function(t){c(n,t);var e=d(n);function n(){return y(this,n),e.apply(this,arguments)}return b(n,[{key:"createParse",value:function(t,e,n){return new O(s,t,e,n)}}]),n}(r._b));return i=e.call(this,u,l,function(t){var e=r.Jq.define({id:E.length,name:"Document",props:[o.mi.add((function(){return t}))]});return E.push(e),e}(u),[o.tK.of((function(t,e){return i.getIndent(t,e)}))]),s=p(i),i.streamParser=h,i.stateAfter=new r.md({perNode:!0}),i}return b(n,[{key:"getIndent",value:function(t,e){for(var n=(0,o.qz)(t.state),r=n.resolve(e);r&&r.type!=this.topNode;)r=r.parent;if(!r)return null;var i,s,a=C(this,n,0,r.from,e);if(a?(s=a.state,i=a.pos+1):(s=this.streamParser.startState(t.unit),i=0),e-i>1e4)return null;for(;i=i&&n+e.length<=o&&e.prop(t.stateAfter);if(s)return{state:t.streamParser.copyState(s),pos:n+e.length};for(var a=e.children.length-1;a>=0;a--){var u=e.children[a],h=n+e.positions[a],l=u instanceof r.mp&&h=e.length)return e;o||e.type!=t.topNode||(o=!0);for(var s=e.children.length-1;s>=0;s--){var a=e.positions[s]+n,u=e.children[s],h=void 0;if(an&&C(t,h.tree,0-h.offset,n,h.to),c=void 0;if(l&&(c=M(t,h.tree,n+h.offset,l.pos+h.offset,!1)))return{state:l.state,tree:c}}}catch(f){a.e(f)}finally{a.f()}return{state:t.streamParser.startState(i?(0,o.y1)(i):4),tree:r.mp.empty}}(e,i,h,null==a?void 0:a.state),c=l.state,f=l.tree;this.state=c,this.parsedPos=this.chunkStart=h+f.length,f.length&&(this.chunks.push(f),this.chunkPos.push(0)),a&&this.parsedPos=e?this.finish():t&&this.parsedPos>t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}},{key:"stopAt",value:function(t){this.stoppedAt=t}},{key:"lineAfter",value:function(t){var e=this.input.chunk(t);if(this.input.lineChunks)"\n"==e&&(e="");else{var n=e.indexOf("\n");n>-1&&(e=e.slice(0,n))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}},{key:"nextLine",value:function(){for(var t=this.parsedPos,e=this.lineAfter(t),n=t+e.length,r=this.rangeIndex;;){var i=this.ranges[r].to;if(i>=n)break;if(e=e.slice(0,i-(n-e.length)),++r==this.ranges.length)break;var o=this.ranges[r].from,s=this.lineAfter(o);e+=s,n=o+s.length}return{line:e,end:n}}},{key:"skipGapsTo",value:function(t,e,n){for(;;){var r=this.ranges[this.rangeIndex].to,i=t+e;if(n>0?r>i:r>=i)break;e+=this.ranges[++this.rangeIndex].from-r}return e}},{key:"emitToken",value:function(t,e,n,r,i){if(this.ranges.length>1){e+=i=this.skipGapsTo(e,i,1);var o=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-o}return this.chunk.push(t,e,n,r),i}},{key:"parseLine",value:function(t){var e=this.nextLine(),n=e.line,r=e.end,i=0,s=this.lang.streamParser,a=new x(n,t?t.state.tabSize:4,t?(0,o.y1)(t.state):2);if(a.eol())s.blankLine(this.state,a.indentUnit);else for(;!a.eol();){var u=T(s.token,a,this.state);u&&(i=this.emitToken(L(u),this.parsedPos+a.start,this.parsedPos+a.pos,4,i))}this.parsedPos=r,this.parsedPose.start)return i}throw new Error("Stream parser failed to advance stream.")}var D=Object.create(null),E=[r.Jq.none],R=new r.Lj(E),P=[];function L(t){return t?D[t]||(D[t]=function(t){var e,n=null,o=u(t.split("."));try{for(o.s();!(e=o.n()).done;){var a=e.value,h=i.pJ[a];h?"function"==typeof h?n?n=h(n):_(a,"Modifier ".concat(a," used at start of tag")):n?_(a,"Tag ".concat(a," used as modifier")):n=h:_(a,"Unknown highlighting tag ".concat(a))}}catch(f){o.e(f)}finally{o.f()}if(!n)return 0;var l=t.replace(/ /g,"_"),c=r.Jq.define({id:E.length,name:l,props:[(0,i.Gv)(s({},l,n))]});return E.push(c),c.id}(t)):0}for(var B=0,I=[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","typeName"],["attribute","propertyName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]];B-1||(P.push(t),console.warn(e))}},23414:function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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 s,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,s=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw s}}}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt)return p[e-1]<=t;return!1}function y(t){return t>=127462&&t<=127487}function k(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return(n?b:w)(t,e)}function b(t,e){if(e==t.length)return e;e&&x(t.charCodeAt(e))&&S(t.charCodeAt(e-1))&&e--;var n=A(t,e);for(e+=M(n);e=0&&y(A(t,o));)i++,o-=2;if(i%2==0)break;e+=2}}return e}function w(t,e){for(;e>0;){var n=b(t,e-2);if(n=56320&&t<57344}function S(t){return t>=55296&&t<56320}function A(t,e){var n=t.charCodeAt(e);if(!S(n)||e+1==t.length)return n;var r=t.charCodeAt(e+1);return x(r)?r-56320+(n-55296<<10)+65536:n}function C(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}function M(t){return t<65536?1:2}function O(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length,r=0,i=0;i=e)return r;i+=9==t.charCodeAt(r)?n-i%n:1,r=k(t,r)}return t.length}var D=function(){function t(){f(this,t)}return v(t,[{key:"lineAt",value:function(t){if(t<0||t>this.length)throw new RangeError("Invalid position ".concat(t," in document of length ").concat(this.length));return this.lineInner(t,!1,1,0)}},{key:"line",value:function(t){if(t<1||t>this.lines)throw new RangeError("Invalid line number ".concat(t," in ").concat(this.lines,"-line document"));return this.lineInner(t,!0,1,0)}},{key:"replace",value:function(t,e,n){var r=[];return this.decompose(0,t,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(e,this.length,r,1),R.from(r,this.length-(e-t)+n.length)}},{key:"append",value:function(t){return this.replace(this.length,this.length,t)}},{key:"slice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=[];return this.decompose(t,e,n,0),R.from(n,e-t)}},{key:"eq",value:function(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;for(var e=new I(this),n=new I(t);;){if(e.next(),n.next(),e.lineBreak!=n.lineBreak||e.done!=n.done||e.value!=n.value)return!1;if(e.done)return!0}}},{key:"iter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new I(this,t)}},{key:"iterRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new N(this,t,e)}},{key:"iterLines",value:function(t,e){var n;if(null==t)n=this.iter();else{null==e&&(e=this.lines+1);var r=this.line(t).from;n=this.iterRange(r,Math.max(r,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new j(n)}},{key:"toString",value:function(){return this.sliceString(0)}},{key:"toJSON",value:function(){var t=[];return this.flatten(t),t}}],[{key:"of",value:function(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new E(e):R.from(E.split(e,[])):t.empty}}]),t}();"undefined"!=typeof Symbol&&(D.prototype[Symbol.iterator]=function(){return this.iter()});var E=function(t){a(n,t);var e=h(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:P(t);return f(this,n),(r=e.call(this)).text=t,r.length=i,r}return v(n,[{key:"lines",get:function(){return this.text.length}},{key:"children",get:function(){return null}},{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.text[i],s=r+o.length;if((e?n:s)>=t)return new V(r,s,n,o);r=s+1,n++}}},{key:"decompose",value:function(t,e,r,i){var o=t<=0&&e>=this.length?this:new n(B(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&i){var s=r.pop(),a=L(o.text,s.text.slice(),0,o.length);if(a.length<=32)r.push(new n(a,s.length+o.length));else{var u=a.length>>1;r.push(new n(a.slice(0,u)),new n(a.slice(u)))}}else r.push(o)}},{key:"replace",value:function(t,e,r){if(!(r instanceof n))return s(c(n.prototype),"replace",this).call(this,t,e,r);var i=L(this.text,L(r.text,B(this.text,0,t)),e),o=this.length+r.length-(e-t);return i.length<=32?new n(i,o):R.from(n.split(i,[]),o)}},{key:"sliceString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;i<=e&&ot&&o&&(r+=n),ti&&(r+=s.slice(Math.max(0,t-i),e-i)),i=a+1}return r}},{key:"flatten",value:function(t){var e,n=i(this.text);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(r)}}catch(o){n.e(o)}finally{n.f()}}}],[{key:"split",value:function(t,e){var r,o=[],s=-1,a=i(t);try{for(a.s();!(r=a.n()).done;){var u=r.value;o.push(u),s+=u.length+1,32==o.length&&(e.push(new n(o,s)),o=[],s=-1)}}catch(h){a.e(h)}finally{a.f()}return s>-1&&e.push(new n(o,s)),e}}]),n}(D),R=function(t){a(n,t);var e=h(n);function n(t,r){var o;f(this,n),(o=e.call(this)).children=t,o.length=r,o.lines=0;var s,a=i(t);try{for(a.s();!(s=a.n()).done;){var u=s.value;o.lines+=u.lines}}catch(h){a.e(h)}finally{a.f()}return o}return v(n,[{key:"lineInner",value:function(t,e,n,r){for(var i=0;;i++){var o=this.children[i],s=r+o.length,a=n+o.lines-1;if((e?a:s)>=t)return o.lineInner(t,e,n,r);r=s+1,n=a+1}}},{key:"decompose",value:function(t,e,n,r){for(var i=0,o=0;o<=e&&i=o){var u=r&((o<=t?1:0)|(a>=e?2:0));o>=t&&a<=e&&!u?n.push(s):s.decompose(t-o,e-o,n,u)}o=a+1}}},{key:"replace",value:function(t,e,r){if(r.lines=o&&e<=u){var h=a.replace(t-o,e-o,r),l=this.lines-a.lines+h.lines;if(h.lines>4&&h.lines>l>>6){var f=this.children.slice();return f[i]=h,new n(f,this.length-(e-t)+r.length)}return s(c(n.prototype),"replace",this).call(this,o,u,h)}o=u+1}return s(c(n.prototype),"replace",this).call(this,t,e,r)}},{key:"sliceString",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="",i=0,o=0;it&&i&&(r+=n),to&&(r+=s.sliceString(t-o,e-o,n)),o=a+1}return r}},{key:"flatten",value:function(t){var e,n=i(this.children);try{for(n.s();!(e=n.n()).done;){e.value.flatten(t)}}catch(r){n.e(r)}finally{n.f()}}}],[{key:"from",value:function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.reduce((function(t,e){return t+e.length+1}),-1),o=0,s=i(t);try{for(s.s();!(e=s.n()).done;){var a=e.value;o+=a.lines}}catch(A){s.e(A)}finally{s.f()}if(o<32){var u,h=[],l=i(t);try{for(l.s();!(u=l.n()).done;){var c=u.value;c.flatten(h)}}catch(A){l.e(A)}finally{l.f()}return new E(h,r)}var f=Math.max(32,o>>5),d=f<<1,v=f>>1,p=[],g=0,m=-1,y=[];function k(t){var e;if(t.lines>d&&t instanceof n){var r,o=i(t.children);try{for(o.s();!(r=o.n()).done;){k(r.value)}}catch(A){o.e(A)}finally{o.f()}}else t.lines>v&&(g>v||!g)?(b(),p.push(t)):t instanceof E&&g&&(e=y[y.length-1])instanceof E&&t.lines+e.lines<=32?(g+=t.lines,m+=t.length+1,y[y.length-1]=new E(e.text.concat(t.text),e.length+1+t.length)):(g+t.lines>f&&b(),g+=t.lines,m+=t.length+1,y.push(t))}function b(){0!=g&&(p.push(1==y.length?y[0]:n.from(y,m)),m=-1,g=y.length=0)}var w,x=i(t);try{for(x.s();!(w=x.n()).done;){var S=w.value;k(S)}}catch(A){x.e(A)}finally{x.f()}return b(),1==p.length?p[0]:new n(p,r)}}]),n}(D);function P(t){var e,n=-1,r=i(t);try{for(r.s();!(e=r.n()).done;){n+=e.value.length+1}}catch(o){r.e(o)}finally{r.f()}return n}function L(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9,i=0,o=0,s=!0;o=n&&(u>r&&(a=a.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;f(this,t),this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof E?e.text.length:e.children.length)<<1]}return v(t,[{key:"nextInner",value:function(t,e){for(this.done=this.lineBreak=!1;;){var n=this.nodes.length-1,r=this.nodes[n],i=this.offsets[n],o=i>>1,s=r instanceof E?r.text.length:r.children.length;if(o==(e>0?s:0)){if(0==n)return this.done=!0,this.value="",this;e>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&i)==(e>0?0:1)){if(this.offsets[n]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(r instanceof E){var a=r.text[o+(e<0?-1:0)];if(this.offsets[n]+=e,a.length>Math.max(0,t))return this.value=0==t?a:e>0?a.slice(t):a.slice(0,a.length-t),this;t-=a.length}else{var u=r.children[o+(e<0?-1:0)];t>u.length?(t-=u.length,this.offsets[n]+=e):(e<0&&this.offsets[n]--,this.nodes.push(u),this.offsets.push(e>0?1:(u instanceof E?u.text.length:u.children.length)<<1))}}}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}]),t}(),N=function(){function t(e,n,r){f(this,t),this.value="",this.done=!1,this.cursor=new I(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}return v(t,[{key:"nextInner",value:function(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;this.done=!1,t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);var n=e<0?this.pos-this.from:this.to-this.pos;t>n&&(t=n),n-=t;var r=this.cursor.next(t).value;return this.pos+=(r.length+t)*e,this.value=r.length<=n?r:e<0?r.slice(r.length-n):r.slice(0,n),this}},{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}},{key:"lineBreak",get:function(){return this.cursor.lineBreak&&""!=this.value}}]),t}(),j=function(){function t(e){f(this,t),this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}return v(t,[{key:"next",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=this.inner.next(t),n=e.done,r=e.lineBreak,i=e.value;return n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}},{key:"lineBreak",get:function(){return!1}}]),t}(),V=function(){function t(e,n,r,i){f(this,t),this.from=e,this.to=n,this.number=r,this.text=i}return v(t,[{key:"length",get:function(){return this.to-this.from}}]),t}()},19753:function(t,e,n){"use strict";n.d(e,{kH:function(){return Et},p:function(){return Rt},Nm:function(){return me},tk:function(){return ir},BF:function(){return Yt},lg:function(){return ee},Uw:function(){return Cr},ZO:function(){return Br},$f:function(){return gr},$1:function(){return kr}});for(var r=n(77885),i=n(23414),o=n(62038),s=n(13764),a={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",229:"q"},u={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"',229:"Q"},h="undefined"!=typeof navigator&&/Chrome\/(\d+)/.exec(navigator.userAgent),l="undefined"!=typeof navigator&&/Apple Computer/.test(navigator.vendor),c="undefined"!=typeof navigator&&/Gecko\/\d+/.test(navigator.userAgent),f="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),d="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),v=h&&(f||+h[1]<57)||c&&f,p=0;p<10;p++)a[48+p]=a[96+p]=String(p);for(p=1;p<=24;p++)a[p+111]="F"+p;for(p=65;p<=90;p++)a[p]=String.fromCharCode(p+32),u[p]=String.fromCharCode(p);for(var g in a)u.hasOwnProperty(g)||(u[g]=a[g]);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e,n){return(y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=A(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){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(t){return!1}}();return function(){var n,r=A(t);if(e){var i=A(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?S(t):e}function S(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function C(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(t)||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 M(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=O(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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,s=!0,a=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){a=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function O(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:e,r=W||(W=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function K(t,e,n){var r={key:e,code:e,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,t.dispatchEvent(i);var o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}var J=null;function X(){if(null==J){J=!1;var t=document.createElement("div");try{t.contentEditable="plaintext-only",J="plaintext-only"==t.contentEditable}catch(e){}}return J}var Q=function(){function t(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];D(this,t),this.node=e,this.offset=n,this.precise=r}return R(t,null,[{key:"before",value:function(e,n){return new t(e.parentNode,j(e),n)}},{key:"after",value:function(e,n){return new t(e.parentNode,j(e)+1,n)}}]),t}(),Y=[],Z=function(){function t(){D(this,t),this.parent=null,this.dom=null,this.dirty=2}return R(t,[{key:"editorView",get:function(){if(!this.parent)throw new Error("Accessing view in orphan content view");return this.parent.editorView}},{key:"overrideDOMText",get:function(){return null}},{key:"posAtStart",get:function(){return this.parent?this.parent.posBefore(this):0}},{key:"posAtEnd",get:function(){return this.posAtStart+this.length}},{key:"posBefore",value:function(t){var e,n=this.posAtStart,r=M(this.children);try{for(r.s();!(e=r.n()).done;){var i=e.value;if(i==t)return n;n+=i.length+i.breakAfter}}catch(o){r.e(o)}finally{r.f()}throw new RangeError("Invalid child in posBefore")}},{key:"posAfter",value:function(t){return this.posBefore(t)+t.length}},{key:"coordsAt",value:function(t,e){return null}},{key:"sync",value:function(e){var n;if(2&this.dirty){var r,i=this.dom,o=null,s=M(this.children);try{for(s.s();!(r=s.n()).done;){var a=r.value;if(a.dirty){var u=o?o.nextSibling:i.firstChild;a.dom||!u||(null===(n=t.get(u))||void 0===n?void 0:n.parent)||a.reuseDOM(u),a.sync(e),a.dirty=0}e&&e.node==i&&o!=a.dom&&(e.written=!0),et(i,o,a.dom),o=a.dom}}catch(d){s.e(d)}finally{s.f()}var h=o?o.nextSibling:i.firstChild;for(h&&e&&e.node==i&&(e.written=!0);h;)h=tt(h)}else if(1&this.dirty){var l,c=M(this.children);try{for(c.s();!(l=c.n()).done;){var f=l.value;f.dirty&&(f.sync(e),f.dirty=0)}}catch(d){c.e(d)}finally{c.f()}}}},{key:"reuseDOM",value:function(t){return!1}},{key:"localPosFromDOM",value:function(e,n){var r;if(e==this.dom)r=this.dom.childNodes[n];else{for(var i=0==_(e)?0:0==n?-1:1;;){var o=e.parentNode;if(o==this.dom)break;0==i&&o.firstChild!=o.lastChild&&(i=e==o.firstChild?-1:1),e=o}r=i<0?e:e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!t.get(r);)r=r.nextSibling;if(!r)return this.length;for(var s=0,a=0;;s++){var u=this.children[s];if(u.dom==r)return a;a+=u.length+u.breakAfter}}},{key:"domBoundsAround",value:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,s=-1,a=0,u=n,h=n;ae)return l.domBoundsAround(t,e,u);if(c>=t&&-1==r&&(r=a,i=u),u>e&&l.dom.parentNode==this.dom){o=a,s=h;break}h=c,u=c+l.breakAfter}return{from:i,to:s<0?n+this.length:s,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}},{key:"markDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.dirty|=2,this.markParentsDirty(t)}},{key:"markParentsDirty",value:function(t){for(var e=this.parent;e;e=e.parent){if(t&&(e.dirty|=2),1&e.dirty)return;e.dirty|=1,t=!1}}},{key:"setParent",value:function(t){this.parent!=t&&(this.parent=t,this.dirty&&this.markParentsDirty(!0))}},{key:"setDOM",value:function(t){this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this}},{key:"rootView",get:function(){for(var t=this;;){var e=t.parent;if(!e)return t;t=e}}},{key:"replaceChildren",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Y;this.markDirty();for(var i=t;i0&&void 0!==arguments[0]?arguments[0]:this.length;return new nt(this.children,t,this.children.length)}},{key:"childPos",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(t,e)}},{key:"toString",value:function(){var t=this.constructor.name.replace("View","");return t+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==t?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}}],[{key:"get",value:function(t){return t.cmView}}]),t}();function tt(t){var e=t.nextSibling;return t.parentNode.removeChild(t),e}function et(t,e,n){var r=e?e.nextSibling:t.firstChild;if(n.parentNode==t)for(;r!=n;)r=tt(r);else t.insertBefore(n,r)}Z.prototype.breakAfter=0;var nt=function(){function t(e,n,r){D(this,t),this.children=e,this.pos=n,this.i=r,this.off=0}return R(t,[{key:"findPos",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;;){if(t>this.pos||t==this.pos&&(e>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;var n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}]),t}(),rt=function(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);s=!0);}catch(u){a=!0,i=u}finally{try{s||null==n.return||n.return()}finally{if(a)throw i}}return o}(t,e)||O(t,e)||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.")}()}("undefined"!=typeof navigator?[navigator,document]:[{userAgent:"",vendor:"",platform:""},{documentElement:{style:{}}}],2),it=rt[0],ot=rt[1],st=/Edge\/(\d+)/.exec(it.userAgent),at=/MSIE \d/.test(it.userAgent),ut=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(it.userAgent),ht=!!(at||ut||st),lt=!ht&&/gecko\/(\d+)/i.test(it.userAgent),ct=!ht&&/Chrome\/(\d+)/.exec(it.userAgent),ft="webkitFontSmoothing"in ot.documentElement.style,dt=!ht&&/Apple Computer/.test(it.vendor),vt={mac:/Mac/.test(it.platform),ie:ht,ie_version:at?ot.documentMode||6:ut?+ut[1]:st?+st[1]:0,gecko:lt,gecko_version:lt?+(/Firefox\/(\d+)/.exec(it.userAgent)||[0,0])[1]:0,chrome:!!ct,chrome_version:ct?+ct[1]:0,ios:dt&&(/Mobile\/\w+/.test(it.userAgent)||it.maxTouchPoints>2),android:/Android\b/.test(it.userAgent),webkit:ft,safari:dt,webkit_version:ft?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=ot.documentElement.style.tabSize?"tab-size":"-moz-tab-size"},pt=[],gt=function(t){k(n,t);var e=w(n);function n(){return D(this,n),e.apply(this,arguments)}return R(n,[{key:"become",value:function(t){return!1}},{key:"getSide",value:function(){return 0}}]),n}(Z);gt.prototype.children=pt;var mt=function(t){k(n,t);var e=w(n);function n(t){var r;return D(this,n),(r=e.call(this)).text=t,r}return R(n,[{key:"length",get:function(){return this.text.length}},{key:"createDOM",value:function(t){this.setDOM(t||document.createTextNode(this.text))}},{key:"sync",value:function(t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}},{key:"reuseDOM",value:function(t){return 3==t.nodeType&&(this.createDOM(t),!0)}},{key:"merge",value:function(t,e,r){return(!r||r instanceof n&&!(this.length-(e-t)+r.length>256))&&(this.text=this.text.slice(0,t)+(r?r.text:"")+this.text.slice(e),this.markDirty(),!0)}},{key:"slice",value:function(t){var e=new n(this.text.slice(t));return this.text=this.text.slice(0,t),e}},{key:"localPosFromDOM",value:function(t,e){return t==this.dom?e:e?this.text.length:0}},{key:"domAtPos",value:function(t){return new Q(this.dom,t)}},{key:"domBoundsAround",value:function(t,e,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}},{key:"coordsAt",value:function(t,e){return kt(this.dom,t,e)}}]),n}(gt),yt=function(t){k(n,t);var e=w(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;D(this,n),(r=e.call(this)).mark=t,r.children=i,r.length=o;var s,a=M(i);try{for(a.s();!(s=a.n()).done;){var u=s.value;u.setParent(S(r))}}catch(h){a.e(h)}finally{a.f()}return r}return R(n,[{key:"createDOM",value:function(){var t=document.createElement(this.mark.tagName);if(this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(var e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);this.setDOM(t)}},{key:"sync",value:function(t){(!this.dom||4&this.dirty)&&this.createDOM(),y(A(n.prototype),"sync",this).call(this,t)}},{key:"merge",value:function(t,e,r,i,o){return(!r||!(!(r instanceof n&&r.mark.eq(this.mark))||t&&i<=0||et&&r.push(i=t&&(o=s),i=h,s++}}catch(c){a.e(c)}finally{a.f()}var l=this.length-t;return this.length=t,o>-1&&this.replaceChildren(o,this.children.length),new n(this.mark,r,l)}},{key:"domAtPos",value:function(t){return St(this.dom,this.children,t)}},{key:"coordsAt",value:function(t,e){return Ct(this,t,e)}}]),n}(gt);function kt(t,e,n){var r=t.nodeValue.length;e>r&&(e=r);var i=e,o=e,s=0;0==e&&n<0||e==r&&n>=0?vt.chrome||vt.gecko||(e?(i--,s=1):(o++,s=-1)):n<0?i--:o++;var a=G(t,i,o).getClientRects();if(!a.length)return H;var u=a[(s?s<0:n>=0)?0:a.length-1];return vt.safari&&!s&&0==u.width&&(u=Array.prototype.find.call(a,(function(t){return t.width}))||u),s?z(u,s<0):u}var bt=function(t){k(n,t);var e=w(n);function n(t,r,i){var o;return D(this,n),(o=e.call(this)).widget=t,o.length=r,o.side=i,o}return R(n,[{key:"slice",value:function(t){var e=n.create(this.widget,this.length-t,this.side);return this.length-=t,e}},{key:"sync",value:function(){this.dom&&this.widget.updateDOM(this.dom)||(this.setDOM(this.widget.toDOM(this.editorView)),this.dom.contentEditable="false")}},{key:"getSide",value:function(){return this.side}},{key:"merge",value:function(t,e,r,i,o){return!(r&&(!(r instanceof n&&this.widget.compare(r.widget))||t>0&&i<=0||e |