@irisidea/kalrav-ai 1.0.3 → 1.0.4
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.
- package/dist/routeye-widget.js +1 -1
- package/package.json +2 -2
package/dist/routeye-widget.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{decode:()=>g,encode:()=>b,format:()=>y,parse:()=>I});var n={};e.r(n),e.d(n,{Any:()=>z,Cc:()=>B,Cf:()=>q,P:()=>T,S:()=>M,Z:()=>R});var r={};e.r(r),e.d(r,{arrayReplaceAt:()=>de,assign:()=>ue,escapeHtml:()=>ve,escapeRE:()=>Ee,fromCodePoint:()=>pe,has:()=>ce,isMdAsciiPunct:()=>Se,isPunctChar:()=>Fe,isSpace:()=>De,isString:()=>ae,isValidEntityCode:()=>he,isWhiteSpace:()=>Ae,lib:()=>Ie,normalizeReference:()=>Le,unescapeAll:()=>ye,unescapeMd:()=>be});var o={};e.r(o),e.d(o,{parseLinkDestination:()=>Me,parseLinkLabel:()=>Te,parseLinkTitle:()=>ze});const s="https://dev-api.kalrav.ai",i=class{constructor(e,t){this.agentId=e,this.apiKey=t,this.sessionKey=`routeeye_session_${e}`,this.userKey=`routeeye_user_${e}`,this.sessionId=this.loadFromStorage(this.sessionKey),this.userId=this.loadFromStorage(this.userKey)}loadFromStorage(e){try{const t=sessionStorage.getItem(e);return t&&"null"!==t&&"undefined"!==t?t:null}catch(e){return console.warn("⚠️ Could not read from sessionStorage:",e),null}}saveToStorage(e,t){try{if(!t||"null"===t||"undefined"===t)return void console.warn("⚠️ Ignoring invalid value for key:",e);sessionStorage.setItem(e,t)}catch(e){console.error("❌ Could not save to sessionStorage:",e)}}removeFromStorage(e){try{sessionStorage.removeItem(e)}catch(e){console.error("❌ Could not remove from sessionStorage:",e)}}saveSessionId(e){e&&"null"!==e&&"undefined"!==e?(this.sessionId=e,this.saveToStorage(this.sessionKey,e)):console.warn("⚠️ Ignoring invalid sessionId:",e)}saveUserId(e){e&&"null"!==e&&"undefined"!==e?(this.userId=e,this.saveToStorage(this.userKey,e)):console.warn("⚠️ Ignoring invalid userId:",e)}clearSession(){this.sessionId=null,this.userId=null,this.removeFromStorage(this.sessionKey),this.removeFromStorage(this.userKey)}getSessionInfo(){return{sessionId:this.sessionId,userId:this.userId,hasSession:!(!this.sessionId||"null"===this.sessionId||"undefined"===this.sessionId)}}async ensureSession(){if(this.sessionId&&"null"!==this.sessionId&&"undefined"!==this.sessionId)return{session_id:this.sessionId,user_id:this.userId};try{return await this.sendQuery("init"),{session_id:this.sessionId,user_id:this.userId}}catch(e){throw console.error("❌ Failed to create session:",e),new Error("Could not initialize session. Please try again.")}}async sendQuery(e){try{const t={agent_id:this.agentId,query:e};this.sessionId&&"null"!==this.sessionId&&"undefined"!==this.sessionId&&(t.session_id=this.sessionId),this.userId&&"null"!==this.userId&&"undefined"!==this.userId&&(t.user_id=this.userId);const n=await fetch(`${s}/api/v1/query`,{method:"POST",headers:{"Content-Type":"application/json","x-agent":this.agentId,"x-key":this.apiKey},body:JSON.stringify(t)});if(!n.ok){const e=await n.text();if(console.error("❌ API Error Response:",e),401===n.status)throw new Error("Authentication failed. Please check your agent ID and API key.");if(422===n.status)throw new Error(`Validation error: ${e}`);throw new Error(`API error (${n.status}): ${e}`)}const r=await n.json();return r.session_id&&this.saveSessionId(r.session_id),r.user_id&&this.saveUserId(r.user_id),r}catch(e){throw console.error("RouteEye API Error:",e),e}}async uploadDocument(e,t=null){try{let n;n=t&&"null"!==t&&"undefined"!==t?t:(await this.ensureSession()).session_id;const r=new FormData;r.append("file",e),r.append("session_id",n);const o=await fetch(`${s}/api/v1/upload_document`,{method:"POST",headers:{"x-agent":this.agentId,"x-key":this.apiKey},body:r});if(!o.ok){if(401===o.status)throw new Error("Authentication failed.");if(422===o.status){const e=await o.json();throw new Error(e.detail||"Validation error")}throw new Error(`Upload failed: ${o.status}`)}const i=await o.json();return i.session_id&&this.saveSessionId(i.session_id),i}catch(e){throw console.error("❌ Document upload error:",e),e}}async createZohoLead(e){try{const t=await fetch(`${s}/api/v1/zoho/lead`,{method:"POST",headers:{"Content-Type":"application/json","x-agent":this.agentId,"x-key":this.apiKey},body:JSON.stringify(e)});if(!t.ok){const e=await t.text();if(console.error("❌ Zoho Lead API Error:",e),401===t.status)throw new Error("Authentication failed for Zoho lead creation.");if(422===t.status){const t=JSON.parse(e).detail;throw new Error(`Validation Error: ${JSON.stringify(t)}`)}throw new Error(`Failed to create lead (${t.status})`)}return await t.json()}catch(e){throw console.error("❌ Zoho lead creation error:",e),e}}};function a(e,t){return"#"+e.replace(/^#/,"").replace(/../g,e=>("0"+Math.min(255,Math.max(0,parseInt(e,16)+t)).toString(16)).substr(-2))}class l{constructor(e){this.widget=e,this.isRecording=!1,this.recognition=null}async toggleRecording(){const e=this.widget.shadowRoot.getElementById("routeye-mic-btn");if(this.isRecording)this.stopRecording();else try{if(!window.SpeechRecognition&&!window.webkitSpeechRecognition)return void this.widget.addErrorMessage("Speech recognition is not supported in this browser. Please use Chrome, Edge, or Safari.");this.startSpeechRecognition(),this.isRecording=!0,e.classList.add("recording"),this.widget.showSuccessMessage("⏳ Initializing microphone…")}catch(e){console.error("Recording error:",e),this.widget.addErrorMessage("Could not start speech recognition. Please check permissions.")}}startSpeechRecognition(){const e=window.SpeechRecognition||window.webkitSpeechRecognition;this.recognition=new e,this.recognition.continuous=!1,this.recognition.interimResults=!1,this.recognition.lang=this.getLanguageCode(this.widget.selectedLanguage),this.recognition.maxAlternatives=1;const t=this.widget.shadowRoot.getElementById("routeye-mic-btn");let n=!1,r=!1;this.recognition.onaudiostart=()=>{this.widget.showSuccessMessage("🎙️ Speak now")},this.recognition.onsoundstart=()=>{n||(n=!0,this.widget.showSuccessMessage("🔊 Listening…")),r=!0},this.recognition.onsoundend=()=>{r&&this.widget.showSuccessMessage("⏳ Processing your voice…")},this.recognition.onresult=e=>{const t=e.results[0][0].transcript;this.widget.shadowRoot.getElementById("routeye-chat-input").value=t,this.widget.sendMessage(),this.widget.showSuccessMessage("✅ Voice message sent!")},this.recognition.onerror=e=>{console.error("Speech recognition error:",e.error),this.isRecording=!1,t.classList.remove("recording"),"no-speech"===e.error?this.widget.addErrorMessage("No speech detected. Please try again."):"not-allowed"===e.error?this.widget.addErrorMessage("Microphone access denied."):"aborted"!==e.error&&this.widget.addErrorMessage(`Speech recognition error: ${e.error}`)},this.recognition.onend=()=>{this.isRecording=!1,t.classList.remove("recording")},this.recognition.start()}stopRecording(){this.recognition&&this.recognition.stop(),this.isRecording=!1,this.widget.shadowRoot.getElementById("routeye-mic-btn").classList.remove("recording"),this.widget.showSuccessMessage("⛔ Recording stopped")}getLanguageCode(e){return{English:"en-US",Spanish:"es-ES",French:"fr-FR",German:"de-DE",Hindi:"hi-IN",Chinese:"zh-CN"}[e]||"en-US"}}class c{constructor(e){this.widget=e,this.synth=window.speechSynthesis,this.voices=[],this.loadVoices(),void 0!==window.speechSynthesis.onvoiceschanged&&(window.speechSynthesis.onvoiceschanged=()=>this.loadVoices())}loadVoices(){this.voices=this.synth.getVoices()}stopSpeaking(){(this.synth.speaking||this.synth.pending)&&this.synth.cancel(),this.widget.shadowRoot.querySelectorAll(".routeye-speak-btn, #routeye-speaker-btn").forEach(e=>e.classList.remove("speaking"))}speakText(e,t=null){if(!("speechSynthesis"in window))return void console.error("⚠️ Browser does not support speech synthesis.");this.stopSpeaking();const n=this.cleanText(e);if(!n)return;if(0===this.voices.length)return this.loadVoices(),void setTimeout(()=>this.speakText(e,t),100);const r=new SpeechSynthesisUtterance(n),o=this.widget.selectedLanguage||"English",s=this.getLanguageCode(o),i=this.selectBestVoice(s);r.voice=i,r.lang=i?i.lang:s,r.rate=.9,r.pitch=1;const a=this.widget.shadowRoot.getElementById("routeye-speaker-btn");r.onstart=()=>{t&&t.classList.add("speaking"),this.widget.autoReadEnabled&&a&&a.classList.add("speaking")},r.onend=()=>{t&&t.classList.remove("speaking"),a&&this.widget.autoReadEnabled?a.classList.add("speaking"):a&&a.classList.remove("speaking")},r.onerror=()=>{t&&t.classList.remove("speaking"),a&&a.classList.remove("speaking")},this.synth.speak(r),this.currentUtterance=r}speakLastMessage(){const e=this.widget.shadowRoot.querySelectorAll(".routeye-message.bot .routeye-message-bubble");if(!e.length)return;const t=e[e.length-1].innerText;this.speakText(t)}getLanguageCode(e){return{English:"en-US",Hindi:"hi-IN",Telugu:"te-IN",Kannada:"kn-IN",Malayalam:"ml-IN",Tamil:"ta-IN",Bengali:"bn-IN",Marathi:"mr-IN",Gujarati:"gu-IN",Japanese:"ja-JP",Chinese:"zh-CN",Russian:"ru-RU",Spanish:"es-ES",French:"fr-FR",German:"de-DE"}[e]||"en-US"}selectBestVoice(e){this.voices.length||(this.voices=this.synth.getVoices());const t=e.split("-")[0],n=this.voices.filter(n=>n.lang===e||n.lang.startsWith(t));if(n.length>0){const e=n.find(e=>e.name.includes("Google"));if(e)return e;return n.find(e=>e.name.includes("Microsoft"))||n[0]}if(["te","kn","ml","ta","bn","gu","mr"].includes(t)){console.warn(`⚠️ No voice found for ${e}. Falling back to Hindi.`);const t=this.voices.find(e=>"hi-IN"===e.lang||e.lang.startsWith("hi"));if(t)return t}return this.voices.find(e=>"en-US"===e.lang)||this.voices[0]}cleanText(e){if(!e)return"";let t=String(e);const n=document.createElement("div");return n.innerHTML=t,t=n.textContent||n.innerText||"",t=t.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),t=t.replace(/[👋🎙️🔊⏳✅❌⛔🔥💾📤🎯🎧🎤🚀]/g,""),t=t.replace(/[,;:]+/g," "),t=t.replace(/\./g," "),t=t.replace(/[•◦▪▫★☆♦♥♠♣]/g,""),t=t.replace(/\([^a-zA-Z0-9\s]+\)/g,""),t=t.replace(/\[[^a-zA-Z0-9\s]+\]/g,""),t=t.replace(/(?:https?|ftp):\/\/[\n\S]+/g,""),t=t.replace(/[!@#$%^&*()_+=\[\]{}<>?\/\\|`~]/g," "),t=t.replace(/\s+/g," ").trim(),t}}class u{constructor(e){this.widget=e}async handleFileUpload(e){const t=e.target.files[0];if(!t)return;if(t.size>10485760)return this.widget.addErrorMessage("File size exceeds 10MB limit."),void(e.target.value="");if(!/\.(pdf|doc|docx|txt|csv|xls|xlsx)$/i.test(t.name))return this.widget.addErrorMessage("Unsupported file type. Please upload PDF, DOC, DOCX, TXT, CSV, XLS, or XLSX files."),void(e.target.value="");const n=this.widget.addSystemMessage(`📤 Uploading "${t.name}"... `),r=this.widget.shadowRoot.getElementById(n);console.log("🔍 Element exists after creation?",null!==r),this.widget.setLoading(!0);try{if(await this.widget.api.uploadDocument(t),await new Promise(e=>setTimeout(e,50)),n){const e=this.widget.shadowRoot.getElementById(n);e?e.remove():console.warn("❌ Could not find element to remove")}this.widget.addSystemMessage(` ✅ Document: <strong>${t.name}</strong> (${this.formatFileSize(t.size)}) Uploaded Successfully, Now you can Start asking Questions`)}catch(e){if(console.error("Upload error:",e),n){const e=this.widget.shadowRoot.getElementById(n);e&&e.remove()}this.widget.addErrorMessage(`Failed to upload "${t.name}": ${e.message}`)}finally{this.widget.setLoading(!1),e.target.value=""}}formatFileSize(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return Math.round(e/Math.pow(1024,t)*100)/100+" "+["Bytes","KB","MB"][t]}}class d{constructor(e){this.widget=e}toggleFullscreen(){const e=this.widget.shadowRoot.getElementById("routeye-chat-window"),t=this.widget.shadowRoot.host;e.classList.toggle("fullscreen"),t.classList.toggle("fullscreen-active"),e.classList.contains("fullscreen")}exitFullscreen(){const e=this.widget.shadowRoot.getElementById("routeye-chat-window"),t=this.widget.shadowRoot.host;e.classList.remove("fullscreen"),t.classList.remove("fullscreen-active")}makeDraggable(e,t){const n=e.querySelector(t);if(!n)return;let r,o,s,i,a=!1;n.addEventListener("mousedown",t=>{if(t.target.closest("button")||t.target.closest(".routeye-icon-btn")||t.target.closest(".routeye-resize-handle"))return;t.preventDefault(),a=!0;const n=e.getBoundingClientRect();r=t.clientX,o=t.clientY,s=n.left,i=n.top,e.style.position="fixed",e.style.bottom="auto",e.style.right="auto",e.style.left=`${s}px`,e.style.top=`${i}px`,e.style.margin="0"}),document.addEventListener("mousemove",t=>{if(!a)return;const n=t.clientX-r,l=t.clientY-o;let c=s+n,u=i+l;const d=window.innerWidth,h=window.innerHeight,p=e.getBoundingClientRect();u<0&&(u=0),u>h-40&&(u=h-40),c+p.width<40&&(c=40-p.width),c>d-40&&(c=d-40),e.style.left=`${c}px`,e.style.top=`${u}px`}),document.addEventListener("mouseup",()=>{a=!1})}makeResizable(e){[{class:"top-left",cursor:"nw-resize"},{class:"top",cursor:"n-resize"},{class:"top-right",cursor:"ne-resize"},{class:"right",cursor:"e-resize"},{class:"bottom-right",cursor:"se-resize"},{class:"bottom",cursor:"s-resize"},{class:"bottom-left",cursor:"sw-resize"},{class:"left",cursor:"w-resize"}].forEach(t=>{if(!e.querySelector(`.routeye-resize-${t.class}`)){const n=document.createElement("div");n.classList.add("routeye-resize-handle",`routeye-resize-${t.class}`),n.style.cursor=t.cursor,e.appendChild(n)}});let t,n,r,o,s,i,a=!1,l=null;e.addEventListener("mousedown",c=>{if(e.classList.contains("fullscreen"))return;const u=c.target.closest(".routeye-resize-handle");if(!u)return;a=!0,l=u;const d=e.getBoundingClientRect();r=d.width,o=d.height,s=d.left,i=d.top,t=c.clientX,n=c.clientY,e.style.position="fixed",e.style.left=`${s}px`,e.style.top=`${i}px`,e.style.bottom="auto",e.style.right="auto",c.preventDefault(),c.stopPropagation()}),document.addEventListener("mousemove",c=>{if(!a||!l)return;const u=c.clientX-t,d=c.clientY-n,h=l.className;let p=r,g=o,f=s,m=i;const b=window.getComputedStyle(e),y=parseFloat(b.maxHeight)||1/0,k=parseFloat(b.maxWidth)||1/0;if(h.includes("right"))p=Math.min(Math.max(320,r+u),k);else if(h.includes("left")){const e=r-u;p=Math.min(Math.max(320,e),k),f=s-(p-r)}if(h.includes("bottom"))g=Math.min(Math.max(400,o+d),y);else if(h.includes("top")){const e=o-d;console.log("[Resize Top] DeltaY:",d,"StartH:",o,"Desired:",e,"Max:",y),g=Math.min(Math.max(400,e),y),console.log("[Resize Top] NewH:",g);const t=g-o;m=i-t,console.log("[Resize Top] HChange:",t,"StartTop:",i,"NewTop:",m)}e.style.width=`${p}px`,e.style.height=`${g}px`,e.style.left=`${f}px`,e.style.top=`${m}px`,e.style.bottom="auto",e.style.right="auto",e.style.position="fixed"}),document.addEventListener("mouseup",()=>{a&&(a=!1,l=null)})}}const h={};function p(e,t){"string"!=typeof t&&(t=p.defaultChars);const n=function(e){let t=h[e];if(t)return t;t=h[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const s=parseInt(e.slice(r+1,r+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&s)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=s<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&s)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),i=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&i)){let e=s<<18&1835008|n<<12&258048|o<<6&4032|63&i;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}p.defaultChars=";/?:@&=+$,#",p.componentChars="";const g=p,f={};function m(e,t,n){"string"!=typeof t&&(n=t,t=m.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=f[e];if(t)return t;t=f[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,s=e.length;t<s;t++){const i=e.charCodeAt(t);if(n&&37===i&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(i<128)o+=r[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&t+1<s){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}m.defaultChars=";/?:@&=+$,-_.!~*'()#",m.componentChars="-_.!~*'()";const b=m;function y(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function k(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const x=/^([a-z0-9.+-]+:)/i,w=/:[0-9]*$/,_=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,v=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),C=["'"].concat(v),E=["%","/","?",";","#"].concat(C),D=["/","?","#"],A=/^[+a-z0-9A-Z_-]{0,63}$/,F=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,S={javascript:!0,"javascript:":!0},L={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};k.prototype.parse=function(e,t){let n,r,o,s=e;if(s=s.trim(),!t&&1===e.split("#").length){const e=_.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let i=x.exec(s);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,s=s.substr(i.length)),(t||i||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===s.substr(0,2),!o||i&&S[i]||(s=s.substr(2),this.slashes=!0)),!S[i]&&(o||i&&!L[i])){let e,t,n=-1;for(let e=0;e<D.length;e++)r=s.indexOf(D[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?s.lastIndexOf("@"):s.lastIndexOf("@",n),-1!==t&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),n=-1;for(let e=0;e<E.length;e++)r=s.indexOf(E[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=s.length),":"===s[n-1]&&n--;const o=s.slice(0,n);s=s.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(A)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(A)){const r=e.slice(0,t),o=e.slice(t+1),i=n.match(F);i&&(r.push(i[1]),o.unshift(i[2])),o.length&&(s=o.join(".")+s),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=s.indexOf("#");-1!==a&&(this.hash=s.substr(a),s=s.slice(0,a));const l=s.indexOf("?");return-1!==l&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),L[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},k.prototype.parseHost=function(e){let t=w.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const I=function(e,t){if(e&&e instanceof k)return e;const n=new k;return n.parse(e,t),n},T=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,M=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,z=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,B=/[\0-\x1F\x7F-\x9F]/,q=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,R=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,$=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),H=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var N;const P=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),U=null!==(N=String.fromCodePoint)&&void 0!==N?N:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var O,j,V,Z,Q;function G(e){return e>=O.ZERO&&e<=O.NINE}function K(e){return e>=O.UPPER_A&&e<=O.UPPER_F||e>=O.LOWER_A&&e<=O.LOWER_F}function W(e){return e===O.EQUALS||function(e){return e>=O.UPPER_A&&e<=O.UPPER_Z||e>=O.LOWER_A&&e<=O.LOWER_Z||G(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(O||(O={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(j||(j={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(V||(V={})),(Q=Z||(Z={}))[Q.Legacy=0]="Legacy",Q[Q.Strict=1]="Strict",Q[Q.Attribute=2]="Attribute";class Y{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=V.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Z.Strict}startEntity(e){this.decodeMode=e,this.state=V.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case V.EntityStart:return e.charCodeAt(t)===O.NUM?(this.state=V.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=V.NamedEntity,this.stateNamedEntity(e,t));case V.NumericStart:return this.stateNumericStart(e,t);case V.NumericDecimal:return this.stateNumericDecimal(e,t);case V.NumericHex:return this.stateNumericHex(e,t);case V.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===O.LOWER_X?(this.state=V.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=V.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!G(r)&&!K(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!G(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===O.SEMI)this.consumed+=1;else if(this.decodeMode===Z.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=P.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==O.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&j.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=X(n,r,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return 0===this.result||this.decodeMode===Z.Attribute&&(0===o||W(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&j.VALUE_LENGTH)>>14,0!==o){if(s===O.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Z.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&j.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~j.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case V.NamedEntity:return 0===this.result||this.decodeMode===Z.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case V.NumericDecimal:return this.emitNumericEntity(0,2);case V.NumericHex:return this.emitNumericEntity(0,3);case V.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case V.EntityStart:return 0}}}function J(e){let t="";const n=new Y(e,e=>t+=U(e));return function(e,r){let o=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(o,s),n.startEntity(r);const i=n.write(e,s+1);if(i<0){o=s+n.end();break}o=s+i,s=0===i?o+1:o}const i=t+e.slice(o);return t="",i}}function X(e,t,n,r){const o=(t&j.BRANCH_LENGTH)>>7,s=t&j.JUMP_TABLE;if(0===o)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=o?-1:e[n+t]-1}let i=n,a=i+o-1;for(;i<=a;){const t=i+a>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+o];a=t-1}}return-1}const ee=J($);function te(e,t=Z.Legacy){return ee(e,t)}function ne(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}J(H),new Map(ne([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(ne([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(ne([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(ne([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));const re=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function oe(e,t){return function(n){let r,o=0,s="";for(;r=e.exec(n);)o!==r.index&&(s+=n.substring(o,r.index)),s+=t.get(r[0].charCodeAt(0)),o=r.index+1;return s+n.substring(o)}}var se,ie;function ae(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}String.prototype.codePointAt,oe(/[&<>'"]/g,re),oe(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),oe(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(se||(se={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(ie||(ie={}));const le=Object.prototype.hasOwnProperty;function ce(e,t){return le.call(e,t)}function ue(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function de(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function he(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function pe(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ge=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,fe=new RegExp(ge.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),me=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function be(e){return e.indexOf("\\")<0?e:e.replace(ge,"$1")}function ye(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(fe,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&me.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return he(n)?pe(n):e}const n=te(e);return n!==e?n:e}(e,n)})}const ke=/[&<>"]/,xe=/[&<>"]/g,we={"&":"&","<":"<",">":">",'"':"""};function _e(e){return we[e]}function ve(e){return ke.test(e)?e.replace(xe,_e):e}const Ce=/[.?*+^$[\]\\(){}|-]/g;function Ee(e){return e.replace(Ce,"\\$&")}function De(e){switch(e){case 9:case 32:return!0}return!1}function Ae(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Fe(e){return T.test(e)||M.test(e)}function Se(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Le(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Ie={mdurl:t,ucmicro:n};function Te(e,t,n){let r,o,s,i;const a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(s=e.src.charCodeAt(e.pos),93===s&&(r--,0===r)){o=!0;break}if(i=e.pos,e.md.inline.skipToken(e),91===s)if(i===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c}function Me(e,t,n){let r,o=t;const s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return s;if(60===r)return s;if(62===r)return s.pos=o+1,s.str=ye(e.slice(t+1,o)),s.ok=!0,s;92===r&&o+1<n?o+=2:o++}return s}let i=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(i++,i>32))return s;if(41===r){if(0===i)break;i--}o++}return t===o||0!==i||(s.str=ye(e.slice(t,o)),s.pos=o,s.ok=!0),s}function ze(e,t,n,r){let o,s=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(s>=n)return i;let r=e.charCodeAt(s);if(34!==r&&39!==r&&40!==r)return i;t++,s++,40===r&&(r=41),i.marker=r}for(;s<n;){if(o=e.charCodeAt(s),o===i.marker)return i.pos=s+1,i.str+=ye(e.slice(t,s)),i.ok=!0,i;if(40===o&&41===i.marker)return i;92===o&&s+1<n&&s++,s++}return i.can_continue=!0,i.str+=ye(e.slice(t,s)),i}const Be={};function qe(){this.rules=ue({},Be)}Be.code_inline=function(e,t,n,r,o){const s=e[t];return"<code"+o.renderAttrs(s)+">"+ve(s.content)+"</code>"},Be.code_block=function(e,t,n,r,o){const s=e[t];return"<pre"+o.renderAttrs(s)+"><code>"+ve(e[t].content)+"</code></pre>\n"},Be.fence=function(e,t,n,r,o){const s=e[t],i=s.info?ye(s.info).trim():"";let a,l="",c="";if(i){const e=i.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(a=n.highlight&&n.highlight(s.content,l,c)||ve(s.content),0===a.indexOf("<pre"))return a+"\n";if(i){const e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${a}</code></pre>\n`}return`<pre><code${o.renderAttrs(s)}>${a}</code></pre>\n`},Be.image=function(e,t,n,r,o){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(e,t,n)},Be.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Be.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Be.text=function(e,t){return ve(e[t].content)},Be.html_block=function(e,t){return e[t].content},Be.html_inline=function(e,t){return e[t].content},qe.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+ve(e.attrs[t][0])+'="'+ve(e.attrs[t][1])+'"';return r},qe.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let s=!1;if(r.block&&(s=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(s=!1)}return o+=s?">\n":">",o},qe.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let s=0,i=e.length;s<i;s++){const i=e[s].type;void 0!==o[i]?r+=o[i](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r},qe.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,s=e.length;o<s;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},qe.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let s=0,i=e.length;s<i;s++){const i=e[s].type;"inline"===i?r+=this.renderInline(e[s].children,t,n):void 0!==o[i]?r+=o[i](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};const Re=qe;function $e(){this.__rules__=[],this.__cache__=null}$e.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},$e.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},$e.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},$e.prototype.before=function(e,t,n,r){const o=this.__find__(e),s=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},$e.prototype.after=function(e,t,n,r){const o=this.__find__(e),s=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},$e.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},$e.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},$e.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},$e.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},$e.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const He=$e;function Ne(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Ne.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Ne.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ne.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Ne.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Ne.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const Pe=Ne;function Ue(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Ue.prototype.Token=Pe;const Oe=Ue,je=/\r\n?|\n/g,Ve=/\0/g;function Ze(e){return/^<a[>\s]/i.test(e)}function Qe(e){return/^<\/a\s*>/i.test(e)}const Ge=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ke=/\((c|tm|r)\)/i,We=/\((c|tm|r)\)/gi,Ye={c:"©",r:"®",tm:"™"};function Je(e,t){return Ye[t.toLowerCase()]}function Xe(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(We,Je)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function et(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Ge.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const tt=/['"]/,nt=/['"]/g;function rt(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function ot(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const s=e[o],i=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,"text"!==s.type)continue;let a=s.content,l=0,c=a.length;e:for(;l<c;){nt.lastIndex=l;const u=nt.exec(a);if(!u)break;let d=!0,h=!0;l=u.index+1;const p="'"===u[0];let g=32;if(u.index-1>=0)g=a.charCodeAt(u.index-1);else for(n=o-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let f=32;if(l<c)f=a.charCodeAt(l);else for(n=o+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){f=e[n].content.charCodeAt(0);break}const m=Se(g)||Fe(String.fromCharCode(g)),b=Se(f)||Fe(String.fromCharCode(f)),y=Ae(g),k=Ae(f);if(k?d=!1:b&&(y||m||(d=!1)),y?h=!1:m&&(k||b||(h=!1)),34===f&&'"'===u[0]&&g>=48&&g<=57&&(h=d=!1),d&&h&&(d=m,h=b),d||h){if(h)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<i)break;if(d.single===p&&r[n].level===i){let i,h;d=r[n],p?(i=t.md.options.quotes[2],h=t.md.options.quotes[3]):(i=t.md.options.quotes[0],h=t.md.options.quotes[1]),s.content=rt(s.content,u.index,h),e[d.token].content=rt(e[d.token].content,d.pos,i),l+=h.length-1,d.token===o&&(l+=i.length-1),a=s.content,c=a.length,r.length=n;continue e}}d?r.push({token:o,pos:u.index,single:p,level:i}):h&&p&&(s.content=rt(s.content,u.index,"’"))}else p&&(s.content=rt(s.content,u.index,"’"))}}}const st=[["normalize",function(e){let t;t=e.src.replace(je,"\n"),t=t.replace(Ve,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let s=r.length-1;s>=0;s--){const i=r[s];if("link_close"!==i.type){if("html_inline"===i.type&&(Ze(i.content)&&o>0&&o--,Qe(i.content)&&o++),!(o>0)&&"text"===i.type&&e.md.linkify.test(i.content)){const o=i.content;let a=e.md.linkify.match(o);const l=[];let c=i.level,u=0;a.length>0&&0===a[0].index&&s>0&&"text_special"===r[s-1].type&&(a=a.slice(1));for(let t=0;t<a.length;t++){const n=a[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let s=a[t].text;s=a[t].schema?"mailto:"!==a[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");const i=a[t].index;if(i>u){const t=new e.Token("text","",0);t.content=o.slice(u,i),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const h=new e.Token("text","",0);h.content=s,h.level=c,l.push(h);const p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",l.push(p),u=a[t].lastIndex}if(u<o.length){const t=new e.Token("text","",0);t.content=o.slice(u),t.level=c,l.push(t)}t[n].children=r=de(r,s,l)}}else for(s--;r[s].level!==i.level&&"link_open"!==r[s].type;)s--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Ke.test(e.tokens[t].content)&&Xe(e.tokens[t].children),Ge.test(e.tokens[t].content)&&et(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&tt.test(e.tokens[t].content)&&ot(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,s=o.length;for(t=0;t<s;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<s;t++)"text"===o[t].type&&t+1<s&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function it(){this.ruler=new He;for(let e=0;e<st.length;e++)this.ruler.push(st[e][0],st[e][1])}it.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},it.prototype.State=Oe;const at=it;function lt(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,s=o.length,i=!1;t<s;t++){const a=o.charCodeAt(t);if(!i){if(De(a)){n++,9===a?r+=4-r%4:r++;continue}i=!0}10!==a&&t!==s-1||(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}lt.prototype.push=function(e,t,n){const r=new Pe(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},lt.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},lt.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},lt.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&De(this.src.charCodeAt(e));e++);return e},lt.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!De(this.src.charCodeAt(--e)))return e+1;return e},lt.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},lt.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},lt.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let s=0,i=e;i<t;i++,s++){let e=0;const a=this.bMarks[i];let l,c=a;for(l=i+1<t||r?this.eMarks[i]+1:this.eMarks[i];c<l&&e<n;){const t=this.src.charCodeAt(c);if(De(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(c-a<this.tShift[i]))break;e++}c++}o[s]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},lt.prototype.Token=Pe;const ct=lt;function ut(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function dt(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),s=!1,i=0,a="";for(;r<n;)124===o&&(s?(a+=e.substring(i,r-1),i=r):(t.push(a+e.substring(i,r)),a="",i=r+1)),s=92===o,r++,o=e.charCodeAt(r);return t.push(a+e.substring(i)),t}function ht(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);return 42!==o&&45!==o&&43!==o||r<n&&!De(e.src.charCodeAt(r))?-1:r}function pt(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=r)return-1;if(s=e.src.charCodeAt(o++),!(s>=48&&s<=57)){if(41===s||46===s)break;return-1}if(o-n>=10)return-1}return o<r&&(s=e.src.charCodeAt(o),!De(s))?-1:o}const gt="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",ft="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",mt=new RegExp("^(?:"+gt+"|"+ft+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),bt=new RegExp("^(?:"+gt+"|"+ft+")"),yt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(bt.source+"\\s*$"),/^$/,!1]],kt=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const i=e.src.charCodeAt(s++);if(124!==i&&45!==i&&58!==i)return!1;if(s>=e.eMarks[o])return!1;const a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a&&!De(a))return!1;if(45===i&&De(a))return!1;for(;s<e.eMarks[o];){const t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!De(t))return!1;s++}let l=ut(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=ut(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=dt(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),g=[t,0];e.push("table_open","table",1).map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let f;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let m=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,s=p.length;t<s;t++)if(p[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=ut(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=dt(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),m+=d-c.length,m>65536)break;o===t+2&&(e.push("tbody_open","tbody",1).map=f=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=h,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>s)return!1;const i=e.src.charCodeAt(o);if(126!==i&&96!==i)return!1;let a=o;o=e.skipChars(o,i);let l=o-a;if(l<3)return!1;const c=e.src.slice(a,o),u=e.src.slice(o,s);if(96===i&&u.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let d=t,h=!1;for(;!(d++,d>=n||(o=a=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o<s&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===i&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,i),o-a<l||(o=e.skipSpaces(o),o<s)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const a=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p,g=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],o>=s)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[p]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let i=r;for(a.push(e.bMarks[p]),e.bMarks[p]=o;o<s;){const t=e.src.charCodeAt(o);if(!De(t))break;9===t?i+=4-(i+e.bsCount[p]+(n?1:0))%4:i++,o++}g=o>=s,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=i-r,u.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(g)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,p,n,!0)){r=!0;break}if(r){e.lineMax=p,0!==e.blkIndent&&(a.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}a.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const f=e.blkIndent;e.blkIndent=0;const m=e.push("blockquote_open","blockquote",1);m.markup=">";const b=[t,0];m.map=b,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=h,b[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=a[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=f,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(s++);if(42!==i&&45!==i&&95!==i)return!1;let a=1;for(;s<o;){const t=e.src.charCodeAt(s++);if(t!==i&&!De(t))return!1;t===i&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(i)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,s,i,a,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,h,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(h=pt(e,l))>=0){if(u=!0,i=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(i,h-1)),p&&1!==d)return!1}else{if(!((h=ht(e,l))>=0))return!1;u=!1}if(p&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(r)return!0;const g=e.src.charCodeAt(h-1),f=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),1!==d&&(a.attrs=[["start",d]])):a=e.push("bullet_list_open","ul",1);const m=[l,0];a.map=m,a.markup=String.fromCharCode(g);let b=!1;const y=e.md.block.ruler.getRules("list"),k=e.parentType;for(e.parentType="list";l<n;){s=h,o=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let r=t;for(;s<o;){const t=e.src.charCodeAt(s);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}s++}const d=s;let p;p=d>=o?1:r-t,p>4&&(p=1);const f=t+p;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(g);const m=[l,0];a.map=m,u&&(a.info=e.src.slice(i,h-1));const k=e.tight,x=e.tShift[l],w=e.sCount[l],_=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!b||(c=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[l]=x,e.sCount[l]=w,e.tight=k,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(g),l=e.line,m[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let v=!1;for(let t=0,r=y.length;t<r;t++)if(y[t](e,l,n,!0)){v=!0;break}if(v)break;if(u){if(h=pt(e,l),h<0)break;i=e.bMarks[l]+e.tShift[l]}else if(h=ht(e,l),h<0)break;if(g!==e.src.charCodeAt(h-1))break}return a=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(g),m[1]=l,e.line=l,e.parentType=k,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,f),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function a(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let s=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,t,n,!0)){s=!0;break}if(e.parentType=o,s)return null}const o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(o,s+1)}let l=e.src.slice(o,s+1);s=l.length;let c=-1;for(o=1;o<s;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}else if(92===e&&(o++,o<s&&10===l.charCodeAt(o))){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<s;o++){const e=l.charCodeAt(o);if(10===e){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}else if(!De(e))break}const u=e.md.helpers.parseLinkDestination(l,o,s);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const h=o,p=i,g=o;for(;o<s;o++){const e=l.charCodeAt(o);if(10===e){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}else if(!De(e))break}let f,m=e.md.helpers.parseLinkTitle(l,o,s);for(;m.can_continue;){const t=a(i);if(null===t)break;l+=t,o=s,s=l.length,i++,m=e.md.helpers.parseLinkTitle(l,o,s,m)}for(o<s&&g!==o&&m.ok?(f=m.str,o=m.pos):(f="",o=h,i=p);o<s&&De(l.charCodeAt(o));)o++;if(o<s&&10!==l.charCodeAt(o)&&f)for(f="",o=h,i=p;o<s&&De(l.charCodeAt(o));)o++;if(o<s&&10!==l.charCodeAt(o))return!1;const b=Le(l.slice(1,c));return!!b&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:f,href:d}),e.line=i),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let i=e.src.slice(o,s),a=0;for(;a<yt.length&&!yt[a][0].test(i);a++);if(a===yt.length)return!1;if(r)return yt[a][2];let l=t+1;if(!yt[a][1].test(i))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],i=e.src.slice(o,s),yt[a][1].test(i)){0!==i.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(35!==i||o>=s)return!1;let a=1;for(i=e.src.charCodeAt(++o);35===i&&o<s&&a<=6;)a++,i=e.src.charCodeAt(++o);if(a>6||o<s&&!De(i))return!1;if(r)return!0;s=e.skipSpacesBack(s,o);const l=e.skipCharsBack(s,35,o);l>o&&De(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=e.src.slice(o,s).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s,i=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a];const n=e.eMarks[a];if(t<n&&(s=e.src.charCodeAt(t),(45===s||61===s)&&(t=e.skipChars(t,s),t=e.skipSpaces(t),t>=n))){i=61===s?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let o=0,s=r.length;o<s;o++)if(r[o](e,a,n,!0)){t=!0;break}if(t)break}if(!i)return!1;const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(i),-1).markup=String.fromCharCode(s),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,s,n,!0)){t=!0;break}if(t)break}const i=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];const a=e.push("inline","",0);return a.content=i,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function xt(){this.ruler=new He;for(let e=0;e<kt.length;e++)this.ruler.push(kt[e][0],kt[e][1],{alt:(kt[e][2]||[]).slice()})}xt.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,s=e.md.options.maxNesting;let i=t,a=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n))&&!(e.sCount[i]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let l=!1;for(let s=0;s<o;s++)if(l=r[s](e,i,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),i=e.line,i<n&&e.isEmpty(i)&&(a=!0,i++,e.line=i)}},xt.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},xt.prototype.State=ct;const wt=xt;function _t(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}_t.prototype.pushPending=function(){const e=new Pe("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},_t.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Pe(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},_t.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===r;)s++;const i=s-e,a=s<n?this.src.charCodeAt(s):32,l=Se(o)||Fe(String.fromCharCode(o)),c=Se(a)||Fe(String.fromCharCode(a)),u=Ae(o),d=Ae(a),h=!d&&(!c||u||l),p=!u&&(!l||d||c);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||c),length:i}},_t.prototype.Token=Pe;const vt=_t;function Ct(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const Et=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,Dt=[];for(let e=0;e<256;e++)Dt.push(0);function At(e,t){let n;const r=[],o=t.length;for(let s=0;s<o;s++){const o=t[s];if(126!==o.marker)continue;if(-1===o.end)continue;const i=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&r.push(i.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){Dt[e.charCodeAt(0)]=1});const Ft={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const i=String.fromCharCode(r);if(s<2)return!1;let a;s%2&&(a=e.push("text","",0),a.content=i,s--);for(let t=0;t<s;t+=2)a=e.push("text","",0),a.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;At(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&At(e,t[r].delimiters)}};function St(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,i=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?i+i:i,a.content="";const l=e.tokens[o.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?i+i:i,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const Lt={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;St(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&St(e,t[r].delimiters)}},It=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Tt=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,Mt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,zt=/^&([a-z][a-z0-9]{1,31});/i;function Bt(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const s=[];for(let i=0;i<n;i++){const n=e[i];if(s.push(0),e[r].marker===n.marker&&o===n.token-1||(r=i),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const a=t[n.marker][(n.open?3:0)+n.length%3];let l=r-s[r]-1,c=l;for(;l>a;l-=s[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?s[l-1]+1:0;s[i]=i-l+r,s[l]=r,n.open=!1,t.end=i,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const qt=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Ct(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Et);if(!r)return!1;const o=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!s)return!1;let i=s.url;if(i.length<=o.length)return!1;i=i.replace(/\*+$/,"");const a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&De(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),De(o));)n++;return e.pos=n,!0}let s=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(s+=e.src[n+1],n++)}const i="\\"+s;if(!t){const t=e.push("text_special","",0);o<256&&0!==Dt[o]?t.content=s:t.content=i,t.markup=i,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const s=e.src.slice(r,n),i=s.length;if(e.backticksScanned&&(e.backticks[i]||0)<=r)return t||(e.pending+=s),e.pos+=i,!0;let a,l=n;for(;-1!==(a=e.src.indexOf("`",l));){for(l=a+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-a;if(r===i){if(!t){const t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=a}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=i,!0}],["strikethrough",Ft.tokenize],["emphasis",Lt.tokenize],["link",function(e,t){let n,r,o,s,i="",a="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let g=p+1;if(g<d&&40===e.src.charCodeAt(g)){for(c=!1,g++;g<d&&(n=e.src.charCodeAt(g),De(n)||10===n);g++);if(g>=d)return!1;if(l=g,o=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),o.ok){for(i=e.md.normalizeLink(o.str),e.md.validateLink(i)?g=o.pos:i="",l=g;g<d&&(n=e.src.charCodeAt(g),De(n)||10===n);g++);if(o=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<d&&l!==g&&o.ok)for(a=o.str,g=o.pos;g<d&&(n=e.src.charCodeAt(g),De(n)||10===n);g++);}(g>=d||41!==e.src.charCodeAt(g))&&(c=!0),g++}if(c){if(void 0===e.env.references)return!1;if(g<d&&91===e.src.charCodeAt(g)?(l=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?r=e.src.slice(l,g++):g=p+1):g=p+1,r||(r=e.src.slice(h,p)),s=e.env.references[Le(r)],!s)return e.pos=u,!1;i=s.href,a=s.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",i]];e.push("link_open","a",1).attrs=t,a&&t.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=d,!0}],["image",function(e,t){let n,r,o,s,i,a,l,c,u="";const d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(s=g+1,s<h&&40===e.src.charCodeAt(s)){for(s++;s<h&&(n=e.src.charCodeAt(s),De(n)||10===n);s++);if(s>=h)return!1;for(c=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?s=a.pos:u=""),c=s;s<h&&(n=e.src.charCodeAt(s),De(n)||10===n);s++);if(a=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<h&&c!==s&&a.ok)for(l=a.str,s=a.pos;s<h&&(n=e.src.charCodeAt(s),De(n)||10===n);s++);else l="";if(s>=h||41!==e.src.charCodeAt(s))return e.pos=d,!1;s++}else{if(void 0===e.env.references)return!1;if(s<h&&91===e.src.charCodeAt(s)?(c=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?o=e.src.slice(c,s++):s=g+1):s=g+1,o||(o=e.src.slice(p,g)),i=e.env.references[Le(o)],!i)return e.pos=d,!1;u=i.href,l=i.title}if(!t){r=e.src.slice(p,g);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=s,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const s=e.src.slice(r+1,n);if(Tt.test(s)){const n=e.md.normalizeLink(s);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=s.length+2,!0}if(It.test(s)){const n=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=s.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const s=e.src.slice(r).match(mt);if(!s)return!1;if(!t){const t=e.push("html_inline","",0);t.content=s[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=s[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Mt);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=he(t)?pe(t):pe(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(zt);if(r){const n=te(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],Rt=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bt(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Bt(t[e].delimiters)}],["strikethrough",Ft.postProcess],["emphasis",Lt.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<s&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function $t(){this.ruler=new He;for(let e=0;e<qt.length;e++)this.ruler.push(qt[e][0],qt[e][1]);this.ruler2=new He;for(let e=0;e<Rt.length;e++)this.ruler2.push(Rt[e][0],Rt[e][1])}$t.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let i=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,i=n[o](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,s[t]=e.pos},$t.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let i=!1;if(e.level<o)for(let r=0;r<n;r++)if(i=t[r](e,!1),i){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(i){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},$t.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const s=this.ruler2.getRules(""),i=s.length;for(let e=0;e<i;e++)s[e](o)},$t.prototype.State=vt;const Ht=$t;function Nt(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Pt(e){return Object.prototype.toString.call(e)}function Ut(e){return"[object Function]"===Pt(e)}function Ot(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const jt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},Vt={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Zt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Qt(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=z.source,t.src_Cc=B.source,t.src_Z=R.source,t.src_P=T.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function s(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Pt(n))return"[object RegExp]"!==Pt(n.validate)?Ut(n.validate)?r.validate=n.validate:s(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Ut(n.normalize)?r.normalize=n.normalize:n.normalize?s(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Pt(e)}(n)?s(t,n):o.push(t)}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const i=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Ot).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Gt(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function Kt(e,t){const n=new Gt(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Wt(e,t){if(!(this instanceof Wt))return new Wt(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||jt.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Nt({},jt,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Nt({},Vt,e),this.__compiled__={},this.__tlds__=Zt,this.__tlds_replaced__=!1,this.re={},Qt(this)}Wt.prototype.add=function(e,t){return this.__schemas__[e]=t,Qt(this),this},Wt.prototype.set=function(e){return this.__opts__=Nt(this.__opts__,e),this},Wt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,s,i,a,l,c;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(s=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=i))),this.__index__>=0},Wt.prototype.pretest=function(e){return this.re.pretest.test(e)},Wt.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Wt.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Kt(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Kt(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Wt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Kt(this,0)):null},Wt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Qt(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Qt(this),this)},Wt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Wt.prototype.onCompile=function(){};const Yt=Wt,Jt=2147483647,Xt=36,en=/^xn--/,tn=/[^\0-\x7F]/,nn=/[\x2E\u3002\uFF0E\uFF61]/g,rn={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},on=Math.floor,sn=String.fromCharCode;function an(e){throw new RangeError(rn[e])}function ln(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(nn,".")).split("."),t).join(".");return r+o}function cn(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const un=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Xt},dn=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},hn=function(e,t,n){let r=0;for(e=n?on(e/700):e>>1,e+=on(e/t);e>455;r+=Xt)e=on(e/35);return on(r+36*e/(e+38))},pn=function(e){const t=[],n=e.length;let r=0,o=128,s=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)e.charCodeAt(n)>=128&&an("not-basic"),t.push(e.charCodeAt(n));for(let a=i>0?i+1:0;a<n;){const i=r;for(let t=1,o=Xt;;o+=Xt){a>=n&&an("invalid-input");const i=un(e.charCodeAt(a++));i>=Xt&&an("invalid-input"),i>on((Jt-r)/t)&&an("overflow"),r+=i*t;const l=o<=s?1:o>=s+26?26:o-s;if(i<l)break;const c=Xt-l;t>on(Jt/c)&&an("overflow"),t*=c}const l=t.length+1;s=hn(r-i,l,0==i),on(r/l)>Jt-o&&an("overflow"),o+=on(r/l),r%=l,t.splice(r++,0,o)}return String.fromCodePoint(...t)},gn=function(e){const t=[],n=(e=cn(e)).length;let r=128,o=0,s=72;for(const n of e)n<128&&t.push(sn(n));const i=t.length;let a=i;for(i&&t.push("-");a<n;){let n=Jt;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>on((Jt-o)/l)&&an("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>Jt&&an("overflow"),n===r){let e=o;for(let n=Xt;;n+=Xt){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const o=e-r,i=Xt-r;t.push(sn(dn(r+o%i,0))),e=on(o/i)}t.push(sn(dn(e,0))),s=hn(o,l,a===i),o=0,++a}++o,++r}return t.join("")},fn=function(e){return ln(e,function(e){return tn.test(e)?"xn--"+gn(e):e})},mn=function(e){return ln(e,function(e){return en.test(e)?pn(e.slice(4).toLowerCase()):e})},bn={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},yn=/^(vbscript|javascript|file|data):/,kn=/^data:image\/(gif|png|jpeg|webp);/;function xn(e){const t=e.trim().toLowerCase();return!yn.test(t)||kn.test(t)}const wn=["http:","https:","mailto:"];function _n(e){const t=I(e,!0);if(t.hostname&&(!t.protocol||wn.indexOf(t.protocol)>=0))try{t.hostname=fn(t.hostname)}catch(e){}return b(y(t))}function vn(e){const t=I(e,!0);if(t.hostname&&(!t.protocol||wn.indexOf(t.protocol)>=0))try{t.hostname=mn(t.hostname)}catch(e){}return g(y(t),g.defaultChars+"%")}function Cn(e,t){if(!(this instanceof Cn))return new Cn(e,t);t||ae(e)||(t=e||{},e="default"),this.inline=new Ht,this.block=new wt,this.core=new at,this.renderer=new Re,this.linkify=new Yt,this.validateLink=xn,this.normalizeLink=_n,this.normalizeLinkText=vn,this.utils=r,this.helpers=ue({},o),this.options={},this.configure(e),t&&this.set(t)}Cn.prototype.set=function(e){return ue(this.options,e),this},Cn.prototype.configure=function(e){const t=this;if(ae(e)){const t=e;if(!(e=bn[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Cn.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Cn.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Cn.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Cn.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Cn.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Cn.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Cn.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const En=new Cn({html:!0,linkify:!0,typographer:!0,breaks:!0}),Dn=En.renderer.rules.link_open||function(e,t,n,r,o){return o.renderToken(e,t,n)};En.renderer.rules.link_open=function(e,t,n,r,o){const s=e[t].attrIndex("target");s<0?e[t].attrPush(["target","_blank"]):e[t].attrs[s][1]="_blank";const i=e[t].attrIndex("rel");return i<0?e[t].attrPush(["rel","noopener noreferrer"]):e[t].attrs[i][1]="noopener noreferrer",Dn(e,t,n,r,o)};class An{constructor(e){this.widget=e}async sendMessage(){const e=this.widget.shadowRoot.getElementById("routeye-chat-input");let t=e.value.trim();if(!t||this.widget.isLoading)return;const n=this.widget.selectedLanguage||"English";this.addMessage("user",t),e.value="",this.widget.setLoading(!0),this.showTypingIndicator();try{let e=t;"English"!==n&&(e=`Respond in ${n.toLowerCase()} target language only:${t}`);const r=await this.widget.api.sendQuery(e);this.hideTypingIndicator();const o=r.response||r.answer||r.reply||"I received your message.",s=this.addMessage("bot",o);this.storeBotMessageQuery(s,t,e),this.widget.autoReadEnabled&&this.widget.speechHandler.speakText(o)}catch(e){this.hideTypingIndicator(),this.widget.addErrorMessage(e.message)}finally{this.widget.setLoading(!1)}}addMessage(e,t,n=!1,r=null,o=null,s=null){const i=this.widget.shadowRoot.getElementById("routeye-chat-messages"),a=document.createElement("div");a.className=`routeye-message ${e}`;const l=o?new Date(o):new Date,c=l.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),u=r||`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;if(n||(this.widget.messages.push({id:u,type:e,text:t,timestamp:l.toISOString(),feedback:s}),this.widget.saveMessagesToStorage(),console.log("💾 Message saved:",{type:e,text:t.substring(0,50)})),"user"===e)a.setAttribute("data-message-id",u),a.innerHTML=`\n <div class="routeye-message-meta user-meta">\n <img src="https://cdn-icons-png.flaticon.com/512/847/847969.png" \n alt="User" class="routeye-avatar" width="24" height="24"/>\n <span class="routeye-name">You</span>\n <span class="routeye-time">${c}</span>\n </div>\n <div class="routeye-message-bubble user-bubble">${En.render(t)}</div>\n `;else{a.setAttribute("data-message-id",u);const e=this.widget.config.logoUrl?`https://kalrav-central-system-api.kalrav.ai${this.widget.config.logoUrl}`:"https://kalrav.ai/wp-content/uploads/2025/10/logo.png",n=this.widget.config.agentName||"Kalrav AI";a.innerHTML=`\n <div class="routeye-message-meta bot-meta">\n <img src="${e}" \n alt="${n}" class="routeye-avatar" width="24" height="24"/>\n <span class="routeye-name">${n}</span>\n <span class="routeye-time">${c}</span>\n </div>\n <div class="routeye-message-bubble bot-bubble">\n ${En.render(t)}\n <div class="routeye-bot-actions">\n <div class="routeye-reactions">\n <button class="routeye-like-btn" data-message-id="${u}" title="Like">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M14 9V5a3 3 0 0 0-3-3L7 11v11h9.28a2 2 0 0 0 2-1.7l1.38-9.3a2 2 0 0 0-2-2z"></path>\n </svg>\n </button>\n\n <button class="routeye-dislike-btn" data-message-id="${u}" title="Dislike">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M10 15v4a3 3 0 0 1 3 3l4-9V2H6.72a2 2 0 0 0-2 1.7L3.34 13a2 2 0 0 0 2 2.3z"></path>\n </svg>\n </button>\n </div>\n\n <div class="routeye-speaker">\n <button class="routeye-speak-btn" title="Speak">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="#673de6" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14"></path>\n </svg>\n </button>\n </div>\n </div>\n </div>\n `}if(i.appendChild(a),this.scrollToBottom(),"bot"===e){const e=a.querySelector(".routeye-speak-btn"),n=a.querySelector(".routeye-like-btn"),r=a.querySelector(".routeye-dislike-btn");"liked"===s?n.classList.add("active"):"disliked"===s&&r.classList.add("active"),e.addEventListener("click",()=>{window.speechSynthesis.speaking?this.widget.speechHandler.stopSpeaking():this.widget.speechHandler.speakText(t,e)}),n.addEventListener("click",e=>this.handleLike(e.target.closest("button"))),r.addEventListener("click",e=>this.handleDislike(e.target.closest("button")))}return u}storeBotMessageQuery(e,t,n){this.widget.messageQueries||(this.widget.messageQueries={}),this.widget.messageQueries[e]={originalQuery:t,finalQuery:n},this.widget.saveQueriesToStorage()}getBotMessageQuery(e){return this.widget.messageQueries?this.widget.messageQueries[e]:null}insertInlineFeedback(e,t){const n=e.querySelector(".routeye-message-bubble"),r=document.createElement("div");return r.className="routeye-inline-feedback",r.innerHTML=t,n.appendChild(r),this.scrollToBottom(),r}handleLike(e){const t=e.getAttribute("data-message-id"),n=this.widget.shadowRoot.querySelector(`[data-message-id="${t}"]`),r=n.querySelector(".routeye-like-btn"),o=n.querySelector(".routeye-dislike-btn");if(r.classList.contains("active"))return void r.classList.remove("active");r.classList.add("active"),o.classList.remove("active");const s=n.querySelector(".routeye-inline-feedback");s&&s.remove(),this.insertInlineFeedback(n,`<div class="routeye-feedback-thanks">${this.widget.config.feedbackLikeMessage||"Thanks for your feedback!"}</div>`),this.updateMessageFeedback(t,"liked")}handleDislike(e){const t=e.getAttribute("data-message-id"),n=this.widget.shadowRoot.querySelector(`[data-message-id="${t}"]`),r=n.querySelector(".routeye-like-btn"),o=n.querySelector(".routeye-dislike-btn");if(o.classList.contains("active")){o.classList.remove("active");const e=n.querySelector(".routeye-inline-feedback");return void(e&&e.remove())}o.classList.add("active"),r.classList.remove("active");const s=n.querySelector(".routeye-inline-feedback");s&&s.remove(),this.showInlineFeedbackConfirm(n,t),this.updateMessageFeedback(t,"disliked")}updateMessageFeedback(e,t){const n=this.widget.messages.find(t=>t.id===e);n&&(n.feedback=t,this.widget.saveMessagesToStorage())}showInlineFeedbackConfirm(e,t){const n=this.insertInlineFeedback(e,`\n <div class="routeye-feedback-card">\n <div class="routeye-feedback-card">\n <p class="routeye-feedback-title">\n ${this.widget.config.feedbackDislikePrompt||"I'm sorry to know that you are not happy with my response. Would you like to leave feedback so that I can improve it?"}\n </p>\n <div class="routeye-feedback-actions">\n <button class="routeye-feedback-btn fb-yes">${this.widget.config.feedbackYesButton||"Yes"}</button>\n <button class="routeye-feedback-btn fb-no">${this.widget.config.feedbackNoButton||"No"}</button>\n </div>\n </div>\n `);n.querySelector(".fb-yes").addEventListener("click",()=>{n.remove(),this.showInlineFeedbackOptions(e,t)}),n.querySelector(".fb-no").addEventListener("click",()=>{n.remove()})}showInlineFeedbackOptions(e,t){const n=this.widget.config.feedbackQuestions||[];let r="";if(n.length>0){r=n.map((e,t)=>`<button class="routeye-feedback-option" data-f="custom-${t}" data-text="${this.escapeHtml(e)}">${this.escapeHtml(e)}</button>`).join("\n ");const e=this.widget.config.otherFeedbackQuestion||"Other";r+=`\n <button class="routeye-feedback-option" data-f="other" data-text="${this.escapeHtml(e)}">${this.escapeHtml(e)}</button>`}else r='\n <button class="routeye-feedback-option" data-f="insufficient">Insufficient content</button>\n <button class="routeye-feedback-option" data-f="too-long">Too long</button>\n <button class="routeye-feedback-option" data-f="too-short">Too short</button>\n <button class="routeye-feedback-option" data-f="misleading">Misleading</button>\n <button class="routeye-feedback-option" data-f="other">Other</button>\n ';const o=this.insertInlineFeedback(e,`\n <div class="routeye-feedback-card">\n <p class="routeye-feedback-title1">\n ${this.widget.config.feedbackModalDescription||"Your feedback helps me get smarter — what could I improve?"}\n <span class="routeye-feedback-close" title="Close">✖</span>\n </p>\n <div class="routeye-feedback-options">\n ${r}\n </div>\n </div>\n `);o.querySelector(".routeye-feedback-close").addEventListener("click",()=>{o.remove()}),o.querySelectorAll(".routeye-feedback-option").forEach(n=>{n.addEventListener("click",()=>{const r=n.getAttribute("data-f"),s=n.getAttribute("data-text")||r;o.remove(),"other"===r?this.showInlineFeedbackInput(e,t):this.submitInlineFeedback(e,t,r,s)})})}escapeHtml(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}showInlineFeedbackInput(e,t){const n=this.insertInlineFeedback(e,`\n <div class="routeye-feedback-card">\n <textarea class="routeye-feedback-textarea" placeholder="${this.widget.config.feedbackOtherPlaceholder||"Tell us how we can improve..."}" rows="3"></textarea>\n <div class="routeye-feedback-actions">\n <button class="routeye-feedback-btn fb-cancel">${this.widget.config.feedbackCancelButton||"Cancel"}</button>\n <button class="routeye-feedback-btn fb-submit">${this.widget.config.feedbackSubmitButton||"Submit"}</button>\n </div>\n </div>\n `);n.querySelector(".fb-cancel").addEventListener("click",()=>{n.remove()}),n.querySelector(".fb-submit").addEventListener("click",()=>{const r=n.querySelector("textarea").value.trim();r&&(n.remove(),this.submitInlineFeedback(e,t,"other",r))})}async submitInlineFeedback(e,t,n,r=""){console.log("FEEDBACK:",{messageId:t,type:n,text:r});const o=this.insertInlineFeedback(e,`<div class="routeye-feedback-notliked">${this.widget.config.feedbackSuccessMessage||"Thank you for your feedback! Hold your breath I'm improving my responses."}</div>`),s=this.getBotMessageQuery(t);if(!s)return void console.warn("No query data found for message:",t);const i=r||n,a=`${s.finalQuery}\n\n[User Feedback: ${i}. Please provide an improved response.]`;try{this.widget.setLoading(!0),this.showTypingIndicator();const n=await this.widget.api.sendQuery(a);this.hideTypingIndicator();const r=n.response||n.answer||n.reply||"I apologize, I couldn't generate an improved response.",i=e.querySelector(".routeye-message-bubble");if(i){o.remove();const e=i.querySelector(".routeye-message-bubble");if(e){const t=e.querySelector("div:not(.routeye-bot-actions)");t&&(t.innerHTML=En.render(r))}else{const e=i.querySelector(".routeye-bot-actions"),t=e?e.outerHTML:"";i.innerHTML=En.render(r)+t}const n=this.widget.messages.findIndex(e=>e.id===t);-1!==n&&(this.widget.messages[n].text=r,this.widget.saveMessagesToStorage()),this.storeBotMessageQuery(t,s.originalQuery,s.finalQuery),this.scrollToBottom()}}catch(e){console.error("Regeneration error:",e),this.hideTypingIndicator(),o.innerHTML='<div class="routeye-feedback-notliked" style="color: #e11d48;">Sorry, I couldn\'t improve the response. Please try again.</div>'}finally{this.widget.setLoading(!1)}}addSystemMessage(e){const t=this.widget.shadowRoot.getElementById("routeye-chat-messages"),n=`sys-msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,r=document.createElement("div");return r.id=n,r.className="routeye-system-message",r.innerHTML=`\n <div class="routeye-system-message-content">\n ${e}\n </div>\n `,t.appendChild(r),this.scrollToBottom(),n}removeMessage(e){const t=this.widget.shadowRoot.getElementById(e);return t?(console.log("✅ Removing message:",e),t.remove(),!0):(console.warn("❌ Message not found:",e),!1)}addErrorMessage(e){const t=this.widget.shadowRoot.getElementById("routeye-chat-messages"),n=document.createElement("div");n.className="routeye-error-message",n.textContent=e,t.appendChild(n),this.scrollToBottom()}showSuccessMessage(e){const t=this.widget.shadowRoot.getElementById("routeye-chat-messages"),n=document.createElement("div");n.className="routeye-success-message",n.textContent=e,t.appendChild(n),this.scrollToBottom(),setTimeout(()=>{n.remove()},3e3)}showTypingIndicator(){const e=this.widget.shadowRoot.getElementById("routeye-chat-messages"),t=document.createElement("div");t.className="routeye-message bot",t.id="routeye-typing-indicator",t.innerHTML=`\n <div class="routeye-typing-indicator">\n <span>${this.widget.config.thinkingMessage||"Thinking..."}</span>\n </div>\n `,e.appendChild(t),this.scrollToBottom()}hideTypingIndicator(){const e=this.widget.shadowRoot.getElementById("routeye-typing-indicator");e&&e.remove()}scrollToBottom(){const e=this.widget.shadowRoot.getElementById("routeye-chat-messages");e.scrollTop=e.scrollHeight}}class Fn{constructor(e){this.widget=e}clearChat(){const e=this.widget.shadowRoot.getElementById("routeye-chat-messages");e&&(e.innerHTML=this.widget.getWelcomeMessageHTML(),this.widget.renderQuickReplies(e),this.widget.messages=[])}downloadChat(){const e=this.widget.shadowRoot.querySelectorAll(".routeye-message");let t="Chat History\n\n";e.forEach(e=>{const n=e.classList.contains("bot"),r=e.querySelector(".routeye-message-bubble")?.textContent||"";t+=`${n?"Bot":"You"}: ${r}\n\n`});const n=new Blob([t],{type:"text/plain"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`chat-history-${(new Date).toISOString().split("T")[0]}.txt`,o.click(),URL.revokeObjectURL(r)}}class Sn{static async fetchAndMergeConfig(e,t){try{console.log("📡 Fetching widget configuration for agent:",e);const n=await this.fetchFromAPI(e);return console.log("✅ Configuration fetched successfully:",n),console.log("🔍 Disclaimer from API:",{show_disclaimer:n?.show_disclaimer,disclaimer_text:n?.disclaimer_text}),this.mergeWithDefaults(n,t)}catch(e){return console.warn("⚠️ Failed to fetch config from API, using defaults:",e.message),this.mergeWithDefaults(null,t)}}static async fetchFromAPI(e){const t=`https://kalrav-central-system-api.kalrav.ai/api/agent-ui/${e}`,n=await fetch(t);if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(!r.success||!r.data||!r.data.settings)throw new Error("Invalid API response structure");const o=r.data.settings;return o.settings||o}static mergeWithDefaults(e,t){const n=this.getDefaultConfig();if(e&&(e.agent_name||e.layout_color)){const r=e;return{agentId:t.agentId,apiKey:t.apiKey,agentName:r.agent_name,layoutColor:r.layout_color||t.primaryColor||n.layoutColor,userInputColor:r.user_input_color,botResponseColor:r.bot_response_color,iconColor:r.icon_color,fontColor:r.font_color,logoUrl:r.logo_url,logoId:r.logo_id,defaultQuestions:r.default_questions,placeholderText:r.placeholder_text,botLauncherTitle:r.bot_launcher_title,headerSubheading:r.header_subheading,activeStatusText:r.active_status_text,welcomeHeadline:r.welcome_headline,welcomeIntroText:r.welcome_intro_text,subIntroText:r.sub_intro_text,welcomeMessage:r.welcome_message,greetingBgColor:r.greeting_bg_color,clearChatTitle:r.clear_chat_title,clearChatDescription:r.clear_chat_description,clearChatConfirmButton:r.clear_chat_confirm_button,clearChatCancelButton:r.clear_chat_cancel_button,feedbackModalHeading:r.feedback_modal_heading,feedbackModalDescription:r.feedback_modal_description,feedbackYesButton:r.feedback_yes_button,feedbackNoButton:r.feedback_no_button,feedbackLikeMessage:r.feedback_like_message,feedbackDislikePrompt:r.feedback_dislike_prompt,feedbackOtherPlaceholder:r.feedback_other_placeholder,feedbackCancelButton:r.feedback_cancel_button,feedbackSubmitButton:r.feedback_submit_button,feedbackSuccessMessage:r.feedback_success_message,downloadChatText:r.download_chat_text,thinkingMessage:r.thinking_message,downloadChatEnabled:r.download_chat_enabled,speechSupportEnabled:r.speech_support_enabled,audioRecorderEnabled:r.audio_recorder_enabled,fileUploadsEnabled:r.file_uploads_enabled,defaultLanguage:r.default_language,languagesAvailable:r.languages_available,feedbackQuestions:r.feedback_questions,otherFeedbackQuestion:r.other_feedback_question,showDisclaimer:r.show_disclaimer,disclaimerShowInsideChat:r.disclaimer_show_inside_chat,disclaimerShowInFooter:r.disclaimer_show_in_footer,disclaimerText:r.disclaimer_text,disclaimerUrl:r.disclaimer_url,disclaimerLinkText:r.disclaimer_link_text,footerDisclaimerText:r.footer_disclaimer_text,footerDisclaimerUrl:r.footer_disclaimer_url,footerDisclaimerLinkText:r.footer_disclaimer_link_text,fontStyle:r.font_style,primaryColor:r.layout_color||t.primaryColor||n.layoutColor}}return{agentId:t.agentId,apiKey:t.apiKey,agentName:n.agentName,layoutColor:t.primaryColor||n.layoutColor,userInputColor:t.primaryColor||n.userInputColor,botResponseColor:n.botResponseColor,iconColor:t.primaryColor||n.iconColor,logoUrl:n.logoUrl,logoId:null,defaultQuestions:n.defaultQuestions,placeholderText:n.placeholderText,botLauncherTitle:n.botLauncherTitle,headerSubheading:n.headerSubheading,activeStatusText:n.activeStatusText,welcomeHeadline:n.welcomeHeadline,welcomeIntroText:n.welcomeIntroText,subIntroText:n.subIntroText,welcomeMessage:n.welcomeMessage,greetingBgColor:n.greetingBgColor,clearChatTitle:n.clearChatTitle,clearChatDescription:n.clearChatDescription,clearChatConfirmButton:n.clearChatConfirmButton,clearChatCancelButton:n.clearChatCancelButton,feedbackModalHeading:n.feedbackModalHeading,feedbackModalDescription:n.feedbackModalDescription,feedbackYesButton:n.feedbackYesButton,feedbackNoButton:n.feedbackNoButton,feedbackLikeMessage:n.feedbackLikeMessage,feedbackDislikePrompt:n.feedbackDislikePrompt,feedbackOtherPlaceholder:n.feedbackOtherPlaceholder,feedbackCancelButton:n.feedbackCancelButton,feedbackSubmitButton:n.feedbackSubmitButton,feedbackSuccessMessage:n.feedbackSuccessMessage,downloadChatText:n.downloadChatText,thinkingMessage:n.thinkingMessage,downloadChatEnabled:n.downloadChatEnabled,speechSupportEnabled:n.speechSupportEnabled,audioRecorderEnabled:n.audioRecorderEnabled,fileUploadsEnabled:n.fileUploadsEnabled,defaultLanguage:n.defaultLanguage,languagesAvailable:n.languagesAvailable,feedbackQuestions:n.feedbackQuestions,otherFeedbackQuestion:n.otherFeedbackQuestion,showDisclaimer:n.showDisclaimer,disclaimerShowInsideChat:n.disclaimerShowInsideChat,disclaimerShowInFooter:n.disclaimerShowInFooter,disclaimerText:n.disclaimerText,disclaimerUrl:n.disclaimerUrl,disclaimerLinkText:n.disclaimerLinkText,footerDisclaimerText:n.footerDisclaimerText,footerDisclaimerUrl:n.footerDisclaimerUrl,footerDisclaimerLinkText:n.footerDisclaimerLinkText,primaryColor:t.primaryColor||n.layoutColor}}static getDefaultConfig(){return{agentName:"Kalrav Support",layoutColor:"#673de6",userInputColor:"#000000",botResponseColor:"#f5f5f5",iconColor:"#673de6",fontColor:"#1f2937",logoUrl:"https://kalrav.ai/wp-content/uploads/2025/10/logo.png",defaultQuestions:["How to Download Kalrav?","How to Activate Kalrav?"],placeholderText:"Tell us how we can help...",botLauncherTitle:"Chat with us",headerSubheading:"Ask me anything!",activeStatusText:"We are online to assist you",welcomeHeadline:"👋 Hi there!",welcomeIntroText:"I'm customer support agent.",subIntroText:"",welcomeMessage:"How can I help you today?",greetingBgColor:"#f4f4f4",clearChatTitle:"Clear Chat",clearChatDescription:"Clearing chat history will remove all previous messages. You'll start a brand-new conversation after this.",clearChatConfirmButton:"Clear & Start New",clearChatCancelButton:"Cancel",feedbackModalHeading:"Was this response helpful",feedbackModalDescription:"Your feedback helps us improve our AI assistant Better",feedbackYesButton:"Yes",feedbackNoButton:"No",feedbackLikeMessage:"Thanks for your feedback!",feedbackDislikePrompt:"I'm sorry to know that you are not happy with my response. Would you like to leave feedback so that I can improve it?",feedbackOtherPlaceholder:"Tell us more...",feedbackCancelButton:"Cancel",feedbackSubmitButton:"Submit",feedbackSuccessMessage:"Thank you for your feedback! Hold your breath I'm improving my responses.",downloadChatText:"Download Chat",thinkingMessage:"Thinking...",downloadChatEnabled:!0,speechSupportEnabled:!0,audioRecorderEnabled:!0,fileUploadsEnabled:!0,defaultLanguage:"English",languagesAvailable:["English","Spanish","French","German","Hindi","Chinese","Telugu","Kannada","Malayalam","Russian","Japanese"],feedbackQuestions:[],otherFeedbackQuestion:"Other",showDisclaimer:!0,disclaimerShowInsideChat:!0,disclaimerShowInFooter:!1,disclaimerText:"The results of this AI agent is illustrative please check twice.",disclaimerUrl:"",disclaimerLinkText:"Read more",footerDisclaimerText:"",footerDisclaimerUrl:"",footerDisclaimerLinkText:"",fontStyle:"Inter, sans-serif"}}static getLogoUrl(e){return e?e.startsWith("http://")||e.startsWith("https://")?e:`https://kalrav-central-system-api.kalrav.ai${e}`:this.getDefaultConfig().logoUrl}}class Ln{constructor(e){this.widget=e,this.isSubmitting=!1}renderLeadForm(e){this.widget.config.agentName,this.widget.config.layoutColor||this.widget.config.primaryColor;const t=document.createElement("div");t.innerHTML='\n <div class="routeye-lead-form-section" id="routeye-lead-form-section">\n <div class="routeye-lead-form-header">\n <p class="routeye-lead-form-title">May I Know Your Details?</p>\n <button type="button" class="routeye-lead-form-close" id="routeye-lead-form-close">×</button>\n </div>\n <form class="routeye-lead-form" id="routeye-lead-form">\n <div class="routeye-form-group">\n <input type="text" name="name" placeholder="Your Name *" required class="routeye-form-input">\n </div>\n <div class="routeye-form-group">\n <input type="email" name="email" placeholder="Your Email *" required class="routeye-form-input">\n </div>\n <div class="routeye-form-group">\n <input type="tel" name="phone" placeholder="Phone Number (Optional)" class="routeye-form-input">\n </div>\n <div class="routeye-form-group">\n <input type="text" name="company" placeholder="Company Name" class="routeye-form-input">\n </div>\n <div class="routeye-form-group">\n <input type="text" name="interest" placeholder="Your Interest (e.g., AI Chatbot for Website)" class="routeye-form-input">\n </div>\n <div class="routeye-form-group">\n <textarea name="context" placeholder="Conversation Context or Project Details" rows="2" class="routeye-form-input"></textarea>\n </div>\n <div class="routeye-form-group">\n <textarea name="comments" placeholder="Additional Comments (Optional)" rows="2" class="routeye-form-input"></textarea>\n </div>\n <button type="submit" class="routeye-lead-submit-btn" id="routeye-lead-submit">Submit</button>\n </form>\n <div id="routeye-lead-status" class="routeye-lead-status"></div>\n </div>\n ',e.appendChild(t.firstElementChild),this.bindEvents()}bindEvents(){const e=this.widget.shadowRoot.getElementById("routeye-lead-form"),t=this.widget.shadowRoot.getElementById("routeye-lead-form-close"),n=this.widget.shadowRoot.getElementById("routeye-lead-form-section");e&&e.addEventListener("submit",e=>this.handleSubmit(e)),t&&n&&t.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),n.style.setProperty("display","none","important")})}async handleSubmit(e){if(e.preventDefault(),this.isSubmitting)return;const t=e.target,n=(this.widget.shadowRoot.getElementById("routeye-lead-status"),this.widget.shadowRoot.getElementById("routeye-lead-submit")),r=new FormData(t),o={name:r.get("name"),email:r.get("email"),phone:r.get("phone")||null,company:r.get("company")||null,interest:r.get("interest")||null,conversation_context:`${r.get("context")||""}\n${r.get("comments")||""}`.trim()||null};if(o.name&&o.email){this.isSubmitting=!0,n.disabled=!0,n.textContent="Submitting...";try{await this.widget.api.createZohoLead(o),this.showStatus("Thank you! Your details have been submitted successfully.","success"),t.reset(),setTimeout(()=>{const e=this.widget.shadowRoot.getElementById("routeye-lead-form-section");e&&(e.style.display="none")},3e3)}catch(e){this.showStatus(e.message||"Failed to submit. Please try again.","error")}finally{this.isSubmitting=!1,n.disabled=!1,n.textContent="Submit"}}else this.showStatus("Name and Email are required.","error")}showStatus(e,t){const n=this.widget.shadowRoot.getElementById("routeye-lead-status");n&&(n.textContent=e,n.className=`routeye-lead-status ${t}`,n.style.display="block","success"===t&&setTimeout(()=>{n.style.display="none"},5e3))}}class In{constructor(e){this.config=e,this.api=new i(e.agentId,e.apiKey),this.isOpen=!1,this.messages=[],this.isLoading=!1,this.selectedLanguage=e.defaultLanguage||"English",this.messagesKey=`routeeye_messages_${this.api.agentId}`,this.queriesKey=`routeeye_queries_${this.api.agentId}`,this.audioHandler=new l(this),this.speechHandler=new c(this),this.fileHandler=new u(this),this.uiHandler=new d(this),this.messageHandler=new An(this),this.chatHandler=new Fn(this),this.leadHandler=new Ln(this),this.autoReadEnabled=!1,this.init()}init(){const e=document.createElement("div");e.id="routeye-widget-root",e.style.position="fixed",e.style.bottom="20px",e.style.right="20px",e.style.zIndex="999999",document.body.appendChild(e);const t=e.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=function(e={}){const t=e.layoutColor||e.primaryColor||"#673de6",n=e.userInputColor||t,r=e.botResponseColor||"#f5f5f5",o=(e.iconColor,e.fontColor||"#1f2937"),s=e.fontStyle||"Inter, sans-serif";return`\n ${function(e={}){const t=e.layoutColor||e.primaryColor||"#673de6",n=e.fontColor||"#1f2937",r=e.fontStyle||"Arial, sans-serif";return`\n /* Lead Form Section */\n .routeye-lead-form-section {\n margin: 15px auto !important;\n padding: 24px !important;\n background: #ffffff !important;\n border-radius: 16px !important;\n box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;\n border: 1px solid #f1f3f5 !important;\n width: 95% !important;\n display: block !important;\n }\n\n .routeye-lead-form-header {\n display: flex !important;\n justify-content: space-between !important;\n align-items: center !important;\n margin-bottom: 20px !important;\n }\n\n .routeye-lead-form-title {\n font-size: 18px !important;\n font-weight: 700 !important;\n color: #1a1a1b !important;\n margin: 0 !important;\n font-family: ${r} !important;\n }\n\n .routeye-lead-form-close {\n background: #f8f9fa !important;\n border: none !important;\n width: 28px !important;\n height: 28px !important;\n border-radius: 50% !important;\n cursor: pointer !important;\n font-size: 18px !important;\n color: #adb5bd !important;\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n transition: all 0.2s !important;\n }\n\n .routeye-lead-form-close:hover {\n background: #e9ecef !important;\n color: #495057 !important;\n }\n\n .routeye-lead-form {\n display: flex !important;\n flex-direction: column !important;\n gap: 16px !important;\n }\n\n .routeye-form-group {\n width: 100% !important;\n }\n\n .routeye-form-input {\n width: 100% !important;\n padding: 12px 16px !important;\n border: 1.5px solid #edf2f7 !important;\n border-radius: 10px !important;\n font-size: 14px !important;\n background: #fdfdfd !important;\n color: ${n} !important;\n font-family: ${r} !important;\n outline: none !important;\n transition: all 0.2s ease !important;\n }\n\n .routeye-form-input::placeholder {\n color: #a0aec0 !important;\n }\n\n .routeye-form-input:focus {\n border-color: ${t} !important;\n background: #ffffff !important;\n box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.1) !important;\n }\n\n textarea.routeye-form-input {\n resize: vertical !important;\n min-height: 80px !important;\n }\n\n .routeye-lead-submit-btn {\n background: ${t} !important;\n color: white !important;\n border: none !important;\n padding: 14px !important;\n border-radius: 10px !important;\n font-weight: 700 !important;\n cursor: pointer !important;\n font-size: 16px !important;\n transition: all 0.2s !important;\n margin-top: 8px !important;\n font-family: ${r} !important;\n }\n\n .routeye-lead-submit-btn:hover {\n opacity: 0.9 !important;\n transform: translateY(-1px) !important;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;\n }\n\n .routeye-lead-submit-btn:active {\n transform: translateY(0) !important;\n }\n\n .routeye-lead-submit-btn:disabled {\n background: #adb5bd !important;\n cursor: not-allowed !important;\n transform: none !important;\n }\n\n .routeye-lead-status {\n margin-top: 16px !important;\n padding: 12px !important;\n border-radius: 8px !important;\n font-size: 14px !important;\n display: none !important;\n text-align: center !important;\n font-weight: 500 !important;\n }\n\n .routeye-lead-status.success {\n background: #d1fae5 !important;\n color: #065f46 !important;\n border: 1px solid rgba(16, 185, 129, 0.2) !important;\n }\n\n .routeye-lead-status.error {\n background: #fee2e2 !important;\n color: #b91c1c !important;\n border: 1px solid rgba(239, 68, 68, 0.2) !important;\n }\n `}(e)}\n\n * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n\n :host {\n all: initial;\n user-select: text !important;\n font-family: ${s};\n color: #1f2937;\n }\n\n .kalravhigh{\n color: ${t};\n font-weight: 600;\n font-size: 15px;\n }\n\n /* FIX: Allow copying text inside chat bubbles */\n .routeye-message-bubble,\n .routeye-message-bubble * {\n user-select: text !important;\n -webkit-user-select: text !important;\n }\n\n\n .routeye-widget-container {\n position: fixed;\n bottom: 20px;\n right: 20px;\n z-index: 999999;\n font-family: ${s};\n color: #1f2937;\n }\n\n .routeye-chat-bubble {\n border-radius: 24px;\n background: ${t};\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.2s, box-shadow 0.2s;\n border: none;\n padding: 12px 18px;\n color: white;\n font-size: 16px;\n font-weight: 500;\n gap: 8px;\n }\n\n .routeye-chat-bubble:hover {\n transform: scale(1.05);\n box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);\n }\n\n .routeye-chat-bubble svg {\n width: 28px;\n height: 28px;\n fill: white;\n }\n\n .routeye-chat-window {\n position: absolute;\n bottom: -18px;\n right: -18px;\n width: 420px;\n height: 540px; \n max-height: calc(100vh - 50px); \n background: white;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);\n display: none;\n flex-direction: column;\n overflow: hidden;\n animation: slideUp 0.3s ease-out;\n \n}\n .routeye-chat-window.open {\n display: flex;\n padding: 0; /* Removed padding to let header sit flush */\n max-width: 99vw; /* Changed from 32vw to prevent issues on small screens */\n min-width: 300px;\n border: 1px solid ${t};\n background: #fff;\n padding: 10px;\n\n }\n\n\n @keyframes slideUp {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Enhanced Header Styles */\n .routeye-chat-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 11px;\n background: ${t};\n color: white;\n border-radius: 12px 12px 0 0;\n position: relative; \n flex-shrink: 0;\n cursor: move;\n }\n\n .routeye-header-left {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n }\n\n .routeye-logo {\n width: 40px;\n height: 40px;\n background: white;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: ${t};\n font-size: 18px;\n }\n\n .routeye-header-info {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n\n .routeye-chat-header-title {\n font-size: 15px;\n font-weight: 600;\n margin: 0;\n padding: 5px;\n }\n\n .routeye-status {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n opacity: 0.95;\n }\n\n .routeye-status-dot {\n width: 8px;\n height: 8px;\n background: #10b981;\n border-radius: 50%;\n animation: pulse 2s infinite;\n font-size: 11px;\n }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n .routeye-header-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n position: relative;\n }\n\n .routeye-icon-btn {\n background: transparent;\n border: none;\n color: white;\n width: 32px;\n height: 32px;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.2s;\n font-size: 18px;\n }\n\n .routeye-icon-btn:hover {\n background: transparent;\n }\n\n /* Menu Dropdown */\n .routeye-menu-dropdown {\n position: absolute;\n top: 40px;\n right: 0;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n min-width: 180px;\n display: none;\n z-index: 1000;\n }\n\n .routeye-menu-dropdown.show {\n display: block;\n }\n\n .routeye-menu-item {\n padding: 12px 16px;\n cursor: pointer;\n color: #1f2937;\n font-size: 14px;\n display: flex;\n align-items: center;\n gap: 10px;\n transition: background 0.2s;\n border: none;\n background: none;\n width: 100%;\n text-align: left;\n font-family: ${s};\n }\n\n .routeye-menu-item:first-child {\n border-radius: 8px 8px 0 0;\n }\n\n .routeye-menu-item:last-child {\n border-radius: 0 0 8px 8px;\n }\n\n .routeye-menu-item:hover {\n background: transparent;\n }\n\n .routeye-close-btn {\n background: transparent;\n border: none;\n color: white;\n width: 32px;\n height: 32px;\n border-radius: 6px;\n cursor: pointer;\n font-size: 24px;\n line-height: 1;\n transition: background 0.2s;\n }\n\n .routeye-close-btn:hover {\n background: transparent;\n }\n\n /* Modal Styles */\n .routeye-modal-overlay {\n position: absolute;\n left: 0;\n right: -40px;\n bottom: 10px;\n background: rgba(255, 255, 255, 0.85); /* light blur effect inside widget */\n backdrop-filter: blur(2px);\n display: none;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n border-radius: inherit; /* follows chat window’s rounded corners */\n}\n\n .routeye-modal-overlay.show {\n display: flex;\n }\n\n .routeye-modal {\n background: white;\n border-radius: 10px;\n padding: 20px 20px;\n width: 85%;\n max-width: 360px;\n box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);\n text-align: center;\n}\n\n .routeye-modal-title {\n font-size: 16px;\n font-weight: 600;\n color: #1f2937;\n margin-bottom: 8px;\n text-align: left;\n margin-bottom: 12px;\n}\n .routeye-modal-message {\n font-size: 14px;\n color: #1f2937;\n line-height: 1.5;\n margin-bottom: 16px;\n text-align: left;\n }\n .routeye-modal-actions {\n display: flex;\n gap: 12px;\n justify-content: center;\n }\n\n .routeye-modal-btn {\n padding: 12px 16px;\n border-radius: 6px;\n border: none;\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n font-family: ${s};\n }\n\n\n .routeye-modal-btn-cancel {\n background: #f3f4f6;\n color: #1f2937;\n font-size: 14px;\n }\n .routeye-modal-btn-cancel:hover {\n background: #e5e7eb;\n }\n\n .routeye-modal-btn-confirm {\n background: ${t};\n color: white;\n font-size: 14px;\n }\n\n .routeye-modal-btn-confirm:hover {\n opacity: 0.9;\n }\n\n .routeye-chat-messages {\n flex: 1;\n overflow-y: auto;\n padding: 15px;\n background: #f9fafb;\n }\n\n .routeye-message {\n margin-bottom: 16px;\n display: flex;\n flex-direction: column;\n }\n\n .routeye-message-meta {\n display: flex;\n align-items: center;\n font-size: 12px;\n color: #6b7280;\n margin-bottom: 4px;\n}\n.bot-meta {\n justify-content: flex-start;\n gap: 6px;\n margin-bottom:12px;\n}\n\n.user-meta {\n justify-content: flex-end;\n gap: 6px;\n}\n\n.routeye-avatar {\n border-radius: 50%;\n object-fit: cover;\n background:${t};\n}\n \n.routeye-name {\n font-weight: 600;\n}\n\n.routeye-time {\n font-size: 11px;\n color: #aaa;\n}\n\n\n\n.bot-bubble {\n background-color: ${r};\n color: ${o};\n align-self: flex-start;\n}\n\n.user-bubble {\n background-color: ${n};\n color: ${o};\n align-self: flex-end;\n border-bottom-right-radius: 4px;\n}\n\n.routeye-bot-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n padding:6px;\n}\n\n.routeye-reactions {\n display: flex;\n gap: 8px; /* spacing between like/dislike */\n}\n\n.routeye-speaker {\n display: flex;\n align-items: center;\n}\n\n\n.routeye-bot-actions button {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 16px;\n color: #666;\n transition: transform 0.2s ease;\n}\n\n\n.routeye-bot-actions button:hover {\n transform: scale(1.2);\n color: var(--primary-color, #4F46E5);\n}\n\n .routeye-message.user {\n align-items: flex-end;\n }\n\n .routeye-message.bot {\n align-items: flex-start;\n }\n\n.routeye-message-bubble {\n display: block !important;\n vertical-align: top;\n line-height: 1.35;\n font-size: 14px;\n}\n\n.routeye-message-bubble p,\n.routeye-message-bubble h1,\n.routeye-message-bubble h2,\n.routeye-message-bubble h3,\n.routeye-message-bubble h4,\n.routeye-message-bubble h5,\n.routeye-message-bubble h6,\n.routeye-message-bubble ul,\n.routeye-message-bubble ol,\n.routeye-message-bubble li,\n.routeye-message-bubble pre,\n.routeye-message-bubble blockquote {\n margin: 5px !important;\n padding: 4px !important;\n line-height: 1.35;\n font-size: 14px !important;\n}\n .routeye-message.user .routeye-message-bubble {\n background: ${n};\n color: ${o};;\n margin-left: auto;\n border-bottom-right-radius: 4px;\n display:flex;\n border-radius:8px;\n \n }\n\n .routeye-message.bot .routeye-message-bubble {\n background: ${r};\n color: ${o};\n margin-right: auto;\n border-bottom-left-radius: 4px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n padding:10px;\n border-radius:8px;\n border: 1px solid ${t};\n }\n\n /* Markdown styling */\n .routeye-message-bubble strong,\n .routeye-message-bubble b {\n font-weight: 600;\n }\n\n .routeye-message-bubble em,\n .routeye-message-bubble i {\n font-style: italic;\n }\n\n .routeye-message-bubble a {\n color: ${t};\n text-decoration: none;\n border-bottom: 1px solid ${t};\n }\n\n .routeye-message.bot .routeye-message-bubble a {\n color: ${t};\n }\n\n .routeye-message.user .routeye-message-bubble a {\n color: ${o};\n border-bottom-color: rgba(255, 255, 255, 0.6);\n }\n\n .routeye-message-bubble a:hover {\n text-decoration: underline;\n }\n\n .routeye-message-bubble h1,\n .routeye-message-bubble h2,\n .routeye-message-bubble h3,\n .routeye-message-bubble h4,\n .routeye-message-bubble h5,\n .routeye-message-bubble h6 {\n margin: 8px 0;\n font-weight: 600;\n }\n\n .routeye-message-bubble h1 { font-size: 14px; }\n .routeye-message-bubble h2 { font-size: 14px; }\n .routeye-message-bubble h3 { font-size: 14px; }\n .routeye-message-bubble h4,\n .routeye-message-bubble h5,\n .routeye-message-bubble h6 { font-size: 14px; }\n\n .routeye-message-bubble ul,\n .routeye-message-bubble ol {\n margin: 8px 0;\n padding-left: 20px;\n }\n\n .routeye-message-bubble li {\n margin: 4px 0;\n }\n\n .routeye-message-bubble code {\n background: rgba(0, 0, 0, 0.1);\n padding: 2px 4px;\n border-radius: 3px;\n font-family: 'Courier New', monospace;\n font-size: 0.9em;\n }\n\n .routeye-message.user .routeye-message-bubble code {\n background: rgba(255, 255, 255, 0.2);\n color: ${o};\n }\n\n .routeye-message-bubble pre {\n background: rgba(0, 0, 0, 0.08);\n padding: 8px;\n border-radius: 4px;\n overflow-x: auto;\n margin: 8px 0;\n font-family: 'Courier New', monospace;\n font-size: 0.85em;\n line-height: 1.4;\n }\n\n .routeye-message.user .routeye-message-bubble pre {\n background: rgba(0, 0, 0, 0.2);\n }\n\n .routeye-message-bubble blockquote {\n border-left: 3px solid ${t};\n padding-left: 8px;\n margin: 8px 0;\n opacity: 0.8;\n }\n\n .routeye-message-bubble hr {\n border: none;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n margin: 8px 0;\n }\n\n .routeye-message.user .routeye-message-bubble hr {\n border-top-color: rgba(255, 255, 255, 0.2);\n }\n\n .routeye-message-bubble table {\n border-collapse: collapse;\n width: 100%;\n margin: 8px 0;\n font-size: 0.9em;\n }\n\n .routeye-message-bubble th,\n .routeye-message-bubble td {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 6px;\n text-align: left;\n }\n\n .routeye-message.user .routeye-message-bubble th,\n .routeye-message.user .routeye-message-bubble td {\n border-color: rgba(255, 255, 255, 0.2);\n }\n\n .routeye-message-bubble th {\n background: rgba(0, 0, 0, 0.05);\n font-weight: 600;\n }\n\n .routeye-message.user .routeye-message-bubble th {\n background: rgba(0, 0, 0, 0.1);\n }\n\n.routeye-typing-indicator {\n display: flex;\n align-items: center;\n padding: 10px 14px;\n background: white;\n border-radius: 12px;\n width: fit-content;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n border: 1px solid ${t};\n}\n\n.routeye-typing-indicator span {\n font-style: italic;\n animation: pulseFade 1.5s ease-in-out infinite;\n}\n\n@keyframes pulseFade {\n 0% { opacity: 0.4; }\n 50% { opacity: 1; }\n 100% { opacity: 0.4; }\n}\n\n\n\n\n\n\n @keyframes typing {\n 0%, 60%, 100% {\n opacity: 0.3;\n transform: translateY(0);\n }\n 30% {\n opacity: 1;\n transform: translateY(-4px);\n }\n }\n\n /* Enhanced Input Container */\n .routeye-chat-input-container {\n padding: 16px;\n background: white;\n border-top: 1px solid #e5e7eb;\n display: flex;\n flex-direction: column;\n }\n\n .routeye-input-wrapper {\n display: flex;\n gap: 8px;\n margin-bottom: 12px;\n \n }\n\n .routeye-input-with-mic {\n flex: 1;\n position: relative;\n display: flex;\n align-items: center;\n }\n\n .routeye-chat-input {\n flex: 1;\n width: 100%;\n padding: 15px 45px 15px 15px;\n border: 1px solid rgb(204, 204, 204);\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s;\n font-family: ${s};\n color: #1f2937;\n }\n\n .routeye-chat-input:focus {\n border-color: ${t};\n }\n\n .routeye-mic-inside {\n position: absolute;\n right: 8px;\n background: transparent;\n border: none;\n width: 32px;\n height: 32px;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n color: #6b7280;\n font-size: 18px;\n }\n\n .routeye-mic-inside:hover {\n background: #f3f4f6;\n color: #374151;\n }\n\n .routeye-mic-inside.recording {\n color: #374151;\n animation: recordPulse 1s infinite;\n background: transparent;\n border-radius: 50%;\n }\n\n @keyframes recordPulse {\n 0%, 100% { transform: scale(1); }\n 50% { transform: scale(1.1); }\n }\n\n .routeye-send-btn {\n background: ${t};\n color: white;\n border: none;\n padding: 15px 15px;\n border-radius: 50%;\n font-size: 18px;\n font-weight: 500;\n cursor: pointer;\n transition: opacity 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .routeye-send-btn:hover {\n opacity: 0.9;\n }\n\n .routeye-send-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Bottom Actions */\n .routeye-bottom-actions {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n }\n\n .routeye-language-select {\n flex: 0 0 auto;\n padding: 12px 30px 12px 15px;\n border: 1px solid #ccc;\n border-radius: 6px;\n font-size: 14px;\n outline: none;\n background: rgb(249, 249, 255);\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");\n background-repeat: no-repeat;\n background-position: right 10px center;\n font-family: ${s};\n min-width: 100px;\n }\n \n .routeye-language-select:focus {\n border-color: ${t};\n outline: none;\n }\n \n .routeye-language-select option {\n background: white;\n color: #1f2937;\n padding: 8px;\n font-family: ${s};\n }\n\n .routeye-bottom-actions-right {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .routeye-action-btn {\n background: rgb(249, 249, 255);\n border: none;\n width: 40px;\n height: 40px;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n color: #6b7280;\n font-size: 20px;\n margin: 0;\n border: 1px solid #ccc;\n }\n\n .routeye-action-btn:hover {\n background: #f3f4f6;\n color: #374151;\n }\n\n .routeye-file-input {\n display: none;\n }\n\n .routeye-feedback-notliked{\n font-size: 14px;\n color: #111;\n }\n\n.routeye-feedback-option:focus {\n outline: none !important;\n box-shadow: none !important;\n}\n\n /* Success Message */\n .routeye-success-message {\n background: #d1fae5;\n color: #065f46;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 13px;\n margin: 8px 0;\n text-align: center;\n }\n\n .routeye-error-message {\n padding: 12px;\n background: #fee2e2;\n color: #991b1b;\n border-radius: 8px;\n font-size: 14px;\n margin-bottom: 16px;\n }\n .bottom-spark{\n text-align: right;\n font-size:16px;\n }\n/* Default speaker icon */\n.routeye-speak-btn svg {\n transition: stroke 0.3s ease;\n}\n\n/* Speaking state: only SVG stroke becomes green */\n.routeye-speak-btn.speaking svg {\n stroke: rgb(34, 184, 84) !important;\n}\n.routeye-speak-btn.speaking {\n animation: speakPulse 1s infinite;\n}\n\n.routeye-speak-btn.speaking svg,\n#routeye-speaker-btn.speaking svg {\n stroke: rgb(34, 184, 84) !important;\n}\n@keyframes speakPulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.6; }\n 100% { opacity: 1; }\n}\n\n @media (max-width: 480px) {\n .routeye-chat-window {\n width: calc(100vw - 40px);\n height: calc(100vh - 120px);\n }\n\n .routeye-chat-window.open {\n max-width: calc(100vw - 40px);\n min-width: calc(100vw - 40px);\n }\n }\n\n /* === Fullscreen Mode === */\n/* === Fullscreen Mode (Responsive + Clean Layout) === */\n.routeye-chat-window.fullscreen {\n position: fixed !important;\n inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */\n width: 100vw !important;\n height: 100vh !important;\n z-index: 999999 !important;\n background: #fff !important;\n border-radius: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n box-shadow: none !important;\n display: flex !important;\n flex-direction: column;\n transition: all 0.25s ease-in-out;\n max-width: none !important;\n min-width: none !important;\n max-height: none !important;\n}\n\n/* In fullscreen, remove border & compress spacing */\n.routeye-chat-window.fullscreen .routeye-chat-header {\n border-radius: 0 !important;\n padding: 16px 24px !important;\n}\n\n.routeye-chat-window.fullscreen .routeye-chat-messages {\n flex: 1;\n padding: 24px 32px !important;\n background: #f9fafb;\n overflow-y: auto;\n}\n\n.routeye-chat-window.fullscreen .routeye-chat-input-container {\n padding: 16px 24px !important;\n border-top: 1px solid #e5e7eb;\n background: #fff;\n}\n\n.routeye-chat-window.fullscreen .routeye-chat-input {\n font-size: 18px !important;\n padding: 16px 45px 16px 16px !important;\n}\n\n.routeye-chat-window.fullscreen .routeye-send-btn {\n width: 48px !important;\n height: 48px !important;\n}\n\n.routeye-chat-window.fullscreen .routeye-language-select {\n padding: 10px 40px 10px 20px !important;\n}\n\n/* Adjust like/dislike/speaker alignment in fullscreen */\n.routeye-chat-window.fullscreen .routeye-bot-actions {\n margin-left: 12px !important;\n gap: 10px !important;\n}\n\n/* Prevent resizer in fullscreen */\n.routeye-chat-window.fullscreen .routeye-resizer {\n display: none !important;\n}\n\n\n\n\n/* === Resizer Handle === */\n.routeye-resizer {\n position: absolute;\n width: 16px;\n height: 16px;\n bottom: 4px;\n right: 4px;\n cursor: se-resize;\n background: linear-gradient(135deg, transparent 50%, #ccc 50%);\n border-radius: 2px;\n}\n\n.routeye-widget-container.fullscreen-active {\n all: unset;\n}\n\n/* Quick Replies Section - Inside scrollable messages */\n.routeye-quick-replies-section {\n margin-top: 20px;\n padding: 16px;\n background: white;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n margin-bottom: 16px;\n}\n\n.routeye-quick-replies-title {\n font-size: 16px;\n font-weight: 600;\n color: #1f2937;\n margin-bottom: 12px;\n text-align: left;\n}\n\n.routeye-quick-replies-section {\n background: white;\n padding: 16px;\n border-radius: 12px;\n box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle shadow like a card */\n margin: 10px 0;\n border: 1px solid #f3f4f6;\n}\n\n.routeye-quick-replies-title {\n font-size: 15px;\n font-weight: 600;\n color: #1f2937;\n margin-bottom: 12px;\n}\n\n.routeye-quick-replies {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.routeye-quick-reply-btn {\n display: flex;\n align-items: center;\n gap: 12px;\n width: 100%;\n padding: 14px 16px;\n border: 1px solid #e5e7eb;\n background: white;\n color: #1f2937;\n border-radius: 12px; /* Pill shape or rounded rect */\n font-size: 14px;\n font-weight: 400;\n cursor: pointer;\n transition: all 0.2s;\n text-align: left;\n line-height: 1.4;\n font-family: ${s};\n}\n\n.routeye-quick-reply-btn svg {\n flex-shrink: 0;\n width: 18px;\n height: 18px;\n color: #4b5563;\n transition: transform 0.2s;\n}\n\n.routeye-quick-reply-btn:hover {\n border-color: ${t};\n background: #f9fafb;\n transform: translateY(-1px);\n box-shadow: 0 2px 4px rgba(0,0,0,0.05);\n}\n\n.routeye-quick-reply-btn:hover svg {\n color: ${t};\n transform: translateX(2px);\n}\n\n.routeye-quick-reply-btn:active {\n transform: translateY(0);\n}\n@keyframes fadeInInfo {\n 0% { \n opacity: 0; \n transform: translateY(6px); \n }\n 100% { \n opacity: 1; \n transform: translateY(0); \n }\n}\n\n.info-banner {\n display: flex;\n gap: 10px;\n background-color: aliceblue;\n text-align: left;\n margin: 5px 0;\n padding: 16px 18px;\n border-radius: 14px;\n width: 95%;\n\n color: #1f2937;\n font-family: "Inter", "Segoe UI", sans-serif;\n transition: all 0.3s ease;\n\n /* animation added */\n animation: fadeInInfo 0.5s ease-in-out;\n\n /* box shadow added + corrected */\n box-shadow: -6px 2px 6px rgba(0, 115, 170, 0.15);\n}\n\n\n.routeye-resize-handle {\n position: absolute;\n z-index: 10;\n }\n\n /* Corner handles - larger clickable area */\n .routeye-resize-top-left {\n top: 0;\n left: 0;\n width: 15px;\n height: 15px;\n cursor: nw-resize;\n }\n\n .routeye-resize-top-right {\n top: 0;\n right: 0;\n width: 15px;\n height: 15px;\n cursor: ne-resize;\n }\n\n .routeye-resize-bottom-left {\n bottom: 0;\n left: 0;\n width: 15px;\n height: 15px;\n cursor: sw-resize;\n }\n\n .routeye-resize-bottom-right {\n bottom: 0;\n right: 0;\n width: 15px;\n height: 15px;\n cursor: se-resize;\n }\n\n .routeye-resize-top {\n top: -10px; /* Pull it up higher */\n left: 0;\n right: 0;\n height: 15px; /* Make it thicker */\n cursor: n-resize;\n z-index: 2147483647; /* Maximum Z-Index */\n}\n\n .routeye-resize-bottom {\n bottom: -10px; /* Pull it down lower */\n left: 0;\n right: 0;\n height: 15px; /* Make it thicker */\n cursor: s-resize;\n z-index: 2147483647;\n}\n\n .routeye-resize-left {\n left: 0;\n top: 15px;\n bottom: 15px;\n width: 5px;\n cursor: w-resize;\n }\n\n .routeye-resize-right {\n right: 0;\n top: 15px;\n bottom: 15px;\n width: 5px;\n cursor: e-resize;\n }\n\n\n /* Confirmation Modal Styles */\n.routeye-confirmation-content {\n padding: 0px;\n text-align: center;\n}\n\n.routeye-confirmation-text {\n font-size: 13px;\n line-height: 1.5;\n color: #333;\n margin-bottom: 15px;\n /* padding: 0 10px; */\n text-align: left;\n}\n\n\n.routeye-confirmation-actions {\n display: flex;\n gap: 12px;\n justify-content: flex-start;\n}\n.routeye-confirmation-btn {\n padding: 10px 32px;\n font-size: 16px;\n font-weight: 500;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.3s ease;\n min-width: 80px;\n font-family: ${s};\n}\n\n.routeye-confirmation-yes {\n background-color: #7c3aed;\n color: white;\n}\n\n.routeye-confirmation-yes:hover {\n background-color: #6d28d9;\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);\n}\n\n.routeye-confirmation-no {\n background-color: #f3f4f6;\n color: #374151;\n}\n\n.routeye-confirmation-no:hover {\n background-color: #e5e7eb;\n transform: translateY(-1px);\n}\n\n /* Visual feedback on hover (optional) */\n .routeye-resize-handle:hover {\n background-color: rgba(103, 61, 230, 0.1);\n }\n\n /* Hide resize handles in fullscreen mode */\n .routeye-chat-window.fullscreen .routeye-resize-handle {\n display: none;\n }\n\n\n /* Add this to your getStyles function in styles.js */\n.routeye-system-message {\n padding: 8px 16px;\n margin: 8px 0;\n text-align: center;\n}\n\n.routeye-system-message-content {\n display: inline-block;\n padding: 8px 16px;\n background: rgb(232, 245, 233);\n border-radius: 16px;\n font-size: 14px;\n color: rgb(40, 167, 47);\n border: 1px solid #d1c4e9;\n margin-bottom: 18px;\n font-weight: 500;\n}\n\n\n/* Like/Dislike button base */\n.routeye-like-btn,\n.routeye-dislike-btn {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n transition: all 0.3s ease;\n}\n\n/* Default icon colors */\n.routeye-like-btn svg {\n stroke: rgb(34, 184, 84); /* GREEN */\n}\n\n.routeye-dislike-btn svg {\n stroke: #ef4444; /* RED */\n}\n\n/* Smooth transition */\n.routeye-like-btn svg,\n.routeye-dislike-btn svg {\n transition: fill 0.2s ease, stroke 0.2s ease;\n}\n\n/* ACTIVE STATES (CLICKED) */\n.routeye-like-btn.active svg {\n stroke: rgb(34, 184, 84);\n fill: rgb(34, 184, 84); /* light green fill */\n}\n\n.routeye-dislike-btn.active svg {\n stroke: #ef4444;\n fill: #ef4444; /* light red fill */\n}\n\n/* OPTIONAL: Highlight background on active */\n.routeye-like-btn.active,\n.routeye-dislike-btn.active {\n}\n\n\n/* Feedback modal styles */\n.routeye-feedback-modal-content {\n max-width: 363px;\n position: relative;\n left: -15px;\n bottom: 10px;\n background: white;\n padding: 16px;\n background: white;\n}\n\n.routeye-feedback-options {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 20px 0;\n}\n\n.routeye-feedback-option {\n padding: 14px 20px;\n border: 1.5px solid ${t};\n border-radius: 8px;\n background: rgb(255, 255, 255);\n color: ${t};\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\n transition: all 0.2s ease;\n text-align: left;\n}\n\n.routeye-feedback-option:hover {\n background: #673de6;\n color: white;\n border-color: #673de6;\n}\n\n.routeye-feedback-option:first-child {\n background: #673de6;\n color: white;\n border-color: #673de6;\n}\n\n.routeye-feedback-input-container {\n position: relative;\n margin: 20px 0;\n}\n\n.routeye-feedback-textarea {\n width: 100%;\n padding: 12px 40px 12px 12px;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n font-size: 14px;\n font-family: ${s};\n resize: vertical;\n min-height: 100px;\n}\n\n.routeye-feedback-textarea:focus {\n outline: none;\n border-color: #673de6;\n}\n\n\n\n.routeye-feedback-mic-btn {\n position: absolute;\n right: 8px;\n bottom: 8px;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n}\n\n.routeye-modal-close-btn {\n position: absolute;\n top: 16px;\n right: 16px;\n background: transparent;\n border: none;\n font-size: 28px;\n cursor: pointer;\n color: #6b7280;\n line-height: 1;\n padding: 0;\n width: 32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.routeye-modal-close-btn:hover {\n color: #111827;\n}\n/* Fix bot images overflowing bubble */\n.routeye-message-bubble.bot-bubble img,\n.routeye-message.bot .routeye-message-bubble img {\n max-width: 100%;\n height: auto;\n display: block;\n border-radius: 8px;\n margin-top: 6px;\n margin-bottom: 6px;\n object-fit: contain;\n\n}\n .routeye-message-bubble.bot-bubble p{\n margin: 0 !important;\n\n }\n\n .routeye-message-bubble.bot-bubble *:first-child,\n.routeye-message-bubble.bot-bubble *:last-child {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n font-size:14px;\n\n}\n\n.routeye-message-bubble-v1 {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n background-color: #f4f4f4;\n padding: 12px;\n border-radius: 12px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n margin-right: auto;\n max-width: 100%;\n font-family: ${s};\n}\n\n.routeye-message-bubble-v1 img {\n max-width: 100%;\n height: auto;\n display: block;\n border-radius: 8px;\n margin-top: 2px;\n object-fit: cover;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.routeye-welcome-text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n font-family: ${s};\n}\n\n.routeye-welcome-intro {\n margin-top: 4px;\n margin-bottom: 2px;\n font-family: ${s};\n font-size: 15px;\n}\n\n.routeye-welcome-subintro {\n font-size: 13px;\n margin-top: 8px; \n margin-bottom: 8px;\n color: #555;\n font-family: ${s};\n}\n\n.routeye-welcome-msg {\n margin-top: 4px;\n font-family: ${s};\n}\n\n.routeye-inline-feedback {\n margin-top: 10px;\n padding: 12px;\n background: transparent;\n border: 1px solid ${t};\n border-radius: 10px;\n}\n\n.routeye-feedback-card {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.routeye-feedback-title {\n font-size: 0.9rem;\n color: #1f2937;\n}\n\n.routeye-feedback-title1 {\n font-size: 16px;\n color: #1f2937;\n font-weight: 600;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.routeye-feedback-close {\n cursor: pointer;\n font-size: 16px;\n color: #1f2937;\n padding: 4px;\n transition: 0.2s ease;\n}\n\n.routeye-feedback-close:hover {\n color: #e11d48; /* red hover */\n transform: scale(1.1);\n}\n\n.fb-cancel{\n background-color: rgb(243, 244, 246);}\n\n.routeye-feedback-actions,\n.routeye-feedback-options {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.routeye-feedback-btn{\n padding: 8px 18px;\n background:rgb(243, 244, 246);\n border-radius: 8px;\n border: none;\n cursor: pointer;\n font-size:14px;\n font-family: ${s};\n color: #1f2937;\n}\n.routeye-feedback-option {\n padding: 8px 18px;\n background:rgb(255, 255, 255);;\n border-radius: 8px;\n border: 1.5px solid ${t};\n cursor: pointer;\n font-size:14px;\n font-family: ${s};\n color: #1f2937;\n}\n\n.routeye-feedback-option:hover {\n background: ${t};\n}\n\n.routeye-feedback-textarea {\n width: 100%;\n border-radius: 8px;\n border: 1px solid #ccc;\n padding: 8px;\n resize: none;\n font-family: ${s};\n color: #1f2937;\n}\n\n.routeye-feedback-thanks {\n font-size: 14px;\n color: rgb(34, 184, 84);\n border: none;\n}\n\n.routeye-feedback-notliked {\n font-size: 14px;\n color: #1f2937;\n font-family: ${s};\n border: none;\n}\n\n.fb-yes{\nbackground-color: ${t};\ncolor: white;\nfont-weight:600;\nfont-size:14px;\nborder:none;\n}\n\n.fb-yes:hover{\n opacity:0.9;\n background-color: ${a(t,-20)};\n}\n.fb-no{\nbackground-color: rgb(243, 244, 246);\n}\n.fb-no:hover{\n background-color: rgb(243, 244, 246);\n }\n\n.fb-submit{\n background-color: ${t};\n color: white;}\n .fb-submit:hover{\n opacity:0.9;\n background-color: ${a(t,-20)};\n }\n\n /* Like Active State */\n.routeye-like-btn.active svg path {\n stroke: #22c55e !important; /* green */\n fill: #22c55e22; /* optional subtle fill */\n}\n\n/* Dislike Active State */\n.routeye-dislike-btn.active svg path {\n stroke: #e11d48 !important; /* red */\n fill: #e11d4822; /* optional subtle fill */\n}\n\n/* Reset look for inactive */\n.routeye-like-btn svg path,\n.routeye-dislike-btn svg path {\n transition: 0.25s ease;\n}\n\n /* Disclaimer Styles */\n .routeye-disclaimer {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 16px 0;\n padding: 8px 8px;\n background: #FEF3C7; /* Light yellow/cream background */\n border-radius: 8px;\n font-size: 14px;\n color: #78350F; /* Dark brown text */\n border: 1px solid #FDE68A; /* Subtle border */\n }\n\n .routeye-disclaimer-icon {\n color: #F59E0B;\n font-size: 20px;\n flex-shrink: 0;\n margin-top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .routeye-disclaimer-content {\n display: flex;\n align-items: center;\n gap: 4px;\n flex: 1;\n flex-wrap: nowrap;\n }\n\n .routeye-disclaimer-text {\n line-height: 1.4;\n color: #78350F;\n flex: 1;\n font-size: 11px;\n }\n\n .routeye-disclaimer-link {\n color: #0066CC;\n text-decoration: underline;\n white-space: nowrap;\n margin-left: 0;\n font-weight: 500;\n cursor: pointer;\n flex-shrink: 0;\n font-size: 11px;\n }\n \n .routeye-disclaimer-link:hover {\n color: #0052A3;\n }\n\n /* Footer Disclaimer */\n .routeye-footer-disclaimer {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 6px;\n margin-top: 10px;\n font-size: 11px;\n color: #6B7280;\n text-align: left;\n padding: 0 8px;\n }\n\n .routeye-footer-disclaimer span {\n line-height: 1.4;\n font-size: 11px;\n }\n \n .routeye-footer-disclaimer a {\n color: ${t};\n text-decoration: underline;\n }\n `}(this.config),t.appendChild(n);const r=document.createElement("div");r.className="routeye-widget-container",r.innerHTML=this.getWidgetHTML(),t.appendChild(r),this.shadowRoot=t,this.widgetContainer=r,this.loadMessagesFromStorage(),this.bindEvents()}getWelcomeMessageHTML(){const e=this.config.logoUrl?`https://kalrav-central-system-api.kalrav.ai${this.config.logoUrl}`:"https://kalrav.ai/wp-content/uploads/2025/10/logo.png",t=this.config.agentName||"Kalrav AI",n=this.config.welcomeHeadline||"👋 Hi there!",r=this.config.welcomeIntroText||"I'm customer support agent.",o=this.config.subIntroText||"",s=(this.config.welcomeMessage,this.config.greetingBgColor||"#f4f4f4"),i=r.replace("{{agent_name}}",`<strong class="kalravhigh">${this.escapeHtml(t)}</strong>`);return`\n <div class="routeye-message bot">\n <div class="routeye-message-bubble-v1 bot-bubble-v1 info-banner" style="background-color: ${s};">\n <img src="${e}" alt="${t}" class="routeye-avatar" width="24" height="24"/>\n <div class="routeye-welcome-text">\n <span class="kalravhigh">${this.escapeHtml(n)}</span>\n <div class="routeye-welcome-intro">${i}</div>\n ${o?`<div class="routeye-welcome-subintro">${this.escapeHtml(o)}</div>`:""}\n </div>\n </div>\n </div>\n \n ${this.config.showDisclaimer&&this.config.disclaimerShowInsideChat?`\n <div class="routeye-disclaimer">\n <div class="routeye-disclaimer-icon">⚠️</div>\n <div class="routeye-disclaimer-content">\n <span class="routeye-disclaimer-text">${this.escapeHtml(this.config.disclaimerText)}</span>\n ${this.config.disclaimerUrl?`<a href="${this.config.disclaimerUrl}" target="_blank" class="routeye-disclaimer-link">${this.escapeHtml(this.config.disclaimerLinkText||"Read more")}</a>`:""}\n </div>\n </div>\n `:""}\n `}loadMessagesFromStorage(){try{const e=sessionStorage.getItem(this.messagesKey),t=sessionStorage.getItem(this.queriesKey);if(t&&(this.messageQueries=JSON.parse(t)),e&&(this.messages=JSON.parse(e),this.messages.length>0)){const e=this.shadowRoot.getElementById("routeye-chat-messages");e.innerHTML="",e.innerHTML=this.getWelcomeMessageHTML(),this.renderQuickReplies(e),this.messages.forEach(e=>{this.messageHandler.addMessage(e.type,e.text,!0,e.id,e.timestamp,e.feedback)})}}catch(e){console.warn("⚠️ Could not load messages from sessionStorage:",e)}}saveMessagesToStorage(){try{sessionStorage.setItem(this.messagesKey,JSON.stringify(this.messages))}catch(e){console.error("❌ Could not save messages to sessionStorage:",e)}}saveQueriesToStorage(){try{this.messageQueries&&sessionStorage.setItem(this.queriesKey,JSON.stringify(this.messageQueries))}catch(e){console.error("❌ Could not save queries to sessionStorage:",e)}}clearMessagesFromStorage(){try{sessionStorage.removeItem(this.messagesKey),sessionStorage.removeItem(this.queriesKey),this.messages=[],this.messageQueries={}}catch(e){console.error("❌ Could not clear messages from sessionStorage:",e)}}renderMessage(e,t,n,r){const o=this.shadowRoot.getElementById("routeye-chat-messages"),s=document.createElement("div");if(s.className=`routeye-message ${e}`,s.dataset.messageId=n,"user"===e)s.innerHTML=`\n <div class="routeye-message-bubble user-bubble">\n ${this.escapeHtml(t)}\n </div>\n `;else{const e=this.formatBotMessage(t);s.innerHTML=`\n <div class="routeye-message-bubble bot-bubble">\n <img src="https://kalrav.ai/wp-content/uploads/2025/10/logo.png" alt="Kalrav AI" class="routeye-avatar" width="24" height="24"/>\n <div class="message-content">${e}</div>\n </div>\n `}o.appendChild(s),o.scrollTop=o.scrollHeight}getWidgetHTML(){const e=Sn.getLogoUrl(this.config.logoUrl),t=this.config.agentName||"Kalrav Support",n=this.config.placeholderText||"Tell us how we can help...",r=this.config.botLauncherTitle||"Chat with us",o=(this.config.headerSubheading,this.config.activeStatusText||"We are online to assist you"),s=this.config.clearChatTitle||"Clear Chat",i=this.config.clearChatDescription||"Clearing chat history will remove all previous messages. You'll start a brand-new conversation after this.",a=this.config.clearChatConfirmButton||"Clear & Start New",l=this.config.clearChatCancelButton||"Cancel",c=this.config.downloadChatText||"Download Chat",u=!0===this.config.downloadChatEnabled,d=!0===this.config.speechSupportEnabled,h=!0===this.config.audioRecorderEnabled,p=!0===this.config.fileUploadsEnabled,g=this.config.defaultLanguage?this.config.defaultLanguage.charAt(0).toUpperCase()+this.config.defaultLanguage.slice(1).toLowerCase():"English";let f=this.config.languagesAvailable||["English"];const m=g.toLowerCase();f.some(e=>e.toLowerCase()===m)||(f=[g.toLowerCase(),...f]);const b=f.map(e=>{const t=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();return`<option value="${t}" ${t===g?"selected":""}>${t}</option>`}).join("\n "),y=this.config.welcomeHeadline||"👋 Hi there!",k=this.config.welcomeIntroText||"I'm customer support agent.",x=this.config.subIntroText||"",w=(this.config.welcomeMessage,this.config.greetingBgColor||"#f4f4f4"),_=k.replace("{{agent_name}}",`<strong class="kalravhigh">${this.escapeHtml(t)}</strong>`),v=(this.config.defaultQuestions||[]).map(e=>`<button class="routeye-quick-reply-btn" data-message="${this.escapeHtml(e)}">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" class="routeye-quick-reply-icon">\n <path d="M5 12h14M12 5l7 7-7 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ${this.escapeHtml(e)}\n </button>`).join("\n ");return`\n <div class="routeye-chat-bubble" id="routeye-chat-bubble">\n <img src="${e}" alt="" width="24" height="24" style="vertical-align: middle;margin-right: 8px;border-radius: 50%;" loading="lazy" decoding="async">\n <span class="chat-label" style="text-transform: none;">${this.escapeHtml(r)}</span>\n </div>\n \n <div class="routeye-chat-window" id="routeye-chat-window">\n \x3c!-- Clear Chat Modal --\x3e\n <div class="routeye-modal-overlay" id="routeye-clear-modal">\n <div class="routeye-modal">\n <h2 class="routeye-modal-title">${this.escapeHtml(s)}</h2>\n <p class="routeye-modal-message">\n ${this.escapeHtml(i)}\n </p>\n <div class="routeye-modal-actions">\n <button class="routeye-modal-btn routeye-modal-btn-cancel" id="routeye-modal-cancel">${this.escapeHtml(l)}</button>\n <button class="routeye-modal-btn routeye-modal-btn-confirm" id="routeye-modal-confirm"><span style="font-size: 16px;">✨</span> ${this.escapeHtml(a)}\n </button>\n </div>\n </div>\n </div>\n\n <div class="routeye-modal-overlay" id="routeye-feedback-modal">\n <div class="routeye-modal routeye-feedback-modal-content">\n \x3c!-- Content will be dynamically inserted --\x3e\n </div>\n </div>\n\n <div class="routeye-chat-header">\n <div class="routeye-header-left">\n <div style="flex-shrink: 0; margin-right: 6px;">\n <img src="${e}" alt="Agent" width="28" height="28" style="border-radius: 50%;">\n </div>\n <div class="routeye-header-info">\n <div class="routeye-chat-header-title">${this.escapeHtml(t)}</div>\n <div class="routeye-status">\n <span class="routeye-status-dot"></span>\n <span>${this.escapeHtml(o)}</span>\n </div>\n </div>\n </div>\n <div class="routeye-header-actions">\n ${u?`\n <button class="routeye-icon-btn" id="routeye-menu-btn" title="Menu">⋮</button>\n <div class="routeye-menu-dropdown" id="routeye-menu-dropdown">\n <button class="routeye-menu-item" id="routeye-download-btn">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2">\n <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>\n <polyline points="7 10 12 15 17 10"></polyline>\n <line x1="12" y1="15" x2="12" y2="3"></line>\n </svg>\n ${this.escapeHtml(c)}\n </button>\n </div>\n `:""}\n \n <button class="routeye-icon-btn" id="routeye-clear-btn" title="Clear chat">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M4 3h16c1.1 0 2 .9 2 2v11c0 1.1-.9 2-2 2H8l-4 3v-3H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z" fill="#fff" stroke="var(--neutral--600)" stroke-width="1.5"></path>\n <path d="M13 10h3v2h-3v3h-2v-3H8v-2h3V7h2v3z" fill="#000"></path>\n </svg>\n </button>\n \n <button class="routeye-close-btn" id="routeye-close-btn">×</button>\n </div>\n </div>\n \n <div class="routeye-chat-messages" id="routeye-chat-messages">\n <div class="routeye-message bot">\n <div class="routeye-message-bubble-v1 bot-bubble-v1 info-banner" style="background-color: ${w};">\n <img src="${e}" alt="${t}" class="routeye-avatar" width="24" height="24"/>\n <div class="routeye-welcome-text">\n <span class="kalravhigh">${this.escapeHtml(y)}</span> \n <div class="routeye-welcome-intro">${_}</div> \n ${x?`<div class="routeye-welcome-subintro">${this.escapeHtml(x)}</div>`:""}\n </div>\n </div>\n </div>\n \n \x3c!-- Disclaimer Debug: Show=${this.config.showDisclaimer} ShowInsideChat=${this.config.disclaimerShowInsideChat} Textlen=${(this.config.disclaimerText||"").length} --\x3e\n ${this.config.showDisclaimer&&this.config.disclaimerShowInsideChat?`\n <div class="routeye-disclaimer">\n <div class="routeye-disclaimer-icon">⚠️</div>\n <div class="routeye-disclaimer-content">\n <span class="routeye-disclaimer-text">${this.escapeHtml(this.config.disclaimerText)}</span>\n ${this.config.disclaimerUrl?`<a href="${this.config.disclaimerUrl}" target="_blank" class="routeye-disclaimer-link">${this.escapeHtml(this.config.disclaimerLinkText||"Read more")}</a>`:""}\n </div>\n </div>\n `:""}\n\n ${v?`\n <div class="routeye-quick-replies-section">\n ${this.config.welcomeMessage?`<p class="routeye-quick-replies-title">${this.escapeHtml(this.config.welcomeMessage)}</p>`:""}\n <div class="routeye-quick-replies" id="routeye-quick-replies">\n ${v}\n </div>\n </div>\n `:""}\n \n <div id="routeye-lead-form-container"></div>\n </div>\n \n <div class="routeye-chat-input-container">\n <div class="routeye-input-wrapper">\n <div class="routeye-input-with-mic">\n <input type="text" class="routeye-chat-input" id="routeye-chat-input" placeholder="${n}" autocomplete="off"/>\n ${h?'\n <button class="routeye-input-btn routeye-mic-inside" id="routeye-mic-btn" title="Voice message">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="#673de6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>\n <path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>\n <line x1="12" y1="19" x2="12" y2="23"></line>\n <line x1="8" y1="23" x2="16" y2="23"></line>\n </svg>\n </button>\n ':""}\n </div>\n <button class="routeye-send-btn" id="routeye-send-btn">\n <svg viewBox="0 0 24 24" width="24" height="24" fill="#fff">\n <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path>\n </svg>\n </button>\n </div>\n \n <div class="routeye-bottom-actions">\n <select class="routeye-language-select" id="routeye-language-select">\n ${b}\n </select>\n\n <div class="routeye-bottom-actions-right">\n ${d?'\n <button class="routeye-action-btn routeye-speak-btn" id="routeye-speaker-btn" title="Text to speech">\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#673de6" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14"></path>\n </svg>\n </button>\n ':""}\n ${p?'\n <button class="routeye-action-btn" id="routeye-file-btn" title="Upload file">\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#673de6" stroke-width="2">\n <path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>\n </svg>\n </button>\n ':""}\n </div>\n </div>\n <input type="file" class="routeye-file-input" id="routeye-file-input" accept=".pdf,.doc,.docx,.txt,.csv,.xls,.xlsx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain"/>\n \n ${this.config.showDisclaimer&&this.config.disclaimerShowInFooter?`\n <div class="routeye-footer-disclaimer">\n <span class="routeye-disclaimer-icon" style="font-size: 12px;">⚠️</span>\n <span>\n ${this.escapeHtml(this.config.footerDisclaimerText||this.config.disclaimerText)}\n ${this.config.footerDisclaimerUrl||this.config.disclaimerUrl?`<a href="${this.config.footerDisclaimerUrl||this.config.disclaimerUrl}" target="_blank">${this.escapeHtml(this.config.footerDisclaimerLinkText||this.config.disclaimerLinkText||"Read more")}</a>`:""}\n </span>\n </div>\n `:""}\n\n </div>\n <p align="right" style="padding-top:0px;font-size:12px; margin: 3px;">\n <img src="https://kalrav.ai/wp-content/plugins/kalrav-ai-agent/assets/bolt.svg" width="12" height="12" style="vertical-align:middle;margin:0 2px;" alt="Power Icon">\n <a href="https://kalrav.ai" target="_blank" rel="noopener noreferrer" style="text-decoration:none;color:inherit;">Kalrav AI Agent</a>\n </p>\n </div>\n `}bindEvents(){const e=this.shadowRoot.getElementById("routeye-chat-bubble"),t=this.shadowRoot.getElementById("routeye-close-btn"),n=this.shadowRoot.getElementById("routeye-send-btn"),r=this.shadowRoot.getElementById("routeye-chat-input"),o=this.shadowRoot.getElementById("routeye-clear-btn"),s=this.shadowRoot.getElementById("routeye-menu-btn"),i=this.shadowRoot.getElementById("routeye-menu-dropdown"),a=this.shadowRoot.getElementById("routeye-download-btn"),l=this.shadowRoot.getElementById("routeye-mic-btn"),c=this.shadowRoot.getElementById("routeye-speaker-btn"),u=this.shadowRoot.getElementById("routeye-file-btn"),d=this.shadowRoot.getElementById("routeye-file-input"),h=this.shadowRoot.getElementById("routeye-language-select"),p=this.shadowRoot.getElementById("routeye-chat-window"),g=this.shadowRoot.getElementById("routeye-clear-modal"),f=this.shadowRoot.getElementById("routeye-modal-cancel"),m=this.shadowRoot.getElementById("routeye-modal-confirm");this.bindQuickReplies(),e.addEventListener("click",()=>this.toggleChat()),t.addEventListener("click",()=>{this.speechHandler.stopSpeaking(),p.classList.contains("fullscreen")?this.uiHandler.exitFullscreen():this.toggleChat()}),n.addEventListener("click",()=>this.messageHandler.sendMessage()),r.addEventListener("keypress",e=>{"Enter"!==e.key||this.isLoading||this.messageHandler.sendMessage()}),s&&i&&(s.addEventListener("click",e=>{e.stopPropagation(),i.classList.toggle("show")}),document.addEventListener("click",()=>{i.classList.remove("show")})),a&&a.addEventListener("click",()=>{this.chatHandler.downloadChat(),i&&i.classList.remove("show")}),o&&o.addEventListener("click",()=>{g.classList.add("show")}),f.addEventListener("click",()=>{g.classList.remove("show")}),m.addEventListener("click",()=>{try{this.api.clearSession(),window.speechSynthesis.cancel(),this.clearMessagesFromStorage();const e=this.shadowRoot.getElementById("routeye-chat-messages");e.innerHTML="",e.innerHTML+=this.getWelcomeMessageHTML(),this.renderQuickReplies(e)}catch(e){console.error("Error clearing session:",e)}finally{g.classList.remove("show")}}),g.addEventListener("click",e=>{e.target===g&&feedbackModal.classList.remove("show")}),h.addEventListener("change",e=>{this.selectedLanguage=e.target.value}),l&&l.addEventListener("click",()=>{this.audioHandler.toggleRecording()}),c&&c.addEventListener("click",()=>{this.autoReadEnabled=!this.autoReadEnabled,c.style.opacity=this.autoReadEnabled?"1":"0.5",this.autoReadEnabled||this.speechHandler.stopSpeaking(),this.messageHandler.showSuccessMessage(this.autoReadEnabled?"🔊 Auto-read enabled":"🔇 Auto-read disabled")}),u&&d&&(u.addEventListener("click",()=>{d.click()}),d.addEventListener("change",e=>{this.fileHandler.handleFileUpload(e)})),p.addEventListener("dblclick",()=>this.uiHandler.toggleFullscreen()),this.uiHandler.makeResizable(p),this.uiHandler.makeDraggable(p,".routeye-chat-header");const b=this.shadowRoot.getElementById("routeye-lead-form-container");b&&!b.hasChildNodes()&&this.leadHandler.renderLeadForm(b)}renderQuickReplies(e){const t=this.config.defaultQuestions||[];if(t.length>0){const n=document.createElement("div");n.className="routeye-quick-replies-section",n.innerHTML=`\n ${this.config.welcomeMessage?`<p class="routeye-quick-replies-title">${this.config.welcomeMessage}</p>`:""}\n <div class="routeye-quick-replies" id="routeye-quick-replies">\n ${t.map(e=>`\n <button class="routeye-quick-reply-btn" data-message="${this.escapeHtml(e)}"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="\n transform: rotate(-45deg);\n flex-shrink: 0;\n ">\n <line x1="5" y1="12" x2="19" y2="12"></line>\n <polyline points="12 5 19 12 12 19"></polyline>\n </svg> ${this.escapeHtml(e)}</button>`).join("\n ")}\n </div>\n `,e.appendChild(n),this.bindQuickReplies()}let n=this.shadowRoot.getElementById("routeye-lead-form-container");n||(n=document.createElement("div"),n.id="routeye-lead-form-container",e.appendChild(n)),n&&!n.hasChildNodes()&&this.leadHandler.renderLeadForm(n)}bindQuickReplies(){const e=this.shadowRoot.querySelectorAll(".routeye-quick-reply-btn"),t=this.shadowRoot.getElementById("routeye-chat-input");e.forEach(e=>{e.addEventListener("click",()=>{const n=e.getAttribute("data-message");t.value=n,this.messageHandler.sendMessage()})})}toggleChat(){this.isOpen&&this.speechHandler.stopSpeaking(),this.isOpen=!this.isOpen;const e=this.shadowRoot.getElementById("routeye-chat-window");this.isOpen?(e.classList.add("open"),this.shadowRoot.getElementById("routeye-chat-input").focus()):e.classList.remove("open")}setLoading(e){this.isLoading=e;const t=this.shadowRoot.getElementById("routeye-send-btn"),n=this.shadowRoot.getElementById("routeye-chat-input");t.disabled=e,n.disabled=e}addMessage(e,t,n=null,r=null,o=null){const s=n||`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,i=r||(new Date).toISOString();return this.messages.some(e=>e.id===s)||(this.messages.push({id:s,type:e,text:t,timestamp:i,feedback:o}),this.saveMessagesToStorage()),this.renderMessage(e,t,s,i),s}addSystemMessage(e){return this.messageHandler.addSystemMessage(e)}addErrorMessage(e){this.messageHandler.addErrorMessage(e)}showSuccessMessage(e){this.messageHandler.showSuccessMessage(e)}sendMessage(){this.messageHandler.sendMessage()}removeMessage(e){return this.messages=this.messages.filter(t=>t.id!==e),this.saveMessagesToStorage(),this.messageHandler.removeMessage(e)}escapeHtml(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}formatBotMessage(e){return e.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\n/g,"<br>")}}window.addEventListener("beforeunload",()=>{window.speechSynthesis.cancel()}),async function(){const e=document.getElementsByTagName("script");let t=null;for(let n of e)if(n.src&&n.src.includes("routeye-widget.js")){t=n;break}if(!t)return void console.error("RouteEye Widget: Could not find script tag");const n=t.getAttribute("data-agent-id"),r=t.getAttribute("data-x-key"),o=t.getAttribute("data-primary-color")||"#4F46E5";if(!n||!r)return void console.error("RouteEye Widget: Missing required attributes (data-agent-id and data-x-key)");const s={agentId:n,apiKey:r,primaryColor:o};console.log("🚀 Initializing RouteEye Widget...");const i=await Sn.fetchAndMergeConfig(n,s);console.log("✅ Widget configuration loaded:",i);const a=()=>{new In(i)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()}()})();
|
|
1
|
+
(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{decode:()=>f,encode:()=>y,format:()=>k,parse:()=>T});var n={};e.r(n),e.d(n,{Any:()=>B,Cc:()=>q,Cf:()=>R,P:()=>M,S:()=>z,Z:()=>$});var r={};e.r(r),e.d(r,{arrayReplaceAt:()=>he,assign:()=>de,escapeHtml:()=>Ce,escapeRE:()=>De,fromCodePoint:()=>ge,has:()=>ue,isMdAsciiPunct:()=>Le,isPunctChar:()=>Se,isSpace:()=>Ae,isString:()=>le,isValidEntityCode:()=>pe,isWhiteSpace:()=>Fe,lib:()=>Te,normalizeReference:()=>Ie,unescapeAll:()=>ke,unescapeMd:()=>ye});var o={};e.r(o),e.d(o,{parseLinkDestination:()=>ze,parseLinkLabel:()=>Me,parseLinkTitle:()=>Be});const s="https://dev-api.kalrav.ai",i="https://kalrav-central-system-api.kalrav.ai",a=class{constructor(e,t){this.agentId=e,this.apiKey=t,this.sessionKey=`routeeye_session_${e}`,this.userKey=`routeeye_user_${e}`,this.sessionId=this.loadFromStorage(this.sessionKey),this.userId=this.loadFromStorage(this.userKey)}loadFromStorage(e){try{const t=sessionStorage.getItem(e);return t&&"null"!==t&&"undefined"!==t?t:null}catch(e){return console.warn("⚠️ Could not read from sessionStorage:",e),null}}saveToStorage(e,t){try{if(!t||"null"===t||"undefined"===t)return void console.warn("⚠️ Ignoring invalid value for key:",e);sessionStorage.setItem(e,t)}catch(e){console.error("❌ Could not save to sessionStorage:",e)}}removeFromStorage(e){try{sessionStorage.removeItem(e)}catch(e){console.error("❌ Could not remove from sessionStorage:",e)}}saveSessionId(e){e&&"null"!==e&&"undefined"!==e?(this.sessionId=e,this.saveToStorage(this.sessionKey,e)):console.warn("⚠️ Ignoring invalid sessionId:",e)}saveUserId(e){e&&"null"!==e&&"undefined"!==e?(this.userId=e,this.saveToStorage(this.userKey,e)):console.warn("⚠️ Ignoring invalid userId:",e)}clearSession(){this.sessionId=null,this.userId=null,this.removeFromStorage(this.sessionKey),this.removeFromStorage(this.userKey)}getSessionInfo(){return{sessionId:this.sessionId,userId:this.userId,hasSession:!(!this.sessionId||"null"===this.sessionId||"undefined"===this.sessionId)}}async ensureSession(){if(this.sessionId&&"null"!==this.sessionId&&"undefined"!==this.sessionId)return{session_id:this.sessionId,user_id:this.userId};try{return await this.sendQuery("init"),{session_id:this.sessionId,user_id:this.userId}}catch(e){throw console.error("❌ Failed to create session:",e),new Error("Could not initialize session. Please try again.")}}async sendQuery(e){try{const t={agent_id:this.agentId,query:e};this.sessionId&&"null"!==this.sessionId&&"undefined"!==this.sessionId&&(t.session_id=this.sessionId),this.userId&&"null"!==this.userId&&"undefined"!==this.userId&&(t.user_id=this.userId);const n=await fetch(`${s}/api/v1/query`,{method:"POST",headers:{"Content-Type":"application/json","x-agent":this.agentId,"x-key":this.apiKey},body:JSON.stringify(t)});if(!n.ok){const e=await n.text();if(console.error("❌ API Error Response:",e),401===n.status)throw new Error("Authentication failed. Please check your agent ID and API key.");if(422===n.status)throw new Error(`Validation error: ${e}`);throw new Error(`API error (${n.status}): ${e}`)}const r=await n.json();return r.session_id&&this.saveSessionId(r.session_id),r.user_id&&this.saveUserId(r.user_id),r}catch(e){throw console.error("RouteEye API Error:",e),e}}async uploadDocument(e,t=null){try{let n;n=t&&"null"!==t&&"undefined"!==t?t:(await this.ensureSession()).session_id;const r=new FormData;r.append("file",e),r.append("session_id",n);const o=await fetch(`${s}/api/v1/upload_document`,{method:"POST",headers:{"x-agent":this.agentId,"x-key":this.apiKey},body:r});if(!o.ok){if(401===o.status)throw new Error("Authentication failed.");if(422===o.status){const e=await o.json();throw new Error(e.detail||"Validation error")}throw new Error(`Upload failed: ${o.status}`)}const i=await o.json();return i.session_id&&this.saveSessionId(i.session_id),i}catch(e){throw console.error("❌ Document upload error:",e),e}}async getLeadGenSettings(){try{const e=await fetch(`${i}/api/agents/${this.agentId}/lead-gen-settings`,{method:"GET",headers:{"x-agent":this.agentId,"x-key":this.apiKey}});return e.ok?await e.json():(console.error("❌ Failed to fetch lead gen settings:",e.status),null)}catch(e){return console.error("❌ Error fetching lead gen settings:",e),null}}async submitLead(e){try{const t=await fetch(`${i}/api/agents/${this.agentId}/leads`,{method:"POST",headers:{"Content-Type":"application/json","x-agent":this.agentId,"x-key":this.apiKey},body:JSON.stringify(e)});if(!t.ok){const e=await t.json();if(console.error("❌ Lead submission error:",e),400===t.status)throw new Error(e.errors?e.errors.join("\n"):e.message);throw new Error(e.message||"Failed to submit lead")}return await t.json()}catch(e){throw console.error("❌ Lead submission error:",e),e}}async createZohoLead(e){return this.submitLead(e)}};function l(e,t){return"#"+e.replace(/^#/,"").replace(/../g,e=>("0"+Math.min(255,Math.max(0,parseInt(e,16)+t)).toString(16)).substr(-2))}class c{constructor(e){this.widget=e,this.isRecording=!1,this.recognition=null}async toggleRecording(){const e=this.widget.shadowRoot.getElementById("routeye-mic-btn");if(this.isRecording)this.stopRecording();else try{if(!window.SpeechRecognition&&!window.webkitSpeechRecognition)return void this.widget.addErrorMessage("Speech recognition is not supported in this browser. Please use Chrome, Edge, or Safari.");this.startSpeechRecognition(),this.isRecording=!0,e.classList.add("recording"),this.widget.showSuccessMessage("⏳ Initializing microphone…")}catch(e){console.error("Recording error:",e),this.widget.addErrorMessage("Could not start speech recognition. Please check permissions.")}}startSpeechRecognition(){const e=window.SpeechRecognition||window.webkitSpeechRecognition;this.recognition=new e,this.recognition.continuous=!1,this.recognition.interimResults=!1,this.recognition.lang=this.getLanguageCode(this.widget.selectedLanguage),this.recognition.maxAlternatives=1;const t=this.widget.shadowRoot.getElementById("routeye-mic-btn");let n=!1,r=!1;this.recognition.onaudiostart=()=>{this.widget.showSuccessMessage("🎙️ Speak now")},this.recognition.onsoundstart=()=>{n||(n=!0,this.widget.showSuccessMessage("🔊 Listening…")),r=!0},this.recognition.onsoundend=()=>{r&&this.widget.showSuccessMessage("⏳ Processing your voice…")},this.recognition.onresult=e=>{const t=e.results[0][0].transcript;this.widget.shadowRoot.getElementById("routeye-chat-input").value=t,this.widget.sendMessage(),this.widget.showSuccessMessage("✅ Voice message sent!")},this.recognition.onerror=e=>{console.error("Speech recognition error:",e.error),this.isRecording=!1,t.classList.remove("recording"),"no-speech"===e.error?this.widget.addErrorMessage("No speech detected. Please try again."):"not-allowed"===e.error?this.widget.addErrorMessage("Microphone access denied."):"aborted"!==e.error&&this.widget.addErrorMessage(`Speech recognition error: ${e.error}`)},this.recognition.onend=()=>{this.isRecording=!1,t.classList.remove("recording")},this.recognition.start()}stopRecording(){this.recognition&&this.recognition.stop(),this.isRecording=!1,this.widget.shadowRoot.getElementById("routeye-mic-btn").classList.remove("recording"),this.widget.showSuccessMessage("⛔ Recording stopped")}getLanguageCode(e){return{English:"en-US",Spanish:"es-ES",French:"fr-FR",German:"de-DE",Hindi:"hi-IN",Chinese:"zh-CN"}[e]||"en-US"}}class u{constructor(e){this.widget=e,this.synth=window.speechSynthesis,this.voices=[],this.loadVoices(),void 0!==window.speechSynthesis.onvoiceschanged&&(window.speechSynthesis.onvoiceschanged=()=>this.loadVoices())}loadVoices(){this.voices=this.synth.getVoices()}stopSpeaking(){(this.synth.speaking||this.synth.pending)&&this.synth.cancel(),this.widget.shadowRoot.querySelectorAll(".routeye-speak-btn, #routeye-speaker-btn").forEach(e=>e.classList.remove("speaking"))}speakText(e,t=null){if(!("speechSynthesis"in window))return void console.error("⚠️ Browser does not support speech synthesis.");this.stopSpeaking();const n=this.cleanText(e);if(!n)return;if(0===this.voices.length)return this.loadVoices(),void setTimeout(()=>this.speakText(e,t),100);const r=new SpeechSynthesisUtterance(n),o=this.widget.selectedLanguage||"English",s=this.getLanguageCode(o),i=this.selectBestVoice(s);r.voice=i,r.lang=i?i.lang:s,r.rate=.9,r.pitch=1;const a=this.widget.shadowRoot.getElementById("routeye-speaker-btn");r.onstart=()=>{t&&t.classList.add("speaking"),this.widget.autoReadEnabled&&a&&a.classList.add("speaking")},r.onend=()=>{t&&t.classList.remove("speaking"),a&&this.widget.autoReadEnabled?a.classList.add("speaking"):a&&a.classList.remove("speaking")},r.onerror=()=>{t&&t.classList.remove("speaking"),a&&a.classList.remove("speaking")},this.synth.speak(r),this.currentUtterance=r}speakLastMessage(){const e=this.widget.shadowRoot.querySelectorAll(".routeye-message.bot .routeye-message-bubble");if(!e.length)return;const t=e[e.length-1].innerText;this.speakText(t)}getLanguageCode(e){return{English:"en-US",Hindi:"hi-IN",Telugu:"te-IN",Kannada:"kn-IN",Malayalam:"ml-IN",Tamil:"ta-IN",Bengali:"bn-IN",Marathi:"mr-IN",Gujarati:"gu-IN",Japanese:"ja-JP",Chinese:"zh-CN",Russian:"ru-RU",Spanish:"es-ES",French:"fr-FR",German:"de-DE"}[e]||"en-US"}selectBestVoice(e){this.voices.length||(this.voices=this.synth.getVoices());const t=e.split("-")[0],n=this.voices.filter(n=>n.lang===e||n.lang.startsWith(t));if(n.length>0){const e=n.find(e=>e.name.includes("Google"));if(e)return e;return n.find(e=>e.name.includes("Microsoft"))||n[0]}if(["te","kn","ml","ta","bn","gu","mr"].includes(t)){console.warn(`⚠️ No voice found for ${e}. Falling back to Hindi.`);const t=this.voices.find(e=>"hi-IN"===e.lang||e.lang.startsWith("hi"));if(t)return t}return this.voices.find(e=>"en-US"===e.lang)||this.voices[0]}cleanText(e){if(!e)return"";let t=String(e);const n=document.createElement("div");return n.innerHTML=t,t=n.textContent||n.innerText||"",t=t.replace(/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g,""),t=t.replace(/[👋🎙️🔊⏳✅❌⛔🔥💾📤🎯🎧🎤🚀]/g,""),t=t.replace(/[,;:]+/g," "),t=t.replace(/\./g," "),t=t.replace(/[•◦▪▫★☆♦♥♠♣]/g,""),t=t.replace(/\([^a-zA-Z0-9\s]+\)/g,""),t=t.replace(/\[[^a-zA-Z0-9\s]+\]/g,""),t=t.replace(/(?:https?|ftp):\/\/[\n\S]+/g,""),t=t.replace(/[!@#$%^&*()_+=\[\]{}<>?\/\\|`~]/g," "),t=t.replace(/\s+/g," ").trim(),t}}class d{constructor(e){this.widget=e}async handleFileUpload(e){const t=e.target.files[0];if(!t)return;if(t.size>10485760)return this.widget.addErrorMessage("File size exceeds 10MB limit."),void(e.target.value="");if(!/\.(pdf|doc|docx|txt|csv|xls|xlsx)$/i.test(t.name))return this.widget.addErrorMessage("Unsupported file type. Please upload PDF, DOC, DOCX, TXT, CSV, XLS, or XLSX files."),void(e.target.value="");const n=this.widget.addSystemMessage(`📤 Uploading "${t.name}"... `),r=this.widget.shadowRoot.getElementById(n);console.log("🔍 Element exists after creation?",null!==r),this.widget.setLoading(!0);try{if(await this.widget.api.uploadDocument(t),await new Promise(e=>setTimeout(e,50)),n){const e=this.widget.shadowRoot.getElementById(n);e?e.remove():console.warn("❌ Could not find element to remove")}this.widget.addSystemMessage(` ✅ Document: <strong>${t.name}</strong> (${this.formatFileSize(t.size)}) Uploaded Successfully, Now you can Start asking Questions`)}catch(e){if(console.error("Upload error:",e),n){const e=this.widget.shadowRoot.getElementById(n);e&&e.remove()}this.widget.addErrorMessage(`Failed to upload "${t.name}": ${e.message}`)}finally{this.widget.setLoading(!1),e.target.value=""}}formatFileSize(e){if(0===e)return"0 Bytes";const t=Math.floor(Math.log(e)/Math.log(1024));return Math.round(e/Math.pow(1024,t)*100)/100+" "+["Bytes","KB","MB"][t]}}class h{constructor(e){this.widget=e}toggleFullscreen(){const e=this.widget.shadowRoot.getElementById("routeye-chat-window"),t=this.widget.shadowRoot.host;e.classList.toggle("fullscreen"),t.classList.toggle("fullscreen-active"),e.classList.contains("fullscreen")}exitFullscreen(){const e=this.widget.shadowRoot.getElementById("routeye-chat-window"),t=this.widget.shadowRoot.host;e.classList.remove("fullscreen"),t.classList.remove("fullscreen-active")}makeDraggable(e,t){const n=e.querySelector(t);if(!n)return;let r,o,s,i,a=!1;n.addEventListener("mousedown",t=>{if(t.target.closest("button")||t.target.closest(".routeye-icon-btn")||t.target.closest(".routeye-resize-handle"))return;t.preventDefault(),a=!0;const n=e.getBoundingClientRect();r=t.clientX,o=t.clientY,s=n.left,i=n.top,e.style.position="fixed",e.style.bottom="auto",e.style.right="auto",e.style.left=`${s}px`,e.style.top=`${i}px`,e.style.margin="0"}),document.addEventListener("mousemove",t=>{if(!a)return;const n=t.clientX-r,l=t.clientY-o;let c=s+n,u=i+l;const d=window.innerWidth,h=window.innerHeight,p=e.getBoundingClientRect();u<0&&(u=0),u>h-40&&(u=h-40),c+p.width<40&&(c=40-p.width),c>d-40&&(c=d-40),e.style.left=`${c}px`,e.style.top=`${u}px`}),document.addEventListener("mouseup",()=>{a=!1})}makeResizable(e){[{class:"top-left",cursor:"nw-resize"},{class:"top",cursor:"n-resize"},{class:"top-right",cursor:"ne-resize"},{class:"right",cursor:"e-resize"},{class:"bottom-right",cursor:"se-resize"},{class:"bottom",cursor:"s-resize"},{class:"bottom-left",cursor:"sw-resize"},{class:"left",cursor:"w-resize"}].forEach(t=>{if(!e.querySelector(`.routeye-resize-${t.class}`)){const n=document.createElement("div");n.classList.add("routeye-resize-handle",`routeye-resize-${t.class}`),n.style.cursor=t.cursor,e.appendChild(n)}});let t,n,r,o,s,i,a=!1,l=null;e.addEventListener("mousedown",c=>{if(e.classList.contains("fullscreen"))return;const u=c.target.closest(".routeye-resize-handle");if(!u)return;a=!0,l=u;const d=e.getBoundingClientRect();r=d.width,o=d.height,s=d.left,i=d.top,t=c.clientX,n=c.clientY,e.style.position="fixed",e.style.left=`${s}px`,e.style.top=`${i}px`,e.style.bottom="auto",e.style.right="auto",c.preventDefault(),c.stopPropagation()}),document.addEventListener("mousemove",c=>{if(!a||!l)return;const u=c.clientX-t,d=c.clientY-n,h=l.className;let p=r,g=o,f=s,m=i;const b=window.getComputedStyle(e),y=parseFloat(b.maxHeight)||1/0,k=parseFloat(b.maxWidth)||1/0;if(h.includes("right"))p=Math.min(Math.max(320,r+u),k);else if(h.includes("left")){const e=r-u;p=Math.min(Math.max(320,e),k),f=s-(p-r)}if(h.includes("bottom"))g=Math.min(Math.max(400,o+d),y);else if(h.includes("top")){const e=o-d;console.log("[Resize Top] DeltaY:",d,"StartH:",o,"Desired:",e,"Max:",y),g=Math.min(Math.max(400,e),y),console.log("[Resize Top] NewH:",g);const t=g-o;m=i-t,console.log("[Resize Top] HChange:",t,"StartTop:",i,"NewTop:",m)}e.style.width=`${p}px`,e.style.height=`${g}px`,e.style.left=`${f}px`,e.style.top=`${m}px`,e.style.bottom="auto",e.style.right="auto",e.style.position="fixed"}),document.addEventListener("mouseup",()=>{a&&(a=!1,l=null)})}}const p={};function g(e,t){"string"!=typeof t&&(t=g.defaultChars);const n=function(e){let t=p[e];if(t)return t;t=p[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const s=parseInt(e.slice(r+1,r+3),16);if(s<128)t+=n[s];else{if(192==(224&s)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=s<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&s)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=s<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&s)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),i=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&i)){let e=s<<18&1835008|n<<12&258048|o<<6&4032|63&i;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}g.defaultChars=";/?:@&=+$,#",g.componentChars="";const f=g,m={};function b(e,t,n){"string"!=typeof t&&(n=t,t=b.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=m[e];if(t)return t;t=m[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,s=e.length;t<s;t++){const i=e.charCodeAt(t);if(n&&37===i&&t+2<s&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(i<128)o+=r[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&t+1<s){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}b.defaultChars=";/?:@&=+$,-_.!~*'()#",b.componentChars="-_.!~*'()";const y=b;function k(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function x(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const w=/^([a-z0-9.+-]+:)/i,_=/:[0-9]*$/,v=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,C=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),E=["'"].concat(C),D=["%","/","?",";","#"].concat(E),A=["/","?","#"],F=/^[+a-z0-9A-Z_-]{0,63}$/,S=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,L={javascript:!0,"javascript:":!0},I={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};x.prototype.parse=function(e,t){let n,r,o,s=e;if(s=s.trim(),!t&&1===e.split("#").length){const e=v.exec(s);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let i=w.exec(s);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,s=s.substr(i.length)),(t||i||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===s.substr(0,2),!o||i&&L[i]||(s=s.substr(2),this.slashes=!0)),!L[i]&&(o||i&&!I[i])){let e,t,n=-1;for(let e=0;e<A.length;e++)r=s.indexOf(A[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?s.lastIndexOf("@"):s.lastIndexOf("@",n),-1!==t&&(e=s.slice(0,t),s=s.slice(t+1),this.auth=e),n=-1;for(let e=0;e<D.length;e++)r=s.indexOf(D[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=s.length),":"===s[n-1]&&n--;const o=s.slice(0,n);s=s.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(F)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(F)){const r=e.slice(0,t),o=e.slice(t+1),i=n.match(S);i&&(r.push(i[1]),o.unshift(i[2])),o.length&&(s=o.join(".")+s),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=s.indexOf("#");-1!==a&&(this.hash=s.substr(a),s=s.slice(0,a));const l=s.indexOf("?");return-1!==l&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),I[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},x.prototype.parseHost=function(e){let t=_.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const T=function(e,t){if(e&&e instanceof x)return e;const n=new x;return n.parse(e,t),n},M=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,z=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,B=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,q=/[\0-\x1F\x7F-\x9F]/,R=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,$=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,H=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),N=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var P;const U=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),O=null!==(P=String.fromCodePoint)&&void 0!==P?P:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var j,V,Z,Q,G;function K(e){return e>=j.ZERO&&e<=j.NINE}function Y(e){return e>=j.UPPER_A&&e<=j.UPPER_F||e>=j.LOWER_A&&e<=j.LOWER_F}function W(e){return e===j.EQUALS||function(e){return e>=j.UPPER_A&&e<=j.UPPER_Z||e>=j.LOWER_A&&e<=j.LOWER_Z||K(e)}(e)}!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(j||(j={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(V||(V={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Z||(Z={})),(G=Q||(Q={}))[G.Legacy=0]="Legacy",G[G.Strict=1]="Strict",G[G.Attribute=2]="Attribute";class J{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Z.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Q.Strict}startEntity(e){this.decodeMode=e,this.state=Z.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Z.EntityStart:return e.charCodeAt(t)===j.NUM?(this.state=Z.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Z.NamedEntity,this.stateNamedEntity(e,t));case Z.NumericStart:return this.stateNumericStart(e,t);case Z.NumericDecimal:return this.stateNumericDecimal(e,t);case Z.NumericHex:return this.stateNumericHex(e,t);case Z.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===j.LOWER_X?(this.state=Z.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Z.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!K(r)&&!Y(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!K(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===j.SEMI)this.consumed+=1;else if(this.decodeMode===Q.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=U.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==j.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&V.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const s=e.charCodeAt(t);if(this.treeIndex=ee(n,r,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return 0===this.result||this.decodeMode===Q.Attribute&&(0===o||W(s))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&V.VALUE_LENGTH)>>14,0!==o){if(s===j.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Q.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&V.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~V.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Z.NamedEntity:return 0===this.result||this.decodeMode===Q.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Z.NumericDecimal:return this.emitNumericEntity(0,2);case Z.NumericHex:return this.emitNumericEntity(0,3);case Z.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Z.EntityStart:return 0}}}function X(e){let t="";const n=new J(e,e=>t+=O(e));return function(e,r){let o=0,s=0;for(;(s=e.indexOf("&",s))>=0;){t+=e.slice(o,s),n.startEntity(r);const i=n.write(e,s+1);if(i<0){o=s+n.end();break}o=s+i,s=0===i?o+1:o}const i=t+e.slice(o);return t="",i}}function ee(e,t,n,r){const o=(t&V.BRANCH_LENGTH)>>7,s=t&V.JUMP_TABLE;if(0===o)return 0!==s&&r===s?n:-1;if(s){const t=r-s;return t<0||t>=o?-1:e[n+t]-1}let i=n,a=i+o-1;for(;i<=a;){const t=i+a>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+o];a=t-1}}return-1}const te=X(H);function ne(e,t=Q.Legacy){return te(e,t)}function re(e){for(let t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}X(N),new Map(re([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(re([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(re([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(re([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));const oe=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function se(e,t){return function(n){let r,o=0,s="";for(;r=e.exec(n);)o!==r.index&&(s+=n.substring(o,r.index)),s+=t.get(r[0].charCodeAt(0)),o=r.index+1;return s+n.substring(o)}}var ie,ae;function le(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}String.prototype.codePointAt,se(/[&<>'"]/g,oe),se(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),se(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(ie||(ie={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(ae||(ae={}));const ce=Object.prototype.hasOwnProperty;function ue(e,t){return ce.call(e,t)}function de(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function he(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function pe(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||!(65535&~e&&65534!=(65535&e))||e>=0&&e<=8||11===e||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function ge(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const fe=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,me=new RegExp(fe.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),be=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ye(e){return e.indexOf("\\")<0?e:e.replace(fe,"$1")}function ke(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(me,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&be.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return pe(n)?ge(n):e}const n=ne(e);return n!==e?n:e}(e,n)})}const xe=/[&<>"]/,we=/[&<>"]/g,_e={"&":"&","<":"<",">":">",'"':"""};function ve(e){return _e[e]}function Ce(e){return xe.test(e)?e.replace(we,ve):e}const Ee=/[.?*+^$[\]\\(){}|-]/g;function De(e){return e.replace(Ee,"\\$&")}function Ae(e){switch(e){case 9:case 32:return!0}return!1}function Fe(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function Se(e){return M.test(e)||z.test(e)}function Le(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Ie(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Te={mdurl:t,ucmicro:n};function Me(e,t,n){let r,o,s,i;const a=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<a;){if(s=e.src.charCodeAt(e.pos),93===s&&(r--,0===r)){o=!0;break}if(i=e.pos,e.md.inline.skipToken(e),91===s)if(i===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c}function ze(e,t,n){let r,o=t;const s={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return s;if(60===r)return s;if(62===r)return s.pos=o+1,s.str=ke(e.slice(t+1,o)),s.ok=!0,s;92===r&&o+1<n?o+=2:o++}return s}let i=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(i++,i>32))return s;if(41===r){if(0===i)break;i--}o++}return t===o||0!==i||(s.str=ke(e.slice(t,o)),s.pos=o,s.ok=!0),s}function Be(e,t,n,r){let o,s=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(s>=n)return i;let r=e.charCodeAt(s);if(34!==r&&39!==r&&40!==r)return i;t++,s++,40===r&&(r=41),i.marker=r}for(;s<n;){if(o=e.charCodeAt(s),o===i.marker)return i.pos=s+1,i.str+=ke(e.slice(t,s)),i.ok=!0,i;if(40===o&&41===i.marker)return i;92===o&&s+1<n&&s++,s++}return i.can_continue=!0,i.str+=ke(e.slice(t,s)),i}const qe={};function Re(){this.rules=de({},qe)}qe.code_inline=function(e,t,n,r,o){const s=e[t];return"<code"+o.renderAttrs(s)+">"+Ce(s.content)+"</code>"},qe.code_block=function(e,t,n,r,o){const s=e[t];return"<pre"+o.renderAttrs(s)+"><code>"+Ce(e[t].content)+"</code></pre>\n"},qe.fence=function(e,t,n,r,o){const s=e[t],i=s.info?ke(s.info).trim():"";let a,l="",c="";if(i){const e=i.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(a=n.highlight&&n.highlight(s.content,l,c)||Ce(s.content),0===a.indexOf("<pre"))return a+"\n";if(i){const e=s.attrIndex("class"),t=s.attrs?s.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${a}</code></pre>\n`}return`<pre><code${o.renderAttrs(s)}>${a}</code></pre>\n`},qe.image=function(e,t,n,r,o){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(e,t,n)},qe.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},qe.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},qe.text=function(e,t){return Ce(e[t].content)},qe.html_block=function(e,t){return e[t].content},qe.html_inline=function(e,t){return e[t].content},Re.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Ce(e.attrs[t][0])+'="'+Ce(e.attrs[t][1])+'"';return r},Re.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let s=!1;if(r.block&&(s=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(s=!1)}return o+=s?">\n":">",o},Re.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let s=0,i=e.length;s<i;s++){const i=e[s].type;void 0!==o[i]?r+=o[i](e,s,t,n,this):r+=this.renderToken(e,s,t)}return r},Re.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,s=e.length;o<s;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},Re.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let s=0,i=e.length;s<i;s++){const i=e[s].type;"inline"===i?r+=this.renderInline(e[s].children,t,n):void 0!==o[i]?r+=o[i](e,s,t,n,this):r+=this.renderToken(e,s,t,n)}return r};const $e=Re;function He(){this.__rules__=[],this.__cache__=null}He.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},He.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},He.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},He.prototype.before=function(e,t,n,r){const o=this.__find__(e),s=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},He.prototype.after=function(e,t,n,r){const o=this.__find__(e),s=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},He.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},He.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},He.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},He.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},He.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};const Ne=He;function Pe(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Pe.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Pe.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Pe.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Pe.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Pe.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};const Ue=Pe;function Oe(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Oe.prototype.Token=Ue;const je=Oe,Ve=/\r\n?|\n/g,Ze=/\0/g;function Qe(e){return/^<a[>\s]/i.test(e)}function Ge(e){return/^<\/a\s*>/i.test(e)}const Ke=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ye=/\((c|tm|r)\)/i,We=/\((c|tm|r)\)/gi,Je={c:"©",r:"®",tm:"™"};function Xe(e,t){return Je[t.toLowerCase()]}function et(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(We,Xe)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function tt(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Ke.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const nt=/['"]/,rt=/['"]/g;function ot(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function st(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const s=e[o],i=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,"text"!==s.type)continue;let a=s.content,l=0,c=a.length;e:for(;l<c;){rt.lastIndex=l;const u=rt.exec(a);if(!u)break;let d=!0,h=!0;l=u.index+1;const p="'"===u[0];let g=32;if(u.index-1>=0)g=a.charCodeAt(u.index-1);else for(n=o-1;n>=0&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n--)if(e[n].content){g=e[n].content.charCodeAt(e[n].content.length-1);break}let f=32;if(l<c)f=a.charCodeAt(l);else for(n=o+1;n<e.length&&"softbreak"!==e[n].type&&"hardbreak"!==e[n].type;n++)if(e[n].content){f=e[n].content.charCodeAt(0);break}const m=Le(g)||Se(String.fromCharCode(g)),b=Le(f)||Se(String.fromCharCode(f)),y=Fe(g),k=Fe(f);if(k?d=!1:b&&(y||m||(d=!1)),y?h=!1:m&&(k||b||(h=!1)),34===f&&'"'===u[0]&&g>=48&&g<=57&&(h=d=!1),d&&h&&(d=m,h=b),d||h){if(h)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<i)break;if(d.single===p&&r[n].level===i){let i,h;d=r[n],p?(i=t.md.options.quotes[2],h=t.md.options.quotes[3]):(i=t.md.options.quotes[0],h=t.md.options.quotes[1]),s.content=ot(s.content,u.index,h),e[d.token].content=ot(e[d.token].content,d.pos,i),l+=h.length-1,d.token===o&&(l+=i.length-1),a=s.content,c=a.length,r.length=n;continue e}}d?r.push({token:o,pos:u.index,single:p,level:i}):h&&p&&(s.content=ot(s.content,u.index,"’"))}else p&&(s.content=ot(s.content,u.index,"’"))}}}const it=[["normalize",function(e){let t;t=e.src.replace(Ve,"\n"),t=t.replace(Ze,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let s=r.length-1;s>=0;s--){const i=r[s];if("link_close"!==i.type){if("html_inline"===i.type&&(Qe(i.content)&&o>0&&o--,Ge(i.content)&&o++),!(o>0)&&"text"===i.type&&e.md.linkify.test(i.content)){const o=i.content;let a=e.md.linkify.match(o);const l=[];let c=i.level,u=0;a.length>0&&0===a[0].index&&s>0&&"text_special"===r[s-1].type&&(a=a.slice(1));for(let t=0;t<a.length;t++){const n=a[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let s=a[t].text;s=a[t].schema?"mailto:"!==a[t].schema||/^mailto:/i.test(s)?e.md.normalizeLinkText(s):e.md.normalizeLinkText("mailto:"+s).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+s).replace(/^http:\/\//,"");const i=a[t].index;if(i>u){const t=new e.Token("text","",0);t.content=o.slice(u,i),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const h=new e.Token("text","",0);h.content=s,h.level=c,l.push(h);const p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",l.push(p),u=a[t].lastIndex}if(u<o.length){const t=new e.Token("text","",0);t.content=o.slice(u),t.level=c,l.push(t)}t[n].children=r=he(r,s,l)}}else for(s--;r[s].level!==i.level&&"link_open"!==r[s].type;)s--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Ye.test(e.tokens[t].content)&&et(e.tokens[t].children),Ke.test(e.tokens[t].content)&&tt(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&nt.test(e.tokens[t].content)&&st(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,s=o.length;for(t=0;t<s;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<s;t++)"text"===o[t].type&&t+1<s&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function at(){this.ruler=new Ne;for(let e=0;e<it.length;e++)this.ruler.push(it[e][0],it[e][1])}at.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},at.prototype.State=je;const lt=at;function ct(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,s=o.length,i=!1;t<s;t++){const a=o.charCodeAt(t);if(!i){if(Ae(a)){n++,9===a?r+=4-r%4:r++;continue}i=!0}10!==a&&t!==s-1||(10!==a&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ct.prototype.push=function(e,t,n){const r=new Ue(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ct.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ct.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ct.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t&&Ae(this.src.charCodeAt(e));e++);return e},ct.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Ae(this.src.charCodeAt(--e)))return e+1;return e},ct.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},ct.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},ct.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let s=0,i=e;i<t;i++,s++){let e=0;const a=this.bMarks[i];let l,c=a;for(l=i+1<t||r?this.eMarks[i]+1:this.eMarks[i];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Ae(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(c-a<this.tShift[i]))break;e++}c++}o[s]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},ct.prototype.Token=Ue;const ut=ct;function dt(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function ht(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),s=!1,i=0,a="";for(;r<n;)124===o&&(s?(a+=e.substring(i,r-1),i=r):(t.push(a+e.substring(i,r)),a="",i=r+1)),s=92===o,r++,o=e.charCodeAt(r);return t.push(a+e.substring(i)),t}function pt(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);return 42!==o&&45!==o&&43!==o||r<n&&!Ae(e.src.charCodeAt(r))?-1:r}function gt(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=r)return-1;if(s=e.src.charCodeAt(o++),!(s>=48&&s<=57)){if(41===s||46===s)break;return-1}if(o-n>=10)return-1}return o<r&&(s=e.src.charCodeAt(o),!Ae(s))?-1:o}const ft="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",mt="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",bt=new RegExp("^(?:"+ft+"|"+mt+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),yt=new RegExp("^(?:"+ft+"|"+mt+")"),kt=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(yt.source+"\\s*$"),/^$/,!1]],xt=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const i=e.src.charCodeAt(s++);if(124!==i&&45!==i&&58!==i)return!1;if(s>=e.eMarks[o])return!1;const a=e.src.charCodeAt(s++);if(124!==a&&45!==a&&58!==a&&!Ae(a))return!1;if(45===i&&Ae(a))return!1;for(;s<e.eMarks[o];){const t=e.src.charCodeAt(s);if(124!==t&&45!==t&&58!==t&&!Ae(t))return!1;s++}let l=dt(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=dt(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=ht(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const h=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),g=[t,0];e.push("table_open","table",1).map=g,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let f;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let m=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,s=p.length;t<s;t++)if(p[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=dt(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=ht(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),m+=d-c.length,m>65536)break;o===t+2&&(e.push("tbody_open","tbody",1).map=f=[t+2,0]),e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return f&&(e.push("tbody_close","tbody",-1),f[1]=o),e.push("table_close","table",-1),g[1]=o,e.parentType=h,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",s.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>s)return!1;const i=e.src.charCodeAt(o);if(126!==i&&96!==i)return!1;let a=o;o=e.skipChars(o,i);let l=o-a;if(l<3)return!1;const c=e.src.slice(a,o),u=e.src.slice(o,s);if(96===i&&u.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let d=t,h=!1;for(;!(d++,d>=n||(o=a=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o<s&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===i&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,i),o-a<l||(o=e.skipSpaces(o),o<s)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const a=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let p,g=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],o>=s)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[p]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let i=r;for(a.push(e.bMarks[p]),e.bMarks[p]=o;o<s;){const t=e.src.charCodeAt(o);if(!Ae(t))break;9===t?i+=4-(i+e.bsCount[p]+(n?1:0))%4:i++,o++}g=o>=s,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=i-r,u.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(g)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,p,n,!0)){r=!0;break}if(r){e.lineMax=p,0!==e.blkIndent&&(a.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}a.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const f=e.blkIndent;e.blkIndent=0;const m=e.push("blockquote_open","blockquote",1);m.markup=">";const b=[t,0];m.map=b,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=h,b[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=a[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=f,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let s=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(s++);if(42!==i&&45!==i&&95!==i)return!1;let a=1;for(;s<o;){const t=e.src.charCodeAt(s++);if(t!==i&&!Ae(t))return!1;t===i&&a++}if(a<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(a+1).join(String.fromCharCode(i)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,s,i,a,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,h,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(h=gt(e,l))>=0){if(u=!0,i=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(i,h-1)),p&&1!==d)return!1}else{if(!((h=pt(e,l))>=0))return!1;u=!1}if(p&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(r)return!0;const g=e.src.charCodeAt(h-1),f=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),1!==d&&(a.attrs=[["start",d]])):a=e.push("bullet_list_open","ul",1);const m=[l,0];a.map=m,a.markup=String.fromCharCode(g);let b=!1;const y=e.md.block.ruler.getRules("list"),k=e.parentType;for(e.parentType="list";l<n;){s=h,o=e.eMarks[l];const t=e.sCount[l]+h-(e.bMarks[l]+e.tShift[l]);let r=t;for(;s<o;){const t=e.src.charCodeAt(s);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}s++}const d=s;let p;p=d>=o?1:r-t,p>4&&(p=1);const f=t+p;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(g);const m=[l,0];a.map=m,u&&(a.info=e.src.slice(i,h-1));const k=e.tight,x=e.tShift[l],w=e.sCount[l],_=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=f,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!b||(c=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=_,e.tShift[l]=x,e.sCount[l]=w,e.tight=k,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(g),l=e.line,m[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let v=!1;for(let t=0,r=y.length;t<r;t++)if(y[t](e,l,n,!0)){v=!0;break}if(v)break;if(u){if(h=gt(e,l),h<0)break;i=e.bMarks[l]+e.tShift[l]}else if(h=pt(e,l),h<0)break;if(g!==e.src.charCodeAt(h-1))break}return a=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),a.markup=String.fromCharCode(g),m[1]=l,e.line=l,e.parentType=k,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,f),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function a(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let s=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,t,n,!0)){s=!0;break}if(e.parentType=o,s)return null}const o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(o,s+1)}let l=e.src.slice(o,s+1);s=l.length;let c=-1;for(o=1;o<s;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}else if(92===e&&(o++,o<s&&10===l.charCodeAt(o))){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<s;o++){const e=l.charCodeAt(o);if(10===e){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}else if(!Ae(e))break}const u=e.md.helpers.parseLinkDestination(l,o,s);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const h=o,p=i,g=o;for(;o<s;o++){const e=l.charCodeAt(o);if(10===e){const e=a(i);null!==e&&(l+=e,s=l.length,i++)}else if(!Ae(e))break}let f,m=e.md.helpers.parseLinkTitle(l,o,s);for(;m.can_continue;){const t=a(i);if(null===t)break;l+=t,o=s,s=l.length,i++,m=e.md.helpers.parseLinkTitle(l,o,s,m)}for(o<s&&g!==o&&m.ok?(f=m.str,o=m.pos):(f="",o=h,i=p);o<s&&Ae(l.charCodeAt(o));)o++;if(o<s&&10!==l.charCodeAt(o)&&f)for(f="",o=h,i=p;o<s&&Ae(l.charCodeAt(o));)o++;if(o<s&&10!==l.charCodeAt(o))return!1;const b=Ie(l.slice(1,c));return!!b&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:f,href:d}),e.line=i),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let i=e.src.slice(o,s),a=0;for(;a<kt.length&&!kt[a][0].test(i);a++);if(a===kt.length)return!1;if(r)return kt[a][2];let l=t+1;if(!kt[a][1].test(i))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],s=e.eMarks[l],i=e.src.slice(o,s),kt[a][1].test(i)){0!==i.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(35!==i||o>=s)return!1;let a=1;for(i=e.src.charCodeAt(++o);35===i&&o<s&&a<=6;)a++,i=e.src.charCodeAt(++o);if(a>6||o<s&&!Ae(i))return!1;if(r)return!0;s=e.skipSpacesBack(s,o);const l=e.skipCharsBack(s,35,o);l>o&&Ae(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;const c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=e.src.slice(o,s).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(a),-1).markup="########".slice(0,a),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s,i=0,a=t+1;for(;a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]>=e.blkIndent){let t=e.bMarks[a]+e.tShift[a];const n=e.eMarks[a];if(t<n&&(s=e.src.charCodeAt(t),(45===s||61===s)&&(t=e.skipChars(t,s),t=e.skipSpaces(t),t>=n))){i=61===s?1:2;break}}if(e.sCount[a]<0)continue;let t=!1;for(let o=0,s=r.length;o<s;o++)if(r[o](e,a,n,!0)){t=!0;break}if(t)break}if(!i)return!1;const l=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(s),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(i),-1).markup=String.fromCharCode(s),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let s=t+1;for(e.parentType="paragraph";s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,s,n,!0)){t=!0;break}if(t)break}const i=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s,e.push("paragraph_open","p",1).map=[t,e.line];const a=e.push("inline","",0);return a.content=i,a.map=[t,e.line],a.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function wt(){this.ruler=new Ne;for(let e=0;e<xt.length;e++)this.ruler.push(xt[e][0],xt[e][1],{alt:(xt[e][2]||[]).slice()})}wt.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,s=e.md.options.maxNesting;let i=t,a=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n))&&!(e.sCount[i]<e.blkIndent);){if(e.level>=s){e.line=n;break}const t=e.line;let l=!1;for(let s=0;s<o;s++)if(l=r[s](e,i,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),i=e.line,i<n&&e.isEmpty(i)&&(a=!0,i++,e.line=i)}},wt.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},wt.prototype.State=ut;const _t=wt;function vt(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}vt.prototype.pushPending=function(){const e=new Ue("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},vt.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Ue(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},vt.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s<n&&this.src.charCodeAt(s)===r;)s++;const i=s-e,a=s<n?this.src.charCodeAt(s):32,l=Le(o)||Se(String.fromCharCode(o)),c=Le(a)||Se(String.fromCharCode(a)),u=Fe(o),d=Fe(a),h=!d&&(!c||u||l),p=!u&&(!l||d||c);return{can_open:h&&(t||!p||l),can_close:p&&(t||!h||c),length:i}},vt.prototype.Token=Ue;const Ct=vt;function Et(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}const Dt=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,At=[];for(let e=0;e<256;e++)At.push(0);function Ft(e,t){let n;const r=[],o=t.length;for(let s=0;s<o;s++){const o=t[s];if(126!==o.marker)continue;if(-1===o.end)continue;const i=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&r.push(i.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){At[e.charCodeAt(0)]=1});const St={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const i=String.fromCharCode(r);if(s<2)return!1;let a;s%2&&(a=e.push("text","",0),a.content=i,s--);for(let t=0;t<s;t+=2)a=e.push("text","",0),a.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Ft(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Ft(e,t[r].delimiters)}};function Lt(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],s=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,i=String.fromCharCode(r.marker),a=e.tokens[r.token];a.type=s?"strong_open":"em_open",a.tag=s?"strong":"em",a.nesting=1,a.markup=s?i+i:i,a.content="";const l=e.tokens[o.token];l.type=s?"strong_close":"em_close",l.tag=s?"strong":"em",l.nesting=-1,l.markup=s?i+i:i,l.content="",s&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}const It={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++)e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Lt(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Lt(e,t[r].delimiters)}},Tt=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Mt=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/,zt=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Bt=/^&([a-z][a-z0-9]{1,31});/i;function qt(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const s=[];for(let i=0;i<n;i++){const n=e[i];if(s.push(0),e[r].marker===n.marker&&o===n.token-1||(r=i),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const a=t[n.marker][(n.open?3:0)+n.length%3];let l=r-s[r]-1,c=l;for(;l>a;l-=s[l]+1){const t=e[l];if(t.marker===n.marker&&t.open&&t.end<0){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?s[l-1]+1:0;s[i]=i-l+r,s[l]=r,n.open=!1,t.end=i,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const Rt=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Et(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Dt);if(!r)return!1;const o=r[1],s=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!s)return!1;let i=s.url;if(i.length<=o.length)return!1;i=i.replace(/\*+$/,"");const a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",a]],t.markup="linkify",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&Ae(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),Ae(o));)n++;return e.pos=n,!0}let s=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(s+=e.src[n+1],n++)}const i="\\"+s;if(!t){const t=e.push("text_special","",0);o<256&&0!==At[o]?t.content=s:t.content=i,t.markup=i,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const s=e.src.slice(r,n),i=s.length;if(e.backticksScanned&&(e.backticks[i]||0)<=r)return t||(e.pending+=s),e.pos+=i,!0;let a,l=n;for(;-1!==(a=e.src.indexOf("`",l));){for(l=a+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-a;if(r===i){if(!t){const t=e.push("code_inline","code",0);t.markup=s,t.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=a}return e.backticksScanned=!0,t||(e.pending+=s),e.pos+=i,!0}],["strikethrough",St.tokenize],["emphasis",It.tokenize],["link",function(e,t){let n,r,o,s,i="",a="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,h=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let g=p+1;if(g<d&&40===e.src.charCodeAt(g)){for(c=!1,g++;g<d&&(n=e.src.charCodeAt(g),Ae(n)||10===n);g++);if(g>=d)return!1;if(l=g,o=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),o.ok){for(i=e.md.normalizeLink(o.str),e.md.validateLink(i)?g=o.pos:i="",l=g;g<d&&(n=e.src.charCodeAt(g),Ae(n)||10===n);g++);if(o=e.md.helpers.parseLinkTitle(e.src,g,e.posMax),g<d&&l!==g&&o.ok)for(a=o.str,g=o.pos;g<d&&(n=e.src.charCodeAt(g),Ae(n)||10===n);g++);}(g>=d||41!==e.src.charCodeAt(g))&&(c=!0),g++}if(c){if(void 0===e.env.references)return!1;if(g<d&&91===e.src.charCodeAt(g)?(l=g+1,g=e.md.helpers.parseLinkLabel(e,g),g>=0?r=e.src.slice(l,g++):g=p+1):g=p+1,r||(r=e.src.slice(h,p)),s=e.env.references[Ie(r)],!s)return e.pos=u,!1;i=s.href,a=s.title}if(!t){e.pos=h,e.posMax=p;const t=[["href",i]];e.push("link_open","a",1).attrs=t,a&&t.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=d,!0}],["image",function(e,t){let n,r,o,s,i,a,l,c,u="";const d=e.pos,h=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(s=g+1,s<h&&40===e.src.charCodeAt(s)){for(s++;s<h&&(n=e.src.charCodeAt(s),Ae(n)||10===n);s++);if(s>=h)return!1;for(c=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?s=a.pos:u=""),c=s;s<h&&(n=e.src.charCodeAt(s),Ae(n)||10===n);s++);if(a=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<h&&c!==s&&a.ok)for(l=a.str,s=a.pos;s<h&&(n=e.src.charCodeAt(s),Ae(n)||10===n);s++);else l="";if(s>=h||41!==e.src.charCodeAt(s))return e.pos=d,!1;s++}else{if(void 0===e.env.references)return!1;if(s<h&&91===e.src.charCodeAt(s)?(c=s+1,s=e.md.helpers.parseLinkLabel(e,s),s>=0?o=e.src.slice(c,s++):s=g+1):s=g+1,o||(o=e.src.slice(p,g)),i=e.env.references[Ie(o)],!i)return e.pos=d,!1;u=i.href,l=i.title}if(!t){r=e.src.slice(p,g);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=s,e.posMax=h,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const s=e.src.slice(r+1,n);if(Mt.test(s)){const n=e.md.normalizeLink(s);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=s.length+2,!0}if(Tt.test(s)){const n=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto",e.push("text","",0).content=e.md.normalizeLinkText(s);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=s.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const s=e.src.slice(r).match(bt);if(!s)return!1;if(!t){const t=e.push("html_inline","",0);t.content=s[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=s[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(zt);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=pe(t)?ge(t):ge(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Bt);if(r){const n=ne(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],$t=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;qt(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&qt(t[e].delimiters)}],["strikethrough",St.postProcess],["emphasis",It.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,s=e.tokens.length;for(t=n=0;t<s;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<s&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function Ht(){this.ruler=new Ne;for(let e=0;e<Rt.length;e++)this.ruler.push(Rt[e][0],Rt[e][1]);this.ruler2=new Ne;for(let e=0;e<$t.length;e++)this.ruler2.push($t[e][0],$t[e][1])}Ht.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,s=e.cache;if(void 0!==s[t])return void(e.pos=s[t]);let i=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,i=n[o](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,s[t]=e.pos},Ht.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const s=e.pos;let i=!1;if(e.level<o)for(let r=0;r<n;r++)if(i=t[r](e,!1),i){if(s>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(i){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ht.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const s=this.ruler2.getRules(""),i=s.length;for(let e=0;e<i;e++)s[e](o)},Ht.prototype.State=Ct;const Nt=Ht;function Pt(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Ut(e){return Object.prototype.toString.call(e)}function Ot(e){return"[object Function]"===Ut(e)}function jt(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Vt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1},Zt={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Qt="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Gt(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=B.source,t.src_Cc=q.source,t.src_Z=$.source,t.src_P=M.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|[><|]|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function s(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Ut(n))return"[object RegExp]"!==Ut(n.validate)?Ot(n.validate)?r.validate=n.validate:s(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Ot(n.normalize)?r.normalize=n.normalize:n.normalize?s(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Ut(e)}(n)?s(t,n):o.push(t)}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const i=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(jt).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Kt(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function Yt(e,t){const n=new Kt(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Wt(e,t){if(!(this instanceof Wt))return new Wt(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Vt.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Pt({},Vt,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Pt({},Zt,e),this.__compiled__={},this.__tlds__=Qt,this.__tlds_replaced__=!1,this.re={},Gt(this)}Wt.prototype.add=function(e,t){return this.__schemas__[e]=t,Gt(this),this},Wt.prototype.set=function(e){return this.__opts__=Pt(this.__opts__,e),this},Wt.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,s,i,a,l,c;if(this.re.schema_test.test(e))for(a=this.re.schema_search,a.lastIndex=0;null!==(t=a.exec(e));)if(o=this.testSchemaAt(e,t[2],a.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(s=n.index+n[1].length,(this.__index__<0||s<this.__index__)&&(this.__schema__="",this.__index__=s,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(s=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||s<this.__index__||s===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=i))),this.__index__>=0},Wt.prototype.pretest=function(e){return this.re.pretest.test(e)},Wt.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Wt.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Yt(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Yt(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Wt.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Yt(this,0)):null},Wt.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Gt(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Gt(this),this)},Wt.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Wt.prototype.onCompile=function(){};const Jt=Wt,Xt=2147483647,en=36,tn=/^xn--/,nn=/[^\0-\x7F]/,rn=/[\x2E\u3002\uFF0E\uFF61]/g,on={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},sn=Math.floor,an=String.fromCharCode;function ln(e){throw new RangeError(on[e])}function cn(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(rn,".")).split("."),t).join(".");return r+o}function un(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const dn=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:en},hn=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},pn=function(e,t,n){let r=0;for(e=n?sn(e/700):e>>1,e+=sn(e/t);e>455;r+=en)e=sn(e/35);return sn(r+36*e/(e+38))},gn=function(e){const t=[],n=e.length;let r=0,o=128,s=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)e.charCodeAt(n)>=128&&ln("not-basic"),t.push(e.charCodeAt(n));for(let a=i>0?i+1:0;a<n;){const i=r;for(let t=1,o=en;;o+=en){a>=n&&ln("invalid-input");const i=dn(e.charCodeAt(a++));i>=en&&ln("invalid-input"),i>sn((Xt-r)/t)&&ln("overflow"),r+=i*t;const l=o<=s?1:o>=s+26?26:o-s;if(i<l)break;const c=en-l;t>sn(Xt/c)&&ln("overflow"),t*=c}const l=t.length+1;s=pn(r-i,l,0==i),sn(r/l)>Xt-o&&ln("overflow"),o+=sn(r/l),r%=l,t.splice(r++,0,o)}return String.fromCodePoint(...t)},fn=function(e){const t=[],n=(e=un(e)).length;let r=128,o=0,s=72;for(const n of e)n<128&&t.push(an(n));const i=t.length;let a=i;for(i&&t.push("-");a<n;){let n=Xt;for(const t of e)t>=r&&t<n&&(n=t);const l=a+1;n-r>sn((Xt-o)/l)&&ln("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>Xt&&ln("overflow"),n===r){let e=o;for(let n=en;;n+=en){const r=n<=s?1:n>=s+26?26:n-s;if(e<r)break;const o=e-r,i=en-r;t.push(an(hn(r+o%i,0))),e=sn(o/i)}t.push(an(hn(e,0))),s=pn(o,l,a===i),o=0,++a}++o,++r}return t.join("")},mn=function(e){return cn(e,function(e){return nn.test(e)?"xn--"+fn(e):e})},bn=function(e){return cn(e,function(e){return tn.test(e)?gn(e.slice(4).toLowerCase()):e})},yn={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},kn=/^(vbscript|javascript|file|data):/,xn=/^data:image\/(gif|png|jpeg|webp);/;function wn(e){const t=e.trim().toLowerCase();return!kn.test(t)||xn.test(t)}const _n=["http:","https:","mailto:"];function vn(e){const t=T(e,!0);if(t.hostname&&(!t.protocol||_n.indexOf(t.protocol)>=0))try{t.hostname=mn(t.hostname)}catch(e){}return y(k(t))}function Cn(e){const t=T(e,!0);if(t.hostname&&(!t.protocol||_n.indexOf(t.protocol)>=0))try{t.hostname=bn(t.hostname)}catch(e){}return f(k(t),f.defaultChars+"%")}function En(e,t){if(!(this instanceof En))return new En(e,t);t||le(e)||(t=e||{},e="default"),this.inline=new Nt,this.block=new _t,this.core=new lt,this.renderer=new $e,this.linkify=new Jt,this.validateLink=wn,this.normalizeLink=vn,this.normalizeLinkText=Cn,this.utils=r,this.helpers=de({},o),this.options={},this.configure(e),t&&this.set(t)}En.prototype.set=function(e){return de(this.options,e),this},En.prototype.configure=function(e){const t=this;if(le(e)){const t=e;if(!(e=yn[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},En.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},En.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},En.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},En.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},En.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},En.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},En.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const Dn=new En({html:!0,linkify:!0,typographer:!0,breaks:!0}),An=Dn.renderer.rules.link_open||function(e,t,n,r,o){return o.renderToken(e,t,n)};Dn.renderer.rules.link_open=function(e,t,n,r,o){const s=e[t].attrIndex("target");s<0?e[t].attrPush(["target","_blank"]):e[t].attrs[s][1]="_blank";const i=e[t].attrIndex("rel");return i<0?e[t].attrPush(["rel","noopener noreferrer"]):e[t].attrs[i][1]="noopener noreferrer",An(e,t,n,r,o)};class Fn{constructor(e){this.widget=e}async sendMessage(){const e=this.widget.shadowRoot.getElementById("routeye-chat-input");let t=e.value.trim();if(!t||this.widget.isLoading)return;const n=this.widget.selectedLanguage||"English";this.addMessage("user",t),e.value="",this.widget.setLoading(!0),this.showTypingIndicator();try{let e=t;"English"!==n&&(e=`Respond in ${n.toLowerCase()} target language only:${t}`);const r=await this.widget.api.sendQuery(e);this.hideTypingIndicator();const o=r.response||r.answer||r.reply||"I received your message.",s=this.addMessage("bot",o);this.storeBotMessageQuery(s,t,e),this.widget.autoReadEnabled&&this.widget.speechHandler.speakText(o)}catch(e){this.hideTypingIndicator(),this.widget.addErrorMessage(e.message)}finally{this.widget.setLoading(!1)}}addMessage(e,t,n=!1,r=null,o=null,s=null){const i=this.widget.shadowRoot.getElementById("routeye-chat-messages"),a=document.createElement("div");a.className=`routeye-message ${e}`;const l=o?new Date(o):new Date,c=l.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),u=r||`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`;if(n||(this.widget.messages.push({id:u,type:e,text:t,timestamp:l.toISOString(),feedback:s}),this.widget.saveMessagesToStorage()),"user"===e)a.setAttribute("data-message-id",u),a.innerHTML=`\n <div class="routeye-message-meta user-meta">\n <img src="https://cdn-icons-png.flaticon.com/512/847/847969.png" \n alt="User" class="routeye-avatar" width="24" height="24"/>\n <span class="routeye-name">You</span>\n <span class="routeye-time">${c}</span>\n </div>\n <div class="routeye-message-bubble user-bubble">${Dn.render(t)}</div>\n `;else{a.setAttribute("data-message-id",u);const e=this.widget.config.logoUrl?`https://kalrav-central-system-api.kalrav.ai${this.widget.config.logoUrl}`:"https://kalrav.ai/wp-content/uploads/2025/10/logo.png",n=this.widget.config.agentName||"Kalrav AI";a.innerHTML=`\n <div class="routeye-message-meta bot-meta">\n <img src="${e}" \n alt="${n}" class="routeye-avatar" width="24" height="24"/>\n <span class="routeye-name">${n}</span>\n <span class="routeye-time">${c}</span>\n </div>\n <div class="routeye-message-bubble bot-bubble">\n ${Dn.render(t)}\n <div class="routeye-bot-actions">\n <div class="routeye-reactions">\n <button class="routeye-like-btn" data-message-id="${u}" title="Like">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M14 9V5a3 3 0 0 0-3-3L7 11v11h9.28a2 2 0 0 0 2-1.7l1.38-9.3a2 2 0 0 0-2-2z"></path>\n </svg>\n </button>\n\n <button class="routeye-dislike-btn" data-message-id="${u}" title="Dislike">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-width="2">\n <path d="M10 15v4a3 3 0 0 1 3 3l4-9V2H6.72a2 2 0 0 0-2 1.7L3.34 13a2 2 0 0 0 2 2.3z"></path>\n </svg>\n </button>\n </div>\n\n <div class="routeye-speaker">\n <button class="routeye-speak-btn" title="Speak">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="none" stroke="#673de6" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14"></path>\n </svg>\n </button>\n </div>\n </div>\n </div>\n `}if(i.appendChild(a),this.scrollToBottom(),"bot"===e){const e=a.querySelector(".routeye-speak-btn"),n=a.querySelector(".routeye-like-btn"),r=a.querySelector(".routeye-dislike-btn");"liked"===s?n.classList.add("active"):"disliked"===s&&r.classList.add("active"),e.addEventListener("click",()=>{window.speechSynthesis.speaking?this.widget.speechHandler.stopSpeaking():this.widget.speechHandler.speakText(t,e)}),n.addEventListener("click",e=>this.handleLike(e.target.closest("button"))),r.addEventListener("click",e=>this.handleDislike(e.target.closest("button")))}return u}storeBotMessageQuery(e,t,n){this.widget.messageQueries||(this.widget.messageQueries={}),this.widget.messageQueries[e]={originalQuery:t,finalQuery:n},this.widget.saveQueriesToStorage()}getBotMessageQuery(e){return this.widget.messageQueries?this.widget.messageQueries[e]:null}insertInlineFeedback(e,t){const n=e.querySelector(".routeye-message-bubble"),r=document.createElement("div");return r.className="routeye-inline-feedback",r.innerHTML=t,n.appendChild(r),r.scrollIntoView({behavior:"smooth",block:"nearest"}),r}handleLike(e){const t=e.getAttribute("data-message-id"),n=this.widget.shadowRoot.querySelector(`[data-message-id="${t}"]`),r=n.querySelector(".routeye-like-btn"),o=n.querySelector(".routeye-dislike-btn");if(r.classList.contains("active"))return void r.classList.remove("active");r.classList.add("active"),o.classList.remove("active");const s=n.querySelector(".routeye-inline-feedback");s&&s.remove(),this.insertInlineFeedback(n,`<div class="routeye-feedback-thanks">${this.widget.config.feedbackLikeMessage||"Thanks for your feedback!"}</div>`),this.updateMessageFeedback(t,"liked")}handleDislike(e){const t=e.getAttribute("data-message-id"),n=this.widget.shadowRoot.querySelector(`[data-message-id="${t}"]`),r=n.querySelector(".routeye-like-btn"),o=n.querySelector(".routeye-dislike-btn");if(o.classList.contains("active")){o.classList.remove("active");const e=n.querySelector(".routeye-inline-feedback");return void(e&&e.remove())}o.classList.add("active"),r.classList.remove("active");const s=n.querySelector(".routeye-inline-feedback");s&&s.remove(),this.showInlineFeedbackConfirm(n,t),this.updateMessageFeedback(t,"disliked")}updateMessageFeedback(e,t){const n=this.widget.messages.find(t=>t.id===e);n&&(n.feedback=t,this.widget.saveMessagesToStorage())}showInlineFeedbackConfirm(e,t){const n=this.insertInlineFeedback(e,`\n <div class="routeye-feedback-card">\n <div class="routeye-feedback-card">\n <p class="routeye-feedback-title">\n ${this.widget.config.feedbackDislikePrompt||"I'm sorry to know that you are not happy with my response. Would you like to leave feedback so that I can improve it?"}\n </p>\n <div class="routeye-feedback-actions">\n <button class="routeye-feedback-btn fb-yes">${this.widget.config.feedbackYesButton||"Yes"}</button>\n <button class="routeye-feedback-btn fb-no">${this.widget.config.feedbackNoButton||"No"}</button>\n </div>\n </div>\n `);n.querySelector(".fb-yes").addEventListener("click",()=>{n.remove(),this.showInlineFeedbackOptions(e,t)}),n.querySelector(".fb-no").addEventListener("click",()=>{n.remove()})}showInlineFeedbackOptions(e,t){const n=this.widget.config.feedbackQuestions||[];let r="";if(n.length>0){r=n.map((e,t)=>`<button class="routeye-feedback-option" data-f="custom-${t}" data-text="${this.escapeHtml(e)}">${this.escapeHtml(e)}</button>`).join("\n ");const e=this.widget.config.otherFeedbackQuestion||"Other";r+=`\n <button class="routeye-feedback-option" data-f="other" data-text="${this.escapeHtml(e)}">${this.escapeHtml(e)}</button>`}else r='\n <button class="routeye-feedback-option" data-f="insufficient">Insufficient content</button>\n <button class="routeye-feedback-option" data-f="too-long">Too long</button>\n <button class="routeye-feedback-option" data-f="too-short">Too short</button>\n <button class="routeye-feedback-option" data-f="misleading">Misleading</button>\n <button class="routeye-feedback-option" data-f="other">Other</button>\n ';const o=this.insertInlineFeedback(e,`\n <div class="routeye-feedback-card">\n <p class="routeye-feedback-title1">\n ${this.widget.config.feedbackModalDescription||"Your feedback helps me get smarter — what could I improve?"}\n <span class="routeye-feedback-close" title="Close">✖</span>\n </p>\n <div class="routeye-feedback-options">\n ${r}\n </div>\n </div>\n `);o.querySelector(".routeye-feedback-close").addEventListener("click",()=>{o.remove()}),o.querySelectorAll(".routeye-feedback-option").forEach(n=>{n.addEventListener("click",()=>{const r=n.getAttribute("data-f"),s=n.getAttribute("data-text")||r;o.remove(),"other"===r?this.showInlineFeedbackInput(e,t):this.submitInlineFeedback(e,t,r,s)})})}escapeHtml(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}showInlineFeedbackInput(e,t){const n=this.insertInlineFeedback(e,`\n <div class="routeye-feedback-card">\n <textarea class="routeye-feedback-textarea" placeholder="${this.widget.config.feedbackOtherPlaceholder||"Tell us how we can improve..."}" rows="3"></textarea>\n <div class="routeye-feedback-actions">\n <button class="routeye-feedback-btn fb-cancel">${this.widget.config.feedbackCancelButton||"Cancel"}</button>\n <button class="routeye-feedback-btn fb-submit">${this.widget.config.feedbackSubmitButton||"Submit"}</button>\n </div>\n </div>\n `);n.querySelector(".fb-cancel").addEventListener("click",()=>{n.remove()}),n.querySelector(".fb-submit").addEventListener("click",()=>{const r=n.querySelector("textarea").value.trim();r&&(n.remove(),this.submitInlineFeedback(e,t,"other",r))})}async submitInlineFeedback(e,t,n,r=""){console.log("FEEDBACK:",{messageId:t,type:n,text:r});const o=this.insertInlineFeedback(e,`<div class="routeye-feedback-notliked">${this.widget.config.feedbackSuccessMessage||"Thank you for your feedback! Hold your breath I'm improving my responses."}</div>`),s=this.getBotMessageQuery(t);if(!s)return void console.warn("No query data found for message:",t);const i=r||n,a=`${s.finalQuery}\n\n[User Feedback: ${i}. Please provide an improved response.]`;try{this.widget.setLoading(!0),this.showTypingIndicator();const n=await this.widget.api.sendQuery(a);this.hideTypingIndicator();const r=n.response||n.answer||n.reply||"I apologize, I couldn't generate an improved response.",i=e.querySelector(".routeye-message-bubble");if(i){o.remove();const n=i.querySelector(".routeye-message-bubble");if(n){const e=n.querySelector("div:not(.routeye-bot-actions)");e&&(e.innerHTML=Dn.render(r))}else{const e=i.querySelector(".routeye-bot-actions"),t=e?e.outerHTML:"";i.innerHTML=Dn.render(r)+t}const a=this.widget.messages.findIndex(e=>e.id===t);-1!==a&&(this.widget.messages[a].text=r,this.widget.saveMessagesToStorage()),this.storeBotMessageQuery(t,s.originalQuery,s.finalQuery),e.scrollIntoView({behavior:"smooth",block:"nearest"})}}catch(e){console.error("Regeneration error:",e),this.hideTypingIndicator(),o.innerHTML='<div class="routeye-feedback-notliked" style="color: #e11d48;">Sorry, I couldn\'t improve the response. Please try again.</div>'}finally{this.widget.setLoading(!1)}}addSystemMessage(e){const t=this.widget.shadowRoot.getElementById("routeye-chat-messages"),n=`sys-msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,r=document.createElement("div");return r.id=n,r.className="routeye-system-message",r.innerHTML=`\n <div class="routeye-system-message-content">\n ${e}\n </div>\n `,t.appendChild(r),this.scrollToBottom(),n}removeMessage(e){const t=this.widget.shadowRoot.getElementById(e);return t?(console.log("✅ Removing message:",e),t.remove(),!0):(console.warn("❌ Message not found:",e),!1)}addErrorMessage(e){const t=this.widget.shadowRoot.getElementById("routeye-chat-messages"),n=document.createElement("div");n.className="routeye-error-message",n.textContent=e,t.appendChild(n),this.scrollToBottom()}showSuccessMessage(e){const t=this.widget.shadowRoot.getElementById("routeye-chat-messages"),n=document.createElement("div");n.className="routeye-success-message",n.textContent=e,t.appendChild(n),this.scrollToBottom(),setTimeout(()=>{n.remove()},3e3)}showTypingIndicator(){const e=this.widget.shadowRoot.getElementById("routeye-chat-messages"),t=document.createElement("div");t.className="routeye-message bot",t.id="routeye-typing-indicator",t.innerHTML=`\n <div class="routeye-typing-indicator">\n <span>${this.widget.config.thinkingMessage||"Thinking..."}</span>\n </div>\n `,e.appendChild(t),this.scrollToBottom()}hideTypingIndicator(){const e=this.widget.shadowRoot.getElementById("routeye-typing-indicator");e&&e.remove()}scrollToBottom(){const e=this.widget.shadowRoot.getElementById("routeye-chat-messages");e.scrollTop=e.scrollHeight}}class Sn{constructor(e){this.widget=e}clearChat(){const e=this.widget.shadowRoot.getElementById("routeye-chat-messages");e&&(e.innerHTML=this.widget.getWelcomeMessageHTML(),this.widget.renderQuickReplies(e),this.widget.messages=[])}downloadChat(){const e=this.widget.shadowRoot.querySelectorAll(".routeye-message");let t="Chat History\n\n";e.forEach(e=>{const n=e.classList.contains("bot"),r=e.querySelector(".routeye-message-bubble")?.textContent||"";t+=`${n?"Bot":"You"}: ${r}\n\n`});const n=new Blob([t],{type:"text/plain"}),r=URL.createObjectURL(n),o=document.createElement("a");o.href=r,o.download=`chat-history-${(new Date).toISOString().split("T")[0]}.txt`,o.click(),URL.revokeObjectURL(r)}}class Ln{static async fetchAndMergeConfig(e,t){try{const n=await this.fetchFromAPI(e);return this.mergeWithDefaults(n,t)}catch(e){return console.warn("⚠️ Failed to fetch config from API, using defaults:",e.message),this.mergeWithDefaults(null,t)}}static async fetchFromAPI(e){const t=`https://kalrav-central-system-api.kalrav.ai/api/agent-ui/${e}`,n=await fetch(t);if(!n.ok)throw new Error(`HTTP ${n.status}: ${n.statusText}`);const r=await n.json();if(!r.success||!r.data||!r.data.settings)throw new Error("Invalid API response structure");const o=r.data.settings;return o.settings||o}static mergeWithDefaults(e,t){const n=this.getDefaultConfig();if(e&&(e.agent_name||e.layout_color)){const r=e;return{agentId:t.agentId,apiKey:t.apiKey,agentName:r.agent_name,layoutColor:r.layout_color||t.primaryColor||n.layoutColor,userInputColor:r.user_input_color,botResponseColor:r.bot_response_color,iconColor:r.icon_color,fontColor:r.font_color,logoUrl:r.logo_url,logoId:r.logo_id,defaultQuestions:r.default_questions,placeholderText:r.placeholder_text,botLauncherTitle:r.bot_launcher_title,botLauncherTitlePlace:r.bot_launcher_title_place,headerSubheading:r.header_subheading,activeStatusText:r.active_status_text,welcomeHeadline:r.welcome_headline,welcomeIntroText:r.welcome_intro_text,subIntroText:r.sub_intro_text,welcomeMessage:r.welcome_message,greetingBgColor:r.greeting_bg_color,clearChatTitle:r.clear_chat_title,clearChatDescription:r.clear_chat_description,clearChatConfirmButton:r.clear_chat_confirm_button,clearChatCancelButton:r.clear_chat_cancel_button,feedbackModalHeading:r.feedback_modal_heading,feedbackModalDescription:r.feedback_modal_description,feedbackYesButton:r.feedback_yes_button,feedbackNoButton:r.feedback_no_button,feedbackLikeMessage:r.feedback_like_message,feedbackDislikePrompt:r.feedback_dislike_prompt,feedbackOtherPlaceholder:r.feedback_other_placeholder,feedbackCancelButton:r.feedback_cancel_button,feedbackSubmitButton:r.feedback_submit_button,feedbackSuccessMessage:r.feedback_success_message,downloadChatText:r.download_chat_text,thinkingMessage:r.thinking_message,downloadChatEnabled:r.download_chat_enabled,speechSupportEnabled:r.speech_support_enabled,audioRecorderEnabled:r.audio_recorder_enabled,fileUploadsEnabled:r.file_uploads_enabled,defaultLanguage:r.default_language,languagesAvailable:r.languages_available,feedbackQuestions:r.feedback_questions,otherFeedbackQuestion:r.other_feedback_question,showDisclaimer:r.show_disclaimer,disclaimerShowInsideChat:r.disclaimer_show_inside_chat,disclaimerShowInFooter:r.disclaimer_show_in_footer,disclaimerText:r.disclaimer_text,disclaimerUrl:r.disclaimer_url,disclaimerLinkText:r.disclaimer_link_text,footerDisclaimerText:r.footer_disclaimer_text,footerDisclaimerUrl:r.footer_disclaimer_url,footerDisclaimerLinkText:r.footer_disclaimer_link_text,fontStyle:r.font_style,primaryColor:r.layout_color||t.primaryColor||n.layoutColor}}return{agentId:t.agentId,apiKey:t.apiKey,agentName:n.agentName,layoutColor:t.primaryColor||n.layoutColor,userInputColor:t.primaryColor||n.userInputColor,botResponseColor:n.botResponseColor,iconColor:t.primaryColor||n.iconColor,logoUrl:n.logoUrl,logoId:null,defaultQuestions:n.defaultQuestions,placeholderText:n.placeholderText,botLauncherTitle:n.botLauncherTitle,botLauncherTitlePlace:n.botLauncherTitlePlace,headerSubheading:n.headerSubheading,activeStatusText:n.activeStatusText,welcomeHeadline:n.welcomeHeadline,welcomeIntroText:n.welcomeIntroText,subIntroText:n.subIntroText,welcomeMessage:n.welcomeMessage,greetingBgColor:n.greetingBgColor,clearChatTitle:n.clearChatTitle,clearChatDescription:n.clearChatDescription,clearChatConfirmButton:n.clearChatConfirmButton,clearChatCancelButton:n.clearChatCancelButton,feedbackModalHeading:n.feedbackModalHeading,feedbackModalDescription:n.feedbackModalDescription,feedbackYesButton:n.feedbackYesButton,feedbackNoButton:n.feedbackNoButton,feedbackLikeMessage:n.feedbackLikeMessage,feedbackDislikePrompt:n.feedbackDislikePrompt,feedbackOtherPlaceholder:n.feedbackOtherPlaceholder,feedbackCancelButton:n.feedbackCancelButton,feedbackSubmitButton:n.feedbackSubmitButton,feedbackSuccessMessage:n.feedbackSuccessMessage,downloadChatText:n.downloadChatText,thinkingMessage:n.thinkingMessage,downloadChatEnabled:n.downloadChatEnabled,speechSupportEnabled:n.speechSupportEnabled,audioRecorderEnabled:n.audioRecorderEnabled,fileUploadsEnabled:n.fileUploadsEnabled,defaultLanguage:n.defaultLanguage,languagesAvailable:n.languagesAvailable,feedbackQuestions:n.feedbackQuestions,otherFeedbackQuestion:n.otherFeedbackQuestion,showDisclaimer:n.showDisclaimer,disclaimerShowInsideChat:n.disclaimerShowInsideChat,disclaimerShowInFooter:n.disclaimerShowInFooter,disclaimerText:n.disclaimerText,disclaimerUrl:n.disclaimerUrl,disclaimerLinkText:n.disclaimerLinkText,footerDisclaimerText:n.footerDisclaimerText,footerDisclaimerUrl:n.footerDisclaimerUrl,footerDisclaimerLinkText:n.footerDisclaimerLinkText,primaryColor:t.primaryColor||n.layoutColor}}static getDefaultConfig(){return{agentName:"Kalrav Support",layoutColor:"#673de6",userInputColor:"#000000",botResponseColor:"#f5f5f5",iconColor:"#673de6",fontColor:"#1f2937",logoUrl:"https://kalrav.ai/wp-content/uploads/2025/10/logo.png",defaultQuestions:["How to Download Kalrav?","How to Activate Kalrav?"],placeholderText:"Tell us how we can help...",botLauncherTitle:"Chat with us",botLauncherTitlePlace:"bottom_right",headerSubheading:"Ask me anything!",activeStatusText:"We are online to assist you",welcomeHeadline:"👋 Hi there!",welcomeIntroText:"I'm customer support agent.",subIntroText:"",welcomeMessage:"How can I help you today?",greetingBgColor:"#f4f4f4",clearChatTitle:"Clear Chat",clearChatDescription:"Clearing chat history will remove all previous messages. You'll start a brand-new conversation after this.",clearChatConfirmButton:"Clear & Start New",clearChatCancelButton:"Cancel",feedbackModalHeading:"Was this response helpful",feedbackModalDescription:"Your feedback helps us improve our AI assistant Better",feedbackYesButton:"Yes",feedbackNoButton:"No",feedbackLikeMessage:"Thanks for your feedback!",feedbackDislikePrompt:"I'm sorry to know that you are not happy with my response. Would you like to leave feedback so that I can improve it?",feedbackOtherPlaceholder:"Tell us more...",feedbackCancelButton:"Cancel",feedbackSubmitButton:"Submit",feedbackSuccessMessage:"Thank you for your feedback! Hold your breath I'm improving my responses.",downloadChatText:"Download Chat",thinkingMessage:"Thinking...",downloadChatEnabled:!0,speechSupportEnabled:!0,audioRecorderEnabled:!0,fileUploadsEnabled:!0,defaultLanguage:"English",languagesAvailable:["English","Spanish","French","German","Hindi","Chinese","Telugu","Kannada","Malayalam","Russian","Japanese"],feedbackQuestions:[],otherFeedbackQuestion:"Other",showDisclaimer:!0,disclaimerShowInsideChat:!0,disclaimerShowInFooter:!1,disclaimerText:"The results of this AI agent is illustrative please check twice.",disclaimerUrl:"",disclaimerLinkText:"Read more",footerDisclaimerText:"",footerDisclaimerUrl:"",footerDisclaimerLinkText:"",fontStyle:"Inter, sans-serif"}}static getLogoUrl(e){return e?e.startsWith("http://")||e.startsWith("https://")?e:`https://kalrav-central-system-api.kalrav.ai${e}`:this.getDefaultConfig().logoUrl}}class In{constructor(e){this.widget=e,this.isSubmitting=!1,this.settings=null,this.isInitialized=!1}async initialize(){if(!this.isInitialized)try{this.settings=await this.widget.api.getLeadGenSettings(),this.isInitialized=!0}catch(e){console.error("❌ Failed to initialize lead form:",e),this.settings=null}}async renderLeadForm(e){if(await this.initialize(),!this.settings)return void console.log("ℹ️ Lead generation not configured for this agent");const t=this.buildLeadFormHTML(),n=document.createElement("div");n.innerHTML=t,e.appendChild(n.firstElementChild),this.bindEvents()}buildLeadFormHTML(){const e=this.settings.form_fields||{},t=[];return Object.entries({name:{type:"text",placeholder:"Your Name"},email:{type:"email",placeholder:"Your Email"},phone:{type:"tel",placeholder:"Phone Number"},company:{type:"text",placeholder:"Company Name"},interest:{type:"text",placeholder:"Area of Interest"},message:{type:"textarea",placeholder:"Message",rows:3}}).forEach(([n,r])=>{const o=e[n];if(!o||!o.enabled)return;const s=o.label||r.placeholder,i=o.required?"required":"",a=o.required?" *":"";"textarea"===r.type?t.push(`\n <div class="routeye-form-group">\n <textarea \n name="${n}" \n placeholder="${s}${a}" \n ${i} \n rows="${r.rows||2}"\n class="routeye-form-input"\n ></textarea>\n </div>\n `):t.push(`\n <div class="routeye-form-group">\n <input \n type="${r.type}" \n name="${n}" \n placeholder="${s}${a}" \n ${i} \n class="routeye-form-input"\n >\n </div>\n `)}),`\n <div class="routeye-lead-form-section" id="routeye-lead-form-section">\n <div class="routeye-lead-form-header">\n <p class="routeye-lead-form-title">May I Know Your Details?</p>\n <button type="button" class="routeye-lead-form-close" id="routeye-lead-form-close">×</button>\n </div>\n <form class="routeye-lead-form" id="routeye-lead-form">\n ${t.join("\n")}\n <button type="submit" class="routeye-lead-submit-btn" id="routeye-lead-submit">Submit</button>\n </form>\n <div id="routeye-lead-status" class="routeye-lead-status"></div>\n </div>\n `}bindEvents(){const e=this.widget.shadowRoot.getElementById("routeye-lead-form"),t=this.widget.shadowRoot.getElementById("routeye-lead-form-close"),n=this.widget.shadowRoot.getElementById("routeye-lead-form-section");e&&e.addEventListener("submit",e=>this.handleSubmit(e)),t&&n&&t.addEventListener("click",e=>{e.preventDefault(),e.stopPropagation(),n.style.setProperty("display","none","important")})}async handleSubmit(e){if(e.preventDefault(),this.isSubmitting)return;const t=e.target,n=(this.widget.shadowRoot.getElementById("routeye-lead-status"),this.widget.shadowRoot.getElementById("routeye-lead-submit")),r=new FormData(t),o={},s=this.settings?.form_fields||{};Object.keys(s).forEach(e=>{if(s[e].enabled){const t=r.get(e);t&&t.trim()&&(o[e]=t.trim())}}),this.isSubmitting=!0,n.disabled=!0,n.textContent="Submitting...";try{await this.widget.api.submitLead(o),this.showStatus("Thank you! Your details have been submitted successfully.","success"),t.reset(),setTimeout(()=>{const e=this.widget.shadowRoot.getElementById("routeye-lead-form-section");e&&(e.style.display="none")},3e3)}catch(e){this.showStatus(e.message||"Failed to submit. Please try again.","error")}finally{this.isSubmitting=!1,n.disabled=!1,n.textContent="Submit"}}showStatus(e,t){const n=this.widget.shadowRoot.getElementById("routeye-lead-status");n&&(n.textContent=e,n.className=`routeye-lead-status ${t}`,n.style.display="block","success"===t&&setTimeout(()=>{n.style.display="none"},5e3))}}class Tn{constructor(e){this.config=e,this.api=new a(e.agentId,e.apiKey),this.isOpen=!1,this.messages=[],this.isLoading=!1,this.selectedLanguage=e.defaultLanguage||"English",this.messagesKey=`routeeye_messages_${this.api.agentId}`,this.queriesKey=`routeeye_queries_${this.api.agentId}`,this.audioHandler=new c(this),this.speechHandler=new u(this),this.fileHandler=new d(this),this.uiHandler=new h(this),this.messageHandler=new Fn(this),this.chatHandler=new Sn(this),this.leadHandler=new In(this),this.autoReadEnabled=!1,this.init()}init(){const e=document.createElement("div");e.id="routeye-widget-root",e.style.position="fixed",e.style.zIndex="999999",document.body.appendChild(e);const t=e.attachShadow({mode:"open"}),n=document.createElement("style");n.textContent=function(e={}){const t=e.layoutColor||e.primaryColor||"#673de6",n=e.userInputColor||t,r=e.botResponseColor||"#f5f5f5",o=(e.iconColor,e.fontColor||"#1f2937"),s=e.fontStyle||"Inter, sans-serif";return`\n ${function(e={}){const t=e.layoutColor||e.primaryColor||"#673de6",n=e.fontColor||"#1f2937",r=e.fontStyle||"Arial, sans-serif";return`\n /* Lead Form Section */\n .routeye-lead-form-section {\n margin: 15px auto !important;\n padding: 24px !important;\n background: #ffffff !important;\n border-radius: 16px !important;\n box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;\n border: 1px solid #f1f3f5 !important;\n width: 95% !important;\n display: block !important;\n }\n\n .routeye-lead-form-header {\n display: flex !important;\n justify-content: space-between !important;\n align-items: center !important;\n margin-bottom: 20px !important;\n }\n\n .routeye-lead-form-title {\n font-size: 18px !important;\n font-weight: 700 !important;\n color: #1a1a1b !important;\n margin: 0 !important;\n font-family: ${r} !important;\n }\n\n .routeye-lead-form-close {\n background: #f8f9fa !important;\n border: none !important;\n width: 28px !important;\n height: 28px !important;\n border-radius: 50% !important;\n cursor: pointer !important;\n font-size: 18px !important;\n color: #adb5bd !important;\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n transition: all 0.2s !important;\n }\n\n .routeye-lead-form-close:hover {\n background: #e9ecef !important;\n color: #495057 !important;\n }\n\n .routeye-lead-form {\n display: flex !important;\n flex-direction: column !important;\n gap: 16px !important;\n }\n\n .routeye-form-group {\n width: 100% !important;\n }\n\n .routeye-form-input {\n width: 100% !important;\n padding: 12px 16px !important;\n border: 1.5px solid #edf2f7 !important;\n border-radius: 10px !important;\n font-size: 14px !important;\n background: #fdfdfd !important;\n color: ${n} !important;\n font-family: ${r} !important;\n outline: none !important;\n transition: all 0.2s ease !important;\n }\n\n .routeye-form-input::placeholder {\n color: #a0aec0 !important;\n }\n\n .routeye-form-input:focus {\n border-color: ${t} !important;\n background: #ffffff !important;\n box-shadow: 0 0 0 4px rgba(103, 61, 230, 0.1) !important;\n }\n\n textarea.routeye-form-input {\n resize: vertical !important;\n min-height: 80px !important;\n }\n\n .routeye-lead-submit-btn {\n background: ${t} !important;\n color: white !important;\n border: none !important;\n padding: 14px !important;\n border-radius: 10px !important;\n font-weight: 700 !important;\n cursor: pointer !important;\n font-size: 16px !important;\n transition: all 0.2s !important;\n margin-top: 8px !important;\n font-family: ${r} !important;\n }\n\n .routeye-lead-submit-btn:hover {\n opacity: 0.9 !important;\n transform: translateY(-1px) !important;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;\n }\n\n .routeye-lead-submit-btn:active {\n transform: translateY(0) !important;\n }\n\n .routeye-lead-submit-btn:disabled {\n background: #adb5bd !important;\n cursor: not-allowed !important;\n transform: none !important;\n }\n\n .routeye-lead-status {\n margin-top: 16px !important;\n padding: 12px !important;\n border-radius: 8px !important;\n font-size: 14px !important;\n display: none !important;\n text-align: center !important;\n font-weight: 500 !important;\n }\n\n .routeye-lead-status.success {\n background: #d1fae5 !important;\n color: #065f46 !important;\n border: 1px solid rgba(16, 185, 129, 0.2) !important;\n }\n\n .routeye-lead-status.error {\n background: #fee2e2 !important;\n color: #b91c1c !important;\n border: 1px solid rgba(239, 68, 68, 0.2) !important;\n }\n `}(e)}\n\n * {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n }\n\n :host {\n all: initial;\n user-select: text !important;\n font-family: ${s};\n color: #1f2937;\n }\n\n .kalravhigh{\n color: ${t};\n font-weight: 600;\n font-size: 15px;\n }\n\n /* FIX: Allow copying text inside chat bubbles */\n .routeye-message-bubble,\n .routeye-message-bubble * {\n user-select: text !important;\n -webkit-user-select: text !important;\n }\n\n\n .routeye-widget-container {\n position: fixed;\n z-index: 999999;\n font-family: ${s};\n color: #1f2937;\n }\n\n /* Bot Launcher Position Classes */\n .routeye-widget-container.position-bottom-right {\n bottom: 20px;\n right: 20px;\n }\n\n .routeye-widget-container.position-bottom-left {\n bottom: 20px;\n left: 20px;\n }\n\n .routeye-widget-container.position-top-right {\n top: 100px;\n right: 20px;\n }\n\n .routeye-widget-container.position-top-left {\n top: 100px;\n left: 20px;\n }\n\n .routeye-chat-bubble {\n border-radius: 24px;\n background: ${t};\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: transform 0.2s, box-shadow 0.2s;\n border: none;\n padding: 12px 18px;\n color: white;\n font-size: 16px;\n font-weight: 500;\n gap: 8px;\n }\n\n .routeye-chat-bubble:hover {\n transform: scale(1.05);\n box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);\n }\n\n .routeye-chat-bubble svg {\n width: 28px;\n height: 28px;\n fill: white;\n }\n\n .routeye-chat-window {\n position: absolute;\n bottom: -18px;\n right: -18px;\n width: 420px;\n height: 540px; \n max-height: calc(100vh - 50px); \n background: white;\n border-radius: 12px;\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);\n display: none;\n flex-direction: column;\n overflow: hidden;\n animation: slideUp 0.3s ease-out;\n \n}\n\n /* Chat window positioning based on launcher position */\n .position-bottom-right .routeye-chat-window {\n bottom: -18px;\n right: -18px;\n top: auto;\n left: auto;\n }\n\n .position-bottom-left .routeye-chat-window {\n bottom: -18px;\n left: -18px;\n top: auto;\n right: auto;\n }\n\n .position-top-right .routeye-chat-window {\n top: -18px;\n right: -18px;\n bottom: auto;\n left: auto;\n }\n\n .position-top-left .routeye-chat-window {\n top: -18px;\n left: -18px;\n bottom: auto;\n right: auto;\n }\n .routeye-chat-window.open {\n display: flex;\n padding: 0; /* Removed padding to let header sit flush */\n max-width: 99vw; /* Changed from 32vw to prevent issues on small screens */\n min-width: 300px;\n border: 1px solid ${t};\n background: #fff;\n padding: 10px;\n\n }\n\n\n @keyframes slideUp {\n from {\n opacity: 0;\n transform: translateY(20px);\n }\n to {\n opacity: 1;\n transform: translateY(0);\n }\n }\n\n /* Enhanced Header Styles */\n .routeye-chat-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 11px;\n background: ${t};\n color: white;\n border-radius: 12px 12px 0 0;\n position: relative; \n flex-shrink: 0;\n cursor: move;\n }\n\n .routeye-header-left {\n display: flex;\n align-items: center;\n gap: 12px;\n flex: 1;\n }\n\n .routeye-logo {\n width: 40px;\n height: 40px;\n background: white;\n border-radius: 8px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-weight: bold;\n color: ${t};\n font-size: 18px;\n }\n\n .routeye-header-info {\n display: flex;\n flex-direction: column;\n gap: 2px;\n }\n\n .routeye-chat-header-title {\n font-size: 15px;\n font-weight: 600;\n margin: 0;\n padding: 5px;\n }\n\n .routeye-status {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 12px;\n opacity: 0.95;\n }\n\n .routeye-status-dot {\n width: 8px;\n height: 8px;\n background: #10b981;\n border-radius: 50%;\n animation: pulse 2s infinite;\n font-size: 11px;\n }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n .routeye-header-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n position: relative;\n }\n\n .routeye-icon-btn {\n background: transparent;\n border: none;\n color: white;\n width: 32px;\n height: 32px;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: background 0.2s;\n font-size: 18px;\n }\n\n .routeye-icon-btn:hover {\n background: transparent;\n }\n\n /* Menu Dropdown */\n .routeye-menu-dropdown {\n position: absolute;\n top: 40px;\n right: 0;\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);\n min-width: 180px;\n display: none;\n z-index: 1000;\n }\n\n .routeye-menu-dropdown.show {\n display: block;\n }\n\n .routeye-menu-item {\n padding: 12px 16px;\n cursor: pointer;\n color: #1f2937;\n font-size: 14px;\n display: flex;\n align-items: center;\n gap: 10px;\n transition: background 0.2s;\n border: none;\n background: none;\n width: 100%;\n text-align: left;\n font-family: ${s};\n }\n\n .routeye-menu-item:first-child {\n border-radius: 8px 8px 0 0;\n }\n\n .routeye-menu-item:last-child {\n border-radius: 0 0 8px 8px;\n }\n\n .routeye-menu-item:hover {\n background: transparent;\n }\n\n .routeye-close-btn {\n background: transparent;\n border: none;\n color: white;\n width: 32px;\n height: 32px;\n border-radius: 6px;\n cursor: pointer;\n font-size: 24px;\n line-height: 1;\n transition: background 0.2s;\n }\n\n .routeye-close-btn:hover {\n background: transparent;\n }\n\n /* Modal Styles */\n .routeye-modal-overlay {\n position: absolute;\n left: 0;\n right: -40px;\n bottom: 10px;\n background: rgba(255, 255, 255, 0.85); /* light blur effect inside widget */\n backdrop-filter: blur(2px);\n display: none;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n border-radius: inherit; /* follows chat window’s rounded corners */\n}\n\n .routeye-modal-overlay.show {\n display: flex;\n }\n\n .routeye-modal {\n background: white;\n border-radius: 10px;\n padding: 20px 20px;\n width: 85%;\n max-width: 360px;\n box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);\n text-align: center;\n}\n\n .routeye-modal-title {\n font-size: 16px;\n font-weight: 600;\n color: #1f2937;\n margin-bottom: 8px;\n text-align: left;\n margin-bottom: 12px;\n}\n .routeye-modal-message {\n font-size: 14px;\n color: #1f2937;\n line-height: 1.5;\n margin-bottom: 16px;\n text-align: left;\n }\n .routeye-modal-actions {\n display: flex;\n gap: 12px;\n justify-content: center;\n }\n\n .routeye-modal-btn {\n padding: 12px 16px;\n border-radius: 6px;\n border: none;\n font-size: 16px;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n font-family: ${s};\n }\n\n\n .routeye-modal-btn-cancel {\n background: #f3f4f6;\n color: #1f2937;\n font-size: 14px;\n }\n .routeye-modal-btn-cancel:hover {\n background: #e5e7eb;\n }\n\n .routeye-modal-btn-confirm {\n background: ${t};\n color: white;\n font-size: 14px;\n }\n\n .routeye-modal-btn-confirm:hover {\n opacity: 0.9;\n }\n\n .routeye-chat-messages {\n flex: 1;\n overflow-y: auto;\n padding: 15px;\n background: #f9fafb;\n }\n\n .routeye-message {\n margin-bottom: 16px;\n display: flex;\n flex-direction: column;\n }\n\n .routeye-message-meta {\n display: flex;\n align-items: center;\n font-size: 12px;\n color: #6b7280;\n margin-bottom: 4px;\n}\n.bot-meta {\n justify-content: flex-start;\n gap: 6px;\n margin-bottom:12px;\n}\n\n.user-meta {\n justify-content: flex-end;\n gap: 6px;\n}\n\n.routeye-avatar {\n border-radius: 50%;\n object-fit: cover;\n background:${t};\n}\n \n.routeye-name {\n font-weight: 600;\n}\n\n.routeye-time {\n font-size: 11px;\n color: #aaa;\n}\n\n\n\n.bot-bubble {\n background-color: ${r};\n color: ${o};\n align-self: flex-start;\n}\n\n.user-bubble {\n background-color: ${n};\n color: ${o};\n align-self: flex-end;\n border-bottom-right-radius: 4px;\n}\n\n.routeye-bot-actions {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n padding:6px;\n}\n\n.routeye-reactions {\n display: flex;\n gap: 8px; /* spacing between like/dislike */\n}\n\n.routeye-speaker {\n display: flex;\n align-items: center;\n}\n\n\n.routeye-bot-actions button {\n background: none;\n border: none;\n cursor: pointer;\n font-size: 16px;\n color: #666;\n transition: transform 0.2s ease;\n}\n\n\n.routeye-bot-actions button:hover {\n transform: scale(1.2);\n color: var(--primary-color, #4F46E5);\n}\n\n .routeye-message.user {\n align-items: flex-end;\n }\n\n .routeye-message.bot {\n align-items: flex-start;\n }\n\n.routeye-message-bubble {\n display: block !important;\n vertical-align: top;\n line-height: 1.35;\n font-size: 14px;\n}\n\n.routeye-message-bubble p,\n.routeye-message-bubble h1,\n.routeye-message-bubble h2,\n.routeye-message-bubble h3,\n.routeye-message-bubble h4,\n.routeye-message-bubble h5,\n.routeye-message-bubble h6,\n.routeye-message-bubble ul,\n.routeye-message-bubble ol,\n.routeye-message-bubble li,\n.routeye-message-bubble pre,\n.routeye-message-bubble blockquote {\n margin: 5px !important;\n padding: 4px !important;\n line-height: 1.35;\n font-size: 14px !important;\n}\n .routeye-message.user .routeye-message-bubble {\n background: ${n};\n color: ${o};;\n margin-left: auto;\n border-bottom-right-radius: 4px;\n display:flex;\n border-radius:8px;\n \n }\n\n .routeye-message.bot .routeye-message-bubble {\n background: ${r};\n color: ${o};\n margin-right: auto;\n border-bottom-left-radius: 4px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n padding:10px;\n border-radius:8px;\n border: 1px solid ${t};\n }\n\n /* Markdown styling */\n .routeye-message-bubble strong,\n .routeye-message-bubble b {\n font-weight: 600;\n }\n\n .routeye-message-bubble em,\n .routeye-message-bubble i {\n font-style: italic;\n }\n\n .routeye-message-bubble a {\n color: ${t};\n text-decoration: none;\n border-bottom: 1px solid ${t};\n }\n\n .routeye-message.bot .routeye-message-bubble a {\n color: ${t};\n }\n\n .routeye-message.user .routeye-message-bubble a {\n color: ${o};\n border-bottom-color: rgba(255, 255, 255, 0.6);\n }\n\n .routeye-message-bubble a:hover {\n text-decoration: underline;\n }\n\n .routeye-message-bubble h1,\n .routeye-message-bubble h2,\n .routeye-message-bubble h3,\n .routeye-message-bubble h4,\n .routeye-message-bubble h5,\n .routeye-message-bubble h6 {\n margin: 8px 0;\n font-weight: 600;\n }\n\n .routeye-message-bubble h1 { font-size: 14px; }\n .routeye-message-bubble h2 { font-size: 14px; }\n .routeye-message-bubble h3 { font-size: 14px; }\n .routeye-message-bubble h4,\n .routeye-message-bubble h5,\n .routeye-message-bubble h6 { font-size: 14px; }\n\n .routeye-message-bubble ul,\n .routeye-message-bubble ol {\n margin: 8px 0;\n padding-left: 20px;\n }\n\n .routeye-message-bubble li {\n margin: 4px 0;\n }\n\n .routeye-message-bubble code {\n background: rgba(0, 0, 0, 0.1);\n padding: 2px 4px;\n border-radius: 3px;\n font-family: 'Courier New', monospace;\n font-size: 0.9em;\n }\n\n .routeye-message.user .routeye-message-bubble code {\n background: rgba(255, 255, 255, 0.2);\n color: ${o};\n }\n\n .routeye-message-bubble pre {\n background: rgba(0, 0, 0, 0.08);\n padding: 8px;\n border-radius: 4px;\n overflow-x: auto;\n margin: 8px 0;\n font-family: 'Courier New', monospace;\n font-size: 0.85em;\n line-height: 1.4;\n }\n\n .routeye-message.user .routeye-message-bubble pre {\n background: rgba(0, 0, 0, 0.2);\n }\n\n .routeye-message-bubble blockquote {\n border-left: 3px solid ${t};\n padding-left: 8px;\n margin: 8px 0;\n opacity: 0.8;\n }\n\n .routeye-message-bubble hr {\n border: none;\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n margin: 8px 0;\n }\n\n .routeye-message.user .routeye-message-bubble hr {\n border-top-color: rgba(255, 255, 255, 0.2);\n }\n\n .routeye-message-bubble table {\n border-collapse: collapse;\n width: 100%;\n margin: 8px 0;\n font-size: 0.9em;\n }\n\n .routeye-message-bubble th,\n .routeye-message-bubble td {\n border: 1px solid rgba(0, 0, 0, 0.1);\n padding: 6px;\n text-align: left;\n }\n\n .routeye-message.user .routeye-message-bubble th,\n .routeye-message.user .routeye-message-bubble td {\n border-color: rgba(255, 255, 255, 0.2);\n }\n\n .routeye-message-bubble th {\n background: rgba(0, 0, 0, 0.05);\n font-weight: 600;\n }\n\n .routeye-message.user .routeye-message-bubble th {\n background: rgba(0, 0, 0, 0.1);\n }\n\n.routeye-typing-indicator {\n display: flex;\n align-items: center;\n padding: 10px 14px;\n background: white;\n border-radius: 12px;\n width: fit-content;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n border: 1px solid ${t};\n}\n\n.routeye-typing-indicator span {\n font-style: italic;\n animation: pulseFade 1.5s ease-in-out infinite;\n}\n\n@keyframes pulseFade {\n 0% { opacity: 0.4; }\n 50% { opacity: 1; }\n 100% { opacity: 0.4; }\n}\n\n\n\n\n\n\n @keyframes typing {\n 0%, 60%, 100% {\n opacity: 0.3;\n transform: translateY(0);\n }\n 30% {\n opacity: 1;\n transform: translateY(-4px);\n }\n }\n\n /* Enhanced Input Container */\n .routeye-chat-input-container {\n padding: 16px;\n background: white;\n border-top: 1px solid #e5e7eb;\n display: flex;\n flex-direction: column;\n }\n\n .routeye-input-wrapper {\n display: flex;\n gap: 8px;\n margin-bottom: 12px;\n \n }\n\n .routeye-input-with-mic {\n flex: 1;\n position: relative;\n display: flex;\n align-items: center;\n }\n\n .routeye-chat-input {\n flex: 1;\n width: 100%;\n padding: 15px 45px 15px 15px;\n border: 1px solid rgb(204, 204, 204);\n border-radius: 8px;\n font-size: 14px;\n outline: none;\n transition: border-color 0.2s;\n font-family: ${s};\n color: #1f2937;\n }\n\n .routeye-chat-input:focus {\n border-color: ${t};\n }\n\n .routeye-mic-inside {\n position: absolute;\n right: 8px;\n background: transparent;\n border: none;\n width: 32px;\n height: 32px;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n color: #6b7280;\n font-size: 18px;\n }\n\n .routeye-mic-inside:hover {\n background: #f3f4f6;\n color: #374151;\n }\n\n .routeye-mic-inside.recording {\n color: #374151;\n animation: recordPulse 1s infinite;\n background: transparent;\n border-radius: 50%;\n }\n\n @keyframes recordPulse {\n 0%, 100% { transform: scale(1); }\n 50% { transform: scale(1.1); }\n }\n\n .routeye-send-btn {\n background: ${t};\n color: white;\n border: none;\n padding: 15px 15px;\n border-radius: 50%;\n font-size: 18px;\n font-weight: 500;\n cursor: pointer;\n transition: opacity 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n\n .routeye-send-btn:hover {\n opacity: 0.9;\n }\n\n .routeye-send-btn:disabled {\n opacity: 0.5;\n cursor: not-allowed;\n }\n\n /* Bottom Actions */\n .routeye-bottom-actions {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 8px;\n }\n\n .routeye-language-select {\n flex: 0 0 auto;\n padding: 12px 30px 12px 15px;\n border: 1px solid #ccc;\n border-radius: 6px;\n font-size: 14px;\n outline: none;\n background: rgb(249, 249, 255);\n cursor: pointer;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");\n background-repeat: no-repeat;\n background-position: right 10px center;\n font-family: ${s};\n min-width: 100px;\n }\n \n .routeye-language-select:focus {\n border-color: ${t};\n outline: none;\n }\n \n .routeye-language-select option {\n background: white;\n color: #1f2937;\n padding: 8px;\n font-family: ${s};\n }\n\n .routeye-bottom-actions-right {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .routeye-action-btn {\n background: rgb(249, 249, 255);\n border: none;\n width: 40px;\n height: 40px;\n border-radius: 6px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n color: #6b7280;\n font-size: 20px;\n margin: 0;\n border: 1px solid #ccc;\n }\n\n .routeye-action-btn:hover {\n background: #f3f4f6;\n color: #374151;\n }\n\n .routeye-file-input {\n display: none;\n }\n\n .routeye-feedback-notliked{\n font-size: 14px;\n color: #111;\n }\n\n.routeye-feedback-option:focus {\n outline: none !important;\n box-shadow: none !important;\n}\n\n /* Success Message */\n .routeye-success-message {\n background: #d1fae5;\n color: #065f46;\n padding: 8px 12px;\n border-radius: 6px;\n font-size: 13px;\n margin: 8px 0;\n text-align: center;\n }\n\n .routeye-error-message {\n padding: 12px;\n background: #fee2e2;\n color: #991b1b;\n border-radius: 8px;\n font-size: 14px;\n margin-bottom: 16px;\n }\n .bottom-spark{\n text-align: right;\n font-size:16px;\n }\n/* Default speaker icon */\n.routeye-speak-btn svg {\n transition: stroke 0.3s ease;\n}\n\n/* Speaking state: only SVG stroke becomes green */\n.routeye-speak-btn.speaking svg {\n stroke: rgb(34, 184, 84) !important;\n}\n.routeye-speak-btn.speaking {\n animation: speakPulse 1s infinite;\n}\n\n.routeye-speak-btn.speaking svg,\n#routeye-speaker-btn.speaking svg {\n stroke: rgb(34, 184, 84) !important;\n}\n@keyframes speakPulse {\n 0% { opacity: 1; }\n 50% { opacity: 0.6; }\n 100% { opacity: 1; }\n}\n\n @media (max-width: 480px) {\n .routeye-chat-window {\n width: calc(100vw - 40px);\n height: calc(100vh - 120px);\n }\n\n .routeye-chat-window.open {\n max-width: calc(100vw - 40px);\n min-width: calc(100vw - 40px);\n }\n }\n\n /* === Fullscreen Mode === */\n/* === Fullscreen Mode (Responsive + Clean Layout) === */\n.routeye-chat-window.fullscreen {\n position: fixed !important;\n inset: 0 !important; /* top:0; right:0; bottom:0; left:0 */\n width: 100vw !important;\n height: 100vh !important;\n z-index: 999999 !important;\n background: #fff !important;\n border-radius: 0 !important;\n margin: 0 !important;\n padding: 0 !important;\n box-shadow: none !important;\n display: flex !important;\n flex-direction: column;\n transition: all 0.25s ease-in-out;\n max-width: none !important;\n min-width: none !important;\n max-height: none !important;\n}\n\n/* In fullscreen, remove border & compress spacing */\n.routeye-chat-window.fullscreen .routeye-chat-header {\n border-radius: 0 !important;\n padding: 16px 24px !important;\n}\n\n.routeye-chat-window.fullscreen .routeye-chat-messages {\n flex: 1;\n padding: 24px 32px !important;\n background: #f9fafb;\n overflow-y: auto;\n}\n\n.routeye-chat-window.fullscreen .routeye-chat-input-container {\n padding: 16px 24px !important;\n border-top: 1px solid #e5e7eb;\n background: #fff;\n}\n\n.routeye-chat-window.fullscreen .routeye-chat-input {\n font-size: 18px !important;\n padding: 16px 45px 16px 16px !important;\n}\n\n.routeye-chat-window.fullscreen .routeye-send-btn {\n width: 48px !important;\n height: 48px !important;\n}\n\n.routeye-chat-window.fullscreen .routeye-language-select {\n padding: 10px 40px 10px 20px !important;\n}\n\n/* Adjust like/dislike/speaker alignment in fullscreen */\n.routeye-chat-window.fullscreen .routeye-bot-actions {\n margin-left: 12px !important;\n gap: 10px !important;\n}\n\n/* Prevent resizer in fullscreen */\n.routeye-chat-window.fullscreen .routeye-resizer {\n display: none !important;\n}\n\n\n\n\n/* === Resizer Handle === */\n.routeye-resizer {\n position: absolute;\n width: 16px;\n height: 16px;\n bottom: 4px;\n right: 4px;\n cursor: se-resize;\n background: linear-gradient(135deg, transparent 50%, #ccc 50%);\n border-radius: 2px;\n}\n\n.routeye-widget-container.fullscreen-active {\n all: unset;\n}\n\n/* Quick Replies Section - Inside scrollable messages */\n.routeye-quick-replies-section {\n margin-top: 20px;\n padding: 16px;\n background: white;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n margin-bottom: 16px;\n}\n\n.routeye-quick-replies-title {\n font-size: 16px;\n font-weight: 600;\n color: #1f2937;\n margin-bottom: 12px;\n text-align: left;\n}\n\n.routeye-quick-replies-section {\n background: white;\n padding: 16px;\n border-radius: 12px;\n box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle shadow like a card */\n margin: 10px 0;\n border: 1px solid #f3f4f6;\n}\n\n.routeye-quick-replies-title {\n font-size: 15px;\n font-weight: 600;\n color: #1f2937;\n margin-bottom: 12px;\n}\n\n.routeye-quick-replies {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.routeye-quick-reply-btn {\n display: flex;\n align-items: center;\n gap: 12px;\n width: 100%;\n padding: 14px 16px;\n border: 1px solid #e5e7eb;\n background: white;\n color: #1f2937;\n border-radius: 12px; /* Pill shape or rounded rect */\n font-size: 14px;\n font-weight: 400;\n cursor: pointer;\n transition: all 0.2s;\n text-align: left;\n line-height: 1.4;\n font-family: ${s};\n}\n\n.routeye-quick-reply-btn svg {\n flex-shrink: 0;\n width: 18px;\n height: 18px;\n color: #4b5563;\n transition: transform 0.2s;\n}\n\n.routeye-quick-reply-btn:hover {\n border-color: ${t};\n background: #f9fafb;\n transform: translateY(-1px);\n box-shadow: 0 2px 4px rgba(0,0,0,0.05);\n}\n\n.routeye-quick-reply-btn:hover svg {\n color: ${t};\n transform: translateX(2px);\n}\n\n.routeye-quick-reply-btn:active {\n transform: translateY(0);\n}\n@keyframes fadeInInfo {\n 0% { \n opacity: 0; \n transform: translateY(6px); \n }\n 100% { \n opacity: 1; \n transform: translateY(0); \n }\n}\n\n.info-banner {\n display: flex;\n gap: 10px;\n background-color: aliceblue;\n text-align: left;\n margin: 5px 0;\n padding: 16px 18px;\n border-radius: 14px;\n width: 95%;\n\n color: #1f2937;\n font-family: "Inter", "Segoe UI", sans-serif;\n transition: all 0.3s ease;\n\n /* animation added */\n animation: fadeInInfo 0.5s ease-in-out;\n\n /* box shadow added + corrected */\n box-shadow: -6px 2px 6px rgba(0, 115, 170, 0.15);\n}\n\n\n.routeye-resize-handle {\n position: absolute;\n z-index: 10;\n }\n\n /* Corner handles - larger clickable area */\n .routeye-resize-top-left {\n top: 0;\n left: 0;\n width: 15px;\n height: 15px;\n cursor: nw-resize;\n }\n\n .routeye-resize-top-right {\n top: 0;\n right: 0;\n width: 15px;\n height: 15px;\n cursor: ne-resize;\n }\n\n .routeye-resize-bottom-left {\n bottom: 0;\n left: 0;\n width: 15px;\n height: 15px;\n cursor: sw-resize;\n }\n\n .routeye-resize-bottom-right {\n bottom: 0;\n right: 0;\n width: 15px;\n height: 15px;\n cursor: se-resize;\n }\n\n .routeye-resize-top {\n top: -10px; /* Pull it up higher */\n left: 0;\n right: 0;\n height: 15px; /* Make it thicker */\n cursor: n-resize;\n z-index: 2147483647; /* Maximum Z-Index */\n}\n\n .routeye-resize-bottom {\n bottom: -10px; /* Pull it down lower */\n left: 0;\n right: 0;\n height: 15px; /* Make it thicker */\n cursor: s-resize;\n z-index: 2147483647;\n}\n\n .routeye-resize-left {\n left: 0;\n top: 15px;\n bottom: 15px;\n width: 5px;\n cursor: w-resize;\n }\n\n .routeye-resize-right {\n right: 0;\n top: 15px;\n bottom: 15px;\n width: 5px;\n cursor: e-resize;\n }\n\n\n /* Confirmation Modal Styles */\n.routeye-confirmation-content {\n padding: 0px;\n text-align: center;\n}\n\n.routeye-confirmation-text {\n font-size: 13px;\n line-height: 1.5;\n color: #333;\n margin-bottom: 15px;\n /* padding: 0 10px; */\n text-align: left;\n}\n\n\n.routeye-confirmation-actions {\n display: flex;\n gap: 12px;\n justify-content: flex-start;\n}\n.routeye-confirmation-btn {\n padding: 10px 32px;\n font-size: 16px;\n font-weight: 500;\n border: none;\n border-radius: 8px;\n cursor: pointer;\n transition: all 0.3s ease;\n min-width: 80px;\n font-family: ${s};\n}\n\n.routeye-confirmation-yes {\n background-color: #7c3aed;\n color: white;\n}\n\n.routeye-confirmation-yes:hover {\n background-color: #6d28d9;\n transform: translateY(-1px);\n box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);\n}\n\n.routeye-confirmation-no {\n background-color: #f3f4f6;\n color: #374151;\n}\n\n.routeye-confirmation-no:hover {\n background-color: #e5e7eb;\n transform: translateY(-1px);\n}\n\n /* Visual feedback on hover (optional) */\n .routeye-resize-handle:hover {\n background-color: rgba(103, 61, 230, 0.1);\n }\n\n /* Hide resize handles in fullscreen mode */\n .routeye-chat-window.fullscreen .routeye-resize-handle {\n display: none;\n }\n\n\n /* Add this to your getStyles function in styles.js */\n.routeye-system-message {\n padding: 8px 16px;\n margin: 8px 0;\n text-align: center;\n}\n\n.routeye-system-message-content {\n display: inline-block;\n padding: 8px 16px;\n background: rgb(232, 245, 233);\n border-radius: 16px;\n font-size: 14px;\n color: rgb(40, 167, 47);\n border: 1px solid #d1c4e9;\n margin-bottom: 18px;\n font-weight: 500;\n}\n\n\n/* Like/Dislike button base */\n.routeye-like-btn,\n.routeye-dislike-btn {\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n transition: all 0.3s ease;\n}\n\n/* Default icon colors */\n.routeye-like-btn svg {\n stroke: rgb(34, 184, 84); /* GREEN */\n}\n\n.routeye-dislike-btn svg {\n stroke: #ef4444; /* RED */\n}\n\n/* Smooth transition */\n.routeye-like-btn svg,\n.routeye-dislike-btn svg {\n transition: fill 0.2s ease, stroke 0.2s ease;\n}\n\n/* ACTIVE STATES (CLICKED) */\n.routeye-like-btn.active svg {\n stroke: rgb(34, 184, 84);\n fill: rgb(34, 184, 84); /* light green fill */\n}\n\n.routeye-dislike-btn.active svg {\n stroke: #ef4444;\n fill: #ef4444; /* light red fill */\n}\n\n/* OPTIONAL: Highlight background on active */\n.routeye-like-btn.active,\n.routeye-dislike-btn.active {\n}\n\n\n/* Feedback modal styles */\n.routeye-feedback-modal-content {\n max-width: 363px;\n position: relative;\n left: -15px;\n bottom: 10px;\n background: white;\n padding: 16px;\n background: white;\n}\n\n.routeye-feedback-options {\n display: flex;\n flex-direction: column;\n gap: 12px;\n margin: 20px 0;\n}\n\n.routeye-feedback-option {\n padding: 14px 20px;\n border: 1.5px solid ${t};\n border-radius: 8px;\n background: rgb(255, 255, 255);\n color: ${t};\n cursor: pointer;\n font-size: 12px;\n font-weight: 500;\n transition: all 0.2s ease;\n text-align: left;\n}\n\n.routeye-feedback-option:hover {\n background: #673de6;\n color: white;\n border-color: #673de6;\n}\n\n.routeye-feedback-option:first-child {\n background: #673de6;\n color: white;\n border-color: #673de6;\n}\n\n.routeye-feedback-input-container {\n position: relative;\n margin: 20px 0;\n}\n\n.routeye-feedback-textarea {\n width: 100%;\n padding: 12px 40px 12px 12px;\n border: 2px solid #e5e7eb;\n border-radius: 8px;\n font-size: 14px;\n font-family: ${s};\n resize: vertical;\n min-height: 100px;\n}\n\n.routeye-feedback-textarea:focus {\n outline: none;\n border-color: #673de6;\n}\n\n\n\n.routeye-feedback-mic-btn {\n position: absolute;\n right: 8px;\n bottom: 8px;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n}\n\n.routeye-modal-close-btn {\n position: absolute;\n top: 16px;\n right: 16px;\n background: transparent;\n border: none;\n font-size: 28px;\n cursor: pointer;\n color: #6b7280;\n line-height: 1;\n padding: 0;\n width: 32px;\n height: 32px;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.routeye-modal-close-btn:hover {\n color: #111827;\n}\n/* Fix bot images overflowing bubble */\n.routeye-message-bubble.bot-bubble img,\n.routeye-message.bot .routeye-message-bubble img {\n max-width: 100%;\n height: auto;\n display: block;\n border-radius: 8px;\n margin-top: 6px;\n margin-bottom: 6px;\n object-fit: contain;\n\n}\n .routeye-message-bubble.bot-bubble p{\n margin: 0 !important;\n\n }\n\n .routeye-message-bubble.bot-bubble *:first-child,\n.routeye-message-bubble.bot-bubble *:last-child {\n margin-top: 0 !important;\n margin-bottom: 0 !important;\n font-size:14px;\n\n}\n\n.routeye-message-bubble-v1 {\n display: flex;\n align-items: flex-start;\n gap: 10px;\n background-color: #f4f4f4;\n padding: 12px;\n border-radius: 12px;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);\n margin-right: auto;\n max-width: 100%;\n font-family: ${s};\n}\n\n.routeye-message-bubble-v1 img {\n max-width: 100%;\n height: auto;\n display: block;\n border-radius: 8px;\n margin-top: 2px;\n object-fit: cover;\n width: 30px;\n height: 30px;\n border-radius: 50%;\n flex-shrink: 0;\n}\n\n.routeye-welcome-text {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n font-family: ${s};\n}\n\n.routeye-welcome-intro {\n margin-top: 4px;\n margin-bottom: 2px;\n font-family: ${s};\n font-size: 15px;\n}\n\n.routeye-welcome-subintro {\n font-size: 13px;\n margin-top: 8px; \n margin-bottom: 8px;\n color: #555;\n font-family: ${s};\n}\n\n.routeye-welcome-msg {\n margin-top: 4px;\n font-family: ${s};\n}\n\n.routeye-inline-feedback {\n margin-top: 10px;\n padding: 12px;\n background: transparent;\n border: 1px solid ${t};\n border-radius: 10px;\n}\n\n.routeye-feedback-card {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n\n.routeye-feedback-title {\n font-size: 0.9rem;\n color: #1f2937;\n}\n\n.routeye-feedback-title1 {\n font-size: 16px;\n color: #1f2937;\n font-weight: 600;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.routeye-feedback-close {\n cursor: pointer;\n font-size: 16px;\n color: #1f2937;\n padding: 4px;\n transition: 0.2s ease;\n}\n\n.routeye-feedback-close:hover {\n color: #e11d48; /* red hover */\n transform: scale(1.1);\n}\n\n.fb-cancel{\n background-color: rgb(243, 244, 246);}\n\n.routeye-feedback-actions,\n.routeye-feedback-options {\n display: flex;\n gap: 10px;\n flex-wrap: wrap;\n}\n\n.routeye-feedback-btn{\n padding: 8px 18px;\n background:rgb(243, 244, 246);\n border-radius: 8px;\n border: none;\n cursor: pointer;\n font-size:14px;\n font-family: ${s};\n color: #1f2937;\n}\n.routeye-feedback-option {\n padding: 8px 18px;\n background:rgb(255, 255, 255);;\n border-radius: 8px;\n border: 1.5px solid ${t};\n cursor: pointer;\n font-size:14px;\n font-family: ${s};\n color: #1f2937;\n}\n\n.routeye-feedback-option:hover {\n background: ${t};\n}\n\n.routeye-feedback-textarea {\n width: 100%;\n border-radius: 8px;\n border: 1px solid #ccc;\n padding: 8px;\n resize: none;\n font-family: ${s};\n color: #1f2937;\n}\n\n.routeye-feedback-thanks {\n font-size: 14px;\n color: rgb(34, 184, 84);\n border: none;\n}\n\n.routeye-feedback-notliked {\n font-size: 14px;\n color: #1f2937;\n font-family: ${s};\n border: none;\n}\n\n.fb-yes{\nbackground-color: ${t};\ncolor: white;\nfont-weight:600;\nfont-size:14px;\nborder:none;\n}\n\n.fb-yes:hover{\n opacity:0.9;\n background-color: ${l(t,-20)};\n}\n.fb-no{\nbackground-color: rgb(243, 244, 246);\n}\n.fb-no:hover{\n background-color: rgb(243, 244, 246);\n }\n\n.fb-submit{\n background-color: ${t};\n color: white;}\n .fb-submit:hover{\n opacity:0.9;\n background-color: ${l(t,-20)};\n }\n\n /* Like Active State */\n.routeye-like-btn.active svg path {\n stroke: #22c55e !important; /* green */\n fill: #22c55e22; /* optional subtle fill */\n}\n\n/* Dislike Active State */\n.routeye-dislike-btn.active svg path {\n stroke: #e11d48 !important; /* red */\n fill: #e11d4822; /* optional subtle fill */\n}\n\n/* Reset look for inactive */\n.routeye-like-btn svg path,\n.routeye-dislike-btn svg path {\n transition: 0.25s ease;\n}\n\n /* Disclaimer Styles */\n .routeye-disclaimer {\n display: flex;\n align-items: center;\n gap: 8px;\n margin: 16px 0;\n padding: 8px 8px;\n background: #FEF3C7; /* Light yellow/cream background */\n border-radius: 8px;\n font-size: 14px;\n color: #78350F; /* Dark brown text */\n border: 1px solid #FDE68A; /* Subtle border */\n }\n\n .routeye-disclaimer-icon {\n color: #F59E0B;\n font-size: 20px;\n flex-shrink: 0;\n margin-top: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n\n .routeye-disclaimer-content {\n display: flex;\n align-items: center;\n gap: 4px;\n flex: 1;\n flex-wrap: nowrap;\n }\n\n .routeye-disclaimer-text {\n line-height: 1.4;\n color: #78350F;\n flex: 1;\n font-size: 11px;\n }\n\n .routeye-disclaimer-link {\n color: #0066CC;\n text-decoration: underline;\n white-space: nowrap;\n margin-left: 0;\n font-weight: 500;\n cursor: pointer;\n flex-shrink: 0;\n font-size: 11px;\n }\n \n .routeye-disclaimer-link:hover {\n color: #0052A3;\n }\n\n /* Footer Disclaimer */\n .routeye-footer-disclaimer {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 6px;\n margin-top: 10px;\n font-size: 11px;\n color: #6B7280;\n text-align: left;\n padding: 0 8px;\n }\n\n .routeye-footer-disclaimer span {\n line-height: 1.4;\n font-size: 11px;\n }\n \n .routeye-footer-disclaimer a {\n color: ${t};\n text-decoration: underline;\n }\n `}(this.config),t.appendChild(n);const r=document.createElement("div");r.className="routeye-widget-container",r.innerHTML=this.getWidgetHTML(),t.appendChild(r),this.shadowRoot=t,this.widgetContainer=r,this.loadMessagesFromStorage(),this.applyBotLauncherPosition(),this.bindEvents()}getWelcomeMessageHTML(){const e=this.config.logoUrl?`https://kalrav-central-system-api.kalrav.ai${this.config.logoUrl}`:"https://kalrav.ai/wp-content/uploads/2025/10/logo.png",t=this.config.agentName||"Kalrav AI",n=this.config.welcomeHeadline||"👋 Hi there!",r=this.config.welcomeIntroText||"I'm customer support agent.",o=this.config.subIntroText||"",s=(this.config.welcomeMessage,this.config.greetingBgColor||"#f4f4f4"),i=r.replace("{{agent_name}}",`<strong class="kalravhigh">${this.escapeHtml(t)}</strong>`);return`\n <div class="routeye-message bot">\n <div class="routeye-message-bubble-v1 bot-bubble-v1 info-banner" style="background-color: ${s};">\n <img src="${e}" alt="${t}" class="routeye-avatar" width="24" height="24"/>\n <div class="routeye-welcome-text">\n <span class="kalravhigh">${this.escapeHtml(n)}</span>\n <div class="routeye-welcome-intro">${i}</div>\n ${o?`<div class="routeye-welcome-subintro">${this.escapeHtml(o)}</div>`:""}\n </div>\n </div>\n </div>\n \n ${this.config.showDisclaimer&&this.config.disclaimerShowInsideChat?`\n <div class="routeye-disclaimer">\n <div class="routeye-disclaimer-icon">⚠️</div>\n <div class="routeye-disclaimer-content">\n <span class="routeye-disclaimer-text">${this.escapeHtml(this.config.disclaimerText)}</span>\n ${this.config.disclaimerUrl?`<a href="${this.config.disclaimerUrl}" target="_blank" class="routeye-disclaimer-link">${this.escapeHtml(this.config.disclaimerLinkText||"Read more")}</a>`:""}\n </div>\n </div>\n `:""}\n `}loadMessagesFromStorage(){try{const e=sessionStorage.getItem(this.messagesKey),t=sessionStorage.getItem(this.queriesKey);if(t&&(this.messageQueries=JSON.parse(t)),e&&(this.messages=JSON.parse(e),this.messages.length>0)){const e=this.shadowRoot.getElementById("routeye-chat-messages");e.innerHTML="",e.innerHTML=this.getWelcomeMessageHTML(),this.renderQuickReplies(e),this.messages.forEach(e=>{this.messageHandler.addMessage(e.type,e.text,!0,e.id,e.timestamp,e.feedback)})}}catch(e){console.warn("⚠️ Could not load messages from sessionStorage:",e)}}applyBotLauncherPosition(){const e=this.config.botLauncherTitlePlace||"bottom_right",t=this.shadowRoot.querySelector(".routeye-widget-container");if(!t)return;t.classList.remove("position-bottom-right","position-bottom-left","position-top-right","position-top-left");const n=`position-${e.replace("_","-")}`;t.classList.add(n)}saveMessagesToStorage(){try{sessionStorage.setItem(this.messagesKey,JSON.stringify(this.messages))}catch(e){console.error("❌ Could not save messages to sessionStorage:",e)}}saveQueriesToStorage(){try{this.messageQueries&&sessionStorage.setItem(this.queriesKey,JSON.stringify(this.messageQueries))}catch(e){console.error("❌ Could not save queries to sessionStorage:",e)}}clearMessagesFromStorage(){try{sessionStorage.removeItem(this.messagesKey),sessionStorage.removeItem(this.queriesKey),this.messages=[],this.messageQueries={}}catch(e){console.error("❌ Could not clear messages from sessionStorage:",e)}}renderMessage(e,t,n,r){const o=this.shadowRoot.getElementById("routeye-chat-messages"),s=document.createElement("div");if(s.className=`routeye-message ${e}`,s.dataset.messageId=n,"user"===e)s.innerHTML=`\n <div class="routeye-message-bubble user-bubble">\n ${this.escapeHtml(t)}\n </div>\n `;else{const e=this.formatBotMessage(t);s.innerHTML=`\n <div class="routeye-message-bubble bot-bubble">\n <img src="https://kalrav.ai/wp-content/uploads/2025/10/logo.png" alt="Kalrav AI" class="routeye-avatar" width="24" height="24"/>\n <div class="message-content">${e}</div>\n </div>\n `}o.appendChild(s),o.scrollTop=o.scrollHeight}getWidgetHTML(){const e=Ln.getLogoUrl(this.config.logoUrl),t=this.config.agentName||"Kalrav Support",n=this.config.placeholderText||"Tell us how we can help...",r=this.config.botLauncherTitle||"Chat with us",o=(this.config.headerSubheading,this.config.activeStatusText||"We are online to assist you"),s=this.config.clearChatTitle||"Clear Chat",i=this.config.clearChatDescription||"Clearing chat history will remove all previous messages. You'll start a brand-new conversation after this.",a=this.config.clearChatConfirmButton||"Clear & Start New",l=this.config.clearChatCancelButton||"Cancel",c=this.config.downloadChatText||"Download Chat",u=!0===this.config.downloadChatEnabled,d=!0===this.config.speechSupportEnabled,h=!0===this.config.audioRecorderEnabled,p=!0===this.config.fileUploadsEnabled,g=this.config.defaultLanguage?this.config.defaultLanguage.charAt(0).toUpperCase()+this.config.defaultLanguage.slice(1).toLowerCase():"English";let f=this.config.languagesAvailable||["English"];const m=g.toLowerCase();f.some(e=>e.toLowerCase()===m)||(f=[g.toLowerCase(),...f]);const b=f.map(e=>{const t=e.charAt(0).toUpperCase()+e.slice(1).toLowerCase();return`<option value="${t}" ${t===g?"selected":""}>${t}</option>`}).join("\n "),y=this.config.welcomeHeadline||"👋 Hi there!",k=this.config.welcomeIntroText||"I'm customer support agent.",x=this.config.subIntroText||"",w=(this.config.welcomeMessage,this.config.greetingBgColor||"#f4f4f4"),_=k.replace("{{agent_name}}",`<strong class="kalravhigh">${this.escapeHtml(t)}</strong>`),v=(this.config.defaultQuestions||[]).map(e=>`<button class="routeye-quick-reply-btn" data-message="${this.escapeHtml(e)}">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" class="routeye-quick-reply-icon">\n <path d="M5 12h14M12 5l7 7-7 7" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>\n </svg>\n ${this.escapeHtml(e)}\n </button>`).join("\n ");return`\n <div class="routeye-chat-bubble" id="routeye-chat-bubble">\n <img src="${e}" alt="" width="24" height="24" style="vertical-align: middle;margin-right: 8px;border-radius: 50%;" loading="lazy" decoding="async">\n <span class="chat-label" style="text-transform: none;">${this.escapeHtml(r)}</span>\n </div>\n \n <div class="routeye-chat-window" id="routeye-chat-window">\n \x3c!-- Clear Chat Modal --\x3e\n <div class="routeye-modal-overlay" id="routeye-clear-modal">\n <div class="routeye-modal">\n <h2 class="routeye-modal-title">${this.escapeHtml(s)}</h2>\n <p class="routeye-modal-message">\n ${this.escapeHtml(i)}\n </p>\n <div class="routeye-modal-actions">\n <button class="routeye-modal-btn routeye-modal-btn-cancel" id="routeye-modal-cancel">${this.escapeHtml(l)}</button>\n <button class="routeye-modal-btn routeye-modal-btn-confirm" id="routeye-modal-confirm"><span style="font-size: 16px;">✨</span> ${this.escapeHtml(a)}\n </button>\n </div>\n </div>\n </div>\n\n <div class="routeye-modal-overlay" id="routeye-feedback-modal">\n <div class="routeye-modal routeye-feedback-modal-content">\n \x3c!-- Content will be dynamically inserted --\x3e\n </div>\n </div>\n\n <div class="routeye-chat-header">\n <div class="routeye-header-left">\n <div style="flex-shrink: 0; margin-right: 6px;">\n <img src="${e}" alt="Agent" width="28" height="28" style="border-radius: 50%;">\n </div>\n <div class="routeye-header-info">\n <div class="routeye-chat-header-title">${this.escapeHtml(t)}</div>\n <div class="routeye-status">\n <span class="routeye-status-dot"></span>\n <span>${this.escapeHtml(o)}</span>\n </div>\n </div>\n </div>\n <div class="routeye-header-actions">\n ${u?`\n <button class="routeye-icon-btn" id="routeye-menu-btn" title="Menu">⋮</button>\n <div class="routeye-menu-dropdown" id="routeye-menu-dropdown">\n <button class="routeye-menu-item" id="routeye-download-btn">\n <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2">\n <path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"></path>\n <polyline points="7 10 12 15 17 10"></polyline>\n <line x1="12" y1="15" x2="12" y2="3"></line>\n </svg>\n ${this.escapeHtml(c)}\n </button>\n </div>\n `:""}\n \n <button class="routeye-icon-btn" id="routeye-clear-btn" title="Clear chat">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M4 3h16c1.1 0 2 .9 2 2v11c0 1.1-.9 2-2 2H8l-4 3v-3H4c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2z" fill="#fff" stroke="var(--neutral--600)" stroke-width="1.5"></path>\n <path d="M13 10h3v2h-3v3h-2v-3H8v-2h3V7h2v3z" fill="#000"></path>\n </svg>\n </button>\n \n <button class="routeye-close-btn" id="routeye-close-btn">×</button>\n </div>\n </div>\n \n <div class="routeye-chat-messages" id="routeye-chat-messages">\n <div class="routeye-message bot">\n <div class="routeye-message-bubble-v1 bot-bubble-v1 info-banner" style="background-color: ${w};">\n <img src="${e}" alt="${t}" class="routeye-avatar" width="24" height="24"/>\n <div class="routeye-welcome-text">\n <span class="kalravhigh">${this.escapeHtml(y)}</span> \n <div class="routeye-welcome-intro">${_}</div> \n ${x?`<div class="routeye-welcome-subintro">${this.escapeHtml(x)}</div>`:""}\n </div>\n </div>\n </div>\n \n \x3c!-- Disclaimer Debug: Show=${this.config.showDisclaimer} ShowInsideChat=${this.config.disclaimerShowInsideChat} Textlen=${(this.config.disclaimerText||"").length} --\x3e\n ${this.config.showDisclaimer&&this.config.disclaimerShowInsideChat?`\n <div class="routeye-disclaimer">\n <div class="routeye-disclaimer-icon">⚠️</div>\n <div class="routeye-disclaimer-content">\n <span class="routeye-disclaimer-text">${this.escapeHtml(this.config.disclaimerText)}</span>\n ${this.config.disclaimerUrl?`<a href="${this.config.disclaimerUrl}" target="_blank" class="routeye-disclaimer-link">${this.escapeHtml(this.config.disclaimerLinkText||"Read more")}</a>`:""}\n </div>\n </div>\n `:""}\n\n ${v?`\n <div class="routeye-quick-replies-section">\n ${this.config.welcomeMessage?`<p class="routeye-quick-replies-title">${this.escapeHtml(this.config.welcomeMessage)}</p>`:""}\n <div class="routeye-quick-replies" id="routeye-quick-replies">\n ${v}\n </div>\n </div>\n `:""}\n \n <div id="routeye-lead-form-container"></div>\n </div>\n \n <div class="routeye-chat-input-container">\n <div class="routeye-input-wrapper">\n <div class="routeye-input-with-mic">\n <input type="text" class="routeye-chat-input" id="routeye-chat-input" placeholder="${n}" autocomplete="off"/>\n ${h?'\n <button class="routeye-input-btn routeye-mic-inside" id="routeye-mic-btn" title="Voice message">\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="#673de6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">\n <path d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"></path>\n <path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>\n <line x1="12" y1="19" x2="12" y2="23"></line>\n <line x1="8" y1="23" x2="16" y2="23"></line>\n </svg>\n </button>\n ':""}\n </div>\n <button class="routeye-send-btn" id="routeye-send-btn">\n <svg viewBox="0 0 24 24" width="24" height="24" fill="#fff">\n <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"></path>\n </svg>\n </button>\n </div>\n \n <div class="routeye-bottom-actions">\n <select class="routeye-language-select" id="routeye-language-select">\n ${b}\n </select>\n\n <div class="routeye-bottom-actions-right">\n ${d?'\n <button class="routeye-action-btn routeye-speak-btn" id="routeye-speaker-btn" title="Text to speech">\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#673de6" stroke-width="2">\n <polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>\n <path d="M15.54 8.46a5 5 0 0 1 0 7.07"></path>\n <path d="M19.07 4.93a10 10 0 0 1 0 14.14"></path>\n </svg>\n </button>\n ':""}\n ${p?'\n <button class="routeye-action-btn" id="routeye-file-btn" title="Upload file">\n <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#673de6" stroke-width="2">\n <path d="M21.44 11.05l-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48"></path>\n </svg>\n </button>\n ':""}\n </div>\n </div>\n <input type="file" class="routeye-file-input" id="routeye-file-input" accept=".pdf,.doc,.docx,.txt,.csv,.xls,.xlsx,application/pdf,application/msword,application/vnd.openxmlformats-officedocument.wordprocessingml.document,text/plain"/>\n \n ${this.config.showDisclaimer&&this.config.disclaimerShowInFooter?`\n <div class="routeye-footer-disclaimer">\n <span class="routeye-disclaimer-icon" style="font-size: 12px;">⚠️</span>\n <span>\n ${this.escapeHtml(this.config.footerDisclaimerText||this.config.disclaimerText)}\n ${this.config.footerDisclaimerUrl||this.config.disclaimerUrl?`<a href="${this.config.footerDisclaimerUrl||this.config.disclaimerUrl}" target="_blank">${this.escapeHtml(this.config.footerDisclaimerLinkText||this.config.disclaimerLinkText||"Read more")}</a>`:""}\n </span>\n </div>\n `:""}\n\n </div>\n <p align="right" style="padding-top:0px;font-size:12px; margin: 3px;">\n <img src="https://kalrav.ai/wp-content/plugins/kalrav-ai-agent/assets/bolt.svg" width="12" height="12" style="vertical-align:middle;margin:0 2px;" alt="Power Icon">\n <a href="https://kalrav.ai" target="_blank" rel="noopener noreferrer" style="text-decoration:none;color:inherit;">Kalrav AI Agent</a>\n </p>\n </div>\n `}bindEvents(){const e=this.shadowRoot.getElementById("routeye-chat-bubble"),t=this.shadowRoot.getElementById("routeye-close-btn"),n=this.shadowRoot.getElementById("routeye-send-btn"),r=this.shadowRoot.getElementById("routeye-chat-input"),o=this.shadowRoot.getElementById("routeye-clear-btn"),s=this.shadowRoot.getElementById("routeye-menu-btn"),i=this.shadowRoot.getElementById("routeye-menu-dropdown"),a=this.shadowRoot.getElementById("routeye-download-btn"),l=this.shadowRoot.getElementById("routeye-mic-btn"),c=this.shadowRoot.getElementById("routeye-speaker-btn"),u=this.shadowRoot.getElementById("routeye-file-btn"),d=this.shadowRoot.getElementById("routeye-file-input"),h=this.shadowRoot.getElementById("routeye-language-select"),p=this.shadowRoot.getElementById("routeye-chat-window"),g=this.shadowRoot.getElementById("routeye-clear-modal"),f=this.shadowRoot.getElementById("routeye-modal-cancel"),m=this.shadowRoot.getElementById("routeye-modal-confirm");this.bindQuickReplies(),e.addEventListener("click",()=>this.toggleChat()),t.addEventListener("click",()=>{this.speechHandler.stopSpeaking(),p.classList.contains("fullscreen")?this.uiHandler.exitFullscreen():this.toggleChat()}),n.addEventListener("click",()=>this.messageHandler.sendMessage()),r.addEventListener("keypress",e=>{"Enter"!==e.key||this.isLoading||this.messageHandler.sendMessage()}),s&&i&&(s.addEventListener("click",e=>{e.stopPropagation(),i.classList.toggle("show")}),document.addEventListener("click",()=>{i.classList.remove("show")})),a&&a.addEventListener("click",()=>{this.chatHandler.downloadChat(),i&&i.classList.remove("show")}),o&&o.addEventListener("click",()=>{g.classList.add("show")}),f.addEventListener("click",()=>{g.classList.remove("show")}),m.addEventListener("click",()=>{try{this.api.clearSession(),window.speechSynthesis.cancel(),this.clearMessagesFromStorage();const e=this.shadowRoot.getElementById("routeye-chat-messages");e.innerHTML="",e.innerHTML+=this.getWelcomeMessageHTML(),this.renderQuickReplies(e)}catch(e){console.error("Error clearing session:",e)}finally{g.classList.remove("show")}}),g.addEventListener("click",e=>{e.target===g&&feedbackModal.classList.remove("show")}),h.addEventListener("change",e=>{this.selectedLanguage=e.target.value}),l&&l.addEventListener("click",()=>{this.audioHandler.toggleRecording()}),c&&c.addEventListener("click",()=>{this.autoReadEnabled=!this.autoReadEnabled,c.style.opacity=this.autoReadEnabled?"1":"0.5",this.autoReadEnabled||this.speechHandler.stopSpeaking(),this.messageHandler.showSuccessMessage(this.autoReadEnabled?"🔊 Auto-read enabled":"🔇 Auto-read disabled")}),u&&d&&(u.addEventListener("click",()=>{d.click()}),d.addEventListener("change",e=>{this.fileHandler.handleFileUpload(e)})),p.addEventListener("dblclick",()=>this.uiHandler.toggleFullscreen()),this.uiHandler.makeResizable(p),this.uiHandler.makeDraggable(p,".routeye-chat-header");const b=this.shadowRoot.getElementById("routeye-lead-form-container");b&&!b.hasChildNodes()&&this.leadHandler.renderLeadForm(b)}renderQuickReplies(e){const t=this.config.defaultQuestions||[];if(t.length>0){const n=document.createElement("div");n.className="routeye-quick-replies-section",n.innerHTML=`\n ${this.config.welcomeMessage?`<p class="routeye-quick-replies-title">${this.config.welcomeMessage}</p>`:""}\n <div class="routeye-quick-replies" id="routeye-quick-replies">\n ${t.map(e=>`\n <button class="routeye-quick-reply-btn" data-message="${this.escapeHtml(e)}"> <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" style="\n transform: rotate(-45deg);\n flex-shrink: 0;\n ">\n <line x1="5" y1="12" x2="19" y2="12"></line>\n <polyline points="12 5 19 12 12 19"></polyline>\n </svg> ${this.escapeHtml(e)}</button>`).join("\n ")}\n </div>\n `,e.appendChild(n),this.bindQuickReplies()}let n=this.shadowRoot.getElementById("routeye-lead-form-container");n||(n=document.createElement("div"),n.id="routeye-lead-form-container",e.appendChild(n)),n&&!n.hasChildNodes()&&this.leadHandler.renderLeadForm(n)}bindQuickReplies(){const e=this.shadowRoot.querySelectorAll(".routeye-quick-reply-btn"),t=this.shadowRoot.getElementById("routeye-chat-input");e.forEach(e=>{e.addEventListener("click",()=>{const n=e.getAttribute("data-message");t.value=n,this.messageHandler.sendMessage()})})}toggleChat(){this.isOpen&&this.speechHandler.stopSpeaking(),this.isOpen=!this.isOpen;const e=this.shadowRoot.getElementById("routeye-chat-window");this.isOpen?(e.classList.add("open"),this.shadowRoot.getElementById("routeye-chat-input").focus()):e.classList.remove("open")}setLoading(e){this.isLoading=e;const t=this.shadowRoot.getElementById("routeye-send-btn"),n=this.shadowRoot.getElementById("routeye-chat-input");t.disabled=e,n.disabled=e}addMessage(e,t,n=null,r=null,o=null){const s=n||`msg-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,i=r||(new Date).toISOString();return this.messages.some(e=>e.id===s)||(this.messages.push({id:s,type:e,text:t,timestamp:i,feedback:o}),this.saveMessagesToStorage()),this.renderMessage(e,t,s,i),s}addSystemMessage(e){return this.messageHandler.addSystemMessage(e)}addErrorMessage(e){this.messageHandler.addErrorMessage(e)}showSuccessMessage(e){this.messageHandler.showSuccessMessage(e)}sendMessage(){this.messageHandler.sendMessage()}removeMessage(e){return this.messages=this.messages.filter(t=>t.id!==e),this.saveMessagesToStorage(),this.messageHandler.removeMessage(e)}escapeHtml(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}formatBotMessage(e){return e.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>").replace(/\*(.*?)\*/g,"<em>$1</em>").replace(/\n/g,"<br>")}}window.addEventListener("beforeunload",()=>{window.speechSynthesis.cancel()}),async function(){const e=document.getElementsByTagName("script");let t=null;for(let n of e)if(n.src&&n.src.includes("routeye-widget.js")){t=n;break}if(!t)return void console.error("RouteEye Widget: Could not find script tag");const n=t.getAttribute("data-agent-id"),r=t.getAttribute("data-x-key"),o=t.getAttribute("data-primary-color")||"#4F46E5";if(!n||!r)return void console.error("RouteEye Widget: Missing required attributes (data-agent-id and data-x-key)");const s={agentId:n,apiKey:r,primaryColor:o},i=await Ln.fetchAndMergeConfig(n,s),a=()=>{new Tn(i)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()}()})();
|