UNPKG

@huluvu424242/honey-slideshow

Version:

Text to Speech component wich is reading texts from DOM elements.

1 lines 72.2 kB
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();System.register(["./p-bd1ed83c.system.js","./p-cbfe5e03.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.r;n=e.h;r=e.g},function(e){i=e.I}],execute:function(){var s='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m954.5431 670.8872l-812.8905 -308.69644l818.3474 -304.63376l-5.456909 89.36221l-561.92786 215.27156l567.38477 219.33426z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m954.5431 670.8872l-812.8905 -308.69644l818.3474 -304.63376l-5.456909 89.36221l-561.92786 215.27156l567.38477 219.33426z"\n'+' fill-rule="evenodd"/>\n'+' <path fill="#000000" d="m141.67947 720.0l-141.6693 0l0 -720.0l141.6693 0z" fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m141.67947 720.0l-141.6693 0l0 -720.0l141.6693 0z" fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var l='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m956.60803 718.49603l-573.71375 -362.3846l577.56506 -357.61536l-3.8512573 104.90401l-396.59186 252.71136l400.4431 257.48062z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m956.60803 718.49603l-573.71375 -362.3846l577.56506 -357.61536l-3.8512573 104.90401l-396.59186 252.71136l400.4431 257.48062z"\n'+' fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m574.16724 718.49603l-573.71375 -362.3846l577.56506 -357.61536l-3.8513184 104.90401l-396.59186 252.71136l400.44318 257.48062z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m574.16724 718.49603l-573.71375 -362.3846l577.56506 -357.61536l-3.8513184 104.90401l-396.59186 252.71136l400.44318 257.48062z"\n'+' fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var o='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m951.5988 722.2808l-951.6064 -364.2935l957.99445 -359.49908l-6.3880615 105.45658l-657.81824 254.04251l664.2063 258.83694z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m951.5988 722.2808l-951.6064 -364.2935l957.99445 -359.49908l-6.3880615 105.45658l-657.81824 254.04251l664.2063 258.83694z"\n'+' fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var a='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000" d="m-0.007874016 0l958.3937 360.86615l-958.3937 360.86615z" fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m-0.007874016 0l958.3937 360.86615l-958.3937 360.86615z" fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var c='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000" d="m198.31253 1.2073491l192.50394 0l0 720.0l-192.50394 0z" fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m198.31253 1.2073491l192.50394 0l0 720.0l-192.50394 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000" d="m550.7434 1.2073491l192.50397 0l0 720.0l-192.50397 0z" fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m550.7434 1.2073491l192.50397 0l0 720.0l-192.50397 0z" fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var u='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m6.4014697 -1.503937l953.6023 362.38464l-960.0038 357.6154l6.4014697 -104.90405l659.1979 -252.71133l-665.59937 -257.48065z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m6.4014697 -1.503937l953.6023 362.38464l-960.0038 357.6154l6.4014697 -104.90405l659.1979 -252.71133l-665.59937 -257.48065z"\n'+' fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var p='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m3.8513029 -1.503937l573.71375 362.38464l-577.56506 357.6154l3.8513029 -104.90405l396.59186 -252.71133l-400.44315 -257.48065z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m3.8513029 -1.503937l573.71375 362.38464l-577.56506 357.6154l3.8513029 -104.90405l396.59186 -252.71133l-400.44315 -257.48065z"\n'+' fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m386.29053 -1.503937l573.71375 362.38464l-577.56506 357.6154l3.8512878 -104.90405l396.59186 -252.71133l-400.44315 -257.48065z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m386.29053 -1.503937l573.71375 362.38464l-577.56506 357.6154l3.8512878 -104.90405l396.59186 -252.71133l-400.44315 -257.48065z"\n'+' fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var h='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000"\n'+' d="m5.486655 49.11279l817.3259 308.69644l-822.81256 304.63376l5.486655 -89.36218l564.99396 -215.27158l-570.4806 -219.33423z"\n'+' fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m5.486655 49.11279l817.3259 308.69644l-822.81256 304.63376l5.486655 -89.36218l564.99396 -215.27158l-570.4806 -219.33423z"\n'+' fill-rule="evenodd"/>\n'+' <path fill="#000000" d="m822.78174 0l142.45667 0l0 720.0l-142.45667 0z" fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m822.78174 0l142.45667 0l0 720.0l-142.45667 0z" fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>\n";var f='<svg version="1.1" viewBox="0.0 0.0 960.0 720.0" fill="none" stroke="none" stroke-linecap="square"\n'+' stroke-miterlimit="10" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">\n'+' <clipPath id="p.0">\n'+' <path d="m0 0l960.0 0l0 720.0l-960.0 0l0 -720.0z" clip-rule="nonzero"/>\n'+" </clipPath>\n"+' <g clip-path="url(#p.0)">\n'+' <path fill="#000000" fill-opacity="0.0" d="m0 0l960.0 0l0 720.0l-960.0 0z" fill-rule="evenodd"/>\n'+' <path fill="#000000" d="m198.312 1.2073491l544.9449 0l0 720.0l-544.9449 0z" fill-rule="evenodd"/>\n'+' <path stroke="#000000" stroke-width="1.0" stroke-linejoin="round" stroke-linecap="butt"\n'+' d="m198.312 1.2073491l544.9449 0l0 720.0l-544.9449 0z" fill-rule="evenodd"/>\n'+" </g>\n"+"</svg>";var d=function(){function e(){}e.logMessage=function(e){console.log(e)};e.debugMessage=function(e){console.debug(e)};e.errorMessage=function(e){console.error(e)};e.infoMessage=function(e){console.info(e)};return e}();var g=function(){function e(e,t,n){this.sprachSynthese=e;this.sprachauswahl=t;this.vorleserCallbacks=n;d.infoMessage("####constructor finished")}e.prototype.initialisiereVorleserStimme=function(e){d.infoMessage("erzeugeVorleser started");e.pitch=this.sprachauswahl.getPitch();e.rate=this.sprachauswahl.getRate();e.volume=this.sprachauswahl.getVolume();e.voice=this.sprachauswahl.getVoice();if(e.voice&&e.voice.lang){e.lang=e.voice.lang}else{e.lang="de-DE"}};e.prototype.erzeugeVorleser=function(e){var t=this;var n=new SpeechSynthesisUtterance(e);if(this.vorleserCallbacks){n.onend=function(){d.debugMessage("Vorlesen beendet");if(t.vorleserCallbacks.onend){t.vorleserCallbacks.onend()}};n.onstart=function(){d.debugMessage("Vorlesen gestartet");if(t.vorleserCallbacks.onstart){t.vorleserCallbacks.onstart()}};n.onpause=function(){d.debugMessage("Pause mit Vorlesen");if(t.vorleserCallbacks.onpause){t.vorleserCallbacks.onpause()}};n.onresume=function(){d.debugMessage("Fortsetzen des Vorlesen");if(t.vorleserCallbacks.onresume){t.vorleserCallbacks.onresume()}};n.onerror=function(){d.errorMessage("Fehler beim Vorlesen");if(t.vorleserCallbacks.onerror){t.vorleserCallbacks.onerror()}}}this.initialisiereVorleserStimme(n);return n};e.prototype.textVorlesen=function(e){var t=this;if(e){var n=[e];n.forEach((function(n){var r=t.erzeugeVorleser(n);d.infoMessage("speaker lang used:"+r.lang);if(r.voice){d.infoMessage("speaker voice used:"+r.voice.name);d.infoMessage("speaker voice lang:"+r.voice.lang)}else{d.infoMessage("no voice matched for text: "+e)}t.sprachSynthese.getSynthese().speak(r)}))}};e.prototype.cancelSpeakingAndClearQueue=function(){this.sprachSynthese.getSynthese().cancel()};e.prototype.pauseSpeakingFromQueue=function(){this.sprachSynthese.getSynthese().pause()};e.prototype.resumeSpeakingFromQueue=function(){this.sprachSynthese.getSynthese().resume()};e.prototype.isPaused=function(){return this.sprachSynthese.getSynthese().paused};return e}();var b=function(){function e(e){d.infoMessage("create Sprachauswahl");this.sprachSynthese=e;this.rate=1;this.volume=1;this.pitch=1;this.initDefaultStimme()}e.prototype.initDefaultStimme=function(){var e=this.sprachSynthese.getVoices();if(!e){var t=this.sprachSynthese.getVoices();this.voice=t[0]}else{this.voice=e[0]}};e.prototype.getRate=function(){return this.rate};e.prototype.getVolume=function(){return this.volume};e.prototype.getPitch=function(){return this.pitch};e.prototype.getVoice=function(){return this.voice};e.prototype.getVoiceList=function(){return this.sprachSynthese.getVoices()};e.prototype.setChoosenVoice=function(e){this.voice=e};e.prototype.setVolume=function(e){this.volume=e};e.prototype.setRate=function(e){this.rate=e};e.prototype.setPitch=function(e){this.pitch=e};return e}();function m(e){return typeof e==="function"}var v=false;var k={Promise:undefined,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else if(v){console.log("RxJS: Back to a better error behavior. Thank you. <3")}v=e},get useDeprecatedSynchronousErrorHandling(){return v}};function x(e){setTimeout((function(){throw e}),0)}var y={closed:true,next:function(e){},error:function(e){if(k.useDeprecatedSynchronousErrorHandling){throw e}else{x(e)}},complete:function(){}};var w=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function _(e){return e!==null&&typeof e==="object"}var S=function(){function e(e){Error.call(this);this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=e;return this}e.prototype=Object.create(Error.prototype);return e}();var z=S;var $=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,r=n._parentOrParents,i=n._unsubscribe,s=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(r instanceof e){r.remove(this)}else if(r!==null){for(var l=0;l<r.length;++l){var o=r[l];o.remove(this)}}if(m(i)){try{i.call(this)}catch(u){t=u instanceof z?P(u.errors):[u]}}if(w(s)){var l=-1;var a=s.length;while(++l<a){var c=s[l];if(_(c)){try{c.unsubscribe()}catch(u){t=t||[];if(u instanceof z){t=t.concat(P(u.errors))}else{t.push(u)}}}}}if(t){throw new z(t)}};e.prototype.add=function(t){var n=t;if(!t){return e.EMPTY}switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||typeof n.unsubscribe!=="function"){return n}else if(this.closed){n.unsubscribe();return n}else if(!(n instanceof e)){var r=n;n=new e;n._subscriptions=[r]}break;default:{throw new Error("unrecognized teardown "+t+" added to Subscription.")}}var i=n._parentOrParents;if(i===null){n._parentOrParents=this}else if(i instanceof e){if(i===this){return n}n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return n}var s=this._subscriptions;if(s===null){this._subscriptions=[n]}else{s.push(n)}return n};e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}}};return e}();$.EMPTY=function(e){e.closed=true;return e}(new $);function P(e){return e.reduce((function(e,t){return e.concat(t instanceof z?t.errors:t)}),[])}var E=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var A=function(e){__extends(t,e);function t(n,r,i){var s=e.call(this)||this;s.syncErrorValue=null;s.syncErrorThrown=false;s.syncErrorThrowable=false;s.isStopped=false;switch(arguments.length){case 0:s.destination=y;break;case 1:if(!n){s.destination=y;break}if(typeof n==="object"){if(n instanceof t){s.syncErrorThrowable=n.syncErrorThrowable;s.destination=n;n.add(s)}else{s.syncErrorThrowable=true;s.destination=new R(s,n)}break}default:s.syncErrorThrowable=true;s.destination=new R(s,n,r,i);break}return s}t.prototype[E]=function(){return this};t.create=function(e,n,r){var i=new t(e,n,r);i.syncErrorThrowable=false;return i};t.prototype.next=function(e){if(!this.isStopped){this._next(e)}};t.prototype.error=function(e){if(!this.isStopped){this.isStopped=true;this._error(e)}};t.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};t.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;e.prototype.unsubscribe.call(this)};t.prototype._next=function(e){this.destination.next(e)};t.prototype._error=function(e){this.destination.error(e);this.unsubscribe()};t.prototype._complete=function(){this.destination.complete();this.unsubscribe()};t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=e;return this};return t}($);var R=function(e){__extends(t,e);function t(t,n,r,i){var s=e.call(this)||this;s._parentSubscriber=t;var l;var o=s;if(m(n)){l=n}else if(n){l=n.next;r=n.error;i=n.complete;if(n!==y){o=Object.create(n);if(m(o.unsubscribe)){s.add(o.unsubscribe.bind(o))}o.unsubscribe=s.unsubscribe.bind(s)}}s._context=o;s._next=l;s._error=r;s._complete=i;return s}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!k.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(this._next,e)}else if(this.__tryOrSetError(t,this._next,e)){this.unsubscribe()}}};t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;var n=k.useDeprecatedSynchronousErrorHandling;if(this._error){if(!n||!t.syncErrorThrowable){this.__tryOrUnsub(this._error,e);this.unsubscribe()}else{this.__tryOrSetError(t,this._error,e);this.unsubscribe()}}else if(!t.syncErrorThrowable){this.unsubscribe();if(n){throw e}x(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{x(e)}this.unsubscribe()}}};t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};if(!k.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(n);this.unsubscribe()}else{this.__tryOrSetError(t,n);this.unsubscribe()}}else{this.unsubscribe()}}};t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){this.unsubscribe();if(k.useDeprecatedSynchronousErrorHandling){throw n}else{x(n)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!k.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(r){if(k.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=r;e.syncErrorThrown=true;return true}else{x(r);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(A);function T(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof A){e=n}else{e=null}}return true}function C(e,t,n){if(e){if(e instanceof A){return e}if(e[E]){return e[E]()}}if(!e&&!t&&!n){return new A(y)}return new A(e,t,n)}var M=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function q(e){return e}function Z(e){if(e.length===0){return q}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var O=function(){function e(e){this._isScalar=false;if(e){this._subscribe=e}}e.prototype.lift=function(t){var n=new e;n.source=this;n.operator=t;return n};e.prototype.subscribe=function(e,t,n){var r=this.operator;var i=C(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||k.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(k.useDeprecatedSynchronousErrorHandling){if(i.syncErrorThrowable){i.syncErrorThrowable=false;if(i.syncErrorThrown){throw i.syncErrorValue}}}return i};e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){if(k.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(T(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=F(t);return new t((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n);if(i){i.unsubscribe()}}}),r,t)}))};e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)};e.prototype[M]=function(){return this};e.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e.length===0){return this}return Z(e)(this)};e.prototype.toPromise=function(e){var t=this;e=F(e);return new e((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))};return e}();O.create=function(e){return new O(e)};function F(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var j=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var L=j;var V=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.subject=t;r.subscriber=n;r.closed=false;return r}t.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var e=this.subject;var t=e.observers;this.subject=null;if(!t||t.length===0||e.isStopped||e.closed){return}var n=t.indexOf(this.subscriber);if(n!==-1){t.splice(n,1)}};return t}($);var D=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(A);var U=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.observers=[];t.closed=false;t.isStopped=false;t.hasError=false;t.thrownError=null;return t}t.prototype[E]=function(){return new D(this)};t.prototype.lift=function(e){var t=new I(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new L}if(!this.isStopped){var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].next(e)}}};t.prototype.error=function(e){if(this.closed){throw new L}this.hasError=true;this.thrownError=e;this.isStopped=true;var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].error(e)}this.observers.length=0};t.prototype.complete=function(){if(this.closed){throw new L}this.isStopped=true;var e=this.observers;var t=e.length;var n=e.slice();for(var r=0;r<t;r++){n[r].complete()}this.observers.length=0};t.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};t.prototype._trySubscribe=function(t){if(this.closed){throw new L}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new L}else if(this.hasError){e.error(this.thrownError);return $.EMPTY}else if(this.isStopped){e.complete();return $.EMPTY}else{this.observers.push(e);return new V(this,e)}};t.prototype.asObservable=function(){var e=new O;e.source=this;return e};return t}(O);U.create=function(e,t){return new I(e,t)};var I=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.destination=t;r.source=n;return r}t.prototype.next=function(e){var t=this.destination;if(t&&t.next){t.next(e)}};t.prototype.error=function(e){var t=this.destination;if(t&&t.error){this.destination.error(e)}};t.prototype.complete=function(){var e=this.destination;if(e&&e.complete){this.destination.complete()}};t.prototype._subscribe=function(e){var t=this.source;if(t){return this.source.subscribe(e)}else{return $.EMPTY}};return t}(U);var H=function(){function e(e){this.responseInfo={content:null,status:null};this.url=e}e.of=function(t){return new e(new URL(t))};e.prototype.loadFile=function(){var e=this.responseInfo;var t=new U;var n=new XMLHttpRequest;n.addEventListener("load",(function(t){e.content=n.responseText;console.log(t.total+" bytes gelesen.\n:"+e.content)}));n.onloadend=function(){e.status=n.status;console.log("Response Status:"+e.status);t.next(e)};n.open("GET",this.url.toString());n.send();return t};return e}();function B(e,t,n){return n={path:t,exports:{},require:function(e,t){return Q()}},e(n,n.exports),n.exports}function Q(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var N=B((function(e){function t(){return{baseUrl:null,breaks:false,gfm:true,headerIds:true,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:true,pedantic:false,renderer:null,sanitize:false,sanitizer:null,silent:false,smartLists:false,smartypants:false,tokenizer:null,xhtml:false}}function n(t){e.exports.defaults=t}e.exports={defaults:t(),getDefaults:t,changeDefaults:n}}));var Y=B((function(e){function t(){return{baseUrl:null,breaks:false,gfm:true,headerIds:true,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:true,pedantic:false,renderer:null,sanitize:false,sanitizer:null,silent:false,smartLists:false,smartypants:false,tokenizer:null,xhtml:false}}function n(t){e.exports.defaults=t}e.exports={defaults:t(),getDefaults:t,changeDefaults:n}}));var X=/[&<>"']/;var G=/[&<>"']/g;var J=/[<>"']|&(?!#?\w+;)/;var W=/[<>"']|&(?!#?\w+;)/g;var K={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};var ee=function(e){return K[e]};function te(e,t){if(t){if(X.test(e)){return e.replace(G,ee)}}else{if(J.test(e)){return e.replace(W,ee)}}return e}var ne=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function re(e){return e.replace(ne,(function(e,t){t=t.toLowerCase();if(t==="colon")return":";if(t.charAt(0)==="#"){return t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1))}return""}))}var ie=/(^|[^\[])\^/g;function se(e,t){e=e.source||e;t=t||"";var n={replace:function(t,r){r=r.source||r;r=r.replace(ie,"$1");e=e.replace(t,r);return n},getRegex:function(){return new RegExp(e,t)}};return n}var le=/[^\w:]/g;var oe=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ae(e,t,n){if(e){var r=void 0;try{r=decodeURIComponent(re(n)).replace(le,"").toLowerCase()}catch(i){return null}if(r.indexOf("javascript:")===0||r.indexOf("vbscript:")===0||r.indexOf("data:")===0){return null}}if(t&&!oe.test(n)){n=fe(t,n)}try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var ce={};var ue=/^[^:]+:\/*[^/]*$/;var pe=/^([^:]+:)[\s\S]*$/;var he=/^([^:]+:\/*[^/]*)[\s\S]*$/;function fe(e,t){if(!ce[" "+e]){if(ue.test(e)){ce[" "+e]=e+"/"}else{ce[" "+e]=me(e,"/",true)}}e=ce[" "+e];var n=e.indexOf(":")===-1;if(t.substring(0,2)==="//"){if(n){return t}return e.replace(pe,"$1")+t}else if(t.charAt(0)==="/"){if(n){return t}return e.replace(he,"$1")+t}else{return e+t}}var de={exec:function e(){}};function ge(e){var t=1,n,r;for(;t<arguments.length;t++){n=arguments[t];for(r in n){if(Object.prototype.hasOwnProperty.call(n,r)){e[r]=n[r]}}}return e}function be(e,t){var n=e.replace(/\|/g,(function(e,t,n){var r=false,i=t;while(--i>=0&&n[i]==="\\")r=!r;if(r){return"|"}else{return" |"}})),r=n.split(/ \|/);var i=0;if(r.length>t){r.splice(t)}else{while(r.length<t)r.push("")}for(;i<r.length;i++){r[i]=r[i].trim().replace(/\\\|/g,"|")}return r}function me(e,t,n){var r=e.length;if(r===0){return""}var i=0;while(i<r){var s=e.charAt(r-i-1);if(s===t&&!n){i++}else if(s!==t&&n){i++}else{break}}return e.substr(0,r-i)}function ve(e,t){if(e.indexOf(t[1])===-1){return-1}var n=e.length;var r=0,i=0;for(;i<n;i++){if(e[i]==="\\"){i++}else if(e[i]===t[0]){r++}else if(e[i]===t[1]){r--;if(r<0){return i}}}return-1}function ke(e){if(e&&e.sanitize&&!e.silent){console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}}var xe={escape:te,unescape:re,edit:se,cleanUrl:ae,resolveUrl:fe,noopTest:de,merge:ge,splitCells:be,rtrim:me,findClosingBracket:ve,checkSanitizeDeprecation:ke};var ye=xe.noopTest,we=xe.edit,_e=xe.merge;var Se={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:"+"<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?\\?>\\n*"+"|<![A-Z][\\s\\S]*?>\\n*"+"|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*"+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)"+"|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)"+"|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)"+")",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:ye,table:ye,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Se._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;Se._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Se.def=we(Se.def).replace("label",Se._label).replace("title",Se._title).getRegex();Se.bullet=/(?:[*+-]|\d{1,9}\.)/;Se.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;Se.item=we(Se.item,"gm").replace(/bull/g,Se.bullet).getRegex();Se.list=we(Se.list).replace(/bull/g,Se.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Se.def.source+")").getRegex();Se._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";Se._comment=/<!--(?!-?>)[\s\S]*?-->/;Se.html=we(Se.html,"i").replace("comment",Se._comment).replace("tag",Se._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Se.paragraph=we(Se._paragraph).replace("hr",Se.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Se._tag).getRegex();Se.blockquote=we(Se.blockquote).replace("paragraph",Se.paragraph).getRegex();Se.normal=_e({},Se);Se.gfm=_e({},Se.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n"+" *([-:]+ *\\|[-| :]*)"+"(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n"+" *\\|?( *[-:]+[-| :]*)"+"(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});Se.gfm.nptable=we(Se.gfm.nptable).replace("hr",Se.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Se._tag).getRegex();Se.gfm.table=we(Se.gfm.table).replace("hr",Se.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Se._tag).getRegex();Se.pedantic=_e({},Se.normal,{html:we("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)"+"|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Se._comment).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:ye,paragraph:we(Se.normal._paragraph).replace("hr",Se.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Se.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var ze={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ye,tag:"^comment"+"|^</[a-zA-Z][\\w:-]*\\s*>"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^<![a-zA-Z]+\\s[\\s\\S]*?>"+"|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^_([^\s_<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s*<\[])\*(?!\*)|^\*([^\s<"][\s\S]*?[^\s\[\*])\*(?![\]`punctuation])|^\*([^\s*"<\[][\s\S]*[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ye,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};ze._punctuation="!\"#$%&'()*+\\-./:;<=>?@\\[^_{|}~";ze.em=we(ze.em).replace(/punctuation/g,ze._punctuation).getRegex();ze._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;ze._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;ze._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])?)+(?![-_])/;ze.autolink=we(ze.autolink).replace("scheme",ze._scheme).replace("email",ze._email).getRegex();ze._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;ze.tag=we(ze.tag).replace("comment",Se._comment).replace("attribute",ze._attribute).getRegex();ze._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;ze._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/;ze._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;ze.link=we(ze.link).replace("label",ze._label).replace("href",ze._href).replace("title",ze._title).getRegex();ze.reflink=we(ze.reflink).replace("label",ze._label).getRegex();ze.normal=_e({},ze);ze.pedantic=_e({},ze.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:we(/^!?\[(label)\]\((.*?)\)/).replace("label",ze._label).getRegex(),reflink:we(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ze._label).getRegex()});ze.gfm=_e({},ze.normal,{escape:we(ze.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*~]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))|(?= {2,}\n|[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@))/});ze.gfm.url=we(ze.gfm.url,"i").replace("email",ze.gfm._extended_email).getRegex();ze.breaks=_e({},ze.gfm,{br:we(ze.br).replace("{2,}","*").getRegex(),text:we(ze.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var $e=Y.defaults;var Pe=xe.rtrim,Ee=xe.splitCells,Ae=xe.escape,Re=xe.findClosingBracket;function Te(e,t,n){var r=t.href;var i=t.title?Ae(t.title):null;if(e[0].charAt(0)!=="!"){return{type:"link",raw:n,href:r,title:i,text:e[1]}}else{return{type:"image",raw:n,text:Ae(e[1]),href:r,title:i}}}var Ce=function(){function e(e){this.options=e||$e}e.prototype.space=function(e){var t=this.rules.block.newline.exec(e);if(t){if(t[0].length>1){return{type:"space",raw:t[0]}}return{raw:"\n"}}};e.prototype.code=function(e,t){var n=this.rules.block.code.exec(e);if(n){var r=t[t.length-1];if(r&&r.type==="paragraph"){t.pop();r.text+="\n"+n[0].trimRight();r.raw+="\n"+n[0];return r}else{var i=n[0].replace(/^ {4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:!this.options.pedantic?Pe(i,"\n"):i}}}};e.prototype.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){return{type:"code",raw:t[0],lang:t[2]?t[2].trim():t[2],text:t[3]||""}}};e.prototype.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}}};e.prototype.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:Ee(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r=n.align.length;var i=void 0;for(i=0;i<r;i++){if(/^ *-+: *$/.test(n.align[i])){n.align[i]="right"}else if(/^ *:-+: *$/.test(n.align[i])){n.align[i]="center"}else if(/^ *:-+ *$/.test(n.align[i])){n.align[i]="left"}else{n.align[i]=null}}r=n.cells.length;for(i=0;i<r;i++){n.cells[i]=Ee(n.cells[i],n.header.length)}return n}}};e.prototype.hr=function(e){var t=this.rules.block.hr.exec(e);if(t){return{type:"hr",raw:t[0]}}};e.prototype.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}};e.prototype.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n=t[0];var r=t[2];var i=r.length>1;var s={type:"list",raw:n,ordered:i,start:i?+r:"",loose:false,items:[]};var l=t[0].match(this.rules.block.item);var o=false,a=void 0,c=void 0,u=void 0,p=void 0,h=void 0,f=void 0,d=void 0;var g=l.length;for(var b=0;b<g;b++){a=l[b];n=a;c=a.length;a=a.replace(/^ *([*+-]|\d+\.) */,"");if(~a.indexOf("\n ")){c-=a.length;a=!this.options.pedantic?a.replace(new RegExp("^ {1,"+c+"}","gm"),""):a.replace(/^ {1,4}/gm,"")}if(b!==g-1){u=this.rules.block.bullet.exec(l[b+1])[0];if(r.length>1?u.length===1:u.length>1||this.options.smartLists&&u!==r){p=l.slice(b+1).join("\n");s.raw=s.raw.substring(0,s.raw.length-p.length);b=g-1}}h=o||/\n\n(?!\s*$)/.test(a);if(b!==g-1){o=a.charAt(a.length-1)==="\n";if(!h)h=o}if(h){s.loose=true}f=/^\[[ xX]\] /.test(a);d=undefined;if(f){d=a[1]!==" ";a=a.replace(/^\[[ xX]\] +/,"")}s.items.push({raw:n,task:f,checked:d,loose:h,text:a})}return s}};e.prototype.html=function(e){var t=this.rules.block.html.exec(e);if(t){return{type:this.options.sanitize?"paragraph":"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):Ae(t[0]):t[0]}}};e.prototype.def=function(e){var t=this.rules.block.def.exec(e);if(t){if(t[3])t[3]=t[3].substring(1,t[3].length-1);var n=t[1].toLowerCase().replace(/\s+/g," ");return{tag:n,raw:t[0],href:t[2],title:t[3]}}};e.prototype.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:Ee(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r=n.align.length;var i=void 0;for(i=0;i<r;i++){if(/^ *-+: *$/.test(n.align[i])){n.align[i]="right"}else if(/^ *:-+: *$/.test(n.align[i])){n.align[i]="center"}else if(/^ *:-+ *$/.test(n.align[i])){n.align[i]="left"}else{n.align[i]=null}}r=n.cells.length;for(i=0;i<r;i++){n.cells[i]=Ee(n.cells[i].replace(/^ *\| *| *\| *$/g,""),n.header.length)}return n}}};e.prototype.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t){return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1]}}};e.prototype.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){return{type:"paragraph",raw:t[0],text:t[1].charAt(t[1].length-1)==="\n"?t[1].slice(0,-1):t[1]}}};e.prototype.text=function(e){var t=this.rules.block.text.exec(e);if(t){return{type:"text",raw:t[0],text:t[0]}}};e.prototype.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t){return{type:"escape",raw:t[0],text:Ae(t[1])}}};e.prototype.tag=function(e,t,n){var r=this.rules.inline.tag.exec(e);if(r){if(!t&&/^<a /i.test(r[0])){t=true}else if(t&&/^<\/a>/i.test(r[0])){t=false}if(!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])){n=true}else if(n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])){n=false}return{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ae(r[0]):r[0]}}};e.prototype.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=Re(t[2],"()");if(n>-1){var r=t[0].indexOf("!")===0?5:4;var i=r+t[1].length+n;t[2]=t[2].substring(0,n);t[0]=t[0].substring(0,i).trim();t[3]=""}var s=t[2];var l="";if(this.options.pedantic){var o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s);if(o){s=o[1];l=o[3]}else{l=""}}else{l=t[3]?t[3].slice(1,-1):""}s=s.trim().replace(/^<([\s\S]*)>$/,"$1");var a=Te(t,{href:s?s.replace(this.rules.inline._escapes,"$1"):s,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0]);return a}};e.prototype.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," ");r=t[r.toLowerCase()];if(!r||!r.href){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}var s=Te(n,r,n[0]);return s}};e.prototype.strong=function(e){var t=this.rules.inline.strong.exec(e);if(t){return{type:"strong",raw:t[0],text:t[4]||t[3]||t[2]||t[1]}}};e.prototype.em=function(e){var t=this.rules.inline.em.exec(e);if(t){return{type:"em",raw:t[0],text:t[6]||t[5]||t[4]||t[3]||t[2]||t[1]}}};e.prototype.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){return{type:"codespan",raw:t[0],text:Ae(t[2].trim(),true)}}};e.prototype.br=function(e){var t=this.rules.inline.br.exec(e);if(t){return{type:"br",raw:t[0]}}};e.prototype.del=function(e){var t=this.rules.inline.del.exec(e);if(t){return{type:"del",raw:t[0],text:t[1]}}};e.prototype.autolink=function(e,t){var n=this.rules.inline.autolink.exec(e);if(n){var r=void 0,i=void 0;if(n[2]==="@"){r=Ae(this.options.mangle?t(n[1]):n[1]);i="mailto:"+r}else{r=Ae(n[1]);i=r}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}};e.prototype.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r=void 0,i=void 0;if(n[2]==="@"){r=Ae(this.options.mangle?t(n[0]):n[0]);i="mailto:"+r}else{var s=void 0;do{s=n[0];n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(s!==n[0]);r=Ae(n[0]);if(n[1]==="www."){i="http://"+r}else{i=r}}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}};e.prototype.inlineText=function(e,t,n){var r=this.rules.inline.text.exec(e);if(r){var i=void 0;if(t){i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):Ae(r[0]):r[0]}else{i=Ae(this.options.smartypants?n(r[0]):r[0])}return{type:"text",raw:r[0],text:i}}};return e}();var Me=xe.noopTest,qe=xe.edit,Ze=xe.merge;var Oe={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:"+"<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?\\?>\\n*"+"|<![A-Z][\\s\\S]*?>\\n*"+"|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*"+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)"+"|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)"+"|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)"+")",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:Me,table:Me,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};Oe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;Oe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;Oe.def=qe(Oe.def).replace("label",Oe._label).replace("title",Oe._title).getRegex();Oe.bullet=/(?:[*+-]|\d{1,9}\.)/;Oe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/;Oe.item=qe(Oe.item,"gm").replace(/bull/g,Oe.bullet).getRegex();Oe.list=qe(Oe.list).replace(/bull/g,Oe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Oe.def.source+")").getRegex();Oe._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";Oe._comment=/<!--(?!-?>)[\s\S]*?-->/;Oe.html=qe(Oe.html,"i").replace("comment",Oe._comment).replace("tag",Oe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();Oe.paragraph=qe(Oe._paragraph).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Oe._tag).getRegex();Oe.blockquote=qe(Oe.blockquote).replace("paragraph",Oe.paragraph).getRegex();Oe.normal=Ze({},Oe);Oe.gfm=Ze({},Oe.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n"+" *([-:]+ *\\|[-| :]*)"+"(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n"+" *\\|?( *[-:]+[-| :]*)"+"(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});Oe.gfm.nptable=qe(Oe.gfm.nptable).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Oe._tag).getRegex();Oe.gfm.table=qe(Oe.gfm.table).replace("hr",Oe.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|!--)").replace("tag",Oe._tag).getRegex();Oe.pedantic=Ze({},Oe.normal,{html:qe("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)"+"|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Oe._comment).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:Me,paragraph:qe(Oe.normal._paragraph).replace("hr",Oe.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Oe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Fe={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Me,tag:"^comment"+"|^</[a-zA-Z][\\w:-]*\\s*>"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^<![a-zA-Z]+\\s[\\s\\S]*?>"+"|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^_([^\s_<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s*<\[])\*(?!\*)|^\*([^\s<"][\s\S]*?[^\s\[\*])\*(?![\]`punctuation])|^\*([^\s*"<\[][\s\S]*[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:Me,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\<!\[`*]|\b_|$)|[^ ](?= {2,}\n))|(?= {2,}\n))/};Fe._punctuation="!\"#$%&'()*+\\-./:;<=>?@\\[^_{|}~";Fe.em=qe(Fe.em).replace(/punctuation/g,Fe._punctuation).getRegex();Fe._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;Fe._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;Fe._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])?)+(?![-_])/;Fe.autolink=qe(Fe.autolink).replace("scheme",Fe._scheme).replace("email",Fe._email).getRegex();Fe._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;F