ai12z 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/cjs/ai12z-bot_10.cjs.entry.js +3 -3
  2. package/dist/cjs/ai12z-carousel.cjs.entry.js +1 -1
  3. package/dist/cjs/{ai12z-cta-7eb3dd6c.js → ai12z-cta-92484e63.js} +13 -13
  4. package/dist/cjs/ai12z-cta-92484e63.js.map +1 -0
  5. package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js → ai12z-knowledge-box-c33465fe.js} +3 -3
  6. package/dist/cjs/{ai12z-knowledge-box-d6d579f8.js.map → ai12z-knowledge-box-c33465fe.js.map} +1 -1
  7. package/dist/cjs/ai12z-knowledge-box.cjs.entry.js +3 -3
  8. package/dist/cjs/ai12z-spinner.cjs.entry.js +1 -1
  9. package/dist/cjs/dynamic-form.cjs.entry.js +1 -1
  10. package/dist/cjs/{index-f098743c.js → index-171f7ecf.js} +2 -2
  11. package/dist/cjs/index-171f7ecf.js.map +1 -0
  12. package/dist/cjs/index.cjs.js +4 -4
  13. package/dist/cjs/library.cjs.js +1 -1
  14. package/dist/cjs/list-data.cjs.entry.js +1 -1
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/cjs/{utils-f0adbba9.js → utils-c9b045e3.js} +2 -2
  17. package/dist/cjs/{utils-f0adbba9.js.map → utils-c9b045e3.js.map} +1 -1
  18. package/dist/collection/components/ai12z-bot/ai12z-bot.js +8 -8
  19. package/dist/collection/components/ai12z-bot/ai12z-bot.js.map +1 -1
  20. package/dist/collection/utils/logger.js +15 -1
  21. package/dist/collection/utils/logger.js.map +1 -1
  22. package/dist/esm/ai12z-bot_10.entry.js +4 -4
  23. package/dist/esm/ai12z-carousel.entry.js +1 -1
  24. package/dist/esm/{ai12z-cta-e143bfc1.js → ai12z-cta-2b941e5b.js} +11 -11
  25. package/dist/esm/ai12z-cta-2b941e5b.js.map +1 -0
  26. package/dist/esm/{ai12z-knowledge-box-704c29af.js → ai12z-knowledge-box-aceba174.js} +3 -3
  27. package/dist/esm/{ai12z-knowledge-box-704c29af.js.map → ai12z-knowledge-box-aceba174.js.map} +1 -1
  28. package/dist/esm/ai12z-knowledge-box.entry.js +3 -3
  29. package/dist/esm/ai12z-spinner.entry.js +1 -1
  30. package/dist/esm/dynamic-form.entry.js +1 -1
  31. package/dist/esm/{index-39265a7d.js → index-9f7965fd.js} +2 -2
  32. package/dist/esm/index-9f7965fd.js.map +1 -0
  33. package/dist/esm/index.js +4 -4
  34. package/dist/esm/library.js +2 -2
  35. package/dist/esm/list-data.entry.js +1 -1
  36. package/dist/esm/loader.js +2 -2
  37. package/dist/esm/{utils-96bbd030.js → utils-a4deff47.js} +2 -2
  38. package/dist/esm/{utils-96bbd030.js.map → utils-a4deff47.js.map} +1 -1
  39. package/dist/library/index.esm.js +1 -1
  40. package/dist/library/library.esm.js +1 -1
  41. package/dist/library/p-682c54c0.js +3 -0
  42. package/dist/library/p-682c54c0.js.map +1 -0
  43. package/dist/library/{p-85691232.entry.js → p-7673db22.entry.js} +2 -2
  44. package/dist/library/{p-4fc9c2e8.js → p-973b27e2.js} +2 -2
  45. package/dist/library/{p-eeec7af3.js → p-9c383265.js} +2 -2
  46. package/dist/library/{p-eeec7af3.js.map → p-9c383265.js.map} +1 -1
  47. package/dist/library/{p-cfcf9f4d.js → p-b5fa76af.js} +2 -2
  48. package/dist/library/{p-c42b9950.entry.js → p-de0be744.entry.js} +2 -2
  49. package/dist/library/p-dea64110.entry.js +2 -0
  50. package/dist/library/{p-233361ad.entry.js → p-e81a8495.entry.js} +2 -2
  51. package/dist/library/{p-8dc9633d.entry.js → p-ed972184.entry.js} +2 -2
  52. package/dist/library/{p-b46a067b.entry.js → p-ee0c4132.entry.js} +2 -2
  53. package/package.json +2 -2
  54. package/dist/cjs/ai12z-cta-7eb3dd6c.js.map +0 -1
  55. package/dist/cjs/index-f098743c.js.map +0 -1
  56. package/dist/esm/ai12z-cta-e143bfc1.js.map +0 -1
  57. package/dist/esm/index-39265a7d.js.map +0 -1
  58. package/dist/library/p-b48f3cde.js +0 -3
  59. package/dist/library/p-b48f3cde.js.map +0 -1
  60. package/dist/library/p-e6aa7d00.entry.js +0 -2
  61. /package/dist/library/{p-85691232.entry.js.map → p-7673db22.entry.js.map} +0 -0
  62. /package/dist/library/{p-4fc9c2e8.js.map → p-973b27e2.js.map} +0 -0
  63. /package/dist/library/{p-cfcf9f4d.js.map → p-b5fa76af.js.map} +0 -0
  64. /package/dist/library/{p-c42b9950.entry.js.map → p-de0be744.entry.js.map} +0 -0
  65. /package/dist/library/{p-e6aa7d00.entry.js.map → p-dea64110.entry.js.map} +0 -0
  66. /package/dist/library/{p-233361ad.entry.js.map → p-e81a8495.entry.js.map} +0 -0
  67. /package/dist/library/{p-8dc9633d.entry.js.map → p-ed972184.entry.js.map} +0 -0
  68. /package/dist/library/{p-b46a067b.entry.js.map → p-ee0c4132.entry.js.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{E as e}from"./p-b48f3cde.js";const t=Object.create(null);t["open"]="0";t["close"]="1";t["ping"]="2";t["pong"]="3";t["message"]="4";t["upgrade"]="5";t["noop"]="6";const n=Object.create(null);Object.keys(t).forEach((e=>{n[t[e]]=e}));const i={type:"error",data:"parser error"};const r=typeof Blob==="function"||typeof Blob!=="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]";const s=typeof ArrayBuffer==="function";const o=e=>typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer;const a=({type:e,data:n},i,a)=>{if(r&&n instanceof Blob){if(i){return a(n)}else{return l(n,a)}}else if(s&&(n instanceof ArrayBuffer||o(n))){if(i){return a(n)}else{return l(new Blob([n]),a)}}return a(t[e]+(n||""))};const l=(e,t)=>{const n=new FileReader;n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))};return n.readAsDataURL(e)};function c(e){if(e instanceof Uint8Array){return e}else if(e instanceof ArrayBuffer){return new Uint8Array(e)}else{return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}}let u;function f(e,t){if(r&&e.data instanceof Blob){return e.data.arrayBuffer().then(c).then(t)}else if(s&&(e.data instanceof ArrayBuffer||o(e.data))){return t(c(e.data))}a(e,false,(e=>{if(!u){u=new TextEncoder}t(u.encode(e))}))}const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const d=typeof Uint8Array==="undefined"?[]:new Uint8Array(256);for(let e=0;e<h.length;e++){d[h.charCodeAt(e)]=e}const p=e=>{let t=e.length*.75,n=e.length,i,r=0,s,o,a,l;if(e[e.length-1]==="="){t--;if(e[e.length-2]==="="){t--}}const c=new ArrayBuffer(t),u=new Uint8Array(c);for(i=0;i<n;i+=4){s=d[e.charCodeAt(i)];o=d[e.charCodeAt(i+1)];a=d[e.charCodeAt(i+2)];l=d[e.charCodeAt(i+3)];u[r++]=s<<2|o>>4;u[r++]=(o&15)<<4|a>>2;u[r++]=(a&3)<<6|l&63}return c};const g=typeof ArrayBuffer==="function";const m=(e,t)=>{if(typeof e!=="string"){return{type:"message",data:b(e,t)}}const r=e.charAt(0);if(r==="b"){return{type:"message",data:_(e.substring(1),t)}}const s=n[r];if(!s){return i}return e.length>1?{type:n[r],data:e.substring(1)}:{type:n[r]}};const _=(e,t)=>{if(g){const n=p(e);return b(n,t)}else{return{base64:true,data:e}}};const b=(e,t)=>{switch(t){case"blob":if(e instanceof Blob){return e}else{return new Blob([e])}case"arraybuffer":default:if(e instanceof ArrayBuffer){return e}else{return e.buffer}}};const w=String.fromCharCode(30);const k=(e,t)=>{const n=e.length;const i=new Array(n);let r=0;e.forEach(((e,s)=>{a(e,false,(e=>{i[s]=e;if(++r===n){t(i.join(w))}}))}))};const y=(e,t)=>{const n=e.split(w);const i=[];for(let e=0;e<n.length;e++){const r=m(n[e],t);i.push(r);if(r.type==="error"){break}}return i};function v(){return new TransformStream({transform(e,t){f(e,(n=>{const i=n.length;let r;if(i<126){r=new Uint8Array(1);new DataView(r.buffer).setUint8(0,i)}else if(i<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126);e.setUint16(1,i)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127);e.setBigUint64(1,BigInt(i))}if(e.data&&typeof e.data!=="string"){r[0]|=128}t.enqueue(r);t.enqueue(n)}))}})}let x;function j(e){return e.reduce(((e,t)=>e+t.length),0)}function z(e,t){if(e[0].length===t){return e.shift()}const n=new Uint8Array(t);let i=0;for(let r=0;r<t;r++){n[r]=e[0][i++];if(i===e[0].length){e.shift();i=0}}if(e.length&&i<e[0].length){e[0]=e[0].slice(i)}return n}function S(e,t){if(!x){x=new TextDecoder}const n=[];let r=0;let s=-1;let o=false;return new TransformStream({transform(a,l){n.push(a);while(true){if(r===0){if(j(n)<1){break}const e=z(n,1);o=(e[0]&128)===128;s=e[0]&127;if(s<126){r=3}else if(s===126){r=1}else{r=2}}else if(r===1){if(j(n)<2){break}const e=z(n,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0);r=3}else if(r===2){if(j(n)<8){break}const e=z(n,8);const t=new DataView(e.buffer,e.byteOffset,e.length);const o=t.getUint32(0);if(o>Math.pow(2,53-32)-1){l.enqueue(i);break}s=o*Math.pow(2,32)+t.getUint32(4);r=3}else{if(j(n)<s){break}const e=z(n,s);l.enqueue(m(o?e:x.decode(e),t));r=0}if(s===0||s>e){l.enqueue(i);break}}}})}const E=4;function M(e){if(e)return A(e)}function A(e){for(var t in M.prototype){e[t]=M.prototype[t]}return e}M.prototype.on=M.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};M.prototype.once=function(e,t){function n(){this.off(e,n);t.apply(this,arguments)}n.fn=t;this.on(e,n);return this};M.prototype.off=M.prototype.removeListener=M.prototype.removeAllListeners=M.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var i;for(var r=0;r<n.length;r++){i=n[r];if(i===t||i.fn===t){n.splice(r,1);break}}if(n.length===0){delete this._callbacks["$"+e]}return this};M.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=new Array(arguments.length-1),n=this._callbacks["$"+e];for(var i=1;i<arguments.length;i++){t[i-1]=arguments[i]}if(n){n=n.slice(0);for(var i=0,r=n.length;i<r;++i){n[i].apply(this,t)}}return this};M.prototype.emitReserved=M.prototype.emit;M.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};M.prototype.hasListeners=function(e){return!!this.listeners(e).length};const T=(()=>{if(typeof self!=="undefined"){return self}else if(typeof window!=="undefined"){return window}else{return Function("return this")()}})();function B(e,...t){return t.reduce(((t,n)=>{if(e.hasOwnProperty(n)){t[n]=e[n]}return t}),{})}const C=T.setTimeout;const $=T.clearTimeout;function L(e,t){if(t.useNativeTimers){e.setTimeoutFn=C.bind(T);e.clearTimeoutFn=$.bind(T)}else{e.setTimeoutFn=T.setTimeout.bind(T);e.clearTimeoutFn=T.clearTimeout.bind(T)}}const I=1.33;function O(e){if(typeof e==="string"){return P(e)}return Math.ceil((e.byteLength||e.size)*I)}function P(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++){t=e.charCodeAt(i);if(t<128){n+=1}else if(t<2048){n+=2}else if(t<55296||t>=57344){n+=3}else{i++;n+=4}}return n}function q(e){let t="";for(let n in e){if(e.hasOwnProperty(n)){if(t.length)t+="&";t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n])}}return t}function H(e){let t={};let n=e.split("&");for(let e=0,i=n.length;e<i;e++){let i=n[e].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class R extends Error{constructor(e,t,n){super(e);this.description=t;this.context=n;this.type="TransportError"}}class D extends M{constructor(e){super();this.writable=false;L(this,e);this.opts=e;this.query=e.query;this.socket=e.socket}onError(e,t,n){super.emitReserved("error",new R(e,t,n));return this}open(){this.readyState="opening";this.doOpen();return this}close(){if(this.readyState==="opening"||this.readyState==="open"){this.doClose();this.onClose()}return this}send(e){if(this.readyState==="open"){this.write(e)}}onOpen(){this.readyState="open";this.writable=true;super.emitReserved("open")}onData(e){const t=m(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed";super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)){return":"+this.opts.port}else{return""}}_query(e){const t=q(e);return t.length?"?"+t:""}}const V="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),N=64,G={};let U=0,F=0,W;function K(e){let t="";do{t=V[e%N]+t;e=Math.floor(e/N)}while(e>0);return t}function Z(){const e=K(+new Date);if(e!==W)return U=0,W=e;return e+"."+K(U++)}for(;F<N;F++)G[V[F]]=F;let X=false;try{X=typeof XMLHttpRequest!=="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}const J=X;function Q(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||J)){return new XMLHttpRequest}}catch(e){}if(!t){try{return new(T[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}function Y(){}function ee(){}const te=function(){const e=new Q({xdomain:false});return null!=e.responseType}();class ne extends D{constructor(e){super(e);this.polling=false;if(typeof location!=="undefined"){const t="https:"===location.protocol;let n=location.port;if(!n){n=t?"443":"80"}this.xd=typeof location!=="undefined"&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=te&&!t;if(this.opts.withCredentials){this.cookieJar=Y()}}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused";e()};if(this.polling||!this.writable){let e=0;if(this.polling){e++;this.once("pollComplete",(function(){--e||t()}))}if(!this.writable){e++;this.once("drain",(function(){--e||t()}))}}else{t()}}poll(){this.polling=true;this.doPoll();this.emitReserved("poll")}onData(e){const t=e=>{if("opening"===this.readyState&&e.type==="open"){this.onOpen()}if("close"===e.type){this.onClose({description:"transport closed by the server"});return false}this.onPacket(e)};y(e,this.socket.binaryType).forEach(t);if("closed"!==this.readyState){this.polling=false;this.emitReserved("pollComplete");if("open"===this.readyState){this.poll()}}}doClose(){const e=()=>{this.write([{type:"close"}])};if("open"===this.readyState){e()}else{this.once("open",e)}}write(e){this.writable=false;k(e,(e=>{this.doWrite(e,(()=>{this.writable=true;this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http";const t=this.query||{};if(false!==this.opts.timestampRequests){t[this.opts.timestampParam]=Z()}if(!this.supportsBinary&&!t.sid){t.b64=1}return this.createUri(e,t)}request(e={}){Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts);return new ie(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t);n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this));e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)}));this.pollXhr=e}}class ie extends M{constructor(e,t){super();L(this,t);this.opts=t;this.method=t.method||"GET";this.uri=e;this.data=undefined!==t.data?t.data:null;this.create()}create(){var e;const t=B(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new Q(t);try{n.open(this.method,this.uri,true);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(true);for(let e in this.opts.extraHeaders){if(this.opts.extraHeaders.hasOwnProperty(e)){n.setRequestHeader(e,this.opts.extraHeaders[e])}}}}catch(e){}if("POST"===this.method){try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}}try{n.setRequestHeader("Accept","*/*")}catch(e){}(e=this.opts.cookieJar)===null||e===void 0?void 0:e.addCookies(n);if("withCredentials"in n){n.withCredentials=this.opts.withCredentials}if(this.opts.requestTimeout){n.timeout=this.opts.requestTimeout}n.onreadystatechange=()=>{var e;if(n.readyState===3){(e=this.opts.cookieJar)===null||e===void 0?void 0:e.parseCookies(n)}if(4!==n.readyState)return;if(200===n.status||1223===n.status){this.onLoad()}else{this.setTimeoutFn((()=>{this.onError(typeof n.status==="number"?n.status:0)}),0)}};n.send(this.data)}catch(e){this.setTimeoutFn((()=>{this.onError(e)}),0);return}if(typeof document!=="undefined"){this.index=ie.requestsCount++;ie.requests[this.index]=this}}onError(e){this.emitReserved("error",e,this.xhr);this.cleanup(true)}cleanup(e){if("undefined"===typeof this.xhr||null===this.xhr){return}this.xhr.onreadystatechange=ee;if(e){try{this.xhr.abort()}catch(e){}}if(typeof document!=="undefined"){delete ie.requests[this.index]}this.xhr=null}onLoad(){const e=this.xhr.responseText;if(e!==null){this.emitReserved("data",e);this.emitReserved("success");this.cleanup()}}abort(){this.cleanup()}}ie.requestsCount=0;ie.requests={};if(typeof document!=="undefined"){if(typeof attachEvent==="function"){attachEvent("onunload",re)}else if(typeof addEventListener==="function"){const e="onpagehide"in T?"pagehide":"unload";addEventListener(e,re,false)}}function re(){for(let e in ie.requests){if(ie.requests.hasOwnProperty(e)){ie.requests[e].abort()}}}const se=(()=>{const e=typeof Promise==="function"&&typeof Promise.resolve==="function";if(e){return e=>Promise.resolve().then(e)}else{return(e,t)=>t(e,0)}})();const oe=T.WebSocket||T.MozWebSocket;const ae="arraybuffer";const le=typeof navigator!=="undefined"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class ce extends D{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check()){return}const e=this.uri();const t=this.opts.protocols;const n=le?{}:B(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders){n.headers=this.opts.extraHeaders}try{this.ws=!le?t?new oe(e,t):new oe(e):new oe(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType;this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref){this.ws._socket.unref()}this.onOpen()};this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e});this.ws.onmessage=e=>this.onData(e.data);this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=false;for(let t=0;t<e.length;t++){const n=e[t];const i=t===e.length-1;a(n,this.supportsBinary,(e=>{try{{this.ws.send(e)}}catch(e){}if(i){se((()=>{this.writable=true;this.emitReserved("drain")}),this.setTimeoutFn)}}))}}doClose(){if(typeof this.ws!=="undefined"){this.ws.close();this.ws=null}}uri(){const e=this.opts.secure?"wss":"ws";const t=this.query||{};if(this.opts.timestampRequests){t[this.opts.timestampParam]=Z()}if(!this.supportsBinary){t.b64=1}return this.createUri(e,t)}check(){return!!oe}}class ue extends D{get name(){return"webtransport"}doOpen(){if(typeof WebTransport!=="function"){return}this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]);this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)}));this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=S(Number.MAX_SAFE_INTEGER,this.socket.binaryType);const n=e.readable.pipeThrough(t).getReader();const i=v();i.readable.pipeTo(e.writable);this.writer=i.writable.getWriter();const r=()=>{n.read().then((({done:e,value:t})=>{if(e){return}this.onPacket(t);r()})).catch((e=>{}))};r();const s={type:"open"};if(this.query.sid){s.data=`{"sid":"${this.query.sid}"}`}this.writer.write(s).then((()=>this.onOpen()))}))}))}write(e){this.writable=false;for(let t=0;t<e.length;t++){const n=e[t];const i=t===e.length-1;this.writer.write(n).then((()=>{if(i){se((()=>{this.writable=true;this.emitReserved("drain")}),this.setTimeoutFn)}}))}}doClose(){var e;(e=this.transport)===null||e===void 0?void 0:e.close()}}const fe={websocket:ce,webtransport:ue,polling:ne};const he=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;const de=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function pe(e){if(e.length>2e3){throw"URI too long"}const t=e,n=e.indexOf("["),i=e.indexOf("]");if(n!=-1&&i!=-1){e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length)}let r=he.exec(e||""),s={},o=14;while(o--){s[de[o]]=r[o]||""}if(n!=-1&&i!=-1){s.source=t;s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":");s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":");s.ipv6uri=true}s.pathNames=ge(s,s["path"]);s.queryKey=me(s,s["query"]);return s}function ge(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");if(t.slice(0,1)=="/"||t.length===0){i.splice(0,1)}if(t.slice(-1)=="/"){i.splice(i.length-1,1)}return i}function me(e,t){const n={};t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,i){if(t){n[t]=i}}));return n}class _e extends M{constructor(e,t={}){super();this.binaryType=ae;this.writeBuffer=[];if(e&&"object"===typeof e){t=e;e=null}if(e){e=pe(e);t.hostname=e.host;t.secure=e.protocol==="https"||e.protocol==="wss";t.port=e.port;if(e.query)t.query=e.query}else if(t.host){t.hostname=pe(t.host).host}L(this,t);this.secure=null!=t.secure?t.secure:typeof location!=="undefined"&&"https:"===location.protocol;if(t.hostname&&!t.port){t.port=this.secure?"443":"80"}this.hostname=t.hostname||(typeof location!=="undefined"?location.hostname:"localhost");this.port=t.port||(typeof location!=="undefined"&&location.port?location.port:this.secure?"443":"80");this.transports=t.transports||["polling","websocket","webtransport"];this.writeBuffer=[];this.prevBufferLen=0;this.opts=Object.assign({path:"/engine.io",agent:false,withCredentials:false,upgrade:true,timestampParam:"t",rememberUpgrade:false,addTrailingSlash:true,rejectUnauthorized:true,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:false},t);this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":"");if(typeof this.opts.query==="string"){this.opts.query=H(this.opts.query)}this.id=null;this.upgrades=null;this.pingInterval=null;this.pingTimeout=null;this.pingTimeoutTimer=null;if(typeof addEventListener==="function"){if(this.opts.closeOnBeforeunload){this.beforeunloadEventListener=()=>{if(this.transport){this.transport.removeAllListeners();this.transport.close()}};addEventListener("beforeunload",this.beforeunloadEventListener,false)}if(this.hostname!=="localhost"){this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})};addEventListener("offline",this.offlineEventListener,false)}}this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=E;t.transport=e;if(this.id)t.sid=this.id;const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new fe[e](n)}open(){let e;if(this.opts.rememberUpgrade&&_e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1){e="websocket"}else if(0===this.transports.length){this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);return}else{e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift();this.open();return}e.open();this.setTransport(e)}setTransport(e){if(this.transport){this.transport.removeAllListeners()}this.transport=e;e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e);let n=false;_e.priorWebsocketSuccess=false;const i=()=>{if(n)return;t.send([{type:"ping",data:"probe"}]);t.once("packet",(e=>{if(n)return;if("pong"===e.type&&"probe"===e.data){this.upgrading=true;this.emitReserved("upgrading",t);if(!t)return;_e.priorWebsocketSuccess="websocket"===t.name;this.transport.pause((()=>{if(n)return;if("closed"===this.readyState)return;c();this.setTransport(t);t.send([{type:"upgrade"}]);this.emitReserved("upgrade",t);t=null;this.upgrading=false;this.flush()}))}else{const e=new Error("probe error");e.transport=t.name;this.emitReserved("upgradeError",e)}}))};function r(){if(n)return;n=true;c();t.close();t=null}const s=e=>{const n=new Error("probe error: "+e);n.transport=t.name;r();this.emitReserved("upgradeError",n)};function o(){s("transport closed")}function a(){s("socket closed")}function l(e){if(t&&e.name!==t.name){r()}}const c=()=>{t.removeListener("open",i);t.removeListener("error",s);t.removeListener("close",o);this.off("close",a);this.off("upgrading",l)};t.once("open",i);t.once("error",s);t.once("close",o);this.once("close",a);this.once("upgrading",l);if(this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"){this.setTimeoutFn((()=>{if(!n){t.open()}}),200)}else{t.open()}}onOpen(){this.readyState="open";_e.priorWebsocketSuccess="websocket"===this.transport.name;this.emitReserved("open");this.flush();if("open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++){this.probe(this.upgrades[e])}}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){this.emitReserved("packet",e);this.emitReserved("heartbeat");this.resetPingTimeout();switch(e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong");this.emitReserved("ping");this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data;this.onError(t);break;case"message":this.emitReserved("data",e.data);this.emitReserved("message",e.data);break}}}onHandshake(e){this.emitReserved("handshake",e);this.id=e.sid;this.transport.query.sid=e.sid;this.upgrades=this.filterUpgrades(e.upgrades);this.pingInterval=e.pingInterval;this.pingTimeout=e.pingTimeout;this.maxPayload=e.maxPayload;this.onOpen();if("closed"===this.readyState)return;this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer);this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout);if(this.opts.autoUnref){this.pingTimeoutTimer.unref()}}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen);this.prevBufferLen=0;if(0===this.writeBuffer.length){this.emitReserved("drain")}else{this.flush()}}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e);this.prevBufferLen=e.length;this.emitReserved("flush")}}getWritablePackets(){const e=this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1;if(!e){return this.writeBuffer}let t=1;for(let e=0;e<this.writeBuffer.length;e++){const n=this.writeBuffer[e].data;if(n){t+=O(n)}if(e>0&&t>this.maxPayload){return this.writeBuffer.slice(0,e)}t+=2}return this.writeBuffer}write(e,t,n){this.sendPacket("message",e,t,n);return this}send(e,t,n){this.sendPacket("message",e,t,n);return this}sendPacket(e,t,n,i){if("function"===typeof t){i=t;t=undefined}if("function"===typeof n){i=n;n=null}if("closing"===this.readyState||"closed"===this.readyState){return}n=n||{};n.compress=false!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r);this.writeBuffer.push(r);if(i)this.once("flush",i);this.flush()}close(){const e=()=>{this.onClose("forced close");this.transport.close()};const t=()=>{this.off("upgrade",t);this.off("upgradeError",t);e()};const n=()=>{this.once("upgrade",t);this.once("upgradeError",t)};if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";if(this.writeBuffer.length){this.once("drain",(()=>{if(this.upgrading){n()}else{e()}}))}else if(this.upgrading){n()}else{e()}}return this}onError(e){_e.priorWebsocketSuccess=false;this.emitReserved("error",e);this.onClose("transport error",e)}onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){this.clearTimeoutFn(this.pingTimeoutTimer);this.transport.removeAllListeners("close");this.transport.close();this.transport.removeAllListeners();if(typeof removeEventListener==="function"){removeEventListener("beforeunload",this.beforeunloadEventListener,false);removeEventListener("offline",this.offlineEventListener,false)}this.readyState="closed";this.id=null;this.emitReserved("close",e,t);this.writeBuffer=[];this.prevBufferLen=0}}filterUpgrades(e){const t=[];let n=0;const i=e.length;for(;n<i;n++){if(~this.transports.indexOf(e[n]))t.push(e[n])}return t}}_e.protocol=E;function be(e,t="",n){let i=e;n=n||typeof location!=="undefined"&&location;if(null==e)e=n.protocol+"//"+n.host;if(typeof e==="string"){if("/"===e.charAt(0)){if("/"===e.charAt(1)){e=n.protocol+e}else{e=n.host+e}}if(!/^(https?|wss?):\/\//.test(e)){if("undefined"!==typeof n){e=n.protocol+"//"+e}else{e="https://"+e}}i=pe(e)}if(!i.port){if(/^(http|ws)$/.test(i.protocol)){i.port="80"}else if(/^(http|ws)s$/.test(i.protocol)){i.port="443"}}i.path=i.path||"/";const r=i.host.indexOf(":")!==-1;const s=r?"["+i.host+"]":i.host;i.id=i.protocol+"://"+s+":"+i.port+t;i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port);return i}const we=typeof ArrayBuffer==="function";const ke=e=>typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer;const ye=Object.prototype.toString;const ve=typeof Blob==="function"||typeof Blob!=="undefined"&&ye.call(Blob)==="[object BlobConstructor]";const xe=typeof File==="function"||typeof File!=="undefined"&&ye.call(File)==="[object FileConstructor]";function je(e){return we&&(e instanceof ArrayBuffer||ke(e))||ve&&e instanceof Blob||xe&&e instanceof File}function ze(e,t){if(!e||typeof e!=="object"){return false}if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++){if(ze(e[t])){return true}}return false}if(je(e)){return true}if(e.toJSON&&typeof e.toJSON==="function"&&arguments.length===1){return ze(e.toJSON(),true)}for(const t in e){if(Object.prototype.hasOwnProperty.call(e,t)&&ze(e[t])){return true}}return false}function Se(e){const t=[];const n=e.data;const i=e;i.data=Ee(n,t);i.attachments=t.length;return{packet:i,buffers:t}}function Ee(e,t){if(!e)return e;if(je(e)){const n={_placeholder:true,num:t.length};t.push(e);return n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++){n[i]=Ee(e[i],t)}return n}else if(typeof e==="object"&&!(e instanceof Date)){const n={};for(const i in e){if(Object.prototype.hasOwnProperty.call(e,i)){n[i]=Ee(e[i],t)}}return n}return e}function Me(e,t){e.data=Ae(e.data,t);delete e.attachments;return e}function Ae(e,t){if(!e)return e;if(e&&e._placeholder===true){const n=typeof e.num==="number"&&e.num>=0&&e.num<t.length;if(n){return t[e.num]}else{throw new Error("illegal attachments")}}else if(Array.isArray(e)){for(let n=0;n<e.length;n++){e[n]=Ae(e[n],t)}}else if(typeof e==="object"){for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){e[n]=Ae(e[n],t)}}}return e}const Te=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];const Be=5;var Ce;(function(e){e[e["CONNECT"]=0]="CONNECT";e[e["DISCONNECT"]=1]="DISCONNECT";e[e["EVENT"]=2]="EVENT";e[e["ACK"]=3]="ACK";e[e["CONNECT_ERROR"]=4]="CONNECT_ERROR";e[e["BINARY_EVENT"]=5]="BINARY_EVENT";e[e["BINARY_ACK"]=6]="BINARY_ACK"})(Ce||(Ce={}));class $e{constructor(e){this.replacer=e}encode(e){if(e.type===Ce.EVENT||e.type===Ce.ACK){if(ze(e)){return this.encodeAsBinary({type:e.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}}return[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;if(e.type===Ce.BINARY_EVENT||e.type===Ce.BINARY_ACK){t+=e.attachments+"-"}if(e.nsp&&"/"!==e.nsp){t+=e.nsp+","}if(null!=e.id){t+=e.id}if(null!=e.data){t+=JSON.stringify(e.data,this.replacer)}return t}encodeAsBinary(e){const t=Se(e);const n=this.encodeAsString(t.packet);const i=t.buffers;i.unshift(n);return i}}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}class Ie extends M{constructor(e){super();this.reviver=e}add(e){let t;if(typeof e==="string"){if(this.reconstructor){throw new Error("got plaintext data when reconstructing a packet")}t=this.decodeString(e);const n=t.type===Ce.BINARY_EVENT;if(n||t.type===Ce.BINARY_ACK){t.type=n?Ce.EVENT:Ce.ACK;this.reconstructor=new Oe(t);if(t.attachments===0){super.emitReserved("decoded",t)}}else{super.emitReserved("decoded",t)}}else if(je(e)||e.base64){if(!this.reconstructor){throw new Error("got binary data when not reconstructing a packet")}else{t=this.reconstructor.takeBinaryData(e);if(t){this.reconstructor=null;super.emitReserved("decoded",t)}}}else{throw new Error("Unknown type: "+e)}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(Ce[n.type]===undefined){throw new Error("unknown packet type "+n.type)}if(n.type===Ce.BINARY_EVENT||n.type===Ce.BINARY_ACK){const i=t+1;while(e.charAt(++t)!=="-"&&t!=e.length){}const r=e.substring(i,t);if(r!=Number(r)||e.charAt(t)!=="-"){throw new Error("Illegal attachments")}n.attachments=Number(r)}if("/"===e.charAt(t+1)){const i=t+1;while(++t){const n=e.charAt(t);if(","===n)break;if(t===e.length)break}n.nsp=e.substring(i,t)}else{n.nsp="/"}const i=e.charAt(t+1);if(""!==i&&Number(i)==i){const i=t+1;while(++t){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){const i=this.tryParse(e.substr(t));if(Ie.isPayloadValid(n.type,i)){n.data=i}else{throw new Error("invalid payload")}}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return false}}static isPayloadValid(e,t){switch(e){case Ce.CONNECT:return Le(t);case Ce.DISCONNECT:return t===undefined;case Ce.CONNECT_ERROR:return typeof t==="string"||Le(t);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==="number"||typeof t[0]==="string"&&Te.indexOf(t[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(t)}}destroy(){if(this.reconstructor){this.reconstructor.finishedReconstruction();this.reconstructor=null}}}class Oe{constructor(e){this.packet=e;this.buffers=[];this.reconPack=e}takeBinaryData(e){this.buffers.push(e);if(this.buffers.length===this.reconPack.attachments){const e=Me(this.reconPack,this.buffers);this.finishedReconstruction();return e}return null}finishedReconstruction(){this.reconPack=null;this.buffers=[]}}const Pe=Object.freeze({__proto__:null,protocol:Be,get PacketType(){return Ce},Encoder:$e,Decoder:Ie});function qe(e,t,n){e.on(t,n);return function i(){e.off(t,n)}}const He=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Re extends M{constructor(e,t,n){super();this.connected=false;this.recovered=false;this.receiveBuffer=[];this.sendBuffer=[];this._queue=[];this._queueSeq=0;this.ids=0;this.acks={};this.flags={};this.io=e;this.nsp=t;if(n&&n.auth){this.auth=n.auth}this._opts=Object.assign({},n);if(this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[qe(e,"open",this.onopen.bind(this)),qe(e,"packet",this.onpacket.bind(this)),qe(e,"error",this.onerror.bind(this)),qe(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;this.subEvents();if(!this.io["_reconnecting"])this.io.open();if("open"===this.io._readyState)this.onopen();return this}open(){return this.connect()}send(...e){e.unshift("message");this.emit.apply(this,e);return this}emit(e,...t){if(He.hasOwnProperty(e)){throw new Error('"'+e.toString()+'" is a reserved event name')}t.unshift(e);if(this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile){this._addToQueue(t);return this}const n={type:Ce.EVENT,data:t};n.options={};n.options.compress=this.flags.compress!==false;if("function"===typeof t[t.length-1]){const e=this.ids++;const i=t.pop();this._registerAckCallback(e,i);n.id=e}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;const r=this.flags.volatile&&(!i||!this.connected);if(r);else if(this.connected){this.notifyOutgoingListeners(n);this.packet(n)}else{this.sendBuffer.push(n)}this.flags={};return this}_registerAckCallback(e,t){var n;const i=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(i===undefined){this.acks[e]=t;return}const r=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++){if(this.sendBuffer[t].id===e){this.sendBuffer.splice(t,1)}}t.call(this,new Error("operation has timed out"))}),i);const s=(...e)=>{this.io.clearTimeoutFn(r);t.apply(this,e)};s.withError=true;this.acks[e]=s}emitWithAck(e,...t){return new Promise(((n,i)=>{const r=(e,t)=>e?i(e):n(t);r.withError=true;t.push(r);this.emit(e,...t)}))}_addToQueue(e){let t;if(typeof e[e.length-1]==="function"){t=e.pop()}const n={id:this._queueSeq++,tryCount:0,pending:false,args:e,flags:Object.assign({fromQueue:true},this.flags)};e.push(((e,...i)=>{if(n!==this._queue[0]){return}const r=e!==null;if(r){if(n.tryCount>this._opts.retries){this._queue.shift();if(t){t(e)}}}else{this._queue.shift();if(t){t(null,...i)}}n.pending=false;return this._drainQueue()}));this._queue.push(n);this._drainQueue()}_drainQueue(e=false){if(!this.connected||this._queue.length===0){return}const t=this._queue[0];if(t.pending&&!e){return}t.pending=true;t.tryCount++;this.flags=t.flags;this.emit.apply(this,t.args)}packet(e){e.nsp=this.nsp;this.io._packet(e)}onopen(){if(typeof this.auth=="function"){this.auth((e=>{this._sendConnectPacket(e)}))}else{this._sendConnectPacket(this.auth)}}_sendConnectPacket(e){this.packet({type:Ce.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){if(!this.connected){this.emitReserved("connect_error",e)}}onclose(e,t){this.connected=false;delete this.id;this.emitReserved("disconnect",e,t);this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{const t=this.sendBuffer.some((t=>String(t.id)===e));if(!t){const t=this.acks[e];delete this.acks[e];if(t.withError){t.call(this,new Error("socket has been disconnected"))}}}))}onpacket(e){const t=e.nsp===this.nsp;if(!t)return;switch(e.type){case Ce.CONNECT:if(e.data&&e.data.sid){this.onconnect(e.data.sid,e.data.pid)}else{this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"))}break;case Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(e);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(e);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data;this.emitReserved("connect_error",t);break}}onevent(e){const t=e.data||[];if(null!=e.id){t.push(this.ack(e.id))}if(this.connected){this.emitEvent(t)}else{this.receiveBuffer.push(Object.freeze(t))}}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t){n.apply(this,e)}}super.emit.apply(this,e);if(this._pid&&e.length&&typeof e[e.length-1]==="string"){this._lastOffset=e[e.length-1]}}ack(e){const t=this;let n=false;return function(...i){if(n)return;n=true;t.packet({type:Ce.ACK,id:e,data:i})}}onack(e){const t=this.acks[e.id];if(typeof t!=="function"){return}delete this.acks[e.id];if(t.withError){e.data.unshift(null)}t.apply(this,e.data)}onconnect(e,t){this.id=e;this.recovered=t&&this._pid===t;this._pid=t;this.connected=true;this.emitBuffered();this.emitReserved("connect");this._drainQueue(true)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e)));this.receiveBuffer=[];this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e);this.packet(e)}));this.sendBuffer=[]}ondisconnect(){this.destroy();this.onclose("io server disconnect")}destroy(){if(this.subs){this.subs.forEach((e=>e()));this.subs=undefined}this.io["_destroy"](this)}disconnect(){if(this.connected){this.packet({type:Ce.DISCONNECT})}this.destroy();if(this.connected){this.onclose("io client disconnect")}return this}close(){return this.disconnect()}compress(e){this.flags.compress=e;return this}get volatile(){this.flags.volatile=true;return this}timeout(e){this.flags.timeout=e;return this}onAny(e){this._anyListeners=this._anyListeners||[];this._anyListeners.push(e);return this}prependAny(e){this._anyListeners=this._anyListeners||[];this._anyListeners.unshift(e);return this}offAny(e){if(!this._anyListeners){return this}if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++){if(e===t[n]){t.splice(n,1);return this}}}else{this._anyListeners=[]}return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){this._anyOutgoingListeners=this._anyOutgoingListeners||[];this._anyOutgoingListeners.push(e);return this}prependAnyOutgoing(e){this._anyOutgoingListeners=this._anyOutgoingListeners||[];this._anyOutgoingListeners.unshift(e);return this}offAnyOutgoing(e){if(!this._anyOutgoingListeners){return this}if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++){if(e===t[n]){t.splice(n,1);return this}}}else{this._anyOutgoingListeners=[]}return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t){n.apply(this,e.data)}}}}function De(e){e=e||{};this.ms=e.min||100;this.max=e.max||1e4;this.factor=e.factor||2;this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0;this.attempts=0}De.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random();var n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};De.prototype.reset=function(){this.attempts=0};De.prototype.setMin=function(e){this.ms=e};De.prototype.setMax=function(e){this.max=e};De.prototype.setJitter=function(e){this.jitter=e};class Ve extends M{constructor(e,t){var n;super();this.nsps={};this.subs=[];if(e&&"object"===typeof e){t=e;e=undefined}t=t||{};t.path=t.path||"/socket.io";this.opts=t;L(this,t);this.reconnection(t.reconnection!==false);this.reconnectionAttempts(t.reconnectionAttempts||Infinity);this.reconnectionDelay(t.reconnectionDelay||1e3);this.reconnectionDelayMax(t.reconnectionDelayMax||5e3);this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5);this.backoff=new De({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()});this.timeout(null==t.timeout?2e4:t.timeout);this._readyState="closed";this.uri=e;const i=t.parser||Pe;this.encoder=new i.Encoder;this.decoder=new i.Decoder;this._autoConnect=t.autoConnect!==false;if(this._autoConnect)this.open()}reconnection(e){if(!arguments.length)return this._reconnection;this._reconnection=!!e;return this}reconnectionAttempts(e){if(e===undefined)return this._reconnectionAttempts;this._reconnectionAttempts=e;return this}reconnectionDelay(e){var t;if(e===undefined)return this._reconnectionDelay;this._reconnectionDelay=e;(t=this.backoff)===null||t===void 0?void 0:t.setMin(e);return this}randomizationFactor(e){var t;if(e===undefined)return this._randomizationFactor;this._randomizationFactor=e;(t=this.backoff)===null||t===void 0?void 0:t.setJitter(e);return this}reconnectionDelayMax(e){var t;if(e===undefined)return this._reconnectionDelayMax;this._reconnectionDelayMax=e;(t=this.backoff)===null||t===void 0?void 0:t.setMax(e);return this}timeout(e){if(!arguments.length)return this._timeout;this._timeout=e;return this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0){this.reconnect()}}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new _e(this.uri,this.opts);const t=this.engine;const n=this;this._readyState="opening";this.skipReconnect=false;const i=qe(t,"open",(function(){n.onopen();e&&e()}));const r=t=>{this.cleanup();this._readyState="closed";this.emitReserved("error",t);if(e){e(t)}else{this.maybeReconnectOnOpen()}};const s=qe(t,"error",r);if(false!==this._timeout){const e=this._timeout;const n=this.setTimeoutFn((()=>{i();r(new Error("timeout"));t.close()}),e);if(this.opts.autoUnref){n.unref()}this.subs.push((()=>{this.clearTimeoutFn(n)}))}this.subs.push(i);this.subs.push(s);return this}connect(e){return this.open(e)}onopen(){this.cleanup();this._readyState="open";this.emitReserved("open");const e=this.engine;this.subs.push(qe(e,"ping",this.onping.bind(this)),qe(e,"data",this.ondata.bind(this)),qe(e,"error",this.onerror.bind(this)),qe(e,"close",this.onclose.bind(this)),qe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){se((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];if(!n){n=new Re(this,e,t);this.nsps[e]=n}else if(this._autoConnect&&!n.active){n.connect()}return n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){const t=this.nsps[e];if(t.active){return}}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++){this.engine.write(t[n],e.options)}}cleanup(){this.subs.forEach((e=>e()));this.subs.length=0;this.decoder.destroy()}_close(){this.skipReconnect=true;this._reconnecting=false;this.onclose("forced close");if(this.engine)this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup();this.backoff.reset();this._readyState="closed";this.emitReserved("close",e,t);if(this._reconnection&&!this.skipReconnect){this.reconnect()}}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts){this.backoff.reset();this.emitReserved("reconnect_failed");this._reconnecting=false}else{const t=this.backoff.duration();this._reconnecting=true;const n=this.setTimeoutFn((()=>{if(e.skipReconnect)return;this.emitReserved("reconnect_attempt",e.backoff.attempts);if(e.skipReconnect)return;e.open((t=>{if(t){e._reconnecting=false;e.reconnect();this.emitReserved("reconnect_error",t)}else{e.onreconnect()}}))}),t);if(this.opts.autoUnref){n.unref()}this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=false;this.backoff.reset();this.emitReserved("reconnect",e)}}const Ne={};function Ge(e,t){if(typeof e==="object"){t=e;e=undefined}t=t||{};const n=be(e,t.path||"/socket.io");const i=n.source;const r=n.id;const s=n.path;const o=Ne[r]&&s in Ne[r]["nsps"];const a=t.forceNew||t["force new connection"]||false===t.multiplex||o;let l;if(a){l=new Ve(i,t)}else{if(!Ne[r]){Ne[r]=new Ve(i,t)}l=Ne[r]}if(n.query&&!t.query){t.query=n.queryKey}return l.socket(n.path,t)}Object.assign(Ge,{Manager:Ve,Socket:Re,io:Ge,connect:Ge});var Ue=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var We={exports:{}};(function(e){(function(){function t(e){var t={omitExtraWLInCodeBlocks:{defaultValue:false,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:false,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:false,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:false,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:false,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:false,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:false,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:false,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:false,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:false,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:false,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:false,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:false,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:false,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:false,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:true,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:false,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:false,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:false,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:false,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:false,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:false,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:false,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:true,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:false,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:false,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:false,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:false,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:true,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:false,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:false,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:false,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(e===false){return JSON.parse(JSON.stringify(t))}var n={};for(var i in t){if(t.hasOwnProperty(i)){n[i]=t[i].defaultValue}}return n}function n(){var e=t(true),n={};for(var i in e){if(e.hasOwnProperty(i)){n[i]=true}}return n}var i={},r={},s={},o=t(true),a="vanilla",l={github:{omitExtraWLInCodeBlocks:true,simplifiedAutoLink:true,excludeTrailingPunctuationFromURLs:true,literalMidWordUnderscores:true,strikethrough:true,tables:true,tablesHeaderId:true,ghCodeBlocks:true,tasklists:true,disableForced4SpacesIndentedSublists:true,simpleLineBreaks:true,requireSpaceBeforeHeadingText:true,ghCompatibleHeaderId:true,ghMentions:true,backslashEscapesHTMLTags:true,emoji:true,splitAdjacentBlockquotes:true},original:{noHeaderId:true,ghCodeBlocks:false},ghost:{omitExtraWLInCodeBlocks:true,parseImgDimensions:true,simplifiedAutoLink:true,excludeTrailingPunctuationFromURLs:true,literalMidWordUnderscores:true,strikethrough:true,tables:true,tablesHeaderId:true,ghCodeBlocks:true,tasklists:true,smoothLivePreview:true,simpleLineBreaks:true,requireSpaceBeforeHeadingText:true,ghMentions:false,encodeEmails:true},vanilla:t(true),allOn:n()};i.helper={};i.extensions={};i.setOption=function(e,t){o[e]=t;return this};i.getOption=function(e){return o[e]};i.getOptions=function(){return o};i.resetOptions=function(){o=t(true)};i.setFlavor=function(e){if(!l.hasOwnProperty(e)){throw Error(e+" flavor was not found")}i.resetOptions();var t=l[e];a=e;for(var n in t){if(t.hasOwnProperty(n)){o[n]=t[n]}}};i.getFlavor=function(){return a};i.getFlavorOptions=function(e){if(l.hasOwnProperty(e)){return l[e]}};i.getDefaultOptions=function(e){return t(e)};i.subParser=function(e,t){if(i.helper.isString(e)){if(typeof t!=="undefined"){r[e]=t}else{if(r.hasOwnProperty(e)){return r[e]}else{throw Error("SubParser named "+e+" not registered!")}}}};i.extension=function(e,t){if(!i.helper.isString(e)){throw Error("Extension 'name' must be a string")}e=i.helper.stdExtName(e);if(i.helper.isUndefined(t)){if(!s.hasOwnProperty(e)){throw Error("Extension named "+e+" is not registered!")}return s[e]}else{if(typeof t==="function"){t=t()}if(!i.helper.isArray(t)){t=[t]}var n=c(t,e);if(n.valid){s[e]=t}else{throw Error(n.error)}}};i.getAllExtensions=function(){return s};i.removeExtension=function(e){delete s[e]};i.resetExtensions=function(){s={}};function c(e,t){var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:true,error:""};if(!i.helper.isArray(e)){e=[e]}for(var s=0;s<e.length;++s){var o=n+" sub-extension "+s+": ",a=e[s];if(typeof a!=="object"){r.valid=false;r.error=o+"must be an object, but "+typeof a+" given";return r}if(!i.helper.isString(a.type)){r.valid=false;r.error=o+'property "type" must be a string, but '+typeof a.type+" given";return r}var l=a.type=a.type.toLowerCase();if(l==="language"){l=a.type="lang"}if(l==="html"){l=a.type="output"}if(l!=="lang"&&l!=="output"&&l!=="listener"){r.valid=false;r.error=o+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"';return r}if(l==="listener"){if(i.helper.isUndefined(a.listeners)){r.valid=false;r.error=o+'. Extensions of type "listener" must have a property called "listeners"';return r}}else{if(i.helper.isUndefined(a.filter)&&i.helper.isUndefined(a.regex)){r.valid=false;r.error=o+l+' extensions must define either a "regex" property or a "filter" method';return r}}if(a.listeners){if(typeof a.listeners!=="object"){r.valid=false;r.error=o+'"listeners" property must be an object but '+typeof a.listeners+" given";return r}for(var c in a.listeners){if(a.listeners.hasOwnProperty(c)){if(typeof a.listeners[c]!=="function"){r.valid=false;r.error=o+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+c+" must be a function but "+typeof a.listeners[c]+" given";return r}}}}if(a.filter){if(typeof a.filter!=="function"){r.valid=false;r.error=o+'"filter" must be a function, but '+typeof a.filter+" given";return r}}else if(a.regex){if(i.helper.isString(a.regex)){a.regex=new RegExp(a.regex,"g")}if(!(a.regex instanceof RegExp)){r.valid=false;r.error=o+'"regex" property must either be a string or a RegExp object, but '+typeof a.regex+" given";return r}if(i.helper.isUndefined(a.replace)){r.valid=false;r.error=o+'"regex" extensions must implement a replace string or function';return r}}}return r}i.validateExtension=function(e){var t=c(e,null);if(!t.valid){console.warn(t.error);return false}return true};if(!i.hasOwnProperty("helper")){i.helper={}}i.helper.isString=function(e){return typeof e==="string"||e instanceof String};i.helper.isFunction=function(e){var t={};return e&&t.toString.call(e)==="[object Function]"};i.helper.isArray=function(e){return Array.isArray(e)};i.helper.isUndefined=function(e){return typeof e==="undefined"};i.helper.forEach=function(e,t){if(i.helper.isUndefined(e)){throw new Error("obj param is required")}if(i.helper.isUndefined(t)){throw new Error("callback param is required")}if(!i.helper.isFunction(t)){throw new Error("callback param must be a function/closure")}if(typeof e.forEach==="function"){e.forEach(t)}else if(i.helper.isArray(e)){for(var n=0;n<e.length;n++){t(e[n],n,e)}}else if(typeof e==="object"){for(var r in e){if(e.hasOwnProperty(r)){t(e[r],r,e)}}}else{throw new Error("obj does not seem to be an array or an iterable object")}};i.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function u(e,t){var n=t.charCodeAt(0);return"¨E"+n+"E"}i.helper.escapeCharactersCallback=u;i.helper.escapeCharacters=function(e,t,n){var i="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";if(n){i="\\\\"+i}var r=new RegExp(i,"g");e=e.replace(r,u);return e};i.helper.unescapeHTMLEntities=function(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var f=function(e,t,n,i){var r=i||"",s=r.indexOf("g")>-1,o=new RegExp(t+"|"+n,"g"+r.replace(/g/g,"")),a=new RegExp(t,r.replace(/g/g,"")),l=[],c,u,f,h,d;do{c=0;while(f=o.exec(e)){if(a.test(f[0])){if(!c++){u=o.lastIndex;h=u-f[0].length}}else if(c){if(! --c){d=f.index+f[0].length;var p={left:{start:h,end:u},match:{start:u,end:f.index},right:{start:f.index,end:d},wholeMatch:{start:h,end:d}};l.push(p);if(!s){return l}}}}}while(c&&(o.lastIndex=u));return l};i.helper.matchRecursiveRegExp=function(e,t,n,i){var r=f(e,t,n,i),s=[];for(var o=0;o<r.length;++o){s.push([e.slice(r[o].wholeMatch.start,r[o].wholeMatch.end),e.slice(r[o].match.start,r[o].match.end),e.slice(r[o].left.start,r[o].left.end),e.slice(r[o].right.start,r[o].right.end)])}return s};i.helper.replaceRecursiveRegExp=function(e,t,n,r,s){if(!i.helper.isFunction(t)){var o=t;t=function(){return o}}var a=f(e,n,r,s),l=e,c=a.length;if(c>0){var u=[];if(a[0].wholeMatch.start!==0){u.push(e.slice(0,a[0].wholeMatch.start))}for(var h=0;h<c;++h){u.push(t(e.slice(a[h].wholeMatch.start,a[h].wholeMatch.end),e.slice(a[h].match.start,a[h].match.end),e.slice(a[h].left.start,a[h].left.end),e.slice(a[h].right.start,a[h].right.end)));if(h<c-1){u.push(e.slice(a[h].wholeMatch.end,a[h+1].wholeMatch.start))}}if(a[c-1].wholeMatch.end<e.length){u.push(e.slice(a[c-1].wholeMatch.end))}l=u.join("")}return l};i.helper.regexIndexOf=function(e,t,n){if(!i.helper.isString(e)){throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string"}if(t instanceof RegExp===false){throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp"}var r=e.substring(n||0).search(t);return r>=0?r+(n||0):r};i.helper.splitAtIndex=function(e,t){if(!i.helper.isString(e)){throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string"}return[e.substring(0,t),e.substring(t)]};i.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];e=e.replace(/./g,(function(e){if(e==="@"){e=t[Math.floor(Math.random()*2)](e)}else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}));return e};i.helper.padEnd=function e(t,n,i){n=n>>0;i=String(i||" ");if(t.length>n){return String(t)}else{n=n-t.length;if(n>i.length){i+=i.repeat(n/i.length)}return String(t)+i.slice(0,n)}};if(typeof console==="undefined"){console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}}i.helper.regexes={asteriskDashAndColon:/([*_:~])/g};i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"};i.Converter=function(e){var t={},n=[],r=[],u={},f=a,h={parsed:{},raw:"",format:""};d();function d(){e=e||{};for(var n in o){if(o.hasOwnProperty(n)){t[n]=o[n]}}if(typeof e==="object"){for(var r in e){if(e.hasOwnProperty(r)){t[r]=e[r]}}}else{throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.")}if(t.extensions){i.helper.forEach(t.extensions,p)}}function p(e,t){t=t||null;if(i.helper.isString(e)){e=i.helper.stdExtName(e);t=e;if(i.extensions[e]){console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method."+"Please inform the developer that the extension should be updated!");g(i.extensions[e],e);return}else if(!i.helper.isUndefined(s[e])){e=s[e]}else{throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.')}}if(typeof e==="function"){e=e()}if(!i.helper.isArray(e)){e=[e]}var o=c(e,t);if(!o.valid){throw Error(o.error)}for(var a=0;a<e.length;++a){switch(e[a].type){case"lang":n.push(e[a]);break;case"output":r.push(e[a]);break}if(e[a].hasOwnProperty("listeners")){for(var l in e[a].listeners){if(e[a].listeners.hasOwnProperty(l)){m(l,e[a].listeners[l])}}}}}function g(e,t){if(typeof e==="function"){e=e(new i.Converter)}if(!i.helper.isArray(e)){e=[e]}var s=c(e,t);if(!s.valid){throw Error(s.error)}for(var o=0;o<e.length;++o){switch(e[o].type){case"lang":n.push(e[o]);break;case"output":r.push(e[o]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}}function m(e,t){if(!i.helper.isString(e)){throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given")}if(typeof t!=="function"){throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given")}if(!u.hasOwnProperty(e)){u[e]=[]}u[e].push(t)}function _(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}this._dispatch=function e(t,n,i,r){if(u.hasOwnProperty(t)){for(var s=0;s<u[t].length;++s){var o=u[t][s](t,n,this,i,r);if(o&&typeof o!=="undefined"){n=o}}}return n};this.listen=function(e,t){m(e,t);return this};this.makeHtml=function(e){if(!e){return e}var s={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:n,outputModifiers:r,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};e=e.replace(/¨/g,"¨T");e=e.replace(/\$/g,"¨D");e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n");e=e.replace(/\u00A0/g,"&nbsp;");if(t.smartIndentationFix){e=_(e)}e="\n\n"+e+"\n\n";e=i.subParser("detab")(e,t,s);e=e.replace(/^[ \t]+$/gm,"");i.helper.forEach(n,(function(n){e=i.subParser("runExtension")(n,e,t,s)}));e=i.subParser("metadata")(e,t,s);e=i.subParser("hashPreCodeTags")(e,t,s);e=i.subParser("githubCodeBlocks")(e,t,s);e=i.subParser("hashHTMLBlocks")(e,t,s);e=i.subParser("hashCodeTags")(e,t,s);e=i.subParser("stripLinkDefinitions")(e,t,s);e=i.subParser("blockGamut")(e,t,s);e=i.subParser("unhashHTMLSpans")(e,t,s);e=i.subParser("unescapeSpecialChars")(e,t,s);e=e.replace(/¨D/g,"$$");e=e.replace(/¨T/g,"¨");e=i.subParser("completeHTMLDocument")(e,t,s);i.helper.forEach(r,(function(n){e=i.subParser("runExtension")(n,e,t,s)}));h=s.metadata;return e};this.makeMarkdown=this.makeMd=function(e,t){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n");e=e.replace(/>[ \t]+</,">¨NBSP;<");if(!t){if(window&&window.document){t=window.document}else{throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM")}}var n=t.createElement("div");n.innerHTML=e;var r={preList:c(n)};l(n);var s=n.childNodes,o="";for(var a=0;a<s.length;a++){o+=i.subParser("makeMarkdown.node")(s[a],r)}function l(e){for(var t=0;t<e.childNodes.length;++t){var n=e.childNodes[t];if(n.nodeType===3){if(!/\S/.test(n.nodeValue)&&!/^[ ]+$/.test(n.nodeValue)){e.removeChild(n);--t}else{n.nodeValue=n.nodeValue.split("\n").join(" ");n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")}}else if(n.nodeType===1){l(n)}}}function c(e){var t=e.querySelectorAll("pre"),n=[];for(var r=0;r<t.length;++r){if(t[r].childElementCount===1&&t[r].firstChild.tagName.toLowerCase()==="code"){var s=t[r].firstChild.innerHTML.trim(),o=t[r].firstChild.getAttribute("data-language")||"";if(o===""){var a=t[r].firstChild.className.split(" ");for(var l=0;l<a.length;++l){var c=a[l].match(/^language-(.+)$/);if(c!==null){o=c[1];break}}}s=i.helper.unescapeHTMLEntities(s);n.push(s);t[r].outerHTML='<precode language="'+o+'" precodenum="'+r.toString()+'"></precode>'}else{n.push(t[r].innerHTML);t[r].innerHTML="";t[r].setAttribute("prenum",r.toString())}}return n}return o};this.setOption=function(e,n){t[e]=n};this.getOption=function(e){return t[e]};this.getOptions=function(){return t};this.addExtension=function(e,t){t=t||null;p(e,t)};this.useExtension=function(e){p(e)};this.setFlavor=function(e){if(!l.hasOwnProperty(e)){throw Error(e+" flavor was not found")}var n=l[e];f=e;for(var i in n){if(n.hasOwnProperty(i)){t[i]=n[i]}}};this.getFlavor=function(){return f};this.removeExtension=function(e){if(!i.helper.isArray(e)){e=[e]}for(var t=0;t<e.length;++t){var s=e[t];for(var o=0;o<n.length;++o){if(n[o]===s){n.splice(o,1)}}for(var a=0;a<r.length;++a){if(r[a]===s){r.splice(a,1)}}}};this.getAllExtensions=function(){return{language:n,output:r}};this.getMetadata=function(e){if(e){return h.raw}else{return h.parsed}};this.getMetadataFormat=function(){return h.format};this._setMetadataPair=function(e,t){h.parsed[e]=t};this._setMetadataFormat=function(e){h.format=e};this._setMetadataRaw=function(e){h.raw=e}};i.subParser("anchors",(function(e,t,n){e=n.converter._dispatch("anchors.before",e,t,n);var r=function(e,r,s,o,a,l,c){if(i.helper.isUndefined(c)){c=""}s=s.toLowerCase();if(e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1){o=""}else if(!o){if(!s){s=r.toLowerCase().replace(/ ?\n/g," ")}o="#"+s;if(!i.helper.isUndefined(n.gUrls[s])){o=n.gUrls[s];if(!i.helper.isUndefined(n.gTitles[s])){c=n.gTitles[s]}}else{return e}}o=o.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var u='<a href="'+o+'"';if(c!==""&&c!==null){c=c.replace(/"/g,"&quot;");c=c.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);u+=' title="'+c+'"'}if(t.openLinksInNewWindow&&!/^#/.test(o)){u+=' rel="noopener noreferrer" target="¨E95Eblank"'}u+=">"+r+"</a>";return u};e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r);e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r);e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r);e=e.replace(/\[([^\[\]]+)]()()()()()/g,r);if(t.ghMentions){e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,r,s,o){if(r==="\\"){return n+s}if(!i.helper.isString(t.ghMentionsLink)){throw new Error("ghMentionsLink option must be a string")}var a=t.ghMentionsLink.replace(/\{u}/g,o),l="";if(t.openLinksInNewWindow){l=' rel="noopener noreferrer" target="¨E95Eblank"'}return n+'<a href="'+a+'"'+l+">"+s+"</a>"}))}e=n.converter._dispatch("anchors.after",e,t,n);return e}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,p=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,g=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,m=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,_=function(e){return function(t,n,r,s,o,a,l){r=r.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var c=r,u="",f="",h=n||"",d=l||"";if(/^www\./i.test(r)){r=r.replace(/^www\./i,"http://www.")}if(e.excludeTrailingPunctuationFromURLs&&a){u=a}if(e.openLinksInNewWindow){f=' rel="noopener noreferrer" target="¨E95Eblank"'}return h+'<a href="'+r+'"'+f+">"+c+"</a>"+u+d}},b=function(e,t){return function(n,r,s){var o="mailto:";r=r||"";s=i.subParser("unescapeSpecialChars")(s,e,t);if(e.encodeEmails){o=i.helper.encodeEmailAddress(o+s);s=i.helper.encodeEmailAddress(s)}else{o=o+s}return r+'<a href="'+o+'">'+s+"</a>"}};i.subParser("autoLinks",(function(e,t,n){e=n.converter._dispatch("autoLinks.before",e,t,n);e=e.replace(p,_(t));e=e.replace(m,b(t,n));e=n.converter._dispatch("autoLinks.after",e,t,n);return e}));i.subParser("simplifiedAutoLinks",(function(e,t,n){if(!t.simplifiedAutoLink){return e}e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n);if(t.excludeTrailingPunctuationFromURLs){e=e.replace(d,_(t))}else{e=e.replace(h,_(t))}e=e.replace(g,b(t,n));e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n);return e}));i.subParser("blockGamut",(function(e,t,n){e=n.converter._dispatch("blockGamut.before",e,t,n);e=i.subParser("blockQuotes")(e,t,n);e=i.subParser("headers")(e,t,n);e=i.subParser("horizontalRule")(e,t,n);e=i.subParser("lists")(e,t,n);e=i.subParser("codeBlocks")(e,t,n);e=i.subParser("tables")(e,t,n);e=i.subParser("hashHTMLBlocks")(e,t,n);e=i.subParser("paragraphs")(e,t,n);e=n.converter._dispatch("blockGamut.after",e,t,n);return e}));i.subParser("blockQuotes",(function(e,t,n){e=n.converter._dispatch("blockQuotes.before",e,t,n);e=e+"\n\n";var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;if(t.splitAdjacentBlockquotes){r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm}e=e.replace(r,(function(e){e=e.replace(/^[ \t]*>[ \t]?/gm,"");e=e.replace(/¨0/g,"");e=e.replace(/^[ \t]+$/gm,"");e=i.subParser("githubCodeBlocks")(e,t,n);e=i.subParser("blockGamut")(e,t,n);e=e.replace(/(^|\n)/g,"$1 ");e=e.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;n=n.replace(/^ /gm,"¨0");n=n.replace(/¨0/g,"");return n}));return i.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,n)}));e=n.converter._dispatch("blockQuotes.after",e,t,n);return e}));i.subParser("codeBlocks",(function(e,t,n){e=n.converter._dispatch("codeBlocks.before",e,t,n);e+="¨0";var r=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;e=e.replace(r,(function(e,r,s){var o=r,a=s,l="\n";o=i.subParser("outdent")(o,t,n);o=i.subParser("encodeCode")(o,t,n);o=i.subParser("detab")(o,t,n);o=o.replace(/^\n+/g,"");o=o.replace(/\n+$/g,"");if(t.omitExtraWLInCodeBlocks){l=""}o="<pre><code>"+o+l+"</code></pre>";return i.subParser("hashBlock")(o,t,n)+a}));e=e.replace(/¨0/,"");e=n.converter._dispatch("codeBlocks.after",e,t,n);return e}));i.subParser("codeSpans",(function(e,t,n){e=n.converter._dispatch("codeSpans.before",e,t,n);if(typeof e==="undefined"){e=""}e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,s,o){var a=o;a=a.replace(/^([ \t]*)/g,"");a=a.replace(/[ \t]*$/g,"");a=i.subParser("encodeCode")(a,t,n);a=r+"<code>"+a+"</code>";a=i.subParser("hashHTMLSpans")(a,t,n);return a}));e=n.converter._dispatch("codeSpans.after",e,t,n);return e}));i.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument){return e}e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var i="html",r="<!DOCTYPE HTML>\n",s="",o='<meta charset="utf-8">\n',a="",l="";if(typeof n.metadata.parsed.doctype!=="undefined"){r="<!DOCTYPE "+n.metadata.parsed.doctype+">\n";i=n.metadata.parsed.doctype.toString().toLowerCase();if(i==="html"||i==="html5"){o='<meta charset="utf-8">'}}for(var c in n.metadata.parsed){if(n.metadata.parsed.hasOwnProperty(c)){switch(c.toLowerCase()){case"doctype":break;case"title":s="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":if(i==="html"||i==="html5"){o='<meta charset="'+n.metadata.parsed.charset+'">\n'}else{o='<meta name="charset" content="'+n.metadata.parsed.charset+'">\n'}break;case"language":case"lang":a=' lang="'+n.metadata.parsed[c]+'"';l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n'}}}e=r+"<html"+a+">\n<head>\n"+s+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>";e=n.converter._dispatch("completeHTMLDocument.after",e,t,n);return e}));i.subParser("detab",(function(e,t,n){e=n.converter._dispatch("detab.before",e,t,n);e=e.replace(/\t(?=\t)/g," ");e=e.replace(/\t/g,"¨A¨B");e=e.replace(/¨B(.+?)¨A/g,(function(e,t){var n=t,i=4-n.length%4;for(var r=0;r<i;r++){n+=" "}return n}));e=e.replace(/¨A/g," ");e=e.replace(/¨B/g,"");e=n.converter._dispatch("detab.after",e,t,n);return e}));i.subParser("ellipsis",(function(e,t,n){if(!t.ellipsis){return e}e=n.converter._dispatch("ellipsis.before",e,t,n);e=e.replace(/\.\.\./g,"…");e=n.converter._dispatch("ellipsis.after",e,t,n);return e}));i.subParser("emoji",(function(e,t,n){if(!t.emoji){return e}e=n.converter._dispatch("emoji.before",e,t,n);var r=/:([\S]+?):/g;e=e.replace(r,(function(e,t){if(i.helper.emojis.hasOwnProperty(t)){return i.helper.emojis[t]}return e}));e=n.converter._dispatch("emoji.after",e,t,n);return e}));i.subParser("encodeAmpsAndAngles",(function(e,t,n){e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n);e=e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;");e=e.replace(/<(?![a-z\/?$!])/gi,"&lt;");e=e.replace(/</g,"&lt;");e=e.replace(/>/g,"&gt;");e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n);return e}));i.subParser("encodeBackslashEscapes",(function(e,t,n){e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n);e=e.replace(/\\(\\)/g,i.helper.escapeCharactersCallback);e=e.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,i.helper.escapeCharactersCallback);e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n);return e}));i.subParser("encodeCode",(function(e,t,n){e=n.converter._dispatch("encodeCode.before",e,t,n);e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback);e=n.converter._dispatch("encodeCode.after",e,t,n);return e}));i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n);var r=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,s=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;e=e.replace(r,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}));e=e.replace(s,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}));e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n);return e}));i.subParser("githubCodeBlocks",(function(e,t,n){if(!t.ghCodeBlocks){return e}e=n.converter._dispatch("githubCodeBlocks.before",e,t,n);e+="¨0";e=e.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,s,o){var a=t.omitExtraWLInCodeBlocks?"":"\n";o=i.subParser("encodeCode")(o,t,n);o=i.subParser("detab")(o,t,n);o=o.replace(/^\n+/g,"");o=o.replace(/\n+$/g,"");o="<pre><code"+(s?' class="'+s+" language-"+s+'"':"")+">"+o+a+"</code></pre>";o=i.subParser("hashBlock")(o,t,n);return"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}));e=e.replace(/¨0/,"");return n.converter._dispatch("githubCodeBlocks.after",e,t,n)}));i.subParser("hashBlock",(function(e,t,n){e=n.converter._dispatch("hashBlock.before",e,t,n);e=e.replace(/(^\n+|\n+$)/g,"");e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n";e=n.converter._dispatch("hashBlock.after",e,t,n);return e}));i.subParser("hashCodeTags",(function(e,t,n){e=n.converter._dispatch("hashCodeTags.before",e,t,n);var r=function(e,r,s,o){var a=s+i.subParser("encodeCode")(r,t,n)+o;return"¨C"+(n.gHtmlSpans.push(a)-1)+"C"};e=i.helper.replaceRecursiveRegExp(e,r,"<code\\b[^>]*>","</code>","gim");e=n.converter._dispatch("hashCodeTags.after",e,t,n);return e}));i.subParser("hashElement",(function(e,t,n){return function(e,t){var i=t;i=i.replace(/\n\n/g,"\n");i=i.replace(/^\n/,"");i=i.replace(/\n+$/g,"");i="\n\n¨K"+(n.gHtmlBlocks.push(i)-1)+"K\n\n";return i}}));i.subParser("hashHTMLBlocks",(function(e,t,n){e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],s=function(e,t,i,r){var s=e;if(i.search(/\bmarkdown\b/)!==-1){s=i+n.converter.makeHtml(t)+r}return"\n\n¨K"+(n.gHtmlBlocks.push(s)-1)+"K\n\n"};if(t.backslashEscapesHTMLTags){e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"}))}for(var o=0;o<r.length;++o){var a,l=new RegExp("^ {0,3}(<"+r[o]+"\\b[^>]*>)","im"),c="<"+r[o]+"\\b[^>]*>",u="</"+r[o]+">";while((a=i.helper.regexIndexOf(e,l))!==-1){var f=i.helper.splitAtIndex(e,a),h=i.helper.replaceRecursiveRegExp(f[1],s,c,u,"im");if(h===f[1]){break}e=f[0].concat(h)}}e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n));e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm");e=e.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n));e=n.converter._dispatch("hashHTMLBlocks.after",e,t,n);return e}));i.subParser("hashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("hashHTMLSpans.before",e,t,n);function i(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}e=e.replace(/<[^>]+?\/>/gi,(function(e){return i(e)}));e=e.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return i(e)}));e=e.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return i(e)}));e=e.replace(/<[^>]+?>/gi,(function(e){return i(e)}));e=n.converter._dispatch("hashHTMLSpans.after",e,t,n);return e}));i.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var i=0;i<n.gHtmlSpans.length;++i){var r=n.gHtmlSpans[i],s=0;while(/¨C(\d+)C/.test(r)){var o=RegExp.$1;r=r.replace("¨C"+o+"C",n.gHtmlSpans[o]);if(s===10){console.error("maximum nesting of 10 spans reached!!!");break}++s}e=e.replace("¨C"+i+"C",r)}e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n);return e}));i.subParser("hashPreCodeTags",(function(e,t,n){e=n.converter._dispatch("hashPreCodeTags.before",e,t,n);var r=function(e,r,s,o){var a=s+i.subParser("encodeCode")(r,t,n)+o;return"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"};e=i.helper.replaceRecursiveRegExp(e,r,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim");e=n.converter._dispatch("hashPreCodeTags.after",e,t,n);return e}));i.subParser("headers",(function(e,t,n){e=n.converter._dispatch("headers.before",e,t,n);var r=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),s=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=e.replace(s,(function(e,s){var o=i.subParser("spanGamut")(s,t,n),a=t.noHeaderId?"":' id="'+l(s)+'"',c=r,u="<h"+c+a+">"+o+"</h"+c+">";return i.subParser("hashBlock")(u,t,n)}));e=e.replace(o,(function(e,s){var o=i.subParser("spanGamut")(s,t,n),a=t.noHeaderId?"":' id="'+l(s)+'"',c=r+1,u="<h"+c+a+">"+o+"</h"+c+">";return i.subParser("hashBlock")(u,t,n)}));var a=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;e=e.replace(a,(function(e,s,o){var a=o;if(t.customizedHeaderId){a=o.replace(/\s?\{([^{]+?)}\s*$/,"")}var c=i.subParser("spanGamut")(a,t,n),u=t.noHeaderId?"":' id="'+l(o)+'"',f=r-1+s.length,h="<h"+f+u+">"+c+"</h"+f+">";return i.subParser("hashBlock")(h,t,n)}));function l(e){var r,s;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);if(o&&o[1]){e=o[1]}}r=e;if(i.helper.isString(t.prefixHeaderId)){s=t.prefixHeaderId}else if(t.prefixHeaderId===true){s="section-"}else{s=""}if(!t.rawPrefixHeaderId){r=s+r}if(t.ghCompatibleHeaderId){r=r.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase()}else if(t.rawHeaderId){r=r.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase()}else{r=r.replace(/[^\w]/g,"").toLowerCase()}if(t.rawPrefixHeaderId){r=s+r}if(n.hashLinkCounts[r]){r=r+"-"+n.hashLinkCounts[r]++}else{n.hashLinkCounts[r]=1}return r}e=n.converter._dispatch("headers.after",e,t,n);return e}));i.subParser("horizontalRule",(function(e,t,n){e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=i.subParser("hashBlock")("<hr />",t,n);e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r);e=e.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r);e=e.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r);e=n.converter._dispatch("horizontalRule.after",e,t,n);return e}));i.subParser("images",(function(e,t,n){e=n.converter._dispatch("images.before",e,t,n);var r=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,s=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,o=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,a=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l=/!\[([^\[\]]+)]()()()()()/g;function c(e,t,n,i,r,s,o,a){i=i.replace(/\s/g,"");return u(e,t,n,i,r,s,o,a)}function u(e,t,r,s,o,a,l,c){var u=n.gUrls,f=n.gTitles,h=n.gDimensions;r=r.toLowerCase();if(!c){c=""}if(e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1){s=""}else if(s===""||s===null){if(r===""||r===null){r=t.toLowerCase().replace(/ ?\n/g," ")}s="#"+r;if(!i.helper.isUndefined(u[r])){s=u[r];if(!i.helper.isUndefined(f[r])){c=f[r]}if(!i.helper.isUndefined(h[r])){o=h[r].width;a=h[r].height}}else{return e}}t=t.replace(/"/g,"&quot;").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);s=s.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var d='<img src="'+s+'" alt="'+t+'"';if(c&&i.helper.isString(c)){c=c.replace(/"/g,"&quot;").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);d+=' title="'+c+'"'}if(o&&a){o=o==="*"?"auto":o;a=a==="*"?"auto":a;d+=' width="'+o+'"';d+=' height="'+a+'"'}d+=" />";return d}e=e.replace(a,u);e=e.replace(o,c);e=e.replace(s,u);e=e.replace(r,u);e=e.replace(l,u);e=n.converter._dispatch("images.after",e,t,n);return e}));i.subParser("italicsAndBold",(function(e,t,n){e=n.converter._dispatch("italicsAndBold.before",e,t,n);function i(e,t,n){return t+e+n}if(t.literalMidWordUnderscores){e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return i(t,"<strong><em>","</em></strong>")}));e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return i(t,"<strong>","</strong>")}));e=e.replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return i(t,"<em>","</em>")}))}else{e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong><em>","</em></strong>"):e}));e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong>","</strong>"):e}));e=e.replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?i(t,"<em>","</em>"):e}))}if(t.literalMidWordAsterisks){e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return i(n,t+"<strong><em>","</em></strong>")}));e=e.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return i(n,t+"<strong>","</strong>")}));e=e.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return i(n,t+"<em>","</em>")}))}else{e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong><em>","</em></strong>"):e}));e=e.replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong>","</strong>"):e}));e=e.replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?i(t,"<em>","</em>"):e}))}e=n.converter._dispatch("italicsAndBold.after",e,t,n);return e}));i.subParser("lists",(function(e,t,n){function r(e,r){n.gListLevel++;e=e.replace(/\n{2,}$/,"\n");e+="¨0";var s=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e);if(t.disableForced4SpacesIndentedSublists){s=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm}e=e.replace(s,(function(e,r,s,a,l,c,u){u=u&&u.trim()!=="";var f=i.subParser("outdent")(l,t,n),h="";if(c&&t.tasklists){h=' class="task-list-item" style="list-style-type: none;"';f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';if(u){e+=" checked"}e+=">";return e}))}f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e}));if(r||f.search(/\n{2,}/)>-1){f=i.subParser("githubCodeBlocks")(f,t,n);f=i.subParser("blockGamut")(f,t,n)}else{f=i.subParser("lists")(f,t,n);f=f.replace(/\n$/,"");f=i.subParser("hashHTMLBlocks")(f,t,n);f=f.replace(/\n\n+/g,"\n\n");if(o){f=i.subParser("paragraphs")(f,t,n)}else{f=i.subParser("spanGamut")(f,t,n)}}f=f.replace("¨A","");f="<li"+h+">"+f+"</li>\n";return f}));e=e.replace(/¨0/g,"");n.gListLevel--;if(r){e=e.replace(/\s+$/,"")}return e}function s(e,t){if(t==="ol"){var n=e.match(/^ *(\d+)\./);if(n&&n[1]!=="1"){return' start="'+n[1]+'"'}}return""}function o(e,n,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,a=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l=n==="ul"?o:a,c="";if(e.search(l)!==-1){(function t(u){var f=u.search(l),h=s(e,n);if(f!==-1){c+="\n\n<"+n+h+">\n"+r(u.slice(0,f),!!i)+"</"+n+">\n";n=n==="ul"?"ol":"ul";l=n==="ul"?o:a;t(u.slice(f))}else{c+="\n\n<"+n+h+">\n"+r(u,!!i)+"</"+n+">\n"}})(e)}else{var u=s(e,n);c="\n\n<"+n+u+">\n"+r(e,!!i)+"</"+n+">\n"}return c}e=n.converter._dispatch("lists.before",e,t,n);e+="¨0";if(n.gListLevel){e=e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){var i=n.search(/[*+-]/g)>-1?"ul":"ol";return o(t,i,true)}))}else{e=e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,i){var r=i.search(/[*+-]/g)>-1?"ul":"ol";return o(n,r,false)}))}e=e.replace(/¨0/,"");e=n.converter._dispatch("lists.after",e,t,n);return e}));i.subParser("metadata",(function(e,t,n){if(!t.metadata){return e}e=n.converter._dispatch("metadata.before",e,t,n);function i(e){n.metadata.raw=e;e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;");e=e.replace(/\n {4}/g," ");e.replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,i){n.metadata.parsed[t]=i;return""}))}e=e.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){i(n);return"¨M"}));e=e.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,r){if(t){n.metadata.format=t}i(r);return"¨M"}));e=e.replace(/¨M/g,"");e=n.converter._dispatch("metadata.after",e,t,n);return e}));i.subParser("outdent",(function(e,t,n){e=n.converter._dispatch("outdent.before",e,t,n);e=e.replace(/^(\t|[ ]{1,4})/gm,"¨0");e=e.replace(/¨0/g,"");e=n.converter._dispatch("outdent.after",e,t,n);return e}));i.subParser("paragraphs",(function(e,t,n){e=n.converter._dispatch("paragraphs.before",e,t,n);e=e.replace(/^\n+/g,"");e=e.replace(/\n+$/g,"");var r=e.split(/\n{2,}/g),s=[],o=r.length;for(var a=0;a<o;a++){var l=r[a];if(l.search(/¨(K|G)(\d+)\1/g)>=0){s.push(l)}else if(l.search(/\S/)>=0){l=i.subParser("spanGamut")(l,t,n);l=l.replace(/^([ \t]*)/g,"<p>");l+="</p>";s.push(l)}}o=s.length;for(a=0;a<o;a++){var c="",u=s[a],f=false;while(/¨(K|G)(\d+)\1/.test(u)){var h=RegExp.$1,d=RegExp.$2;if(h==="K"){c=n.gHtmlBlocks[d]}else{if(f){c=i.subParser("encodeCode")(n.ghCodeBlocks[d].text,t,n)}else{c=n.ghCodeBlocks[d].codeblock}}c=c.replace(/\$/g,"$$$$");u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,c);if(/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)){f=true}}s[a]=u}e=s.join("\n");e=e.replace(/^\n+/g,"");e=e.replace(/\n+$/g,"");return n.converter._dispatch("paragraphs.after",e,t,n)}));i.subParser("runExtension",(function(e,t,n,i){if(e.filter){t=e.filter(t,i.converter,n)}else if(e.regex){var r=e.regex;if(!(r instanceof RegExp)){r=new RegExp(r,"g")}t=t.replace(r,e.replace)}return t}));i.subParser("spanGamut",(function(e,t,n){e=n.converter._dispatch("spanGamut.before",e,t,n);e=i.subParser("codeSpans")(e,t,n);e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n);e=i.subParser("encodeBackslashEscapes")(e,t,n);e=i.subParser("images")(e,t,n);e=i.subParser("anchors")(e,t,n);e=i.subParser("autoLinks")(e,t,n);e=i.subParser("simplifiedAutoLinks")(e,t,n);e=i.subParser("emoji")(e,t,n);e=i.subParser("underline")(e,t,n);e=i.subParser("italicsAndBold")(e,t,n);e=i.subParser("strikethrough")(e,t,n);e=i.subParser("ellipsis")(e,t,n);e=i.subParser("hashHTMLSpans")(e,t,n);e=i.subParser("encodeAmpsAndAngles")(e,t,n);if(t.simpleLineBreaks){if(!/\n\n¨K/.test(e)){e=e.replace(/\n+/g,"<br />\n")}}else{e=e.replace(/ +\n/g,"<br />\n")}e=n.converter._dispatch("spanGamut.after",e,t,n);return e}));i.subParser("strikethrough",(function(e,t,n){function r(e){if(t.simplifiedAutoLink){e=i.subParser("simplifiedAutoLinks")(e,t,n)}return"<del>"+e+"</del>"}if(t.strikethrough){e=n.converter._dispatch("strikethrough.before",e,t,n);e=e.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,t){return r(t)}));e=n.converter._dispatch("strikethrough.after",e,t,n)}return e}));i.subParser("stripLinkDefinitions",(function(e,t,n){var r=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,s=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;e+="¨0";var o=function(r,s,o,a,l,c,u){s=s.toLowerCase();if(e.toLowerCase().split(s).length-1<2){return r}if(o.match(/^data:.+?\/.+?;base64,/)){n.gUrls[s]=o.replace(/\s/g,"")}else{n.gUrls[s]=i.subParser("encodeAmpsAndAngles")(o,t,n)}if(c){return c+u}else{if(u){n.gTitles[s]=u.replace(/"|'/g,"&quot;")}if(t.parseImgDimensions&&a&&l){n.gDimensions[s]={width:a,height:l}}}return""};e=e.replace(s,o);e=e.replace(r,o);e=e.replace(/¨0/,"");return e}));i.subParser("tables",(function(e,t,n){if(!t.tables){return e}var r=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function o(e){if(/^:[ \t]*--*$/.test(e)){return' style="text-align:left;"'}else if(/^--*[ \t]*:[ \t]*$/.test(e)){return' style="text-align:right;"'}else if(/^:[ \t]*--*[ \t]*:$/.test(e)){return' style="text-align:center;"'}else{return""}}function a(e,r){var s="";e=e.trim();if(t.tablesHeaderId||t.tableHeaderId){s=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'}e=i.subParser("spanGamut")(e,t,n);return"<th"+s+r+">"+e+"</th>\n"}function l(e,r){var s=i.subParser("spanGamut")(e,t,n);return"<td"+r+">"+s+"</td>\n"}function c(e,t){var n="<table>\n<thead>\n<tr>\n",i=e.length;for(var r=0;r<i;++r){n+=e[r]}n+="</tr>\n</thead>\n<tbody>\n";for(r=0;r<t.length;++r){n+="<tr>\n";for(var s=0;s<i;++s){n+=t[r][s]}n+="</tr>\n"}n+="</tbody>\n</table>\n";return n}function u(e){var r,s=e.split("\n");for(r=0;r<s.length;++r){if(/^ {0,3}\|/.test(s[r])){s[r]=s[r].replace(/^ {0,3}\|/,"")}if(/\|[ \t]*$/.test(s[r])){s[r]=s[r].replace(/\|[ \t]*$/,"")}s[r]=i.subParser("codeSpans")(s[r],t,n)}var u=s[0].split("|").map((function(e){return e.trim()})),f=s[1].split("|").map((function(e){return e.trim()})),h=[],d=[],p=[],g=[];s.shift();s.shift();for(r=0;r<s.length;++r){if(s[r].trim()===""){continue}h.push(s[r].split("|").map((function(e){return e.trim()})))}if(u.length<f.length){return e}for(r=0;r<f.length;++r){p.push(o(f[r]))}for(r=0;r<u.length;++r){if(i.helper.isUndefined(p[r])){p[r]=""}d.push(a(u[r],p[r]))}for(r=0;r<h.length;++r){var m=[];for(var _=0;_<d.length;++_){if(i.helper.isUndefined(h[r][_]));m.push(l(h[r][_],p[_]))}g.push(m)}return c(d,g)}e=n.converter._dispatch("tables.before",e,t,n);e=e.replace(/\\(\|)/g,i.helper.escapeCharactersCallback);e=e.replace(r,u);e=e.replace(s,u);e=n.converter._dispatch("tables.after",e,t,n);return e}));i.subParser("underline",(function(e,t,n){if(!t.underline){return e}e=n.converter._dispatch("underline.before",e,t,n);if(t.literalMidWordUnderscores){e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}));e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"}))}else{e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}));e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))}e=e.replace(/(_)/g,i.helper.escapeCharactersCallback);e=n.converter._dispatch("underline.after",e,t,n);return e}));i.subParser("unescapeSpecialChars",(function(e,t,n){e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n);e=e.replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)}));e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n);return e}));i.subParser("makeMarkdown.blockquote",(function(e,t){var n="";if(e.hasChildNodes()){var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){var a=i.subParser("makeMarkdown.node")(r[o],t);if(a===""){continue}n+=a}}n=n.trim();n="> "+n.split("\n").join("\n> ");return n}));i.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),i=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[i]+"\n```"}));i.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"}));i.subParser("makeMarkdown.emphasis",(function(e,t){var n="";if(e.hasChildNodes()){n+="*";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="*"}return n}));i.subParser("makeMarkdown.header",(function(e,t,n){var r=new Array(n+1).join("#"),s="";if(e.hasChildNodes()){s=r+" ";var o=e.childNodes,a=o.length;for(var l=0;l<a;++l){s+=i.subParser("makeMarkdown.node")(o[l],t)}}return s}));i.subParser("makeMarkdown.hr",(function(){return"---"}));i.subParser("makeMarkdown.image",(function(e){var t="";if(e.hasAttribute("src")){t+="!["+e.getAttribute("alt")+"](";t+="<"+e.getAttribute("src")+">";if(e.hasAttribute("width")&&e.hasAttribute("height")){t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")}if(e.hasAttribute("title")){t+=' "'+e.getAttribute("title")+'"'}t+=")"}return t}));i.subParser("makeMarkdown.links",(function(e,t){var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var r=e.childNodes,s=r.length;n="[";for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="](";n+="<"+e.getAttribute("href")+">";if(e.hasAttribute("title")){n+=' "'+e.getAttribute("title")+'"'}n+=")"}return n}));i.subParser("makeMarkdown.list",(function(e,t,n){var r="";if(!e.hasChildNodes()){return""}var s=e.childNodes,o=s.length,a=e.getAttribute("start")||1;for(var l=0;l<o;++l){if(typeof s[l].tagName==="undefined"||s[l].tagName.toLowerCase()!=="li"){continue}var c="";if(n==="ol"){c=a.toString()+". "}else{c="- "}r+=c+i.subParser("makeMarkdown.listItem")(s[l],t);++a}r+="\n\x3c!-- --\x3e\n";return r.trim()}));i.subParser("makeMarkdown.listItem",(function(e,t){var n="";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}if(!/\n$/.test(n)){n+="\n"}else{n=n.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n")}return n}));i.subParser("makeMarkdown.node",(function(e,t,n){n=n||false;var r="";if(e.nodeType===3){return i.subParser("makeMarkdown.txt")(e,t)}if(e.nodeType===8){return"\x3c!--"+e.data+"--\x3e\n\n"}if(e.nodeType!==1){return""}var s=e.tagName.toLowerCase();switch(s){case"h1":if(!n){r=i.subParser("makeMarkdown.header")(e,t,1)+"\n\n"}break;case"h2":if(!n){r=i.subParser("makeMarkdown.header")(e,t,2)+"\n\n"}break;case"h3":if(!n){r=i.subParser("makeMarkdown.header")(e,t,3)+"\n\n"}break;case"h4":if(!n){r=i.subParser("makeMarkdown.header")(e,t,4)+"\n\n"}break;case"h5":if(!n){r=i.subParser("makeMarkdown.header")(e,t,5)+"\n\n"}break;case"h6":if(!n){r=i.subParser("makeMarkdown.header")(e,t,6)+"\n\n"}break;case"p":if(!n){r=i.subParser("makeMarkdown.paragraph")(e,t)+"\n\n"}break;case"blockquote":if(!n){r=i.subParser("makeMarkdown.blockquote")(e,t)+"\n\n"}break;case"hr":if(!n){r=i.subParser("makeMarkdown.hr")(e,t)+"\n\n"}break;case"ol":if(!n){r=i.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n"}break;case"ul":if(!n){r=i.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n"}break;case"precode":if(!n){r=i.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n"}break;case"pre":if(!n){r=i.subParser("makeMarkdown.pre")(e,t)+"\n\n"}break;case"table":if(!n){r=i.subParser("makeMarkdown.table")(e,t)+"\n\n"}break;case"code":r=i.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":r=i.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":r=i.subParser("makeMarkdown.strong")(e,t);break;case"del":r=i.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":r=i.subParser("makeMarkdown.links")(e,t);break;case"img":r=i.subParser("makeMarkdown.image")(e,t);break;default:r=e.outerHTML+"\n\n"}return r}));i.subParser("makeMarkdown.paragraph",(function(e,t){var n="";if(e.hasChildNodes()){var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}}n=n.trim();return n}));i.subParser("makeMarkdown.pre",(function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"}));i.subParser("makeMarkdown.strikethrough",(function(e,t){var n="";if(e.hasChildNodes()){n+="~~";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="~~"}return n}));i.subParser("makeMarkdown.strong",(function(e,t){var n="";if(e.hasChildNodes()){n+="**";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="**"}return n}));i.subParser("makeMarkdown.table",(function(e,t){var n="",r=[[],[]],s=e.querySelectorAll("thead>tr>th"),o=e.querySelectorAll("tbody>tr"),a,l;for(a=0;a<s.length;++a){var c=i.subParser("makeMarkdown.tableCell")(s[a],t),u="---";if(s[a].hasAttribute("style")){var f=s[a].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(f){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:";break}}r[0][a]=c.trim();r[1][a]=u}for(a=0;a<o.length;++a){var h=r.push([])-1,d=o[a].getElementsByTagName("td");for(l=0;l<s.length;++l){var p=" ";if(typeof d[l]!=="undefined"){p=i.subParser("makeMarkdown.tableCell")(d[l],t)}r[h].push(p)}}var g=3;for(a=0;a<r.length;++a){for(l=0;l<r[a].length;++l){var m=r[a][l].length;if(m>g){g=m}}}for(a=0;a<r.length;++a){for(l=0;l<r[a].length;++l){if(a===1){if(r[a][l].slice(-1)===":"){r[a][l]=i.helper.padEnd(r[a][l].slice(-1),g-1,"-")+":"}else{r[a][l]=i.helper.padEnd(r[a][l],g,"-")}}else{r[a][l]=i.helper.padEnd(r[a][l],g)}}n+="| "+r[a].join(" | ")+" |\n"}return n.trim()}));i.subParser("makeMarkdown.tableCell",(function(e,t){var n="";if(!e.hasChildNodes()){return""}var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t,true)}return n.trim()}));i.subParser("makeMarkdown.txt",(function(e){var t=e.nodeValue;t=t.replace(/ +/g," ");t=t.replace(/¨NBSP;/g," ");t=i.helper.unescapeHTMLEntities(t);t=t.replace(/([*_~|`])/g,"\\$1");t=t.replace(/^(\s*)>/g,"\\$1>");t=t.replace(/^#/gm,"\\#");t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3");t=t.replace(/^( {0,3}\d+)\./gm,"$1\\.");t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2");t=t.replace(/]([\s]*)\(/g,"\\]$1\\(");t=t.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:");return t}));var w=this;if(e.exports){e.exports=i}else{w.showdown=i}}).call(Ue)})(We);const Ke=We.exports;let Ze=null;function Xe(t){t=t||e.DATA_MODE;switch(t){case"local":return`http://127.0.0.1:5000`;case"dev":return`https://dev-api.ai12z.net`;default:return`https://api.ai12z.net`}}async function Je(t,n){var i,r;try{const s={origin:(i=window===null||window===void 0?void 0:window.location)===null||i===void 0?void 0:i.origin,title:document===null||document===void 0?void 0:document.title,userAgent:navigator===null||navigator===void 0?void 0:navigator.userAgent,referrer:document===null||document===void 0?void 0:document.referrer,language:navigator===null||navigator===void 0?void 0:navigator.language,description:(r=document.querySelector('meta[name="description"]'))===null||r===void 0?void 0:r.getAttribute("content")};if(!n.apiKey){n.apiKey=e.DATA_KEY}if(!n.apiKey)throw new Error(`Public Key is required. Please provide using attribute "data-key".`);n=Object.assign(Object.assign({},n),{meta:s});const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!o.ok){throw new Error(`HTTP error! status: ${o.status}`)}const a=await o.json();return await a}catch(e){throw e}}async function Qe(e,t,n){if(!n)return[];const i=`${Xe(t)}/bot/search`;const r={apiKey:e,query:n,num_docs:4};return await Je(i,r)}async function Ye(e,t,n,i){const r=`${Xe(t)}/bot/feedback`;const s={apiKey:e,insight_id:n,feedback:i};return await Je(r,s)}function et(e,t=300){let n;return(...i)=>{clearTimeout(n);n=setTimeout((()=>{e.apply(this,i)}),t)}}async function tt(e,t){if(Ze===null){try{const n=`${Xe(t)}/bot/status`;const i=await Je(n,{apiKey:e});if(i){Ze=i.enable}}catch(e){Ze=false}}return Ze}function nt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)}))}function it(e){const t=new DOMParser;const n=t.parseFromString(e,"text/html");const i=Array.from(n.querySelectorAll("button"));let r=i.map(((e,t)=>{const n=e.id||`button-${t}`;const i=e.textContent||`Button ${t+1}`;e.id=n;e.removeAttribute("onclick");return{id:n,label:i,onClick:()=>alert(`Button ${n} clicked!`)}}));return{body:n.body.innerHTML,buttons:r}}function rt(e,t){const{configId:n,apiKey:i}=e;const r=`${Xe(t)}/bot/config`;const s={configId:n,apiKey:i};return Je(r,s)}function st(){const e="ai12z-visitorId";let t=localStorage.getItem(e);if(!t){t=ot();localStorage.setItem(e,t)}return"ai12z-"+t}function ot(){return Date.now()+"-"+Math.random().toString(36).substr(2,9)}function at(e,t){var n,i,r;const s=(i=(n=e.controlData)===null||n===void 0?void 0:n.data.source.carousel)===null||i===void 0?void 0:i.type;const o=document.createElement("item-list");o.carouselType=s;o.inputType=t;o.customTemplate=e.controlData.template;o.customSource=(r=e.controlData)===null||r===void 0?void 0:r.data.source;return o}function lt(e){switch(e){case"list":const e=[{name:"list",content:`{{#each items}}\n <div class="carousel-card flex flex-col items-start mb-4 bg-white border h-auto border-gray-200 rounded-lg shadow md:flex-row md:max-w-xl dark:border-gray-700" data-index="{{@index}}">\n \n {{#each images}} \n <img src="{{this}}" alt="Image for {{../title}}" class="card-image object-cover h-96 md:mt-6 md:ml-2" style="width:25%;height:25%"> \n {{/each}} \n \n <div class="flex flex-col justify-between p-4 leading-normal">\n <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"> {{{this.title}}}</h5>\n {{#each subTitle}} \n <p class="font-title text-md md:text-xl">{{this}}</p> \n {{/each}}\n <p class="short-description mb-3 font-normal text-gray-700 dark:text-gray-400">{{{this.shortDescription}}}</p>\n <div class="long-description mb-3 font-normal text-gray-700 dark:text-gray-400 hidden">{{{this.description}}}</div>\n <button class="read-more" data-index="{{@index}}"> Read More </button>\n <div class="flex flex-col items-center my-4">\n {{#each buttons}} \n <button class="card-button list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none" data-id="{{@index}}" data-url="{{this.url}}" data-type="{{this.type}}">\n {{this.label}}</button>\n {{/each}}\n {{#and ../buttonText formSettings}}\n <button class="card-button list-btn uppercase" data-type="panel">{{../buttonText}}</button>\n {{/and}}\n </div>\n </div>\n</div>\n{{/each}}\n<div class="pagination-controls">\n<button class="prev-btn list-btn" {{#unless hasPrev}}disabled{{/unless}}>Prev</button>\n<span> Page {{getcurrentPage}} of {{getPageCount}} </span>\n<button class="next-btn list-btn" {{#unless hasNext}}disabled{{/unless}}>Next</button>\n</div>`},{name:"detail",content:`<div class="flex flex-col items-center justify-center w-full h-full p-4">\n <div class="w-full md:col-span-2 h-fit">\n <dynamic-form form="{{json form}}" formSettings="{{json formSettings}}"/>\n </div> \n <div> \n {{#each buttons}} \n <button class="panel-button list-btn text-white" data-id="{{this.index}}" data-type="{{this.type}}">{{this.label}}</button> \n {{/each}}\n </div>\n </div>`}];return e}}function ct(e){switch(e){case"list":const e=[{name:"list",content:`{{#each items as |item index|}}\n <div class="carousel-card flex flex-col items-start mb-4 bg-white border h-auto border-gray-200 rounded-lg shadow md:flex-row md:max-w-xl dark:border-gray-700" data-index="{{index}}">\n \n <div class="relative w-full carousel-container" data-carousel-id="carousel-{{index}}" id="carousel-{{index}}" data-carousel="slide">\n <div class="relative h-64 overflow-hidden">\n {{#each item.images as |image imageIndex|}} \n <img src="{{this}}" alt="Image for {{../title}}" class="card-image object-cover w-full h-96 md:w-48 md:h-auto md:mt-6 hidden duration-700 ease-in-out" data-carousel-item id="carousel-{{index}}-item-{{imageIndex}}"/> \n {{/each}}\n </div> \n {{#if (lte item.images.length 3)}} \n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n {{#each images as |image imageIndex|}}\n <button type="button" class="w-3 h-3 rounded-full" aria-current="true" aria-label="Slide {{@index}}" data-carousel-slide-to="{{index}}" id="carousel-{{index}}-indicator-{{imageIndex}}"></button>\n {{/each}}\n </div>\n {{else}}\n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-prev id="carousel-{{index}}-prev"></button>\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-next id="carousel-{{index}}-next"></button>\n </div>\n {{/if}}\n </div>\n \n \n \n <div class="flex flex-col justify-between p-4 leading-normal">\n <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"> {{{this.title}}}</h5>\n {{#each subTitle}} \n <p class="font-title text-md md:text-xl">{{this}}</p> \n {{/each}}\n <p class="short-description mb-3 font-normal text-gray-700 dark:text-gray-400">{{{this.shortDescription}}}</p>\n <div class="long-description mb-3 font-normal text-gray-700 dark:text-gray-400 hidden">{{{this.description}}}</div>\n <button class="read-more" data-index="{{@index}}"> Read More </button>\n <div class="flex items-center my-4">\n {{#each buttons}} \n <button class="card-button list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none" data-id="{{@index}}" data-url="{{this.url}}" data-type="{{this.type}}">\n {{this.label}}</button>\n {{/each}}\n {{#and ../buttonText formSettings}}\n <button class="card-button list-btn uppercase" data-type="panel">{{../buttonText}}</button>\n {{/and}}\n </div>\n </div>\n</div>\n{{/each}}\n<div class="pagination-controls">\n<button class="prev-btn list-btn" {{#unless hasPrev}}disabled{{/unless}}>Prev</button>\n<span> Page {{getcurrentPage}} of {{getPageCount}} </span>\n<button class="next-btn list-btn" {{#unless hasNext}}disabled{{/unless}}>Next</button>\n</div>\n`},{name:"detail",content:`\n <div class="flex flex-col items-center justify-center w-full h-full p-4">\n <div class="w-full md:col-span-2 h-fit">\n <dynamic-form form="{{json form}}" formSettings="{{json formSettings}}"/>\n </div> \n <div> \n {{#each buttons}} \n <button class="panel-button list-btn text-white" data-id="{{this.index}}" data-type="{{this.type}}">{{this.label}}</button> \n {{/each}}\n </div>\n </div>`}];return e;case"slider":const t=[{name:"carousel",content:`\n<div id="carouselExample" class="relative w-full" data-carousel="static">\n \n <div class="carousel-box relative bg-white overflow-hidden overflow-y-scroll h-56 rounded-lg md:h-96" style={ overflowY: "scroll", height: "30rem" }>\n {{#each items as |item index|}}\n <div class="carousel-card max-w-sm hidden duration-700 ease-in-out md:max-w-xl" data-carousel-item id="carousel-item-{{index}}" data-index="{{index}}">\n <div class="relative w-full carousel-container" data-carousel-id="carousel-{{index}}" id="carousel-{{index}}" data-carousel="slide">\n <div class="relative h-64 overflow-hidden rounded-lg">\n {{#each item.images as |image imageIndex|}} \n \n <img src="{{this}}" alt="Image for {{../title}}" class="card-image object-cover h-96 hidden duration-700 ease-in-out" data-carousel-item id="carousel-{{index}}-item-{{imageIndex}}"/> \n \n {{/each}}\n </div> \n {{#if (lte item.images.length 3)}} \n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n {{#each images as |image imageIndex|}}\n <button type="button" class="w-3 h-3 rounded-full" aria-current="true" aria-label="Slide {{@index}}" data-carousel-slide-to="{{index}}" id="carousel-{{index}}-indicator-{{imageIndex}}"></button>\n {{/each}}\n </div>\n {{else}}\n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-prev id="carousel-{{index}}-prev"></button>\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-next id="carousel-{{index}}-next"></button>\n </div>\n {{/if}}\n </div> \n \n <div class="p-5">\n <a href="#">\n <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">{{{title}}}</h5>\n </a>\n <p class="short-description mb-3 font-normal text-gray-700 dark:text-gray-400">{{{shortDescription}}}</p>\n <div class="long-description mb-3 font-normal text-gray-700 dark:text-gray-400 hidden">{{{description}}}</div>\n <a class="read-more inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">\n Read more\n <svg class="rtl:rotate-180 w-3.5 h-3.5 ms-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10">\n <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"/>\n </svg>\n </a>\n {{#each buttons}}\n <button class="card-button list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none" data-index="{{@index}}" data-url="{{this.url}}" data-type="{{this.type}}">{{this.label}}</button>\n {{/each}}\n </div>\n </div>\n {{/each}}\n </div>\n\n <div class="absolute z-30 flex overflow-x-auto -translate-x-1/2 space-x-1 rtl:space-x-reverse bottom-5 left-1/2 scrollbar-visible">\n {{#if (lte items.length 5)}} \n {{#each items}}\n <button\n id="carousel-indicator-{{@index}}"\n type="button"\n class="w-2.5 h-2.5 sm:w-3 sm:h-3 md:w-4 md:h-4 rounded-full"\n aria-current="true"\n aria-label="Slide {{@index}}"\n ></button>\n {{/each}}\n {{/if}}\n </div>\n\n \x3c!-- Controls --\x3e\n <button\n type="button"\n class="absolute top-0 left-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none"\n id="data-carousel-prev"\n data-carousel-prev\n >\n <span\n class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-blue-600"\n >\n <svg\n aria-hidden="true"\n class="w-6 h-6 text-white"\n fill="none"\n stroke="currentColor"\n viewBox="0 0 24 24"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n stroke-width="2"\n d="M15 19l-7-7 7-7"\n ></path>\n </svg>\n <span class="sr-only">Previous</span>\n </span>\n </button>\n <button\n type="button"\n class="absolute top-0 right-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none"\n id="data-carousel-next"\n data-carousel-next\n >\n <span\n class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-blue-600"\n >\n <svg\n aria-hidden="true"\n class="w-6 h-6 text-white dark:text-gray-800"\n fill="none"\n stroke="currentColor"\n viewBox="0 0 24 24"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n stroke-width="2"\n d="M9 5l7 7-7 7"\n ></path>\n </svg>\n <span class="sr-only">Next</span>\n </span>\n </button>\n</div>`},{name:"detail",content:`\n <div class="flex flex-col items-center justify-center w-full h-full p-4">\n <div class="w-full md:col-span-2 h-fit">\n <dynamic-form form="{{json form}}" formSettings="{{json formSettings}}"/>\n </div> \n <div> \n {{#each buttons}} \n <button class="panel-button list-btn text-white" data-id="{{this.index}}" data-type="{{this.type}}">{{this.label}}</button> \n {{/each}}\n </div>\n </div>`}];return t}}function ut(e){const t=e.indexOf("[");const n=e.indexOf("]",t);if(t!==-1&&n!==-1){const i=e.substring(0,t);const r=e.substring(t+1,n);let s=e.substring(n+1);s=s.replace("<p></p>","");return{before:i,inside:r,after:s}}else{console.log("No brackets found in the HTML string.");return{before:e,inside:null,after:null}}}export{st as a,rt as b,at as c,ut as d,Xe as e,Qe as f,nt as g,tt as h,Ye as i,Fe as j,et as k,Ge as l,ct as m,lt as n,Ke as s,it as u};
2
- //# sourceMappingURL=p-cfcf9f4d.js.map
1
+ import{E as e}from"./p-682c54c0.js";const t=Object.create(null);t["open"]="0";t["close"]="1";t["ping"]="2";t["pong"]="3";t["message"]="4";t["upgrade"]="5";t["noop"]="6";const n=Object.create(null);Object.keys(t).forEach((e=>{n[t[e]]=e}));const i={type:"error",data:"parser error"};const r=typeof Blob==="function"||typeof Blob!=="undefined"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]";const s=typeof ArrayBuffer==="function";const o=e=>typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer;const a=({type:e,data:n},i,a)=>{if(r&&n instanceof Blob){if(i){return a(n)}else{return l(n,a)}}else if(s&&(n instanceof ArrayBuffer||o(n))){if(i){return a(n)}else{return l(new Blob([n]),a)}}return a(t[e]+(n||""))};const l=(e,t)=>{const n=new FileReader;n.onload=function(){const e=n.result.split(",")[1];t("b"+(e||""))};return n.readAsDataURL(e)};function c(e){if(e instanceof Uint8Array){return e}else if(e instanceof ArrayBuffer){return new Uint8Array(e)}else{return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}}let u;function f(e,t){if(r&&e.data instanceof Blob){return e.data.arrayBuffer().then(c).then(t)}else if(s&&(e.data instanceof ArrayBuffer||o(e.data))){return t(c(e.data))}a(e,false,(e=>{if(!u){u=new TextEncoder}t(u.encode(e))}))}const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";const d=typeof Uint8Array==="undefined"?[]:new Uint8Array(256);for(let e=0;e<h.length;e++){d[h.charCodeAt(e)]=e}const p=e=>{let t=e.length*.75,n=e.length,i,r=0,s,o,a,l;if(e[e.length-1]==="="){t--;if(e[e.length-2]==="="){t--}}const c=new ArrayBuffer(t),u=new Uint8Array(c);for(i=0;i<n;i+=4){s=d[e.charCodeAt(i)];o=d[e.charCodeAt(i+1)];a=d[e.charCodeAt(i+2)];l=d[e.charCodeAt(i+3)];u[r++]=s<<2|o>>4;u[r++]=(o&15)<<4|a>>2;u[r++]=(a&3)<<6|l&63}return c};const g=typeof ArrayBuffer==="function";const m=(e,t)=>{if(typeof e!=="string"){return{type:"message",data:b(e,t)}}const r=e.charAt(0);if(r==="b"){return{type:"message",data:_(e.substring(1),t)}}const s=n[r];if(!s){return i}return e.length>1?{type:n[r],data:e.substring(1)}:{type:n[r]}};const _=(e,t)=>{if(g){const n=p(e);return b(n,t)}else{return{base64:true,data:e}}};const b=(e,t)=>{switch(t){case"blob":if(e instanceof Blob){return e}else{return new Blob([e])}case"arraybuffer":default:if(e instanceof ArrayBuffer){return e}else{return e.buffer}}};const w=String.fromCharCode(30);const k=(e,t)=>{const n=e.length;const i=new Array(n);let r=0;e.forEach(((e,s)=>{a(e,false,(e=>{i[s]=e;if(++r===n){t(i.join(w))}}))}))};const y=(e,t)=>{const n=e.split(w);const i=[];for(let e=0;e<n.length;e++){const r=m(n[e],t);i.push(r);if(r.type==="error"){break}}return i};function v(){return new TransformStream({transform(e,t){f(e,(n=>{const i=n.length;let r;if(i<126){r=new Uint8Array(1);new DataView(r.buffer).setUint8(0,i)}else if(i<65536){r=new Uint8Array(3);const e=new DataView(r.buffer);e.setUint8(0,126);e.setUint16(1,i)}else{r=new Uint8Array(9);const e=new DataView(r.buffer);e.setUint8(0,127);e.setBigUint64(1,BigInt(i))}if(e.data&&typeof e.data!=="string"){r[0]|=128}t.enqueue(r);t.enqueue(n)}))}})}let x;function j(e){return e.reduce(((e,t)=>e+t.length),0)}function z(e,t){if(e[0].length===t){return e.shift()}const n=new Uint8Array(t);let i=0;for(let r=0;r<t;r++){n[r]=e[0][i++];if(i===e[0].length){e.shift();i=0}}if(e.length&&i<e[0].length){e[0]=e[0].slice(i)}return n}function S(e,t){if(!x){x=new TextDecoder}const n=[];let r=0;let s=-1;let o=false;return new TransformStream({transform(a,l){n.push(a);while(true){if(r===0){if(j(n)<1){break}const e=z(n,1);o=(e[0]&128)===128;s=e[0]&127;if(s<126){r=3}else if(s===126){r=1}else{r=2}}else if(r===1){if(j(n)<2){break}const e=z(n,2);s=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0);r=3}else if(r===2){if(j(n)<8){break}const e=z(n,8);const t=new DataView(e.buffer,e.byteOffset,e.length);const o=t.getUint32(0);if(o>Math.pow(2,53-32)-1){l.enqueue(i);break}s=o*Math.pow(2,32)+t.getUint32(4);r=3}else{if(j(n)<s){break}const e=z(n,s);l.enqueue(m(o?e:x.decode(e),t));r=0}if(s===0||s>e){l.enqueue(i);break}}}})}const E=4;function M(e){if(e)return A(e)}function A(e){for(var t in M.prototype){e[t]=M.prototype[t]}return e}M.prototype.on=M.prototype.addEventListener=function(e,t){this._callbacks=this._callbacks||{};(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t);return this};M.prototype.once=function(e,t){function n(){this.off(e,n);t.apply(this,arguments)}n.fn=t;this.on(e,n);return this};M.prototype.off=M.prototype.removeListener=M.prototype.removeAllListeners=M.prototype.removeEventListener=function(e,t){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length){delete this._callbacks["$"+e];return this}var i;for(var r=0;r<n.length;r++){i=n[r];if(i===t||i.fn===t){n.splice(r,1);break}}if(n.length===0){delete this._callbacks["$"+e]}return this};M.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=new Array(arguments.length-1),n=this._callbacks["$"+e];for(var i=1;i<arguments.length;i++){t[i-1]=arguments[i]}if(n){n=n.slice(0);for(var i=0,r=n.length;i<r;++i){n[i].apply(this,t)}}return this};M.prototype.emitReserved=M.prototype.emit;M.prototype.listeners=function(e){this._callbacks=this._callbacks||{};return this._callbacks["$"+e]||[]};M.prototype.hasListeners=function(e){return!!this.listeners(e).length};const T=(()=>{if(typeof self!=="undefined"){return self}else if(typeof window!=="undefined"){return window}else{return Function("return this")()}})();function B(e,...t){return t.reduce(((t,n)=>{if(e.hasOwnProperty(n)){t[n]=e[n]}return t}),{})}const C=T.setTimeout;const $=T.clearTimeout;function L(e,t){if(t.useNativeTimers){e.setTimeoutFn=C.bind(T);e.clearTimeoutFn=$.bind(T)}else{e.setTimeoutFn=T.setTimeout.bind(T);e.clearTimeoutFn=T.clearTimeout.bind(T)}}const I=1.33;function O(e){if(typeof e==="string"){return P(e)}return Math.ceil((e.byteLength||e.size)*I)}function P(e){let t=0,n=0;for(let i=0,r=e.length;i<r;i++){t=e.charCodeAt(i);if(t<128){n+=1}else if(t<2048){n+=2}else if(t<55296||t>=57344){n+=3}else{i++;n+=4}}return n}function q(e){let t="";for(let n in e){if(e.hasOwnProperty(n)){if(t.length)t+="&";t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n])}}return t}function H(e){let t={};let n=e.split("&");for(let e=0,i=n.length;e<i;e++){let i=n[e].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}class R extends Error{constructor(e,t,n){super(e);this.description=t;this.context=n;this.type="TransportError"}}class D extends M{constructor(e){super();this.writable=false;L(this,e);this.opts=e;this.query=e.query;this.socket=e.socket}onError(e,t,n){super.emitReserved("error",new R(e,t,n));return this}open(){this.readyState="opening";this.doOpen();return this}close(){if(this.readyState==="opening"||this.readyState==="open"){this.doClose();this.onClose()}return this}send(e){if(this.readyState==="open"){this.write(e)}}onOpen(){this.readyState="open";this.writable=true;super.emitReserved("open")}onData(e){const t=m(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed";super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){if(this.opts.port&&(this.opts.secure&&Number(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)){return":"+this.opts.port}else{return""}}_query(e){const t=q(e);return t.length?"?"+t:""}}const V="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),N=64,G={};let U=0,F=0,W;function K(e){let t="";do{t=V[e%N]+t;e=Math.floor(e/N)}while(e>0);return t}function Z(){const e=K(+new Date);if(e!==W)return U=0,W=e;return e+"."+K(U++)}for(;F<N;F++)G[V[F]]=F;let X=false;try{X=typeof XMLHttpRequest!=="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){}const J=X;function Q(e){const t=e.xdomain;try{if("undefined"!==typeof XMLHttpRequest&&(!t||J)){return new XMLHttpRequest}}catch(e){}if(!t){try{return new(T[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(e){}}}function Y(){}function ee(){}const te=function(){const e=new Q({xdomain:false});return null!=e.responseType}();class ne extends D{constructor(e){super(e);this.polling=false;if(typeof location!=="undefined"){const t="https:"===location.protocol;let n=location.port;if(!n){n=t?"443":"80"}this.xd=typeof location!=="undefined"&&e.hostname!==location.hostname||n!==e.port}const t=e&&e.forceBase64;this.supportsBinary=te&&!t;if(this.opts.withCredentials){this.cookieJar=Y()}}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused";e()};if(this.polling||!this.writable){let e=0;if(this.polling){e++;this.once("pollComplete",(function(){--e||t()}))}if(!this.writable){e++;this.once("drain",(function(){--e||t()}))}}else{t()}}poll(){this.polling=true;this.doPoll();this.emitReserved("poll")}onData(e){const t=e=>{if("opening"===this.readyState&&e.type==="open"){this.onOpen()}if("close"===e.type){this.onClose({description:"transport closed by the server"});return false}this.onPacket(e)};y(e,this.socket.binaryType).forEach(t);if("closed"!==this.readyState){this.polling=false;this.emitReserved("pollComplete");if("open"===this.readyState){this.poll()}}}doClose(){const e=()=>{this.write([{type:"close"}])};if("open"===this.readyState){e()}else{this.once("open",e)}}write(e){this.writable=false;k(e,(e=>{this.doWrite(e,(()=>{this.writable=true;this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http";const t=this.query||{};if(false!==this.opts.timestampRequests){t[this.opts.timestampParam]=Z()}if(!this.supportsBinary&&!t.sid){t.b64=1}return this.createUri(e,t)}request(e={}){Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts);return new ie(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t);n.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this));e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)}));this.pollXhr=e}}class ie extends M{constructor(e,t){super();L(this,t);this.opts=t;this.method=t.method||"GET";this.uri=e;this.data=undefined!==t.data?t.data:null;this.create()}create(){var e;const t=B(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new Q(t);try{n.open(this.method,this.uri,true);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(true);for(let e in this.opts.extraHeaders){if(this.opts.extraHeaders.hasOwnProperty(e)){n.setRequestHeader(e,this.opts.extraHeaders[e])}}}}catch(e){}if("POST"===this.method){try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}}try{n.setRequestHeader("Accept","*/*")}catch(e){}(e=this.opts.cookieJar)===null||e===void 0?void 0:e.addCookies(n);if("withCredentials"in n){n.withCredentials=this.opts.withCredentials}if(this.opts.requestTimeout){n.timeout=this.opts.requestTimeout}n.onreadystatechange=()=>{var e;if(n.readyState===3){(e=this.opts.cookieJar)===null||e===void 0?void 0:e.parseCookies(n)}if(4!==n.readyState)return;if(200===n.status||1223===n.status){this.onLoad()}else{this.setTimeoutFn((()=>{this.onError(typeof n.status==="number"?n.status:0)}),0)}};n.send(this.data)}catch(e){this.setTimeoutFn((()=>{this.onError(e)}),0);return}if(typeof document!=="undefined"){this.index=ie.requestsCount++;ie.requests[this.index]=this}}onError(e){this.emitReserved("error",e,this.xhr);this.cleanup(true)}cleanup(e){if("undefined"===typeof this.xhr||null===this.xhr){return}this.xhr.onreadystatechange=ee;if(e){try{this.xhr.abort()}catch(e){}}if(typeof document!=="undefined"){delete ie.requests[this.index]}this.xhr=null}onLoad(){const e=this.xhr.responseText;if(e!==null){this.emitReserved("data",e);this.emitReserved("success");this.cleanup()}}abort(){this.cleanup()}}ie.requestsCount=0;ie.requests={};if(typeof document!=="undefined"){if(typeof attachEvent==="function"){attachEvent("onunload",re)}else if(typeof addEventListener==="function"){const e="onpagehide"in T?"pagehide":"unload";addEventListener(e,re,false)}}function re(){for(let e in ie.requests){if(ie.requests.hasOwnProperty(e)){ie.requests[e].abort()}}}const se=(()=>{const e=typeof Promise==="function"&&typeof Promise.resolve==="function";if(e){return e=>Promise.resolve().then(e)}else{return(e,t)=>t(e,0)}})();const oe=T.WebSocket||T.MozWebSocket;const ae="arraybuffer";const le=typeof navigator!=="undefined"&&typeof navigator.product==="string"&&navigator.product.toLowerCase()==="reactnative";class ce extends D{constructor(e){super(e);this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check()){return}const e=this.uri();const t=this.opts.protocols;const n=le?{}:B(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");if(this.opts.extraHeaders){n.headers=this.opts.extraHeaders}try{this.ws=!le?t?new oe(e,t):new oe(e):new oe(e,t,n)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType;this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{if(this.opts.autoUnref){this.ws._socket.unref()}this.onOpen()};this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e});this.ws.onmessage=e=>this.onData(e.data);this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=false;for(let t=0;t<e.length;t++){const n=e[t];const i=t===e.length-1;a(n,this.supportsBinary,(e=>{try{{this.ws.send(e)}}catch(e){}if(i){se((()=>{this.writable=true;this.emitReserved("drain")}),this.setTimeoutFn)}}))}}doClose(){if(typeof this.ws!=="undefined"){this.ws.close();this.ws=null}}uri(){const e=this.opts.secure?"wss":"ws";const t=this.query||{};if(this.opts.timestampRequests){t[this.opts.timestampParam]=Z()}if(!this.supportsBinary){t.b64=1}return this.createUri(e,t)}check(){return!!oe}}class ue extends D{get name(){return"webtransport"}doOpen(){if(typeof WebTransport!=="function"){return}this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]);this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)}));this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=S(Number.MAX_SAFE_INTEGER,this.socket.binaryType);const n=e.readable.pipeThrough(t).getReader();const i=v();i.readable.pipeTo(e.writable);this.writer=i.writable.getWriter();const r=()=>{n.read().then((({done:e,value:t})=>{if(e){return}this.onPacket(t);r()})).catch((e=>{}))};r();const s={type:"open"};if(this.query.sid){s.data=`{"sid":"${this.query.sid}"}`}this.writer.write(s).then((()=>this.onOpen()))}))}))}write(e){this.writable=false;for(let t=0;t<e.length;t++){const n=e[t];const i=t===e.length-1;this.writer.write(n).then((()=>{if(i){se((()=>{this.writable=true;this.emitReserved("drain")}),this.setTimeoutFn)}}))}}doClose(){var e;(e=this.transport)===null||e===void 0?void 0:e.close()}}const fe={websocket:ce,webtransport:ue,polling:ne};const he=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/;const de=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function pe(e){if(e.length>2e3){throw"URI too long"}const t=e,n=e.indexOf("["),i=e.indexOf("]");if(n!=-1&&i!=-1){e=e.substring(0,n)+e.substring(n,i).replace(/:/g,";")+e.substring(i,e.length)}let r=he.exec(e||""),s={},o=14;while(o--){s[de[o]]=r[o]||""}if(n!=-1&&i!=-1){s.source=t;s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":");s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":");s.ipv6uri=true}s.pathNames=ge(s,s["path"]);s.queryKey=me(s,s["query"]);return s}function ge(e,t){const n=/\/{2,9}/g,i=t.replace(n,"/").split("/");if(t.slice(0,1)=="/"||t.length===0){i.splice(0,1)}if(t.slice(-1)=="/"){i.splice(i.length-1,1)}return i}function me(e,t){const n={};t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,i){if(t){n[t]=i}}));return n}class _e extends M{constructor(e,t={}){super();this.binaryType=ae;this.writeBuffer=[];if(e&&"object"===typeof e){t=e;e=null}if(e){e=pe(e);t.hostname=e.host;t.secure=e.protocol==="https"||e.protocol==="wss";t.port=e.port;if(e.query)t.query=e.query}else if(t.host){t.hostname=pe(t.host).host}L(this,t);this.secure=null!=t.secure?t.secure:typeof location!=="undefined"&&"https:"===location.protocol;if(t.hostname&&!t.port){t.port=this.secure?"443":"80"}this.hostname=t.hostname||(typeof location!=="undefined"?location.hostname:"localhost");this.port=t.port||(typeof location!=="undefined"&&location.port?location.port:this.secure?"443":"80");this.transports=t.transports||["polling","websocket","webtransport"];this.writeBuffer=[];this.prevBufferLen=0;this.opts=Object.assign({path:"/engine.io",agent:false,withCredentials:false,upgrade:true,timestampParam:"t",rememberUpgrade:false,addTrailingSlash:true,rejectUnauthorized:true,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:false},t);this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":"");if(typeof this.opts.query==="string"){this.opts.query=H(this.opts.query)}this.id=null;this.upgrades=null;this.pingInterval=null;this.pingTimeout=null;this.pingTimeoutTimer=null;if(typeof addEventListener==="function"){if(this.opts.closeOnBeforeunload){this.beforeunloadEventListener=()=>{if(this.transport){this.transport.removeAllListeners();this.transport.close()}};addEventListener("beforeunload",this.beforeunloadEventListener,false)}if(this.hostname!=="localhost"){this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})};addEventListener("offline",this.offlineEventListener,false)}}this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=E;t.transport=e;if(this.id)t.sid=this.id;const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new fe[e](n)}open(){let e;if(this.opts.rememberUpgrade&&_e.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1){e="websocket"}else if(0===this.transports.length){this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);return}else{e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(e){this.transports.shift();this.open();return}e.open();this.setTransport(e)}setTransport(e){if(this.transport){this.transport.removeAllListeners()}this.transport=e;e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e);let n=false;_e.priorWebsocketSuccess=false;const i=()=>{if(n)return;t.send([{type:"ping",data:"probe"}]);t.once("packet",(e=>{if(n)return;if("pong"===e.type&&"probe"===e.data){this.upgrading=true;this.emitReserved("upgrading",t);if(!t)return;_e.priorWebsocketSuccess="websocket"===t.name;this.transport.pause((()=>{if(n)return;if("closed"===this.readyState)return;c();this.setTransport(t);t.send([{type:"upgrade"}]);this.emitReserved("upgrade",t);t=null;this.upgrading=false;this.flush()}))}else{const e=new Error("probe error");e.transport=t.name;this.emitReserved("upgradeError",e)}}))};function r(){if(n)return;n=true;c();t.close();t=null}const s=e=>{const n=new Error("probe error: "+e);n.transport=t.name;r();this.emitReserved("upgradeError",n)};function o(){s("transport closed")}function a(){s("socket closed")}function l(e){if(t&&e.name!==t.name){r()}}const c=()=>{t.removeListener("open",i);t.removeListener("error",s);t.removeListener("close",o);this.off("close",a);this.off("upgrading",l)};t.once("open",i);t.once("error",s);t.once("close",o);this.once("close",a);this.once("upgrading",l);if(this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"){this.setTimeoutFn((()=>{if(!n){t.open()}}),200)}else{t.open()}}onOpen(){this.readyState="open";_e.priorWebsocketSuccess="websocket"===this.transport.name;this.emitReserved("open");this.flush();if("open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++){this.probe(this.upgrades[e])}}}onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){this.emitReserved("packet",e);this.emitReserved("heartbeat");this.resetPingTimeout();switch(e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong");this.emitReserved("ping");this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data;this.onError(t);break;case"message":this.emitReserved("data",e.data);this.emitReserved("message",e.data);break}}}onHandshake(e){this.emitReserved("handshake",e);this.id=e.sid;this.transport.query.sid=e.sid;this.upgrades=this.filterUpgrades(e.upgrades);this.pingInterval=e.pingInterval;this.pingTimeout=e.pingTimeout;this.maxPayload=e.maxPayload;this.onOpen();if("closed"===this.readyState)return;this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer);this.pingTimeoutTimer=this.setTimeoutFn((()=>{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout);if(this.opts.autoUnref){this.pingTimeoutTimer.unref()}}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen);this.prevBufferLen=0;if(0===this.writeBuffer.length){this.emitReserved("drain")}else{this.flush()}}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e);this.prevBufferLen=e.length;this.emitReserved("flush")}}getWritablePackets(){const e=this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1;if(!e){return this.writeBuffer}let t=1;for(let e=0;e<this.writeBuffer.length;e++){const n=this.writeBuffer[e].data;if(n){t+=O(n)}if(e>0&&t>this.maxPayload){return this.writeBuffer.slice(0,e)}t+=2}return this.writeBuffer}write(e,t,n){this.sendPacket("message",e,t,n);return this}send(e,t,n){this.sendPacket("message",e,t,n);return this}sendPacket(e,t,n,i){if("function"===typeof t){i=t;t=undefined}if("function"===typeof n){i=n;n=null}if("closing"===this.readyState||"closed"===this.readyState){return}n=n||{};n.compress=false!==n.compress;const r={type:e,data:t,options:n};this.emitReserved("packetCreate",r);this.writeBuffer.push(r);if(i)this.once("flush",i);this.flush()}close(){const e=()=>{this.onClose("forced close");this.transport.close()};const t=()=>{this.off("upgrade",t);this.off("upgradeError",t);e()};const n=()=>{this.once("upgrade",t);this.once("upgradeError",t)};if("opening"===this.readyState||"open"===this.readyState){this.readyState="closing";if(this.writeBuffer.length){this.once("drain",(()=>{if(this.upgrading){n()}else{e()}}))}else if(this.upgrading){n()}else{e()}}return this}onError(e){_e.priorWebsocketSuccess=false;this.emitReserved("error",e);this.onClose("transport error",e)}onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){this.clearTimeoutFn(this.pingTimeoutTimer);this.transport.removeAllListeners("close");this.transport.close();this.transport.removeAllListeners();if(typeof removeEventListener==="function"){removeEventListener("beforeunload",this.beforeunloadEventListener,false);removeEventListener("offline",this.offlineEventListener,false)}this.readyState="closed";this.id=null;this.emitReserved("close",e,t);this.writeBuffer=[];this.prevBufferLen=0}}filterUpgrades(e){const t=[];let n=0;const i=e.length;for(;n<i;n++){if(~this.transports.indexOf(e[n]))t.push(e[n])}return t}}_e.protocol=E;function be(e,t="",n){let i=e;n=n||typeof location!=="undefined"&&location;if(null==e)e=n.protocol+"//"+n.host;if(typeof e==="string"){if("/"===e.charAt(0)){if("/"===e.charAt(1)){e=n.protocol+e}else{e=n.host+e}}if(!/^(https?|wss?):\/\//.test(e)){if("undefined"!==typeof n){e=n.protocol+"//"+e}else{e="https://"+e}}i=pe(e)}if(!i.port){if(/^(http|ws)$/.test(i.protocol)){i.port="80"}else if(/^(http|ws)s$/.test(i.protocol)){i.port="443"}}i.path=i.path||"/";const r=i.host.indexOf(":")!==-1;const s=r?"["+i.host+"]":i.host;i.id=i.protocol+"://"+s+":"+i.port+t;i.href=i.protocol+"://"+s+(n&&n.port===i.port?"":":"+i.port);return i}const we=typeof ArrayBuffer==="function";const ke=e=>typeof ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer;const ye=Object.prototype.toString;const ve=typeof Blob==="function"||typeof Blob!=="undefined"&&ye.call(Blob)==="[object BlobConstructor]";const xe=typeof File==="function"||typeof File!=="undefined"&&ye.call(File)==="[object FileConstructor]";function je(e){return we&&(e instanceof ArrayBuffer||ke(e))||ve&&e instanceof Blob||xe&&e instanceof File}function ze(e,t){if(!e||typeof e!=="object"){return false}if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++){if(ze(e[t])){return true}}return false}if(je(e)){return true}if(e.toJSON&&typeof e.toJSON==="function"&&arguments.length===1){return ze(e.toJSON(),true)}for(const t in e){if(Object.prototype.hasOwnProperty.call(e,t)&&ze(e[t])){return true}}return false}function Se(e){const t=[];const n=e.data;const i=e;i.data=Ee(n,t);i.attachments=t.length;return{packet:i,buffers:t}}function Ee(e,t){if(!e)return e;if(je(e)){const n={_placeholder:true,num:t.length};t.push(e);return n}else if(Array.isArray(e)){const n=new Array(e.length);for(let i=0;i<e.length;i++){n[i]=Ee(e[i],t)}return n}else if(typeof e==="object"&&!(e instanceof Date)){const n={};for(const i in e){if(Object.prototype.hasOwnProperty.call(e,i)){n[i]=Ee(e[i],t)}}return n}return e}function Me(e,t){e.data=Ae(e.data,t);delete e.attachments;return e}function Ae(e,t){if(!e)return e;if(e&&e._placeholder===true){const n=typeof e.num==="number"&&e.num>=0&&e.num<t.length;if(n){return t[e.num]}else{throw new Error("illegal attachments")}}else if(Array.isArray(e)){for(let n=0;n<e.length;n++){e[n]=Ae(e[n],t)}}else if(typeof e==="object"){for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){e[n]=Ae(e[n],t)}}}return e}const Te=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];const Be=5;var Ce;(function(e){e[e["CONNECT"]=0]="CONNECT";e[e["DISCONNECT"]=1]="DISCONNECT";e[e["EVENT"]=2]="EVENT";e[e["ACK"]=3]="ACK";e[e["CONNECT_ERROR"]=4]="CONNECT_ERROR";e[e["BINARY_EVENT"]=5]="BINARY_EVENT";e[e["BINARY_ACK"]=6]="BINARY_ACK"})(Ce||(Ce={}));class $e{constructor(e){this.replacer=e}encode(e){if(e.type===Ce.EVENT||e.type===Ce.ACK){if(ze(e)){return this.encodeAsBinary({type:e.type===Ce.EVENT?Ce.BINARY_EVENT:Ce.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id})}}return[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;if(e.type===Ce.BINARY_EVENT||e.type===Ce.BINARY_ACK){t+=e.attachments+"-"}if(e.nsp&&"/"!==e.nsp){t+=e.nsp+","}if(null!=e.id){t+=e.id}if(null!=e.data){t+=JSON.stringify(e.data,this.replacer)}return t}encodeAsBinary(e){const t=Se(e);const n=this.encodeAsString(t.packet);const i=t.buffers;i.unshift(n);return i}}function Le(e){return Object.prototype.toString.call(e)==="[object Object]"}class Ie extends M{constructor(e){super();this.reviver=e}add(e){let t;if(typeof e==="string"){if(this.reconstructor){throw new Error("got plaintext data when reconstructing a packet")}t=this.decodeString(e);const n=t.type===Ce.BINARY_EVENT;if(n||t.type===Ce.BINARY_ACK){t.type=n?Ce.EVENT:Ce.ACK;this.reconstructor=new Oe(t);if(t.attachments===0){super.emitReserved("decoded",t)}}else{super.emitReserved("decoded",t)}}else if(je(e)||e.base64){if(!this.reconstructor){throw new Error("got binary data when not reconstructing a packet")}else{t=this.reconstructor.takeBinaryData(e);if(t){this.reconstructor=null;super.emitReserved("decoded",t)}}}else{throw new Error("Unknown type: "+e)}}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(Ce[n.type]===undefined){throw new Error("unknown packet type "+n.type)}if(n.type===Ce.BINARY_EVENT||n.type===Ce.BINARY_ACK){const i=t+1;while(e.charAt(++t)!=="-"&&t!=e.length){}const r=e.substring(i,t);if(r!=Number(r)||e.charAt(t)!=="-"){throw new Error("Illegal attachments")}n.attachments=Number(r)}if("/"===e.charAt(t+1)){const i=t+1;while(++t){const n=e.charAt(t);if(","===n)break;if(t===e.length)break}n.nsp=e.substring(i,t)}else{n.nsp="/"}const i=e.charAt(t+1);if(""!==i&&Number(i)==i){const i=t+1;while(++t){const n=e.charAt(t);if(null==n||Number(n)!=n){--t;break}if(t===e.length)break}n.id=Number(e.substring(i,t+1))}if(e.charAt(++t)){const i=this.tryParse(e.substr(t));if(Ie.isPayloadValid(n.type,i)){n.data=i}else{throw new Error("invalid payload")}}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return false}}static isPayloadValid(e,t){switch(e){case Ce.CONNECT:return Le(t);case Ce.DISCONNECT:return t===undefined;case Ce.CONNECT_ERROR:return typeof t==="string"||Le(t);case Ce.EVENT:case Ce.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==="number"||typeof t[0]==="string"&&Te.indexOf(t[0])===-1);case Ce.ACK:case Ce.BINARY_ACK:return Array.isArray(t)}}destroy(){if(this.reconstructor){this.reconstructor.finishedReconstruction();this.reconstructor=null}}}class Oe{constructor(e){this.packet=e;this.buffers=[];this.reconPack=e}takeBinaryData(e){this.buffers.push(e);if(this.buffers.length===this.reconPack.attachments){const e=Me(this.reconPack,this.buffers);this.finishedReconstruction();return e}return null}finishedReconstruction(){this.reconPack=null;this.buffers=[]}}const Pe=Object.freeze({__proto__:null,protocol:Be,get PacketType(){return Ce},Encoder:$e,Decoder:Ie});function qe(e,t,n){e.on(t,n);return function i(){e.off(t,n)}}const He=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Re extends M{constructor(e,t,n){super();this.connected=false;this.recovered=false;this.receiveBuffer=[];this.sendBuffer=[];this._queue=[];this._queueSeq=0;this.ids=0;this.acks={};this.flags={};this.io=e;this.nsp=t;if(n&&n.auth){this.auth=n.auth}this._opts=Object.assign({},n);if(this.io._autoConnect)this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[qe(e,"open",this.onopen.bind(this)),qe(e,"packet",this.onpacket.bind(this)),qe(e,"error",this.onerror.bind(this)),qe(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){if(this.connected)return this;this.subEvents();if(!this.io["_reconnecting"])this.io.open();if("open"===this.io._readyState)this.onopen();return this}open(){return this.connect()}send(...e){e.unshift("message");this.emit.apply(this,e);return this}emit(e,...t){if(He.hasOwnProperty(e)){throw new Error('"'+e.toString()+'" is a reserved event name')}t.unshift(e);if(this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile){this._addToQueue(t);return this}const n={type:Ce.EVENT,data:t};n.options={};n.options.compress=this.flags.compress!==false;if("function"===typeof t[t.length-1]){const e=this.ids++;const i=t.pop();this._registerAckCallback(e,i);n.id=e}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;const r=this.flags.volatile&&(!i||!this.connected);if(r);else if(this.connected){this.notifyOutgoingListeners(n);this.packet(n)}else{this.sendBuffer.push(n)}this.flags={};return this}_registerAckCallback(e,t){var n;const i=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(i===undefined){this.acks[e]=t;return}const r=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++){if(this.sendBuffer[t].id===e){this.sendBuffer.splice(t,1)}}t.call(this,new Error("operation has timed out"))}),i);const s=(...e)=>{this.io.clearTimeoutFn(r);t.apply(this,e)};s.withError=true;this.acks[e]=s}emitWithAck(e,...t){return new Promise(((n,i)=>{const r=(e,t)=>e?i(e):n(t);r.withError=true;t.push(r);this.emit(e,...t)}))}_addToQueue(e){let t;if(typeof e[e.length-1]==="function"){t=e.pop()}const n={id:this._queueSeq++,tryCount:0,pending:false,args:e,flags:Object.assign({fromQueue:true},this.flags)};e.push(((e,...i)=>{if(n!==this._queue[0]){return}const r=e!==null;if(r){if(n.tryCount>this._opts.retries){this._queue.shift();if(t){t(e)}}}else{this._queue.shift();if(t){t(null,...i)}}n.pending=false;return this._drainQueue()}));this._queue.push(n);this._drainQueue()}_drainQueue(e=false){if(!this.connected||this._queue.length===0){return}const t=this._queue[0];if(t.pending&&!e){return}t.pending=true;t.tryCount++;this.flags=t.flags;this.emit.apply(this,t.args)}packet(e){e.nsp=this.nsp;this.io._packet(e)}onopen(){if(typeof this.auth=="function"){this.auth((e=>{this._sendConnectPacket(e)}))}else{this._sendConnectPacket(this.auth)}}_sendConnectPacket(e){this.packet({type:Ce.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){if(!this.connected){this.emitReserved("connect_error",e)}}onclose(e,t){this.connected=false;delete this.id;this.emitReserved("disconnect",e,t);this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach((e=>{const t=this.sendBuffer.some((t=>String(t.id)===e));if(!t){const t=this.acks[e];delete this.acks[e];if(t.withError){t.call(this,new Error("socket has been disconnected"))}}}))}onpacket(e){const t=e.nsp===this.nsp;if(!t)return;switch(e.type){case Ce.CONNECT:if(e.data&&e.data.sid){this.onconnect(e.data.sid,e.data.pid)}else{this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"))}break;case Ce.EVENT:case Ce.BINARY_EVENT:this.onevent(e);break;case Ce.ACK:case Ce.BINARY_ACK:this.onack(e);break;case Ce.DISCONNECT:this.ondisconnect();break;case Ce.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data;this.emitReserved("connect_error",t);break}}onevent(e){const t=e.data||[];if(null!=e.id){t.push(this.ack(e.id))}if(this.connected){this.emitEvent(t)}else{this.receiveBuffer.push(Object.freeze(t))}}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t){n.apply(this,e)}}super.emit.apply(this,e);if(this._pid&&e.length&&typeof e[e.length-1]==="string"){this._lastOffset=e[e.length-1]}}ack(e){const t=this;let n=false;return function(...i){if(n)return;n=true;t.packet({type:Ce.ACK,id:e,data:i})}}onack(e){const t=this.acks[e.id];if(typeof t!=="function"){return}delete this.acks[e.id];if(t.withError){e.data.unshift(null)}t.apply(this,e.data)}onconnect(e,t){this.id=e;this.recovered=t&&this._pid===t;this._pid=t;this.connected=true;this.emitBuffered();this.emitReserved("connect");this._drainQueue(true)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e)));this.receiveBuffer=[];this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e);this.packet(e)}));this.sendBuffer=[]}ondisconnect(){this.destroy();this.onclose("io server disconnect")}destroy(){if(this.subs){this.subs.forEach((e=>e()));this.subs=undefined}this.io["_destroy"](this)}disconnect(){if(this.connected){this.packet({type:Ce.DISCONNECT})}this.destroy();if(this.connected){this.onclose("io client disconnect")}return this}close(){return this.disconnect()}compress(e){this.flags.compress=e;return this}get volatile(){this.flags.volatile=true;return this}timeout(e){this.flags.timeout=e;return this}onAny(e){this._anyListeners=this._anyListeners||[];this._anyListeners.push(e);return this}prependAny(e){this._anyListeners=this._anyListeners||[];this._anyListeners.unshift(e);return this}offAny(e){if(!this._anyListeners){return this}if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++){if(e===t[n]){t.splice(n,1);return this}}}else{this._anyListeners=[]}return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){this._anyOutgoingListeners=this._anyOutgoingListeners||[];this._anyOutgoingListeners.push(e);return this}prependAnyOutgoing(e){this._anyOutgoingListeners=this._anyOutgoingListeners||[];this._anyOutgoingListeners.unshift(e);return this}offAnyOutgoing(e){if(!this._anyOutgoingListeners){return this}if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++){if(e===t[n]){t.splice(n,1);return this}}}else{this._anyOutgoingListeners=[]}return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t){n.apply(this,e.data)}}}}function De(e){e=e||{};this.ms=e.min||100;this.max=e.max||1e4;this.factor=e.factor||2;this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0;this.attempts=0}De.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random();var n=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-n:e+n}return Math.min(e,this.max)|0};De.prototype.reset=function(){this.attempts=0};De.prototype.setMin=function(e){this.ms=e};De.prototype.setMax=function(e){this.max=e};De.prototype.setJitter=function(e){this.jitter=e};class Ve extends M{constructor(e,t){var n;super();this.nsps={};this.subs=[];if(e&&"object"===typeof e){t=e;e=undefined}t=t||{};t.path=t.path||"/socket.io";this.opts=t;L(this,t);this.reconnection(t.reconnection!==false);this.reconnectionAttempts(t.reconnectionAttempts||Infinity);this.reconnectionDelay(t.reconnectionDelay||1e3);this.reconnectionDelayMax(t.reconnectionDelayMax||5e3);this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5);this.backoff=new De({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()});this.timeout(null==t.timeout?2e4:t.timeout);this._readyState="closed";this.uri=e;const i=t.parser||Pe;this.encoder=new i.Encoder;this.decoder=new i.Decoder;this._autoConnect=t.autoConnect!==false;if(this._autoConnect)this.open()}reconnection(e){if(!arguments.length)return this._reconnection;this._reconnection=!!e;return this}reconnectionAttempts(e){if(e===undefined)return this._reconnectionAttempts;this._reconnectionAttempts=e;return this}reconnectionDelay(e){var t;if(e===undefined)return this._reconnectionDelay;this._reconnectionDelay=e;(t=this.backoff)===null||t===void 0?void 0:t.setMin(e);return this}randomizationFactor(e){var t;if(e===undefined)return this._randomizationFactor;this._randomizationFactor=e;(t=this.backoff)===null||t===void 0?void 0:t.setJitter(e);return this}reconnectionDelayMax(e){var t;if(e===undefined)return this._reconnectionDelayMax;this._reconnectionDelayMax=e;(t=this.backoff)===null||t===void 0?void 0:t.setMax(e);return this}timeout(e){if(!arguments.length)return this._timeout;this._timeout=e;return this}maybeReconnectOnOpen(){if(!this._reconnecting&&this._reconnection&&this.backoff.attempts===0){this.reconnect()}}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new _e(this.uri,this.opts);const t=this.engine;const n=this;this._readyState="opening";this.skipReconnect=false;const i=qe(t,"open",(function(){n.onopen();e&&e()}));const r=t=>{this.cleanup();this._readyState="closed";this.emitReserved("error",t);if(e){e(t)}else{this.maybeReconnectOnOpen()}};const s=qe(t,"error",r);if(false!==this._timeout){const e=this._timeout;const n=this.setTimeoutFn((()=>{i();r(new Error("timeout"));t.close()}),e);if(this.opts.autoUnref){n.unref()}this.subs.push((()=>{this.clearTimeoutFn(n)}))}this.subs.push(i);this.subs.push(s);return this}connect(e){return this.open(e)}onopen(){this.cleanup();this._readyState="open";this.emitReserved("open");const e=this.engine;this.subs.push(qe(e,"ping",this.onping.bind(this)),qe(e,"data",this.ondata.bind(this)),qe(e,"error",this.onerror.bind(this)),qe(e,"close",this.onclose.bind(this)),qe(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){se((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];if(!n){n=new Re(this,e,t);this.nsps[e]=n}else if(this._autoConnect&&!n.active){n.connect()}return n}_destroy(e){const t=Object.keys(this.nsps);for(const e of t){const t=this.nsps[e];if(t.active){return}}this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++){this.engine.write(t[n],e.options)}}cleanup(){this.subs.forEach((e=>e()));this.subs.length=0;this.decoder.destroy()}_close(){this.skipReconnect=true;this._reconnecting=false;this.onclose("forced close");if(this.engine)this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup();this.backoff.reset();this._readyState="closed";this.emitReserved("close",e,t);if(this._reconnection&&!this.skipReconnect){this.reconnect()}}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts){this.backoff.reset();this.emitReserved("reconnect_failed");this._reconnecting=false}else{const t=this.backoff.duration();this._reconnecting=true;const n=this.setTimeoutFn((()=>{if(e.skipReconnect)return;this.emitReserved("reconnect_attempt",e.backoff.attempts);if(e.skipReconnect)return;e.open((t=>{if(t){e._reconnecting=false;e.reconnect();this.emitReserved("reconnect_error",t)}else{e.onreconnect()}}))}),t);if(this.opts.autoUnref){n.unref()}this.subs.push((()=>{this.clearTimeoutFn(n)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=false;this.backoff.reset();this.emitReserved("reconnect",e)}}const Ne={};function Ge(e,t){if(typeof e==="object"){t=e;e=undefined}t=t||{};const n=be(e,t.path||"/socket.io");const i=n.source;const r=n.id;const s=n.path;const o=Ne[r]&&s in Ne[r]["nsps"];const a=t.forceNew||t["force new connection"]||false===t.multiplex||o;let l;if(a){l=new Ve(i,t)}else{if(!Ne[r]){Ne[r]=new Ve(i,t)}l=Ne[r]}if(n.query&&!t.query){t.query=n.queryKey}return l.socket(n.path,t)}Object.assign(Ge,{Manager:Ve,Socket:Re,io:Ge,connect:Ge});var Ue=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function Fe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var We={exports:{}};(function(e){(function(){function t(e){var t={omitExtraWLInCodeBlocks:{defaultValue:false,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:false,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:false,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:false,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:false,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:false,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:false,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:false,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:false,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:false,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:false,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:false,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:false,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:false,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:false,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:true,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:false,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:false,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:false,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:false,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:false,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:false,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:false,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:true,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:false,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:false,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:false,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:false,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:true,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:false,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:false,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:false,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(e===false){return JSON.parse(JSON.stringify(t))}var n={};for(var i in t){if(t.hasOwnProperty(i)){n[i]=t[i].defaultValue}}return n}function n(){var e=t(true),n={};for(var i in e){if(e.hasOwnProperty(i)){n[i]=true}}return n}var i={},r={},s={},o=t(true),a="vanilla",l={github:{omitExtraWLInCodeBlocks:true,simplifiedAutoLink:true,excludeTrailingPunctuationFromURLs:true,literalMidWordUnderscores:true,strikethrough:true,tables:true,tablesHeaderId:true,ghCodeBlocks:true,tasklists:true,disableForced4SpacesIndentedSublists:true,simpleLineBreaks:true,requireSpaceBeforeHeadingText:true,ghCompatibleHeaderId:true,ghMentions:true,backslashEscapesHTMLTags:true,emoji:true,splitAdjacentBlockquotes:true},original:{noHeaderId:true,ghCodeBlocks:false},ghost:{omitExtraWLInCodeBlocks:true,parseImgDimensions:true,simplifiedAutoLink:true,excludeTrailingPunctuationFromURLs:true,literalMidWordUnderscores:true,strikethrough:true,tables:true,tablesHeaderId:true,ghCodeBlocks:true,tasklists:true,smoothLivePreview:true,simpleLineBreaks:true,requireSpaceBeforeHeadingText:true,ghMentions:false,encodeEmails:true},vanilla:t(true),allOn:n()};i.helper={};i.extensions={};i.setOption=function(e,t){o[e]=t;return this};i.getOption=function(e){return o[e]};i.getOptions=function(){return o};i.resetOptions=function(){o=t(true)};i.setFlavor=function(e){if(!l.hasOwnProperty(e)){throw Error(e+" flavor was not found")}i.resetOptions();var t=l[e];a=e;for(var n in t){if(t.hasOwnProperty(n)){o[n]=t[n]}}};i.getFlavor=function(){return a};i.getFlavorOptions=function(e){if(l.hasOwnProperty(e)){return l[e]}};i.getDefaultOptions=function(e){return t(e)};i.subParser=function(e,t){if(i.helper.isString(e)){if(typeof t!=="undefined"){r[e]=t}else{if(r.hasOwnProperty(e)){return r[e]}else{throw Error("SubParser named "+e+" not registered!")}}}};i.extension=function(e,t){if(!i.helper.isString(e)){throw Error("Extension 'name' must be a string")}e=i.helper.stdExtName(e);if(i.helper.isUndefined(t)){if(!s.hasOwnProperty(e)){throw Error("Extension named "+e+" is not registered!")}return s[e]}else{if(typeof t==="function"){t=t()}if(!i.helper.isArray(t)){t=[t]}var n=c(t,e);if(n.valid){s[e]=t}else{throw Error(n.error)}}};i.getAllExtensions=function(){return s};i.removeExtension=function(e){delete s[e]};i.resetExtensions=function(){s={}};function c(e,t){var n=t?"Error in "+t+" extension->":"Error in unnamed extension",r={valid:true,error:""};if(!i.helper.isArray(e)){e=[e]}for(var s=0;s<e.length;++s){var o=n+" sub-extension "+s+": ",a=e[s];if(typeof a!=="object"){r.valid=false;r.error=o+"must be an object, but "+typeof a+" given";return r}if(!i.helper.isString(a.type)){r.valid=false;r.error=o+'property "type" must be a string, but '+typeof a.type+" given";return r}var l=a.type=a.type.toLowerCase();if(l==="language"){l=a.type="lang"}if(l==="html"){l=a.type="output"}if(l!=="lang"&&l!=="output"&&l!=="listener"){r.valid=false;r.error=o+"type "+l+' is not recognized. Valid values: "lang/language", "output/html" or "listener"';return r}if(l==="listener"){if(i.helper.isUndefined(a.listeners)){r.valid=false;r.error=o+'. Extensions of type "listener" must have a property called "listeners"';return r}}else{if(i.helper.isUndefined(a.filter)&&i.helper.isUndefined(a.regex)){r.valid=false;r.error=o+l+' extensions must define either a "regex" property or a "filter" method';return r}}if(a.listeners){if(typeof a.listeners!=="object"){r.valid=false;r.error=o+'"listeners" property must be an object but '+typeof a.listeners+" given";return r}for(var c in a.listeners){if(a.listeners.hasOwnProperty(c)){if(typeof a.listeners[c]!=="function"){r.valid=false;r.error=o+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+c+" must be a function but "+typeof a.listeners[c]+" given";return r}}}}if(a.filter){if(typeof a.filter!=="function"){r.valid=false;r.error=o+'"filter" must be a function, but '+typeof a.filter+" given";return r}}else if(a.regex){if(i.helper.isString(a.regex)){a.regex=new RegExp(a.regex,"g")}if(!(a.regex instanceof RegExp)){r.valid=false;r.error=o+'"regex" property must either be a string or a RegExp object, but '+typeof a.regex+" given";return r}if(i.helper.isUndefined(a.replace)){r.valid=false;r.error=o+'"regex" extensions must implement a replace string or function';return r}}}return r}i.validateExtension=function(e){var t=c(e,null);if(!t.valid){console.warn(t.error);return false}return true};if(!i.hasOwnProperty("helper")){i.helper={}}i.helper.isString=function(e){return typeof e==="string"||e instanceof String};i.helper.isFunction=function(e){var t={};return e&&t.toString.call(e)==="[object Function]"};i.helper.isArray=function(e){return Array.isArray(e)};i.helper.isUndefined=function(e){return typeof e==="undefined"};i.helper.forEach=function(e,t){if(i.helper.isUndefined(e)){throw new Error("obj param is required")}if(i.helper.isUndefined(t)){throw new Error("callback param is required")}if(!i.helper.isFunction(t)){throw new Error("callback param must be a function/closure")}if(typeof e.forEach==="function"){e.forEach(t)}else if(i.helper.isArray(e)){for(var n=0;n<e.length;n++){t(e[n],n,e)}}else if(typeof e==="object"){for(var r in e){if(e.hasOwnProperty(r)){t(e[r],r,e)}}}else{throw new Error("obj does not seem to be an array or an iterable object")}};i.helper.stdExtName=function(e){return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function u(e,t){var n=t.charCodeAt(0);return"¨E"+n+"E"}i.helper.escapeCharactersCallback=u;i.helper.escapeCharacters=function(e,t,n){var i="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";if(n){i="\\\\"+i}var r=new RegExp(i,"g");e=e.replace(r,u);return e};i.helper.unescapeHTMLEntities=function(e){return e.replace(/&quot;/g,'"').replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")};var f=function(e,t,n,i){var r=i||"",s=r.indexOf("g")>-1,o=new RegExp(t+"|"+n,"g"+r.replace(/g/g,"")),a=new RegExp(t,r.replace(/g/g,"")),l=[],c,u,f,h,d;do{c=0;while(f=o.exec(e)){if(a.test(f[0])){if(!c++){u=o.lastIndex;h=u-f[0].length}}else if(c){if(! --c){d=f.index+f[0].length;var p={left:{start:h,end:u},match:{start:u,end:f.index},right:{start:f.index,end:d},wholeMatch:{start:h,end:d}};l.push(p);if(!s){return l}}}}}while(c&&(o.lastIndex=u));return l};i.helper.matchRecursiveRegExp=function(e,t,n,i){var r=f(e,t,n,i),s=[];for(var o=0;o<r.length;++o){s.push([e.slice(r[o].wholeMatch.start,r[o].wholeMatch.end),e.slice(r[o].match.start,r[o].match.end),e.slice(r[o].left.start,r[o].left.end),e.slice(r[o].right.start,r[o].right.end)])}return s};i.helper.replaceRecursiveRegExp=function(e,t,n,r,s){if(!i.helper.isFunction(t)){var o=t;t=function(){return o}}var a=f(e,n,r,s),l=e,c=a.length;if(c>0){var u=[];if(a[0].wholeMatch.start!==0){u.push(e.slice(0,a[0].wholeMatch.start))}for(var h=0;h<c;++h){u.push(t(e.slice(a[h].wholeMatch.start,a[h].wholeMatch.end),e.slice(a[h].match.start,a[h].match.end),e.slice(a[h].left.start,a[h].left.end),e.slice(a[h].right.start,a[h].right.end)));if(h<c-1){u.push(e.slice(a[h].wholeMatch.end,a[h+1].wholeMatch.start))}}if(a[c-1].wholeMatch.end<e.length){u.push(e.slice(a[c-1].wholeMatch.end))}l=u.join("")}return l};i.helper.regexIndexOf=function(e,t,n){if(!i.helper.isString(e)){throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string"}if(t instanceof RegExp===false){throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp"}var r=e.substring(n||0).search(t);return r>=0?r+(n||0):r};i.helper.splitAtIndex=function(e,t){if(!i.helper.isString(e)){throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string"}return[e.substring(0,t),e.substring(t)]};i.helper.encodeEmailAddress=function(e){var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];e=e.replace(/./g,(function(e){if(e==="@"){e=t[Math.floor(Math.random()*2)](e)}else{var n=Math.random();e=n>.9?t[2](e):n>.45?t[1](e):t[0](e)}return e}));return e};i.helper.padEnd=function e(t,n,i){n=n>>0;i=String(i||" ");if(t.length>n){return String(t)}else{n=n-t.length;if(n>i.length){i+=i.repeat(n/i.length)}return String(t)+i.slice(0,n)}};if(typeof console==="undefined"){console={warn:function(e){alert(e)},log:function(e){alert(e)},error:function(e){throw e}}}i.helper.regexes={asteriskDashAndColon:/([*_:~])/g};i.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img alt=":octocat:" height="20" width="20" align="absmiddle" src="https://assets-cdn.github.com/images/icons/emoji/octocat.png">',showdown:"<span style=\"font-family: 'Anonymous Pro', monospace; text-decoration: underline; text-decoration-style: dashed; text-decoration-color: #3e8b8a;text-underline-position: under;\">S</span>"};i.Converter=function(e){var t={},n=[],r=[],u={},f=a,h={parsed:{},raw:"",format:""};d();function d(){e=e||{};for(var n in o){if(o.hasOwnProperty(n)){t[n]=o[n]}}if(typeof e==="object"){for(var r in e){if(e.hasOwnProperty(r)){t[r]=e[r]}}}else{throw Error("Converter expects the passed parameter to be an object, but "+typeof e+" was passed instead.")}if(t.extensions){i.helper.forEach(t.extensions,p)}}function p(e,t){t=t||null;if(i.helper.isString(e)){e=i.helper.stdExtName(e);t=e;if(i.extensions[e]){console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method."+"Please inform the developer that the extension should be updated!");g(i.extensions[e],e);return}else if(!i.helper.isUndefined(s[e])){e=s[e]}else{throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.')}}if(typeof e==="function"){e=e()}if(!i.helper.isArray(e)){e=[e]}var o=c(e,t);if(!o.valid){throw Error(o.error)}for(var a=0;a<e.length;++a){switch(e[a].type){case"lang":n.push(e[a]);break;case"output":r.push(e[a]);break}if(e[a].hasOwnProperty("listeners")){for(var l in e[a].listeners){if(e[a].listeners.hasOwnProperty(l)){m(l,e[a].listeners[l])}}}}}function g(e,t){if(typeof e==="function"){e=e(new i.Converter)}if(!i.helper.isArray(e)){e=[e]}var s=c(e,t);if(!s.valid){throw Error(s.error)}for(var o=0;o<e.length;++o){switch(e[o].type){case"lang":n.push(e[o]);break;case"output":r.push(e[o]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}}function m(e,t){if(!i.helper.isString(e)){throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given")}if(typeof t!=="function"){throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given")}if(!u.hasOwnProperty(e)){u[e]=[]}u[e].push(t)}function _(e){var t=e.match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+t+"}","gm");return e.replace(n,"")}this._dispatch=function e(t,n,i,r){if(u.hasOwnProperty(t)){for(var s=0;s<u[t].length;++s){var o=u[t][s](t,n,this,i,r);if(o&&typeof o!=="undefined"){n=o}}}return n};this.listen=function(e,t){m(e,t);return this};this.makeHtml=function(e){if(!e){return e}var s={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:n,outputModifiers:r,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};e=e.replace(/¨/g,"¨T");e=e.replace(/\$/g,"¨D");e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n");e=e.replace(/\u00A0/g,"&nbsp;");if(t.smartIndentationFix){e=_(e)}e="\n\n"+e+"\n\n";e=i.subParser("detab")(e,t,s);e=e.replace(/^[ \t]+$/gm,"");i.helper.forEach(n,(function(n){e=i.subParser("runExtension")(n,e,t,s)}));e=i.subParser("metadata")(e,t,s);e=i.subParser("hashPreCodeTags")(e,t,s);e=i.subParser("githubCodeBlocks")(e,t,s);e=i.subParser("hashHTMLBlocks")(e,t,s);e=i.subParser("hashCodeTags")(e,t,s);e=i.subParser("stripLinkDefinitions")(e,t,s);e=i.subParser("blockGamut")(e,t,s);e=i.subParser("unhashHTMLSpans")(e,t,s);e=i.subParser("unescapeSpecialChars")(e,t,s);e=e.replace(/¨D/g,"$$");e=e.replace(/¨T/g,"¨");e=i.subParser("completeHTMLDocument")(e,t,s);i.helper.forEach(r,(function(n){e=i.subParser("runExtension")(n,e,t,s)}));h=s.metadata;return e};this.makeMarkdown=this.makeMd=function(e,t){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n");e=e.replace(/>[ \t]+</,">¨NBSP;<");if(!t){if(window&&window.document){t=window.document}else{throw new Error("HTMLParser is undefined. If in a webworker or nodejs environment, you need to provide a WHATWG DOM and HTML such as JSDOM")}}var n=t.createElement("div");n.innerHTML=e;var r={preList:c(n)};l(n);var s=n.childNodes,o="";for(var a=0;a<s.length;a++){o+=i.subParser("makeMarkdown.node")(s[a],r)}function l(e){for(var t=0;t<e.childNodes.length;++t){var n=e.childNodes[t];if(n.nodeType===3){if(!/\S/.test(n.nodeValue)&&!/^[ ]+$/.test(n.nodeValue)){e.removeChild(n);--t}else{n.nodeValue=n.nodeValue.split("\n").join(" ");n.nodeValue=n.nodeValue.replace(/(\s)+/g,"$1")}}else if(n.nodeType===1){l(n)}}}function c(e){var t=e.querySelectorAll("pre"),n=[];for(var r=0;r<t.length;++r){if(t[r].childElementCount===1&&t[r].firstChild.tagName.toLowerCase()==="code"){var s=t[r].firstChild.innerHTML.trim(),o=t[r].firstChild.getAttribute("data-language")||"";if(o===""){var a=t[r].firstChild.className.split(" ");for(var l=0;l<a.length;++l){var c=a[l].match(/^language-(.+)$/);if(c!==null){o=c[1];break}}}s=i.helper.unescapeHTMLEntities(s);n.push(s);t[r].outerHTML='<precode language="'+o+'" precodenum="'+r.toString()+'"></precode>'}else{n.push(t[r].innerHTML);t[r].innerHTML="";t[r].setAttribute("prenum",r.toString())}}return n}return o};this.setOption=function(e,n){t[e]=n};this.getOption=function(e){return t[e]};this.getOptions=function(){return t};this.addExtension=function(e,t){t=t||null;p(e,t)};this.useExtension=function(e){p(e)};this.setFlavor=function(e){if(!l.hasOwnProperty(e)){throw Error(e+" flavor was not found")}var n=l[e];f=e;for(var i in n){if(n.hasOwnProperty(i)){t[i]=n[i]}}};this.getFlavor=function(){return f};this.removeExtension=function(e){if(!i.helper.isArray(e)){e=[e]}for(var t=0;t<e.length;++t){var s=e[t];for(var o=0;o<n.length;++o){if(n[o]===s){n.splice(o,1)}}for(var a=0;a<r.length;++a){if(r[a]===s){r.splice(a,1)}}}};this.getAllExtensions=function(){return{language:n,output:r}};this.getMetadata=function(e){if(e){return h.raw}else{return h.parsed}};this.getMetadataFormat=function(){return h.format};this._setMetadataPair=function(e,t){h.parsed[e]=t};this._setMetadataFormat=function(e){h.format=e};this._setMetadataRaw=function(e){h.raw=e}};i.subParser("anchors",(function(e,t,n){e=n.converter._dispatch("anchors.before",e,t,n);var r=function(e,r,s,o,a,l,c){if(i.helper.isUndefined(c)){c=""}s=s.toLowerCase();if(e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1){o=""}else if(!o){if(!s){s=r.toLowerCase().replace(/ ?\n/g," ")}o="#"+s;if(!i.helper.isUndefined(n.gUrls[s])){o=n.gUrls[s];if(!i.helper.isUndefined(n.gTitles[s])){c=n.gTitles[s]}}else{return e}}o=o.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var u='<a href="'+o+'"';if(c!==""&&c!==null){c=c.replace(/"/g,"&quot;");c=c.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);u+=' title="'+c+'"'}if(t.openLinksInNewWindow&&!/^#/.test(o)){u+=' rel="noopener noreferrer" target="¨E95Eblank"'}u+=">"+r+"</a>";return u};e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,r);e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r);e=e.replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,r);e=e.replace(/\[([^\[\]]+)]()()()()()/g,r);if(t.ghMentions){e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,(function(e,n,r,s,o){if(r==="\\"){return n+s}if(!i.helper.isString(t.ghMentionsLink)){throw new Error("ghMentionsLink option must be a string")}var a=t.ghMentionsLink.replace(/\{u}/g,o),l="";if(t.openLinksInNewWindow){l=' rel="noopener noreferrer" target="¨E95Eblank"'}return n+'<a href="'+a+'"'+l+">"+s+"</a>"}))}e=n.converter._dispatch("anchors.after",e,t,n);return e}));var h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,d=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,p=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,g=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,m=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,_=function(e){return function(t,n,r,s,o,a,l){r=r.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var c=r,u="",f="",h=n||"",d=l||"";if(/^www\./i.test(r)){r=r.replace(/^www\./i,"http://www.")}if(e.excludeTrailingPunctuationFromURLs&&a){u=a}if(e.openLinksInNewWindow){f=' rel="noopener noreferrer" target="¨E95Eblank"'}return h+'<a href="'+r+'"'+f+">"+c+"</a>"+u+d}},b=function(e,t){return function(n,r,s){var o="mailto:";r=r||"";s=i.subParser("unescapeSpecialChars")(s,e,t);if(e.encodeEmails){o=i.helper.encodeEmailAddress(o+s);s=i.helper.encodeEmailAddress(s)}else{o=o+s}return r+'<a href="'+o+'">'+s+"</a>"}};i.subParser("autoLinks",(function(e,t,n){e=n.converter._dispatch("autoLinks.before",e,t,n);e=e.replace(p,_(t));e=e.replace(m,b(t,n));e=n.converter._dispatch("autoLinks.after",e,t,n);return e}));i.subParser("simplifiedAutoLinks",(function(e,t,n){if(!t.simplifiedAutoLink){return e}e=n.converter._dispatch("simplifiedAutoLinks.before",e,t,n);if(t.excludeTrailingPunctuationFromURLs){e=e.replace(d,_(t))}else{e=e.replace(h,_(t))}e=e.replace(g,b(t,n));e=n.converter._dispatch("simplifiedAutoLinks.after",e,t,n);return e}));i.subParser("blockGamut",(function(e,t,n){e=n.converter._dispatch("blockGamut.before",e,t,n);e=i.subParser("blockQuotes")(e,t,n);e=i.subParser("headers")(e,t,n);e=i.subParser("horizontalRule")(e,t,n);e=i.subParser("lists")(e,t,n);e=i.subParser("codeBlocks")(e,t,n);e=i.subParser("tables")(e,t,n);e=i.subParser("hashHTMLBlocks")(e,t,n);e=i.subParser("paragraphs")(e,t,n);e=n.converter._dispatch("blockGamut.after",e,t,n);return e}));i.subParser("blockQuotes",(function(e,t,n){e=n.converter._dispatch("blockQuotes.before",e,t,n);e=e+"\n\n";var r=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;if(t.splitAdjacentBlockquotes){r=/^ {0,3}>[\s\S]*?(?:\n\n)/gm}e=e.replace(r,(function(e){e=e.replace(/^[ \t]*>[ \t]?/gm,"");e=e.replace(/¨0/g,"");e=e.replace(/^[ \t]+$/gm,"");e=i.subParser("githubCodeBlocks")(e,t,n);e=i.subParser("blockGamut")(e,t,n);e=e.replace(/(^|\n)/g,"$1 ");e=e.replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,(function(e,t){var n=t;n=n.replace(/^ /gm,"¨0");n=n.replace(/¨0/g,"");return n}));return i.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,n)}));e=n.converter._dispatch("blockQuotes.after",e,t,n);return e}));i.subParser("codeBlocks",(function(e,t,n){e=n.converter._dispatch("codeBlocks.before",e,t,n);e+="¨0";var r=/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g;e=e.replace(r,(function(e,r,s){var o=r,a=s,l="\n";o=i.subParser("outdent")(o,t,n);o=i.subParser("encodeCode")(o,t,n);o=i.subParser("detab")(o,t,n);o=o.replace(/^\n+/g,"");o=o.replace(/\n+$/g,"");if(t.omitExtraWLInCodeBlocks){l=""}o="<pre><code>"+o+l+"</code></pre>";return i.subParser("hashBlock")(o,t,n)+a}));e=e.replace(/¨0/,"");e=n.converter._dispatch("codeBlocks.after",e,t,n);return e}));i.subParser("codeSpans",(function(e,t,n){e=n.converter._dispatch("codeSpans.before",e,t,n);if(typeof e==="undefined"){e=""}e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,(function(e,r,s,o){var a=o;a=a.replace(/^([ \t]*)/g,"");a=a.replace(/[ \t]*$/g,"");a=i.subParser("encodeCode")(a,t,n);a=r+"<code>"+a+"</code>";a=i.subParser("hashHTMLSpans")(a,t,n);return a}));e=n.converter._dispatch("codeSpans.after",e,t,n);return e}));i.subParser("completeHTMLDocument",(function(e,t,n){if(!t.completeHTMLDocument){return e}e=n.converter._dispatch("completeHTMLDocument.before",e,t,n);var i="html",r="<!DOCTYPE HTML>\n",s="",o='<meta charset="utf-8">\n',a="",l="";if(typeof n.metadata.parsed.doctype!=="undefined"){r="<!DOCTYPE "+n.metadata.parsed.doctype+">\n";i=n.metadata.parsed.doctype.toString().toLowerCase();if(i==="html"||i==="html5"){o='<meta charset="utf-8">'}}for(var c in n.metadata.parsed){if(n.metadata.parsed.hasOwnProperty(c)){switch(c.toLowerCase()){case"doctype":break;case"title":s="<title>"+n.metadata.parsed.title+"</title>\n";break;case"charset":if(i==="html"||i==="html5"){o='<meta charset="'+n.metadata.parsed.charset+'">\n'}else{o='<meta name="charset" content="'+n.metadata.parsed.charset+'">\n'}break;case"language":case"lang":a=' lang="'+n.metadata.parsed[c]+'"';l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+n.metadata.parsed[c]+'">\n'}}}e=r+"<html"+a+">\n<head>\n"+s+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>";e=n.converter._dispatch("completeHTMLDocument.after",e,t,n);return e}));i.subParser("detab",(function(e,t,n){e=n.converter._dispatch("detab.before",e,t,n);e=e.replace(/\t(?=\t)/g," ");e=e.replace(/\t/g,"¨A¨B");e=e.replace(/¨B(.+?)¨A/g,(function(e,t){var n=t,i=4-n.length%4;for(var r=0;r<i;r++){n+=" "}return n}));e=e.replace(/¨A/g," ");e=e.replace(/¨B/g,"");e=n.converter._dispatch("detab.after",e,t,n);return e}));i.subParser("ellipsis",(function(e,t,n){if(!t.ellipsis){return e}e=n.converter._dispatch("ellipsis.before",e,t,n);e=e.replace(/\.\.\./g,"…");e=n.converter._dispatch("ellipsis.after",e,t,n);return e}));i.subParser("emoji",(function(e,t,n){if(!t.emoji){return e}e=n.converter._dispatch("emoji.before",e,t,n);var r=/:([\S]+?):/g;e=e.replace(r,(function(e,t){if(i.helper.emojis.hasOwnProperty(t)){return i.helper.emojis[t]}return e}));e=n.converter._dispatch("emoji.after",e,t,n);return e}));i.subParser("encodeAmpsAndAngles",(function(e,t,n){e=n.converter._dispatch("encodeAmpsAndAngles.before",e,t,n);e=e.replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;");e=e.replace(/<(?![a-z\/?$!])/gi,"&lt;");e=e.replace(/</g,"&lt;");e=e.replace(/>/g,"&gt;");e=n.converter._dispatch("encodeAmpsAndAngles.after",e,t,n);return e}));i.subParser("encodeBackslashEscapes",(function(e,t,n){e=n.converter._dispatch("encodeBackslashEscapes.before",e,t,n);e=e.replace(/\\(\\)/g,i.helper.escapeCharactersCallback);e=e.replace(/\\([`*_{}\[\]()>#+.!~=|:-])/g,i.helper.escapeCharactersCallback);e=n.converter._dispatch("encodeBackslashEscapes.after",e,t,n);return e}));i.subParser("encodeCode",(function(e,t,n){e=n.converter._dispatch("encodeCode.before",e,t,n);e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,i.helper.escapeCharactersCallback);e=n.converter._dispatch("encodeCode.after",e,t,n);return e}));i.subParser("escapeSpecialCharsWithinTagAttributes",(function(e,t,n){e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,n);var r=/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,s=/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi;e=e.replace(r,(function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}));e=e.replace(s,(function(e){return e.replace(/([\\`*_~=|])/g,i.helper.escapeCharactersCallback)}));e=n.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,n);return e}));i.subParser("githubCodeBlocks",(function(e,t,n){if(!t.ghCodeBlocks){return e}e=n.converter._dispatch("githubCodeBlocks.before",e,t,n);e+="¨0";e=e.replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,(function(e,r,s,o){var a=t.omitExtraWLInCodeBlocks?"":"\n";o=i.subParser("encodeCode")(o,t,n);o=i.subParser("detab")(o,t,n);o=o.replace(/^\n+/g,"");o=o.replace(/\n+$/g,"");o="<pre><code"+(s?' class="'+s+" language-"+s+'"':"")+">"+o+a+"</code></pre>";o=i.subParser("hashBlock")(o,t,n);return"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:o})-1)+"G\n\n"}));e=e.replace(/¨0/,"");return n.converter._dispatch("githubCodeBlocks.after",e,t,n)}));i.subParser("hashBlock",(function(e,t,n){e=n.converter._dispatch("hashBlock.before",e,t,n);e=e.replace(/(^\n+|\n+$)/g,"");e="\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n";e=n.converter._dispatch("hashBlock.after",e,t,n);return e}));i.subParser("hashCodeTags",(function(e,t,n){e=n.converter._dispatch("hashCodeTags.before",e,t,n);var r=function(e,r,s,o){var a=s+i.subParser("encodeCode")(r,t,n)+o;return"¨C"+(n.gHtmlSpans.push(a)-1)+"C"};e=i.helper.replaceRecursiveRegExp(e,r,"<code\\b[^>]*>","</code>","gim");e=n.converter._dispatch("hashCodeTags.after",e,t,n);return e}));i.subParser("hashElement",(function(e,t,n){return function(e,t){var i=t;i=i.replace(/\n\n/g,"\n");i=i.replace(/^\n/,"");i=i.replace(/\n+$/g,"");i="\n\n¨K"+(n.gHtmlBlocks.push(i)-1)+"K\n\n";return i}}));i.subParser("hashHTMLBlocks",(function(e,t,n){e=n.converter._dispatch("hashHTMLBlocks.before",e,t,n);var r=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],s=function(e,t,i,r){var s=e;if(i.search(/\bmarkdown\b/)!==-1){s=i+n.converter.makeHtml(t)+r}return"\n\n¨K"+(n.gHtmlBlocks.push(s)-1)+"K\n\n"};if(t.backslashEscapesHTMLTags){e=e.replace(/\\<(\/?[^>]+?)>/g,(function(e,t){return"&lt;"+t+"&gt;"}))}for(var o=0;o<r.length;++o){var a,l=new RegExp("^ {0,3}(<"+r[o]+"\\b[^>]*>)","im"),c="<"+r[o]+"\\b[^>]*>",u="</"+r[o]+">";while((a=i.helper.regexIndexOf(e,l))!==-1){var f=i.helper.splitAtIndex(e,a),h=i.helper.replaceRecursiveRegExp(f[1],s,c,u,"im");if(h===f[1]){break}e=f[0].concat(h)}}e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n));e=i.helper.replaceRecursiveRegExp(e,(function(e){return"\n\n¨K"+(n.gHtmlBlocks.push(e)-1)+"K\n\n"}),"^ {0,3}\x3c!--","--\x3e","gm");e=e.replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,i.subParser("hashElement")(e,t,n));e=n.converter._dispatch("hashHTMLBlocks.after",e,t,n);return e}));i.subParser("hashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("hashHTMLSpans.before",e,t,n);function i(e){return"¨C"+(n.gHtmlSpans.push(e)-1)+"C"}e=e.replace(/<[^>]+?\/>/gi,(function(e){return i(e)}));e=e.replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,(function(e){return i(e)}));e=e.replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,(function(e){return i(e)}));e=e.replace(/<[^>]+?>/gi,(function(e){return i(e)}));e=n.converter._dispatch("hashHTMLSpans.after",e,t,n);return e}));i.subParser("unhashHTMLSpans",(function(e,t,n){e=n.converter._dispatch("unhashHTMLSpans.before",e,t,n);for(var i=0;i<n.gHtmlSpans.length;++i){var r=n.gHtmlSpans[i],s=0;while(/¨C(\d+)C/.test(r)){var o=RegExp.$1;r=r.replace("¨C"+o+"C",n.gHtmlSpans[o]);if(s===10){console.error("maximum nesting of 10 spans reached!!!");break}++s}e=e.replace("¨C"+i+"C",r)}e=n.converter._dispatch("unhashHTMLSpans.after",e,t,n);return e}));i.subParser("hashPreCodeTags",(function(e,t,n){e=n.converter._dispatch("hashPreCodeTags.before",e,t,n);var r=function(e,r,s,o){var a=s+i.subParser("encodeCode")(r,t,n)+o;return"\n\n¨G"+(n.ghCodeBlocks.push({text:e,codeblock:a})-1)+"G\n\n"};e=i.helper.replaceRecursiveRegExp(e,r,"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim");e=n.converter._dispatch("hashPreCodeTags.after",e,t,n);return e}));i.subParser("headers",(function(e,t,n){e=n.converter._dispatch("headers.before",e,t,n);var r=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),s=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,o=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=e.replace(s,(function(e,s){var o=i.subParser("spanGamut")(s,t,n),a=t.noHeaderId?"":' id="'+l(s)+'"',c=r,u="<h"+c+a+">"+o+"</h"+c+">";return i.subParser("hashBlock")(u,t,n)}));e=e.replace(o,(function(e,s){var o=i.subParser("spanGamut")(s,t,n),a=t.noHeaderId?"":' id="'+l(s)+'"',c=r+1,u="<h"+c+a+">"+o+"</h"+c+">";return i.subParser("hashBlock")(u,t,n)}));var a=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;e=e.replace(a,(function(e,s,o){var a=o;if(t.customizedHeaderId){a=o.replace(/\s?\{([^{]+?)}\s*$/,"")}var c=i.subParser("spanGamut")(a,t,n),u=t.noHeaderId?"":' id="'+l(o)+'"',f=r-1+s.length,h="<h"+f+u+">"+c+"</h"+f+">";return i.subParser("hashBlock")(h,t,n)}));function l(e){var r,s;if(t.customizedHeaderId){var o=e.match(/\{([^{]+?)}\s*$/);if(o&&o[1]){e=o[1]}}r=e;if(i.helper.isString(t.prefixHeaderId)){s=t.prefixHeaderId}else if(t.prefixHeaderId===true){s="section-"}else{s=""}if(!t.rawPrefixHeaderId){r=s+r}if(t.ghCompatibleHeaderId){r=r.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase()}else if(t.rawHeaderId){r=r.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase()}else{r=r.replace(/[^\w]/g,"").toLowerCase()}if(t.rawPrefixHeaderId){r=s+r}if(n.hashLinkCounts[r]){r=r+"-"+n.hashLinkCounts[r]++}else{n.hashLinkCounts[r]=1}return r}e=n.converter._dispatch("headers.after",e,t,n);return e}));i.subParser("horizontalRule",(function(e,t,n){e=n.converter._dispatch("horizontalRule.before",e,t,n);var r=i.subParser("hashBlock")("<hr />",t,n);e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,r);e=e.replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,r);e=e.replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,r);e=n.converter._dispatch("horizontalRule.after",e,t,n);return e}));i.subParser("images",(function(e,t,n){e=n.converter._dispatch("images.before",e,t,n);var r=/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,s=/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,o=/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,a=/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l=/!\[([^\[\]]+)]()()()()()/g;function c(e,t,n,i,r,s,o,a){i=i.replace(/\s/g,"");return u(e,t,n,i,r,s,o,a)}function u(e,t,r,s,o,a,l,c){var u=n.gUrls,f=n.gTitles,h=n.gDimensions;r=r.toLowerCase();if(!c){c=""}if(e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m)>-1){s=""}else if(s===""||s===null){if(r===""||r===null){r=t.toLowerCase().replace(/ ?\n/g," ")}s="#"+r;if(!i.helper.isUndefined(u[r])){s=u[r];if(!i.helper.isUndefined(f[r])){c=f[r]}if(!i.helper.isUndefined(h[r])){o=h[r].width;a=h[r].height}}else{return e}}t=t.replace(/"/g,"&quot;").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);s=s.replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);var d='<img src="'+s+'" alt="'+t+'"';if(c&&i.helper.isString(c)){c=c.replace(/"/g,"&quot;").replace(i.helper.regexes.asteriskDashAndColon,i.helper.escapeCharactersCallback);d+=' title="'+c+'"'}if(o&&a){o=o==="*"?"auto":o;a=a==="*"?"auto":a;d+=' width="'+o+'"';d+=' height="'+a+'"'}d+=" />";return d}e=e.replace(a,u);e=e.replace(o,c);e=e.replace(s,u);e=e.replace(r,u);e=e.replace(l,u);e=n.converter._dispatch("images.after",e,t,n);return e}));i.subParser("italicsAndBold",(function(e,t,n){e=n.converter._dispatch("italicsAndBold.before",e,t,n);function i(e,t,n){return t+e+n}if(t.literalMidWordUnderscores){e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return i(t,"<strong><em>","</em></strong>")}));e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return i(t,"<strong>","</strong>")}));e=e.replace(/\b_(\S[\s\S]*?)_\b/g,(function(e,t){return i(t,"<em>","</em>")}))}else{e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong><em>","</em></strong>"):e}));e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong>","</strong>"):e}));e=e.replace(/_([^\s_][\s\S]*?)_/g,(function(e,t){return/\S$/.test(t)?i(t,"<em>","</em>"):e}))}if(t.literalMidWordAsterisks){e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,(function(e,t,n){return i(n,t+"<strong><em>","</em></strong>")}));e=e.replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,(function(e,t,n){return i(n,t+"<strong>","</strong>")}));e=e.replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,(function(e,t,n){return i(n,t+"<em>","</em>")}))}else{e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong><em>","</em></strong>"):e}));e=e.replace(/\*\*(\S[\s\S]*?)\*\*/g,(function(e,t){return/\S$/.test(t)?i(t,"<strong>","</strong>"):e}));e=e.replace(/\*([^\s*][\s\S]*?)\*/g,(function(e,t){return/\S$/.test(t)?i(t,"<em>","</em>"):e}))}e=n.converter._dispatch("italicsAndBold.after",e,t,n);return e}));i.subParser("lists",(function(e,t,n){function r(e,r){n.gListLevel++;e=e.replace(/\n{2,}$/,"\n");e+="¨0";var s=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,o=/\n[ \t]*\n(?!¨0)/.test(e);if(t.disableForced4SpacesIndentedSublists){s=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm}e=e.replace(s,(function(e,r,s,a,l,c,u){u=u&&u.trim()!=="";var f=i.subParser("outdent")(l,t,n),h="";if(c&&t.tasklists){h=' class="task-list-item" style="list-style-type: none;"';f=f.replace(/^[ \t]*\[(x|X| )?]/m,(function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';if(u){e+=" checked"}e+=">";return e}))}f=f.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,(function(e){return"¨A"+e}));if(r||f.search(/\n{2,}/)>-1){f=i.subParser("githubCodeBlocks")(f,t,n);f=i.subParser("blockGamut")(f,t,n)}else{f=i.subParser("lists")(f,t,n);f=f.replace(/\n$/,"");f=i.subParser("hashHTMLBlocks")(f,t,n);f=f.replace(/\n\n+/g,"\n\n");if(o){f=i.subParser("paragraphs")(f,t,n)}else{f=i.subParser("spanGamut")(f,t,n)}}f=f.replace("¨A","");f="<li"+h+">"+f+"</li>\n";return f}));e=e.replace(/¨0/g,"");n.gListLevel--;if(r){e=e.replace(/\s+$/,"")}return e}function s(e,t){if(t==="ol"){var n=e.match(/^ *(\d+)\./);if(n&&n[1]!=="1"){return' start="'+n[1]+'"'}}return""}function o(e,n,i){var o=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,a=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,l=n==="ul"?o:a,c="";if(e.search(l)!==-1){(function t(u){var f=u.search(l),h=s(e,n);if(f!==-1){c+="\n\n<"+n+h+">\n"+r(u.slice(0,f),!!i)+"</"+n+">\n";n=n==="ul"?"ol":"ul";l=n==="ul"?o:a;t(u.slice(f))}else{c+="\n\n<"+n+h+">\n"+r(u,!!i)+"</"+n+">\n"}})(e)}else{var u=s(e,n);c="\n\n<"+n+u+">\n"+r(e,!!i)+"</"+n+">\n"}return c}e=n.converter._dispatch("lists.before",e,t,n);e+="¨0";if(n.gListLevel){e=e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n){var i=n.search(/[*+-]/g)>-1?"ul":"ol";return o(t,i,true)}))}else{e=e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,(function(e,t,n,i){var r=i.search(/[*+-]/g)>-1?"ul":"ol";return o(n,r,false)}))}e=e.replace(/¨0/,"");e=n.converter._dispatch("lists.after",e,t,n);return e}));i.subParser("metadata",(function(e,t,n){if(!t.metadata){return e}e=n.converter._dispatch("metadata.before",e,t,n);function i(e){n.metadata.raw=e;e=e.replace(/&/g,"&amp;").replace(/"/g,"&quot;");e=e.replace(/\n {4}/g," ");e.replace(/^([\S ]+): +([\s\S]+?)$/gm,(function(e,t,i){n.metadata.parsed[t]=i;return""}))}e=e.replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,(function(e,t,n){i(n);return"¨M"}));e=e.replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,(function(e,t,r){if(t){n.metadata.format=t}i(r);return"¨M"}));e=e.replace(/¨M/g,"");e=n.converter._dispatch("metadata.after",e,t,n);return e}));i.subParser("outdent",(function(e,t,n){e=n.converter._dispatch("outdent.before",e,t,n);e=e.replace(/^(\t|[ ]{1,4})/gm,"¨0");e=e.replace(/¨0/g,"");e=n.converter._dispatch("outdent.after",e,t,n);return e}));i.subParser("paragraphs",(function(e,t,n){e=n.converter._dispatch("paragraphs.before",e,t,n);e=e.replace(/^\n+/g,"");e=e.replace(/\n+$/g,"");var r=e.split(/\n{2,}/g),s=[],o=r.length;for(var a=0;a<o;a++){var l=r[a];if(l.search(/¨(K|G)(\d+)\1/g)>=0){s.push(l)}else if(l.search(/\S/)>=0){l=i.subParser("spanGamut")(l,t,n);l=l.replace(/^([ \t]*)/g,"<p>");l+="</p>";s.push(l)}}o=s.length;for(a=0;a<o;a++){var c="",u=s[a],f=false;while(/¨(K|G)(\d+)\1/.test(u)){var h=RegExp.$1,d=RegExp.$2;if(h==="K"){c=n.gHtmlBlocks[d]}else{if(f){c=i.subParser("encodeCode")(n.ghCodeBlocks[d].text,t,n)}else{c=n.ghCodeBlocks[d].codeblock}}c=c.replace(/\$/g,"$$$$");u=u.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,c);if(/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(u)){f=true}}s[a]=u}e=s.join("\n");e=e.replace(/^\n+/g,"");e=e.replace(/\n+$/g,"");return n.converter._dispatch("paragraphs.after",e,t,n)}));i.subParser("runExtension",(function(e,t,n,i){if(e.filter){t=e.filter(t,i.converter,n)}else if(e.regex){var r=e.regex;if(!(r instanceof RegExp)){r=new RegExp(r,"g")}t=t.replace(r,e.replace)}return t}));i.subParser("spanGamut",(function(e,t,n){e=n.converter._dispatch("spanGamut.before",e,t,n);e=i.subParser("codeSpans")(e,t,n);e=i.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,n);e=i.subParser("encodeBackslashEscapes")(e,t,n);e=i.subParser("images")(e,t,n);e=i.subParser("anchors")(e,t,n);e=i.subParser("autoLinks")(e,t,n);e=i.subParser("simplifiedAutoLinks")(e,t,n);e=i.subParser("emoji")(e,t,n);e=i.subParser("underline")(e,t,n);e=i.subParser("italicsAndBold")(e,t,n);e=i.subParser("strikethrough")(e,t,n);e=i.subParser("ellipsis")(e,t,n);e=i.subParser("hashHTMLSpans")(e,t,n);e=i.subParser("encodeAmpsAndAngles")(e,t,n);if(t.simpleLineBreaks){if(!/\n\n¨K/.test(e)){e=e.replace(/\n+/g,"<br />\n")}}else{e=e.replace(/ +\n/g,"<br />\n")}e=n.converter._dispatch("spanGamut.after",e,t,n);return e}));i.subParser("strikethrough",(function(e,t,n){function r(e){if(t.simplifiedAutoLink){e=i.subParser("simplifiedAutoLinks")(e,t,n)}return"<del>"+e+"</del>"}if(t.strikethrough){e=n.converter._dispatch("strikethrough.before",e,t,n);e=e.replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,(function(e,t){return r(t)}));e=n.converter._dispatch("strikethrough.after",e,t,n)}return e}));i.subParser("stripLinkDefinitions",(function(e,t,n){var r=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,s=/^ {0,3}\[([^\]]+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm;e+="¨0";var o=function(r,s,o,a,l,c,u){s=s.toLowerCase();if(e.toLowerCase().split(s).length-1<2){return r}if(o.match(/^data:.+?\/.+?;base64,/)){n.gUrls[s]=o.replace(/\s/g,"")}else{n.gUrls[s]=i.subParser("encodeAmpsAndAngles")(o,t,n)}if(c){return c+u}else{if(u){n.gTitles[s]=u.replace(/"|'/g,"&quot;")}if(t.parseImgDimensions&&a&&l){n.gDimensions[s]={width:a,height:l}}}return""};e=e.replace(s,o);e=e.replace(r,o);e=e.replace(/¨0/,"");return e}));i.subParser("tables",(function(e,t,n){if(!t.tables){return e}var r=/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,s=/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm;function o(e){if(/^:[ \t]*--*$/.test(e)){return' style="text-align:left;"'}else if(/^--*[ \t]*:[ \t]*$/.test(e)){return' style="text-align:right;"'}else if(/^:[ \t]*--*[ \t]*:$/.test(e)){return' style="text-align:center;"'}else{return""}}function a(e,r){var s="";e=e.trim();if(t.tablesHeaderId||t.tableHeaderId){s=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'}e=i.subParser("spanGamut")(e,t,n);return"<th"+s+r+">"+e+"</th>\n"}function l(e,r){var s=i.subParser("spanGamut")(e,t,n);return"<td"+r+">"+s+"</td>\n"}function c(e,t){var n="<table>\n<thead>\n<tr>\n",i=e.length;for(var r=0;r<i;++r){n+=e[r]}n+="</tr>\n</thead>\n<tbody>\n";for(r=0;r<t.length;++r){n+="<tr>\n";for(var s=0;s<i;++s){n+=t[r][s]}n+="</tr>\n"}n+="</tbody>\n</table>\n";return n}function u(e){var r,s=e.split("\n");for(r=0;r<s.length;++r){if(/^ {0,3}\|/.test(s[r])){s[r]=s[r].replace(/^ {0,3}\|/,"")}if(/\|[ \t]*$/.test(s[r])){s[r]=s[r].replace(/\|[ \t]*$/,"")}s[r]=i.subParser("codeSpans")(s[r],t,n)}var u=s[0].split("|").map((function(e){return e.trim()})),f=s[1].split("|").map((function(e){return e.trim()})),h=[],d=[],p=[],g=[];s.shift();s.shift();for(r=0;r<s.length;++r){if(s[r].trim()===""){continue}h.push(s[r].split("|").map((function(e){return e.trim()})))}if(u.length<f.length){return e}for(r=0;r<f.length;++r){p.push(o(f[r]))}for(r=0;r<u.length;++r){if(i.helper.isUndefined(p[r])){p[r]=""}d.push(a(u[r],p[r]))}for(r=0;r<h.length;++r){var m=[];for(var _=0;_<d.length;++_){if(i.helper.isUndefined(h[r][_]));m.push(l(h[r][_],p[_]))}g.push(m)}return c(d,g)}e=n.converter._dispatch("tables.before",e,t,n);e=e.replace(/\\(\|)/g,i.helper.escapeCharactersCallback);e=e.replace(r,u);e=e.replace(s,u);e=n.converter._dispatch("tables.after",e,t,n);return e}));i.subParser("underline",(function(e,t,n){if(!t.underline){return e}e=n.converter._dispatch("underline.before",e,t,n);if(t.literalMidWordUnderscores){e=e.replace(/\b___(\S[\s\S]*?)___\b/g,(function(e,t){return"<u>"+t+"</u>"}));e=e.replace(/\b__(\S[\s\S]*?)__\b/g,(function(e,t){return"<u>"+t+"</u>"}))}else{e=e.replace(/___(\S[\s\S]*?)___/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}));e=e.replace(/__(\S[\s\S]*?)__/g,(function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e}))}e=e.replace(/(_)/g,i.helper.escapeCharactersCallback);e=n.converter._dispatch("underline.after",e,t,n);return e}));i.subParser("unescapeSpecialChars",(function(e,t,n){e=n.converter._dispatch("unescapeSpecialChars.before",e,t,n);e=e.replace(/¨E(\d+)E/g,(function(e,t){var n=parseInt(t);return String.fromCharCode(n)}));e=n.converter._dispatch("unescapeSpecialChars.after",e,t,n);return e}));i.subParser("makeMarkdown.blockquote",(function(e,t){var n="";if(e.hasChildNodes()){var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){var a=i.subParser("makeMarkdown.node")(r[o],t);if(a===""){continue}n+=a}}n=n.trim();n="> "+n.split("\n").join("\n> ");return n}));i.subParser("makeMarkdown.codeBlock",(function(e,t){var n=e.getAttribute("language"),i=e.getAttribute("precodenum");return"```"+n+"\n"+t.preList[i]+"\n```"}));i.subParser("makeMarkdown.codeSpan",(function(e){return"`"+e.innerHTML+"`"}));i.subParser("makeMarkdown.emphasis",(function(e,t){var n="";if(e.hasChildNodes()){n+="*";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="*"}return n}));i.subParser("makeMarkdown.header",(function(e,t,n){var r=new Array(n+1).join("#"),s="";if(e.hasChildNodes()){s=r+" ";var o=e.childNodes,a=o.length;for(var l=0;l<a;++l){s+=i.subParser("makeMarkdown.node")(o[l],t)}}return s}));i.subParser("makeMarkdown.hr",(function(){return"---"}));i.subParser("makeMarkdown.image",(function(e){var t="";if(e.hasAttribute("src")){t+="!["+e.getAttribute("alt")+"](";t+="<"+e.getAttribute("src")+">";if(e.hasAttribute("width")&&e.hasAttribute("height")){t+=" ="+e.getAttribute("width")+"x"+e.getAttribute("height")}if(e.hasAttribute("title")){t+=' "'+e.getAttribute("title")+'"'}t+=")"}return t}));i.subParser("makeMarkdown.links",(function(e,t){var n="";if(e.hasChildNodes()&&e.hasAttribute("href")){var r=e.childNodes,s=r.length;n="[";for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="](";n+="<"+e.getAttribute("href")+">";if(e.hasAttribute("title")){n+=' "'+e.getAttribute("title")+'"'}n+=")"}return n}));i.subParser("makeMarkdown.list",(function(e,t,n){var r="";if(!e.hasChildNodes()){return""}var s=e.childNodes,o=s.length,a=e.getAttribute("start")||1;for(var l=0;l<o;++l){if(typeof s[l].tagName==="undefined"||s[l].tagName.toLowerCase()!=="li"){continue}var c="";if(n==="ol"){c=a.toString()+". "}else{c="- "}r+=c+i.subParser("makeMarkdown.listItem")(s[l],t);++a}r+="\n\x3c!-- --\x3e\n";return r.trim()}));i.subParser("makeMarkdown.listItem",(function(e,t){var n="";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}if(!/\n$/.test(n)){n+="\n"}else{n=n.split("\n").join("\n ").replace(/^ {4}$/gm,"").replace(/\n\n+/g,"\n\n")}return n}));i.subParser("makeMarkdown.node",(function(e,t,n){n=n||false;var r="";if(e.nodeType===3){return i.subParser("makeMarkdown.txt")(e,t)}if(e.nodeType===8){return"\x3c!--"+e.data+"--\x3e\n\n"}if(e.nodeType!==1){return""}var s=e.tagName.toLowerCase();switch(s){case"h1":if(!n){r=i.subParser("makeMarkdown.header")(e,t,1)+"\n\n"}break;case"h2":if(!n){r=i.subParser("makeMarkdown.header")(e,t,2)+"\n\n"}break;case"h3":if(!n){r=i.subParser("makeMarkdown.header")(e,t,3)+"\n\n"}break;case"h4":if(!n){r=i.subParser("makeMarkdown.header")(e,t,4)+"\n\n"}break;case"h5":if(!n){r=i.subParser("makeMarkdown.header")(e,t,5)+"\n\n"}break;case"h6":if(!n){r=i.subParser("makeMarkdown.header")(e,t,6)+"\n\n"}break;case"p":if(!n){r=i.subParser("makeMarkdown.paragraph")(e,t)+"\n\n"}break;case"blockquote":if(!n){r=i.subParser("makeMarkdown.blockquote")(e,t)+"\n\n"}break;case"hr":if(!n){r=i.subParser("makeMarkdown.hr")(e,t)+"\n\n"}break;case"ol":if(!n){r=i.subParser("makeMarkdown.list")(e,t,"ol")+"\n\n"}break;case"ul":if(!n){r=i.subParser("makeMarkdown.list")(e,t,"ul")+"\n\n"}break;case"precode":if(!n){r=i.subParser("makeMarkdown.codeBlock")(e,t)+"\n\n"}break;case"pre":if(!n){r=i.subParser("makeMarkdown.pre")(e,t)+"\n\n"}break;case"table":if(!n){r=i.subParser("makeMarkdown.table")(e,t)+"\n\n"}break;case"code":r=i.subParser("makeMarkdown.codeSpan")(e,t);break;case"em":case"i":r=i.subParser("makeMarkdown.emphasis")(e,t);break;case"strong":case"b":r=i.subParser("makeMarkdown.strong")(e,t);break;case"del":r=i.subParser("makeMarkdown.strikethrough")(e,t);break;case"a":r=i.subParser("makeMarkdown.links")(e,t);break;case"img":r=i.subParser("makeMarkdown.image")(e,t);break;default:r=e.outerHTML+"\n\n"}return r}));i.subParser("makeMarkdown.paragraph",(function(e,t){var n="";if(e.hasChildNodes()){var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}}n=n.trim();return n}));i.subParser("makeMarkdown.pre",(function(e,t){var n=e.getAttribute("prenum");return"<pre>"+t.preList[n]+"</pre>"}));i.subParser("makeMarkdown.strikethrough",(function(e,t){var n="";if(e.hasChildNodes()){n+="~~";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="~~"}return n}));i.subParser("makeMarkdown.strong",(function(e,t){var n="";if(e.hasChildNodes()){n+="**";var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t)}n+="**"}return n}));i.subParser("makeMarkdown.table",(function(e,t){var n="",r=[[],[]],s=e.querySelectorAll("thead>tr>th"),o=e.querySelectorAll("tbody>tr"),a,l;for(a=0;a<s.length;++a){var c=i.subParser("makeMarkdown.tableCell")(s[a],t),u="---";if(s[a].hasAttribute("style")){var f=s[a].getAttribute("style").toLowerCase().replace(/\s/g,"");switch(f){case"text-align:left;":u=":---";break;case"text-align:right;":u="---:";break;case"text-align:center;":u=":---:";break}}r[0][a]=c.trim();r[1][a]=u}for(a=0;a<o.length;++a){var h=r.push([])-1,d=o[a].getElementsByTagName("td");for(l=0;l<s.length;++l){var p=" ";if(typeof d[l]!=="undefined"){p=i.subParser("makeMarkdown.tableCell")(d[l],t)}r[h].push(p)}}var g=3;for(a=0;a<r.length;++a){for(l=0;l<r[a].length;++l){var m=r[a][l].length;if(m>g){g=m}}}for(a=0;a<r.length;++a){for(l=0;l<r[a].length;++l){if(a===1){if(r[a][l].slice(-1)===":"){r[a][l]=i.helper.padEnd(r[a][l].slice(-1),g-1,"-")+":"}else{r[a][l]=i.helper.padEnd(r[a][l],g,"-")}}else{r[a][l]=i.helper.padEnd(r[a][l],g)}}n+="| "+r[a].join(" | ")+" |\n"}return n.trim()}));i.subParser("makeMarkdown.tableCell",(function(e,t){var n="";if(!e.hasChildNodes()){return""}var r=e.childNodes,s=r.length;for(var o=0;o<s;++o){n+=i.subParser("makeMarkdown.node")(r[o],t,true)}return n.trim()}));i.subParser("makeMarkdown.txt",(function(e){var t=e.nodeValue;t=t.replace(/ +/g," ");t=t.replace(/¨NBSP;/g," ");t=i.helper.unescapeHTMLEntities(t);t=t.replace(/([*_~|`])/g,"\\$1");t=t.replace(/^(\s*)>/g,"\\$1>");t=t.replace(/^#/gm,"\\#");t=t.replace(/^(\s*)([-=]{3,})(\s*)$/,"$1\\$2$3");t=t.replace(/^( {0,3}\d+)\./gm,"$1\\.");t=t.replace(/^( {0,3})([+-])/gm,"$1\\$2");t=t.replace(/]([\s]*)\(/g,"\\]$1\\(");t=t.replace(/^ {0,3}\[([\S \t]*?)]:/gm,"\\[$1]:");return t}));var w=this;if(e.exports){e.exports=i}else{w.showdown=i}}).call(Ue)})(We);const Ke=We.exports;let Ze=null;function Xe(t){t=t||e.DATA_MODE;switch(t){case"local":return`http://127.0.0.1:5000`;case"dev":return`https://dev-api.ai12z.net`;default:return`https://api.ai12z.net`}}async function Je(t,n){var i,r;try{const s={origin:(i=window===null||window===void 0?void 0:window.location)===null||i===void 0?void 0:i.origin,title:document===null||document===void 0?void 0:document.title,userAgent:navigator===null||navigator===void 0?void 0:navigator.userAgent,referrer:document===null||document===void 0?void 0:document.referrer,language:navigator===null||navigator===void 0?void 0:navigator.language,description:(r=document.querySelector('meta[name="description"]'))===null||r===void 0?void 0:r.getAttribute("content")};if(!n.apiKey){n.apiKey=e.DATA_KEY}if(!n.apiKey)throw new Error(`Public Key is required. Please provide using attribute "data-key".`);n=Object.assign(Object.assign({},n),{meta:s});const o=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!o.ok){throw new Error(`HTTP error! status: ${o.status}`)}const a=await o.json();return await a}catch(e){throw e}}async function Qe(e,t,n){if(!n)return[];const i=`${Xe(t)}/bot/search`;const r={apiKey:e,query:n,num_docs:4};return await Je(i,r)}async function Ye(e,t,n,i){const r=`${Xe(t)}/bot/feedback`;const s={apiKey:e,insight_id:n,feedback:i};return await Je(r,s)}function et(e,t=300){let n;return(...i)=>{clearTimeout(n);n=setTimeout((()=>{e.apply(this,i)}),t)}}async function tt(e,t){if(Ze===null){try{const n=`${Xe(t)}/bot/status`;const i=await Je(n,{apiKey:e});if(i){Ze=i.enable}}catch(e){Ze=false}}return Ze}function nt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.random()*16|0,n=e=="x"?t:t&3|8;return n.toString(16)}))}function it(e){const t=new DOMParser;const n=t.parseFromString(e,"text/html");const i=Array.from(n.querySelectorAll("button"));let r=i.map(((e,t)=>{const n=e.id||`button-${t}`;const i=e.textContent||`Button ${t+1}`;e.id=n;e.removeAttribute("onclick");return{id:n,label:i,onClick:()=>alert(`Button ${n} clicked!`)}}));return{body:n.body.innerHTML,buttons:r}}function rt(e,t){const{configId:n,apiKey:i}=e;const r=`${Xe(t)}/bot/config`;const s={configId:n,apiKey:i};return Je(r,s)}function st(){const e="ai12z-visitorId";let t=localStorage.getItem(e);if(!t){t=ot();localStorage.setItem(e,t)}return"ai12z-"+t}function ot(){return Date.now()+"-"+Math.random().toString(36).substr(2,9)}function at(e,t){var n,i,r;const s=(i=(n=e.controlData)===null||n===void 0?void 0:n.data.source.carousel)===null||i===void 0?void 0:i.type;const o=document.createElement("item-list");o.carouselType=s;o.inputType=t;o.customTemplate=e.controlData.template;o.customSource=(r=e.controlData)===null||r===void 0?void 0:r.data.source;return o}function lt(e){switch(e){case"list":const e=[{name:"list",content:`{{#each items}}\n <div class="carousel-card flex flex-col items-start mb-4 bg-white border h-auto border-gray-200 rounded-lg shadow md:flex-row md:max-w-xl dark:border-gray-700" data-index="{{@index}}">\n \n {{#each images}} \n <img src="{{this}}" alt="Image for {{../title}}" class="card-image object-cover h-96 md:mt-6 md:ml-2" style="width:25%;height:25%"> \n {{/each}} \n \n <div class="flex flex-col justify-between p-4 leading-normal">\n <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"> {{{this.title}}}</h5>\n {{#each subTitle}} \n <p class="font-title text-md md:text-xl">{{this}}</p> \n {{/each}}\n <p class="short-description mb-3 font-normal text-gray-700 dark:text-gray-400">{{{this.shortDescription}}}</p>\n <div class="long-description mb-3 font-normal text-gray-700 dark:text-gray-400 hidden">{{{this.description}}}</div>\n <button class="read-more" data-index="{{@index}}"> Read More </button>\n <div class="flex flex-col items-center my-4">\n {{#each buttons}} \n <button class="card-button list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none" data-id="{{@index}}" data-url="{{this.url}}" data-type="{{this.type}}">\n {{this.label}}</button>\n {{/each}}\n {{#and ../buttonText formSettings}}\n <button class="card-button list-btn uppercase" data-type="panel">{{../buttonText}}</button>\n {{/and}}\n </div>\n </div>\n</div>\n{{/each}}\n<div class="pagination-controls">\n<button class="prev-btn list-btn" {{#unless hasPrev}}disabled{{/unless}}>Prev</button>\n<span> Page {{getcurrentPage}} of {{getPageCount}} </span>\n<button class="next-btn list-btn" {{#unless hasNext}}disabled{{/unless}}>Next</button>\n</div>`},{name:"detail",content:`<div class="flex flex-col items-center justify-center w-full h-full p-4">\n <div class="w-full md:col-span-2 h-fit">\n <dynamic-form form="{{json form}}" formSettings="{{json formSettings}}"/>\n </div> \n <div> \n {{#each buttons}} \n <button class="panel-button list-btn text-white" data-id="{{this.index}}" data-type="{{this.type}}">{{this.label}}</button> \n {{/each}}\n </div>\n </div>`}];return e}}function ct(e){switch(e){case"list":const e=[{name:"list",content:`{{#each items as |item index|}}\n <div class="carousel-card flex flex-col items-start mb-4 bg-white border h-auto border-gray-200 rounded-lg shadow md:flex-row md:max-w-xl dark:border-gray-700" data-index="{{index}}">\n \n <div class="relative w-full carousel-container" data-carousel-id="carousel-{{index}}" id="carousel-{{index}}" data-carousel="slide">\n <div class="relative h-64 overflow-hidden">\n {{#each item.images as |image imageIndex|}} \n <img src="{{this}}" alt="Image for {{../title}}" class="card-image object-cover w-full h-96 md:w-48 md:h-auto md:mt-6 hidden duration-700 ease-in-out" data-carousel-item id="carousel-{{index}}-item-{{imageIndex}}"/> \n {{/each}}\n </div> \n {{#if (lte item.images.length 3)}} \n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n {{#each images as |image imageIndex|}}\n <button type="button" class="w-3 h-3 rounded-full" aria-current="true" aria-label="Slide {{@index}}" data-carousel-slide-to="{{index}}" id="carousel-{{index}}-indicator-{{imageIndex}}"></button>\n {{/each}}\n </div>\n {{else}}\n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-prev id="carousel-{{index}}-prev"></button>\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-next id="carousel-{{index}}-next"></button>\n </div>\n {{/if}}\n </div>\n \n \n \n <div class="flex flex-col justify-between p-4 leading-normal">\n <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white"> {{{this.title}}}</h5>\n {{#each subTitle}} \n <p class="font-title text-md md:text-xl">{{this}}</p> \n {{/each}}\n <p class="short-description mb-3 font-normal text-gray-700 dark:text-gray-400">{{{this.shortDescription}}}</p>\n <div class="long-description mb-3 font-normal text-gray-700 dark:text-gray-400 hidden">{{{this.description}}}</div>\n <button class="read-more" data-index="{{@index}}"> Read More </button>\n <div class="flex items-center my-4">\n {{#each buttons}} \n <button class="card-button list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none" data-id="{{@index}}" data-url="{{this.url}}" data-type="{{this.type}}">\n {{this.label}}</button>\n {{/each}}\n {{#and ../buttonText formSettings}}\n <button class="card-button list-btn uppercase" data-type="panel">{{../buttonText}}</button>\n {{/and}}\n </div>\n </div>\n</div>\n{{/each}}\n<div class="pagination-controls">\n<button class="prev-btn list-btn" {{#unless hasPrev}}disabled{{/unless}}>Prev</button>\n<span> Page {{getcurrentPage}} of {{getPageCount}} </span>\n<button class="next-btn list-btn" {{#unless hasNext}}disabled{{/unless}}>Next</button>\n</div>\n`},{name:"detail",content:`\n <div class="flex flex-col items-center justify-center w-full h-full p-4">\n <div class="w-full md:col-span-2 h-fit">\n <dynamic-form form="{{json form}}" formSettings="{{json formSettings}}"/>\n </div> \n <div> \n {{#each buttons}} \n <button class="panel-button list-btn text-white" data-id="{{this.index}}" data-type="{{this.type}}">{{this.label}}</button> \n {{/each}}\n </div>\n </div>`}];return e;case"slider":const t=[{name:"carousel",content:`\n<div id="carouselExample" class="relative w-full" data-carousel="static">\n \n <div class="carousel-box relative bg-white overflow-hidden overflow-y-scroll h-56 rounded-lg md:h-96" style={ overflowY: "scroll", height: "30rem" }>\n {{#each items as |item index|}}\n <div class="carousel-card max-w-sm hidden duration-700 ease-in-out md:max-w-xl" data-carousel-item id="carousel-item-{{index}}" data-index="{{index}}">\n <div class="relative w-full carousel-container" data-carousel-id="carousel-{{index}}" id="carousel-{{index}}" data-carousel="slide">\n <div class="relative h-64 overflow-hidden rounded-lg">\n {{#each item.images as |image imageIndex|}} \n \n <img src="{{this}}" alt="Image for {{../title}}" class="card-image object-cover h-96 hidden duration-700 ease-in-out" data-carousel-item id="carousel-{{index}}-item-{{imageIndex}}"/> \n \n {{/each}}\n </div> \n {{#if (lte item.images.length 3)}} \n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n {{#each images as |image imageIndex|}}\n <button type="button" class="w-3 h-3 rounded-full" aria-current="true" aria-label="Slide {{@index}}" data-carousel-slide-to="{{index}}" id="carousel-{{index}}-indicator-{{imageIndex}}"></button>\n {{/each}}\n </div>\n {{else}}\n <div class="absolute z-30 flex -translate-x-1/2 bottom-5 left-1/2 space-x-3 rtl:space-x-reverse">\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-prev id="carousel-{{index}}-prev"></button>\n <button type="button" class="w-3 h-3 rounded-full bg-blue-600" aria-current="true" aria-label="Slide {{@index}}" data-carousel-next id="carousel-{{index}}-next"></button>\n </div>\n {{/if}}\n </div> \n \n <div class="p-5">\n <a href="#">\n <h5 class="mb-2 text-2xl font-bold tracking-tight text-gray-900 dark:text-white">{{{title}}}</h5>\n </a>\n <p class="short-description mb-3 font-normal text-gray-700 dark:text-gray-400">{{{shortDescription}}}</p>\n <div class="long-description mb-3 font-normal text-gray-700 dark:text-gray-400 hidden">{{{description}}}</div>\n <a class="read-more inline-flex items-center px-3 py-2 text-sm font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800">\n Read more\n <svg class="rtl:rotate-180 w-3.5 h-3.5 ms-2" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 10">\n <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M1 5h12m0 0L9 1m4 4L9 9"/>\n </svg>\n </a>\n {{#each buttons}}\n <button class="card-button list-btn uppercase pt-2 pb-1 px-4 flex-grow hover:bg-gradient-to-t md:flex-none" data-index="{{@index}}" data-url="{{this.url}}" data-type="{{this.type}}">{{this.label}}</button>\n {{/each}}\n </div>\n </div>\n {{/each}}\n </div>\n\n <div class="absolute z-30 flex overflow-x-auto -translate-x-1/2 space-x-1 rtl:space-x-reverse bottom-5 left-1/2 scrollbar-visible">\n {{#if (lte items.length 5)}} \n {{#each items}}\n <button\n id="carousel-indicator-{{@index}}"\n type="button"\n class="w-2.5 h-2.5 sm:w-3 sm:h-3 md:w-4 md:h-4 rounded-full"\n aria-current="true"\n aria-label="Slide {{@index}}"\n ></button>\n {{/each}}\n {{/if}}\n </div>\n\n \x3c!-- Controls --\x3e\n <button\n type="button"\n class="absolute top-0 left-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none"\n id="data-carousel-prev"\n data-carousel-prev\n >\n <span\n class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-blue-600"\n >\n <svg\n aria-hidden="true"\n class="w-6 h-6 text-white"\n fill="none"\n stroke="currentColor"\n viewBox="0 0 24 24"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n stroke-width="2"\n d="M15 19l-7-7 7-7"\n ></path>\n </svg>\n <span class="sr-only">Previous</span>\n </span>\n </button>\n <button\n type="button"\n class="absolute top-0 right-0 z-30 flex items-center justify-center h-full px-4 cursor-pointer group focus:outline-none"\n id="data-carousel-next"\n data-carousel-next\n >\n <span\n class="inline-flex items-center justify-center w-10 h-10 rounded-full bg-blue-600"\n >\n <svg\n aria-hidden="true"\n class="w-6 h-6 text-white dark:text-gray-800"\n fill="none"\n stroke="currentColor"\n viewBox="0 0 24 24"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n stroke-linecap="round"\n stroke-linejoin="round"\n stroke-width="2"\n d="M9 5l7 7-7 7"\n ></path>\n </svg>\n <span class="sr-only">Next</span>\n </span>\n </button>\n</div>`},{name:"detail",content:`\n <div class="flex flex-col items-center justify-center w-full h-full p-4">\n <div class="w-full md:col-span-2 h-fit">\n <dynamic-form form="{{json form}}" formSettings="{{json formSettings}}"/>\n </div> \n <div> \n {{#each buttons}} \n <button class="panel-button list-btn text-white" data-id="{{this.index}}" data-type="{{this.type}}">{{this.label}}</button> \n {{/each}}\n </div>\n </div>`}];return t}}function ut(e){const t=e.indexOf("[");const n=e.indexOf("]",t);if(t!==-1&&n!==-1){const i=e.substring(0,t);const r=e.substring(t+1,n);let s=e.substring(n+1);s=s.replace("<p></p>","");return{before:i,inside:r,after:s}}else{console.log("No brackets found in the HTML string.");return{before:e,inside:null,after:null}}}export{st as a,rt as b,at as c,ut as d,Xe as e,Qe as f,nt as g,tt as h,Ye as i,Fe as j,et as k,Ge as l,ct as m,lt as n,Ke as s,it as u};
2
+ //# sourceMappingURL=p-b5fa76af.js.map