fge-chat-ia 0.0.4 → 0.0.5
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/fge-chat-ia.es.js +429 -427
- package/dist/fge-chat-ia.umd.js +17 -17
- package/dist/main.css +1 -1
- package/dist/main.d.ts +3 -0
- package/dist/src/components/ChatHistoryItem.vue.d.ts +1 -1
- package/dist/src/components/ChatPage.vue.d.ts +1 -1
- package/dist/src/components/ChatSidebar.vue.d.ts +1 -1
- package/dist/src/components/DocumentList.vue.d.ts +1 -1
- package/package.json +1 -1
package/dist/fge-chat-ia.umd.js
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
(function(K,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(K=typeof globalThis<"u"?globalThis:K||self,u(K.ChatIA={},K.Vue))})(this,function(K,u){"use strict";var Vt=document.createElement("style");Vt.textContent=`.ia-sidebar-btn[data-v-077679a4]{all:unset;padding:.15rem;width:20px;height:20px;border-radius:100%;background-color:var(--ia-primary-color)}.ia-sidebar-btn[data-v-077679a4] svg[data-v-077679a4]{fill:#fff;width:100%;height:100%}.ia-sidebar-btn[data-v-077679a4][data-v-077679a4]:hover{cursor:pointer;box-shadow:0 0 15px 0 var(--ia-chat-box-shadow-color)}.ia-dots-loader[data-v-b3e877da]{width:30px;aspect-ratio:2;--_g: no-repeat radial-gradient(circle closest-side, #f28b0c 90%, #0000);background:var(--_g) 0% 50%,var(--_g) 50% 50%,var(--_g) 100% 50%;background-size:calc(100% / 3) 50%;animation:l3-b3e877da 1s infinite linear}@keyframes l3-b3e877da{20%{background-position:0% 0%,50% 50%,100% 50%}40%{background-position:0% 100%,50% 0%,100% 50%}60%{background-position:0% 50%,50% 100%,100% 0%}80%{background-position:0% 50%,50% 50%,100% 100%}}.ia-chat-message-container[data-v-590c91ba]{color:var(--ia-message-user-color);overflow-wrap:break-word;margin-top:.75rem;margin-bottom:.75rem;padding:.75rem 1.25rem;max-width:50%;background-color:var(--ia-message-box-bg-color);margin-left:auto;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.chat-target-messages[data-v-2abbdc01]{padding:.75rem 0;width:100%}.chat-messages-container[data-v-2abbdc01]{width:100%;display:flex;align-items:center;flex-direction:column;padding:0 .5rem}.ia-chat-bot-message[data-v-2abbdc01]{width:80%;max-width:80%;padding:1.5rem 0;margin-right:auto;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.ia-chat-bot-message-container[data-v-2abbdc01]{color:var(--ia-chat-box-text-color);overflow-wrap:break-word;margin-top:.75rem;margin-bottom:.75rem;max-width:90%}.ia-chat-message-options-bar[data-v-2abbdc01]{display:flex;gap:10px}.ia-chat-message-like-btn[data-v-2abbdc01]{all:unset;width:25px;height:38px;padding:0 8px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--ia-primary-color);transition:background-color .3s ease}.ia-chat-message-like-btn>svg[data-v-2abbdc01]{width:18px;height:18px;fill:#fff}.ia-chat-message-like-btn[data-v-2abbdc01]:hover{background-color:var(--ia-chat-send-btn-hover-color);cursor:pointer}.ia-chat-message-like-btn.liked[data-v-2abbdc01]{background-color:#2ac72a}.ia-chat-message-like-btn.disliked[data-v-2abbdc01]{background-color:#dc3545}.ia-chat-message-like-btn[data-v-2abbdc01]:active{transform:scale(.9)}.ia-chat-message-like-btn[data-v-2abbdc01]:disabled{cursor:not-allowed;opacity:.5}.ia-loader-relative[data-v-9a82108b]{position:relative}.ia-chat-loading[data-v-9a82108b]{position:absolute;width:100%;height:100%;background:#555555bf;left:0;top:0;z-index:999999;display:flex;align-items:center;justify-content:center}.ia-icon_1[data-v-9a82108b]{animation:rotate-9a82108b 2s linear infinite;height:180px}@keyframes rotate-9a82108b{to{transform:rotate(-360deg)}}.ia-icon_2[data-v-9a82108b]{width:115px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ia-message-loader[data-v-f96b52cc]{display:flex;align-items:center;justify-content:center;position:absolute;top:.625rem;left:50%}.msg-loader[data-v-f96b52cc]{width:40px;padding:8px;aspect-ratio:1;border-radius:50%;background:var(--ia-primary-color);--_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;mask-composite:subtract;animation:l3-f96b52cc 1s infinite linear}@keyframes l3-f96b52cc{to{transform:rotate(1turn)}}.ia-chat-history-item[data-v-1d2382b2]{width:100%;display:flex;align-items:center;justify-content:space-between}.ia-chat-history-item-btn[data-v-1d2382b2]{all:unset;padding:1rem;width:100%;font-size:14px;font-weight:500;font-family:var(--ia-chat-font-family);color:var(--ia-chat-box-text-color);cursor:pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ia-chat-history-item-btn[data-v-1d2382b2] svg[data-v-1d2382b2]{width:18px;height:18px;fill:var(--ia-chat-delete-btn-color)}.ia-chat-history-item-btn[data-v-1d2382b2][data-v-1d2382b2]:hover{background-color:var(--ia-chat-box-hover-color)}.ia-chat-delete-item-btn[data-v-1d2382b2]{all:unset;padding:2px;cursor:pointer;width:15px;height:15px}.ia-chat-delete-item-btn[data-v-1d2382b2] svg[data-v-1d2382b2]{width:15px;height:15px;fill:var(--ia-chat-delete-btn-color)}.ia-chat-delete-item-btn[data-v-1d2382b2][data-v-1d2382b2]:hover{background-color:var(--ia-chat-delete-btn-hover-color)}.ia-chat-menu-item-btn[data-v-1d2382b2]{all:unset;padding:2px;cursor:pointer;width:15px;height:15px}.ia-chat-menu-item-btn[data-v-1d2382b2] svg[data-v-1d2382b2]{width:15px;height:15px;fill:#d14f4f}.ia-chat-menu-item-btn[data-v-1d2382b2][data-v-1d2382b2]:hover{background-color:var(--ia-chat-delete-btn-hover-color)}.ia-chat-page-send-btn[data-v-1d2382b2]{all:unset;width:30px;height:44px;padding:0 8px;margin:0 10px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--ia-primary-color)}.ia-chat-page-send-btn[data-v-1d2382b2]>svg[data-v-1d2382b2]{width:18px;height:18px;fill:#fff}.ia-chat-page-send-btn[data-v-1d2382b2][data-v-1d2382b2]:hover{background-color:var(--ia-chat-send-btn-hover-color);cursor:pointer}.menu-container[data-v-1d2382b2]{position:relative;display:inline-block}.menu-button[data-v-1d2382b2]{background-color:inherit;border:none;padding:5px;cursor:pointer;font-size:13px}.dropdown-menu[data-v-1d2382b2]{display:block;position:absolute;background-color:#fff;max-width:100px;box-shadow:0 8px 16px #0003;z-index:1;margin-top:5px;border-radius:5px}.dropdown-menu li[data-v-1d2382b2]{padding:8px;list-style-type:none}.dropdown-menu li a[data-v-1d2382b2]{color:#000;text-decoration:none;display:flex;justify-content:space-between;align-items:center}.dropdown-menu li a[data-v-1d2382b2]:hover{background-color:#f0f0f0}.icon[data-v-1d2382b2]{width:15px;height:15px;margin-left:10px;color:var(--ia-primary-color)}.ia-chat-history-container[data-v-30860a69]{display:flex;flex-direction:column;padding:.75rem 0}.ia-chat-history-item-active[data-v-30860a69]{background-color:var(--ia-chat-item-active-bg-color)}.ia-sidebar-btn[data-v-99d8270c]{all:unset;padding:.15rem;width:20px;height:20px;border-radius:100%;background-color:var(--ia-primary-color)}.ia-sidebar-btn svg[data-v-99d8270c]{fill:#fff;width:100%;height:100%}.ia-sidebar-btn[data-v-99d8270c]:hover{cursor:pointer;box-shadow:0 0 15px 0 var(--ia-chat-box-shadow-color)}.ia-chat-sidebar[data-v-99d8270c]{border-radius:.8rem;max-width:280px;width:100%;height:100%;background-color:var(--ia-chat-bg-sidebar);position:relative}.ia-sidebar-header[data-v-99d8270c]{height:65px;width:100%;display:flex;align-items:center;justify-content:space-between;padding:20px 15px}.ia-sidebar-body[data-v-99d8270c]{height:calc(100% - 65px);width:100%;position:relative;overflow-y:auto;overflow-x:hidden;padding:0 15px}.ia-chat-sidebar[data-v-99d8270c]:after{content:"";position:absolute;top:0;right:0;height:100%;width:2px}.ia-doc-header[data-v-985f3dbb]{height:40px;width:100%;border-bottom:2px solid var(--ia-chat-sidebar-border-color);display:flex;justify-content:space-between;align-items:center;padding:0 20px}.ia-doc-header p[data-v-985f3dbb]{font-size:20px;font-weight:700;color:var(--ia-chat-box-text-color)}.close-btn[data-v-985f3dbb]{background:none;border:none;font-size:16px;cursor:pointer;color:#000}.document-list[data-v-985f3dbb]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:20px}.document-item[data-v-985f3dbb]{display:flex;align-items:center}.document-button[data-v-985f3dbb]{display:flex;align-items:left;margin-bottom:5px;justify-content:left;padding:8px;width:100%;background-color:#f1f1f1;border:none;border-radius:8px;cursor:pointer;transition:background-color .3s}.document-button[data-v-985f3dbb]>svg[data-v-985f3dbb]{margin-right:10px;width:18px;height:18px;fill:#ee2828}.document-item.selected .document-button[data-v-985f3dbb]{background-color:var(--ia-primary-color);color:#fff}.document-button[data-v-985f3dbb]:hover{background-color:#ddd}.pdf-icon[data-v-985f3dbb]{width:20px;height:20px;margin-right:10px}.confirm-btn[data-v-985f3dbb]{margin-top:20px;padding:10px 20px;background-color:var(--ia-primary-color);color:#fff;border:none;border-radius:4px;cursor:pointer}.confirm-btn[data-v-985f3dbb]>svg[data-v-985f3dbb]{margin-right:8px;width:18px;height:18px;fill:#fff}.confirm-btn[data-v-985f3dbb]:hover{background-color:var(--ia-chat-send-btn-hover-color)}@media (max-width: 768px){.document-item[data-v-985f3dbb]{width:100%}}.modal-overlay[data-v-985f3dbb]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center}.modal-content[data-v-985f3dbb]{background:#fff;padding:20px;border-radius:8px;width:450px;box-shadow:0 4px 6px #0000001a;text-align:center}.ia-message-loader[data-v-985f3dbb]{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.seleccionados[data-v-985f3dbb]{color:var(--ia-chat-box-text-color);font-size:12px;font-family:var(--ia-chat-font-family);margin:0;padding:0;text-align:center}.msg-loader[data-v-985f3dbb]{width:40px;padding:8px;aspect-ratio:1;border-radius:50%;background:#db9b0f;--_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;mask-composite:subtract;animation:l3-985f3dbb 1s infinite linear}@keyframes l3-985f3dbb{to{transform:rotate(1turn)}}.file-list[data-v-864928b6]{display:flex;flex-wrap:wrap;gap:10px}.file-card[data-v-864928b6]{display:flex;align-items:center;justify-content:space-between;width:240px;padding:10px;border:1px solid #ddd;border-radius:8px;background-color:#f9f9f9}.file-icon img[data-v-864928b6]{width:40px;height:40px}.file-details[data-v-864928b6]{flex-grow:1;margin-left:10px}.file-details h3[data-v-864928b6]{font-size:14px;margin:0}.file-details p[data-v-864928b6]{font-size:12px;color:#666}.file-details span[data-v-864928b6]{font-size:10px;color:#999}.remove-button[data-v-864928b6]{background:none;border:none;border-radius:50%;color:#000;font-size:10px;cursor:pointer}.remove-button[data-v-864928b6]:hover{color:#d00}.ia-chat-container[data-v-b59196f9]{background-color:var(--ia-chat-bg-color);flex:1;border-radius:.8rem;transition:all .3s ease}.ia-chat-header[data-v-b59196f9]{height:65px;width:100%;border-bottom:2px solid var(--ia-chat-sidebar-border-color);display:flex;align-items:center;justify-content:space-between;padding:0 20px}.ia-chat-header p[data-v-b59196f9]{font-size:20px;font-weight:700;color:var(--ia-chat-box-text-color)}.ia-chat-body-container[data-v-b59196f9]{width:100%;height:calc(100% - 65px);display:flex;align-items:center;justify-content:center;padding:0 2rem;position:relative}.ia-chat-body[data-v-b59196f9]{height:100%;max-width:850px;padding-top:1rem;display:flex;align-items:center;justify-content:end;flex-direction:column;border-left-width:1px;border-right-width:1px;border-color:#d1d5db;flex-grow:1;position:relative;margin-bottom:.25rem}.ia-chat-body-messages[data-v-b59196f9]{width:100%;overflow-y:auto;margin-top:auto}.ia-chat-empty-container[data-v-b59196f9]{height:calc(100vh - 250px);display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:center}.ia-chat-empty-container>p[data-v-b59196f9]{opacity:.75;color:var(--ia-chat-box-text-color);font-family:var(--ia-chat-font-family);margin:0;padding:0}.ia-chat-empty-container svg[data-v-b59196f9]{opacity:.75;width:65px;height:65px}.ia-chat-footer[data-v-b59196f9]{padding:.5rem 0;width:100%;position:sticky;bottom:-.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}.ia-chat-footer>p[data-v-b59196f9]{color:var(--ia-chat-box-text-color);font-size:12px;font-family:var(--ia-chat-font-family);margin:0;padding:0;text-align:center}.ia-chat-text-area-container[data-v-b59196f9]{width:100%;display:flex;align-items:end;gap:.25rem}.ia-chat-text-area[data-v-b59196f9]{width:100%;min-height:44px;background-color:var(--ia-chat-textarea-bg-color);resize:none;border:1px solid var(--ia-primary-color);outline:none;font-size:16px;font-family:var(--ia-chat-font-family);color:var(--ia-chat-box-text-color);padding:.75rem;overflow:hidden;border-radius:4px}.ia-chat-page-send-btn[data-v-b59196f9]{all:unset;width:30px;height:44px;padding:0 8px;margin:0 10px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--ia-primary-color)}.ia-chat-page-send-btn>svg[data-v-b59196f9]{width:18px;height:18px;fill:#f1f1f1}.ia-chat-page-send-btn[data-v-b59196f9]:hover{background-color:var(--ia-chat-send-btn-hover-color);cursor:pointer}.ia-chat-body-messages[data-v-b59196f9]::-webkit-scrollbar{width:10px}.ia-chat-body-messages[data-v-b59196f9]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.ia-chat-body-messages[data-v-b59196f9]::-webkit-scrollbar-thumb{background-color:var(--ia-primary-color);border-radius:10px;border:1px solid #f1f1f1}.ia-chat-body-messages[data-v-b59196f9]::-webkit-scrollbar-thumb:hover{background-color:var(--ia-primary-color)}.ia-chat-reset *,.ia-chat-page-container *,.ia-chat-page-container.ia-chat-page{box-sizing:border-box;margin:0;padding:0}:root{--ia-primary-color: #f28b0c;--ia-chat-box-shadow-color: #ccc;--ia-chat-box-text-color: #4d4d4d;--ia-chat-bg-color: #fff;--ia-chat-bg-sidebar: #f4f4f5;--ia-chat-sidebar-border-color: #e4e4e7;--ia-chat-item-active-bg-color: #d6d6d6;--ia-chat-box-hover-color: #b9b9b92d;--ia-chat-delete-btn-color: #3f3c3c;--ia-chat-delete-btn-hover-color: #fdfdfdf5;--ia-chat-font-family: Roboto, Arial, Helvetica, sans-serif;--ia-chat-message-font-size: 14px;--ia-chat-message-font-weight: 400;--ia-message-box-bg-color: #fce2c2;--ia-message-user-color: #4b5563;--ia-chat-message-padding: 10px;--ia-chat-textarea-bg-color: #f3f3f3;--ia-chat-send-btn-hover-color: rgba(242, 139, 12, .8)}.ia-chat-reset{position:relative}.dark{height:100%;width:100%;--ia-chat-box-shadow-color: #4d4d4d;--ia-chat-box-text-color: #cecfd1;--ia-chat-bg-color: #1e293b;--ia-chat-bg-sidebar: #1e293b;--ia-chat-textarea-bg-color: #212535;--ia-message-box-bg-color: #cbd5e1;--ia-message-user-color: #0f233f;--ia-common-color: #4c5158}.ia-chat-page-container{height:100%;width:100%;position:relative;background-color:inherit;display:flex;gap:1rem}.ia-dots-loader-container{padding:0 1.25rem;background-color:var(--ia-message-box-bg-color);border-radius:8px;padding:.5rem;width:50px;display:flex;align-items:center;justify-content:center}.ia-chat-common-btn{all:unset;padding:2px;cursor:pointer;width:15px;height:15px}.ia-chat-common-btn svg{width:15px;height:15px;fill:var(--ia-primary-color)}.ia-chat-common-btn:hover{background-color:var(--ia-chat-delete-btn-hover-color)}.header-title{font-size:13px;font-weight:700;padding:7px}
|
2
|
-
`,document.head.appendChild(Vt);const Tn={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function Rn(t,e){return u.openBlock(),u.createElementBlock("svg",Tn,e[0]||(e[0]=[u.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.857 3h6.286c1.084 0 1.958 0 2.666.058.729.06 1.369.185 1.961.487a5 5 0 0 1 2.185 2.185c.302.592.428 1.233.487 1.961.058.708.058 1.582.058 2.666v3.286c0 1.084 0 1.958-.058 2.666-.06.729-.185 1.369-.487 1.961a5 5 0 0 1-2.185 2.185c-.592.302-1.232.428-1.961.487C17.1 21 16.227 21 15.143 21H8.857c-1.084 0-1.958 0-2.666-.058-.728-.06-1.369-.185-1.96-.487a5 5 0 0 1-2.186-2.185c-.302-.592-.428-1.232-.487-1.961C1.5 15.6 1.5 14.727 1.5 13.643v-3.286c0-1.084 0-1.958.058-2.666.06-.728.185-1.369.487-1.96A5 5 0 0 1 4.23 3.544c.592-.302 1.233-.428 1.961-.487C6.9 3 7.773 3 8.857 3M6.354 5.051c-.605.05-.953.142-1.216.276a3 3 0 0 0-1.311 1.311c-.134.263-.226.611-.276 1.216-.05.617-.051 1.41-.051 2.546v3.2c0 1.137 0 1.929.051 2.546.05.605.142.953.276 1.216a3 3 0 0 0 1.311 1.311c.263.134.611.226 1.216.276.617.05 1.41.051 2.546.051h.6V5h-.6c-1.137 0-1.929 0-2.546.051M11.5 5v14h3.6c1.137 0 1.929 0 2.546-.051.605-.05.953-.142 1.216-.276a3 3 0 0 0 1.311-1.311c.134-.263.226-.611.276-1.216.05-.617.051-1.41.051-2.546v-3.2c0-1.137 0-1.929-.051-2.546-.05-.605-.142-.953-.276-1.216a3 3 0 0 0-1.311-1.311c-.263-.134-.611-.226-1.216-.276C17.029 5.001 16.236 5 15.1 5zM5 8.5a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1M5 12a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1","clip-rule":"evenodd"},null,-1)]))}const Ln={render:Rn},Nn=["title"],Bn=u.defineComponent({__name:"SidebarButton",props:{title:{}},emits:["click"],setup(t,{emit:e}){const r=t,n=e;return(o,s)=>(u.openBlock(),u.createElementBlock("button",{class:"ia-sidebar-btn",title:r.title,onClick:s[0]||(s[0]=c=>n("click"))},[u.createVNode(u.unref(Ln))],8,Nn))}}),U=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},It=U(Bn,[["__scopeId","data-v-077679a4"]]),Fn={},Vn={class:"ia-dots-loader"};function In(t,e){return u.openBlock(),u.createElementBlock("div",Vn)}const Mt=U(Fn,[["render",In],["__scopeId","data-v-b3e877da"]]),Mn={class:"ia-chat-message-container"},On=U(u.defineComponent({__name:"ChatMessage",props:{message:{}},setup(t){const e=t;return(r,n)=>(u.openBlock(),u.createElementBlock("div",Mn,u.toDisplayString(e.message.message),1))}}),[["__scopeId","data-v-590c91ba"]]);function zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Un(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var R={},Ot={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
3
|
-
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},Ze=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ce={},zt={};function Pn(t){var e,r,n=zt[t];if(n)return n;for(n=zt[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)n[t.charCodeAt(e)]=t[e];return n}function _e(t,e,r){var n,o,s,c,i,a="";for(typeof e!="string"&&(r=e,e=_e.defaultChars),typeof r>"u"&&(r=!0),i=Pn(e),n=0,o=t.length;n<o;n++){if(s=t.charCodeAt(n),r&&s===37&&n+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(n+1,n+3))){a+=t.slice(n,n+3),n+=2;continue}if(s<128){a+=i[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1<o&&(c=t.charCodeAt(n+1),c>=56320&&c<=57343)){a+=encodeURIComponent(t[n]+t[n+1]),n++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[n])}return a}_e.defaultChars=";/?:@&=+$,-_.!~*'()#",_e.componentChars="-_.!~*'()";var $n=_e,Ut={};function Hn(t){var e,r,n=Ut[t];if(n)return n;for(n=Ut[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),n.push(r);for(e=0;e<t.length;e++)r=t.charCodeAt(e),n[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}function we(t,e){var r;return typeof e!="string"&&(e=we.defaultChars),r=Hn(e),t.replace(/(%[a-f0-9]{2})+/gi,function(n){var o,s,c,i,a,l,p,d="";for(o=0,s=n.length;o<s;o+=3){if(c=parseInt(n.slice(o+1,o+3),16),c<128){d+=r[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(n.slice(o+4,o+6),16),(i&192)===128)){p=c<<6&1984|i&63,p<128?d+="��":d+=String.fromCharCode(p),o+=3;continue}if((c&240)===224&&o+6<s&&(i=parseInt(n.slice(o+4,o+6),16),a=parseInt(n.slice(o+7,o+9),16),(i&192)===128&&(a&192)===128)){p=c<<12&61440|i<<6&4032|a&63,p<2048||p>=55296&&p<=57343?d+="���":d+=String.fromCharCode(p),o+=6;continue}if((c&248)===240&&o+9<s&&(i=parseInt(n.slice(o+4,o+6),16),a=parseInt(n.slice(o+7,o+9),16),l=parseInt(n.slice(o+10,o+12),16),(i&192)===128&&(a&192)===128&&(l&192)===128)){p=c<<18&1835008|i<<12&258048|a<<6&4032|l&63,p<65536||p>1114111?d+="����":(p-=65536,d+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),o+=9;continue}d+="�"}return d})}we.defaultChars=";/?:@&=+$,#",we.componentChars="";var jn=we,Gn=function(e){var r="";return r+=e.protocol||"",r+=e.slashes?"//":"",r+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?r+="["+e.hostname+"]":r+=e.hostname||"",r+=e.port?":"+e.port:"",r+=e.pathname||"",r+=e.search||"",r+=e.hash||"",r};function Ee(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Zn=/^([a-z0-9.+-]+:)/i,Jn=/:[0-9]*$/,Wn=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Kn=["<",">",'"',"`"," ","\r",`
|
4
|
-
`," "],Yn=["{","}","|","\\","^","`"].concat(Kn),Qn=["'"].concat(Yn),Pt=["%","/","?",";","#"].concat(Qn),$t=["/","?","#"],Xn=255,Ht=/^[+a-z0-9A-Z_-]{0,63}$/,eo=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jt={javascript:!0,"javascript:":!0},Gt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function to(t,e){if(t&&t instanceof Ee)return t;var r=new Ee;return r.parse(t,e),r}Ee.prototype.parse=function(t,e){var r,n,o,s,c,
|
5
|
-
`},G.fence=function(t,e,r,n,o){var s=t[e],c=s.info?uo(s.info).trim():"",
|
6
|
-
`:c?(p=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[],p<0?f.push(["class",r.langPrefix+
|
1
|
+
(function(K,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(K=typeof globalThis<"u"?globalThis:K||self,u(K.ChatIA={},K.Vue))})(this,function(K,u){"use strict";var Vt=document.createElement("style");Vt.textContent=`.ia-sidebar-btn[data-v-077679a4]{all:unset;padding:.15rem;width:20px;height:20px;border-radius:100%;background-color:var(--ia-primary-color)}.ia-sidebar-btn[data-v-077679a4] svg[data-v-077679a4]{fill:#fff;width:100%;height:100%}.ia-sidebar-btn[data-v-077679a4][data-v-077679a4]:hover{cursor:pointer;box-shadow:0 0 15px 0 var(--ia-chat-box-shadow-color)}.ia-dots-loader[data-v-b3e877da]{width:30px;aspect-ratio:2;--_g: no-repeat radial-gradient(circle closest-side, #f28b0c 90%, #0000);background:var(--_g) 0% 50%,var(--_g) 50% 50%,var(--_g) 100% 50%;background-size:calc(100% / 3) 50%;animation:l3-b3e877da 1s infinite linear}@keyframes l3-b3e877da{20%{background-position:0% 0%,50% 50%,100% 50%}40%{background-position:0% 100%,50% 0%,100% 50%}60%{background-position:0% 50%,50% 100%,100% 0%}80%{background-position:0% 50%,50% 50%,100% 100%}}.ia-chat-message-container[data-v-590c91ba]{color:var(--ia-message-user-color);overflow-wrap:break-word;margin-top:.75rem;margin-bottom:.75rem;padding:.75rem 1.25rem;max-width:50%;background-color:var(--ia-message-box-bg-color);margin-left:auto;border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.chat-target-messages[data-v-2abbdc01]{padding:.75rem 0;width:100%}.chat-messages-container[data-v-2abbdc01]{width:100%;display:flex;align-items:center;flex-direction:column;padding:0 .5rem}.ia-chat-bot-message[data-v-2abbdc01]{width:80%;max-width:80%;padding:1.5rem 0;margin-right:auto;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.ia-chat-bot-message-container[data-v-2abbdc01]{color:var(--ia-chat-box-text-color);overflow-wrap:break-word;margin-top:.75rem;margin-bottom:.75rem;max-width:90%}.ia-chat-message-options-bar[data-v-2abbdc01]{display:flex;gap:10px}.ia-chat-message-like-btn[data-v-2abbdc01]{all:unset;width:25px;height:38px;padding:0 8px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--ia-primary-color);transition:background-color .3s ease}.ia-chat-message-like-btn>svg[data-v-2abbdc01]{width:18px;height:18px;fill:#fff}.ia-chat-message-like-btn[data-v-2abbdc01]:hover{background-color:var(--ia-chat-send-btn-hover-color);cursor:pointer}.ia-chat-message-like-btn.liked[data-v-2abbdc01]{background-color:#2ac72a}.ia-chat-message-like-btn.disliked[data-v-2abbdc01]{background-color:#dc3545}.ia-chat-message-like-btn[data-v-2abbdc01]:active{transform:scale(.9)}.ia-chat-message-like-btn[data-v-2abbdc01]:disabled{cursor:not-allowed;opacity:.5}.ia-loader-relative[data-v-9a82108b]{position:relative}.ia-chat-loading[data-v-9a82108b]{position:absolute;width:100%;height:100%;background:#555555bf;left:0;top:0;z-index:999999;display:flex;align-items:center;justify-content:center}.ia-icon_1[data-v-9a82108b]{animation:rotate-9a82108b 2s linear infinite;height:180px}@keyframes rotate-9a82108b{to{transform:rotate(-360deg)}}.ia-icon_2[data-v-9a82108b]{width:115px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ia-message-loader[data-v-f96b52cc]{display:flex;align-items:center;justify-content:center;position:absolute;top:.625rem;left:50%}.msg-loader[data-v-f96b52cc]{width:40px;padding:8px;aspect-ratio:1;border-radius:50%;background:var(--ia-primary-color);--_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;mask-composite:subtract;animation:l3-f96b52cc 1s infinite linear}@keyframes l3-f96b52cc{to{transform:rotate(1turn)}}.ia-chat-history-item[data-v-1e9b01b2]{width:100%;display:flex;align-items:center;justify-content:space-between}.ia-chat-history-item-btn[data-v-1e9b01b2]{all:unset;padding:1rem;width:100%;font-size:14px;font-weight:500;font-family:var(--ia-chat-font-family);color:var(--ia-chat-box-text-color);cursor:pointer;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ia-chat-history-item-btn[data-v-1e9b01b2] svg[data-v-1e9b01b2]{width:18px;height:18px;fill:var(--ia-chat-delete-btn-color)}.ia-chat-history-item-btn[data-v-1e9b01b2][data-v-1e9b01b2]:hover{background-color:var(--ia-chat-box-hover-color)}.ia-chat-delete-item-btn[data-v-1e9b01b2]{all:unset;padding:2px;cursor:pointer;width:15px;height:15px}.ia-chat-delete-item-btn[data-v-1e9b01b2] svg[data-v-1e9b01b2]{width:15px;height:15px;fill:var(--ia-chat-delete-btn-color)}.ia-chat-delete-item-btn[data-v-1e9b01b2][data-v-1e9b01b2]:hover{background-color:var(--ia-chat-delete-btn-hover-color)}.ia-chat-menu-item-btn[data-v-1e9b01b2]{all:unset;padding:2px;cursor:pointer;width:15px;height:15px}.ia-chat-menu-item-btn[data-v-1e9b01b2] svg[data-v-1e9b01b2]{width:15px;height:15px;fill:#f8f4f4}.ia-chat-menu-item-btn[data-v-1e9b01b2][data-v-1e9b01b2]:hover{background-color:var(--ia-chat-delete-btn-hover-color)}.ia-chat-page-send-btn[data-v-1e9b01b2]{all:unset;width:30px;height:44px;padding:0 8px;margin:0 10px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--ia-primary-color)}.ia-chat-page-send-btn[data-v-1e9b01b2]>svg[data-v-1e9b01b2]{width:18px;height:18px;fill:#fff}.ia-chat-page-send-btn[data-v-1e9b01b2][data-v-1e9b01b2]:hover{background-color:var(--ia-chat-send-btn-hover-color);cursor:pointer}.menu-container[data-v-1e9b01b2]{position:relative;display:inline-block}.menu-button[data-v-1e9b01b2]{background-color:inherit;border:none;padding:5px;cursor:pointer;font-size:13px}.dropdown-menu[data-v-1e9b01b2]{display:block;position:absolute;background-color:#fff;max-width:100px;box-shadow:0 8px 16px #0003;z-index:1;margin-top:5px;border-radius:5px}.dropdown-menu li[data-v-1e9b01b2]{padding:8px;list-style-type:none}.dropdown-menu li a[data-v-1e9b01b2]{color:#000;text-decoration:none;display:flex;justify-content:space-between;align-items:center}.dropdown-menu li a[data-v-1e9b01b2]:hover{background-color:#f0f0f0}.icon[data-v-1e9b01b2]{width:15px;height:15px;margin-left:10px;color:var(--ia-primary-color)}.ia-chat-history-container[data-v-30860a69]{display:flex;flex-direction:column;padding:.75rem 0}.ia-chat-history-item-active[data-v-30860a69]{background-color:var(--ia-chat-item-active-bg-color)}.ia-sidebar-btn[data-v-754d77d1]{all:unset;padding:.15rem;width:20px;height:20px;border-radius:100%;background-color:var(--ia-primary-color)}.ia-sidebar-btn svg[data-v-754d77d1]{fill:#fff;width:100%;height:100%}.ia-sidebar-btn[data-v-754d77d1]:hover{cursor:pointer;box-shadow:0 0 15px 0 var(--ia-chat-box-shadow-color)}.ia-chat-sidebar[data-v-754d77d1]{border-radius:.8rem;max-width:280px;width:100%;height:100%;background-color:var(--ia-chat-bg-sidebar);position:relative}.ia-sidebar-header[data-v-754d77d1]{height:65px;width:100%;display:flex;align-items:center;justify-content:space-between;padding:20px 15px}.ia-sidebar-body[data-v-754d77d1]{height:calc(100% - 65px);width:100%;position:relative;overflow-y:auto;overflow-x:hidden;padding:0 15px}.ia-chat-sidebar[data-v-754d77d1]:after{content:"";position:absolute;top:0;right:0;height:100%;width:2px}.ia-doc-header[data-v-9f1a4d35]{height:40px;width:100%;border-bottom:2px solid var(--ia-chat-sidebar-border-color);display:flex;justify-content:space-between;align-items:center;padding:0 20px}.ia-doc-header p[data-v-9f1a4d35]{font-size:20px;font-weight:700;color:var(--ia-chat-box-text-color)}.close-btn[data-v-9f1a4d35]{background:none;border:none;font-size:16px;cursor:pointer;color:#000}.document-list[data-v-9f1a4d35]{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:20px}.document-item[data-v-9f1a4d35]{display:flex;align-items:center}.document-button[data-v-9f1a4d35]{display:flex;align-items:left;margin-bottom:5px;justify-content:left;padding:8px;width:100%;background-color:var(--ia-chat-btn-list-docs);border:none;border-radius:8px;cursor:pointer;transition:background-color .3s}.document-button[data-v-9f1a4d35]>svg[data-v-9f1a4d35]{margin-right:10px;width:18px;height:18px;fill:#ee2828}.document-item.selected .document-button[data-v-9f1a4d35]{background-color:var(--ia-primary-color);color:#fff}.document-button[data-v-9f1a4d35]:hover{background-color:#ddd}.pdf-icon[data-v-9f1a4d35]{width:20px;height:20px;margin-right:10px}.confirm-btn[data-v-9f1a4d35]{margin-top:20px;padding:10px 20px;background-color:var(--ia-primary-color);color:#fff;border:none;border-radius:4px;cursor:pointer}.confirm-btn[data-v-9f1a4d35]>svg[data-v-9f1a4d35]{margin-right:8px;width:18px;height:18px;fill:#fff}.confirm-btn[data-v-9f1a4d35]:hover{background-color:var(--ia-chat-send-btn-hover-color)}@media (max-width: 768px){.document-item[data-v-9f1a4d35]{width:100%}}.modal-overlay[data-v-9f1a4d35]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000080;display:flex;justify-content:center;align-items:center}.modal-content[data-v-9f1a4d35]{background:var(--ia-chat-bg-sidebar);padding:20px;border-radius:8px;width:450px;box-shadow:0 4px 6px #0000001a;text-align:center}.ia-message-loader[data-v-9f1a4d35]{display:flex;align-items:center;justify-content:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.seleccionados[data-v-9f1a4d35]{color:var(--ia-chat-box-text-color);font-size:12px;font-family:var(--ia-chat-font-family);margin:0;padding:0;text-align:center}.msg-loader[data-v-9f1a4d35]{width:40px;padding:8px;aspect-ratio:1;border-radius:50%;background:#db9b0f;--_m: conic-gradient(#0000 10%, #000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;mask-composite:subtract;animation:l3-9f1a4d35 1s infinite linear}@keyframes l3-9f1a4d35{to{transform:rotate(1turn)}}.file-list[data-v-864928b6]{display:flex;flex-wrap:wrap;gap:10px}.file-card[data-v-864928b6]{display:flex;align-items:center;justify-content:space-between;width:240px;padding:10px;border:1px solid #ddd;border-radius:8px;background-color:#f9f9f9}.file-icon img[data-v-864928b6]{width:40px;height:40px}.file-details[data-v-864928b6]{flex-grow:1;margin-left:10px}.file-details h3[data-v-864928b6]{font-size:14px;margin:0}.file-details p[data-v-864928b6]{font-size:12px;color:#666}.file-details span[data-v-864928b6]{font-size:10px;color:#999}.remove-button[data-v-864928b6]{background:none;border:none;border-radius:50%;color:#000;font-size:10px;cursor:pointer}.remove-button[data-v-864928b6]:hover{color:#d00}.ia-chat-container[data-v-ea1d389d]{background-color:var(--ia-chat-bg-color);flex:1;border-radius:.8rem;transition:all .3s ease}.ia-chat-header[data-v-ea1d389d]{height:65px;width:100%;border-bottom:2px solid var(--ia-chat-sidebar-border-color);display:flex;align-items:center;justify-content:space-between;padding:0 20px}.ia-chat-header p[data-v-ea1d389d]{font-size:20px;font-weight:700;color:var(--ia-chat-box-text-color)}.ia-chat-body-container[data-v-ea1d389d]{width:100%;height:calc(100% - 65px);display:flex;align-items:center;justify-content:center;padding:0 2rem;position:relative}.ia-chat-body[data-v-ea1d389d]{height:100%;max-width:850px;padding-top:1rem;display:flex;align-items:center;justify-content:end;flex-direction:column;border-left-width:1px;border-right-width:1px;border-color:#d1d5db;flex-grow:1;position:relative;margin-bottom:.25rem}.ia-chat-body-messages[data-v-ea1d389d]{width:100%;overflow-y:auto;margin-top:auto}.ia-chat-empty-container[data-v-ea1d389d]{height:calc(100vh - 250px);display:flex;flex-direction:column;gap:1rem;align-items:center;justify-content:center}.ia-chat-empty-container>p[data-v-ea1d389d]{opacity:.75;color:var(--ia-chat-box-text-color);font-family:var(--ia-chat-font-family);margin:0;padding:0}.ia-chat-empty-container svg[data-v-ea1d389d]{opacity:.75;width:65px;height:65px}.ia-chat-footer[data-v-ea1d389d]{padding:.5rem 0;width:100%;position:sticky;bottom:-.5rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem}.ia-chat-footer>p[data-v-ea1d389d]{color:var(--ia-chat-box-text-color);font-size:12px;font-family:var(--ia-chat-font-family);margin:0;padding:0;text-align:center}.ia-chat-text-area-container[data-v-ea1d389d]{width:100%;display:flex;align-items:end;gap:.25rem}.ia-chat-text-area[data-v-ea1d389d]{width:100%;min-height:44px;background-color:var(--ia-chat-textarea-bg-color);resize:none;border:1px solid var(--ia-primary-color);outline:none;font-size:16px;font-family:var(--ia-chat-font-family);color:var(--ia-chat-box-text-color);padding:.75rem;overflow:hidden;border-radius:4px}.ia-chat-page-send-btn[data-v-ea1d389d]{all:unset;width:30px;height:44px;padding:0 8px;margin:0 10px;display:flex;align-items:center;justify-content:center;border-radius:4px;background-color:var(--ia-primary-color)}.ia-chat-page-send-btn>svg[data-v-ea1d389d]{width:18px;height:18px;fill:#f1f1f1}.ia-chat-page-send-btn[data-v-ea1d389d]:hover{background-color:var(--ia-chat-send-btn-hover-color);cursor:pointer}.ia-chat-body-messages[data-v-ea1d389d]::-webkit-scrollbar{width:10px}.ia-chat-body-messages[data-v-ea1d389d]::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.ia-chat-body-messages[data-v-ea1d389d]::-webkit-scrollbar-thumb{background-color:var(--ia-primary-color);border-radius:10px;border:1px solid #f1f1f1}.ia-chat-body-messages[data-v-ea1d389d]::-webkit-scrollbar-thumb:hover{background-color:var(--ia-primary-color)}.ia-chat-reset *,.ia-chat-page-container *,.ia-chat-page-container.ia-chat-page{box-sizing:border-box;margin:0;padding:0}:root{--ia-primary-color: #f28b0c;--ia-chat-box-shadow-color: #ccc;--ia-chat-box-text-color: #4d4d4d;--ia-chat-bg-color: #fff;--ia-chat-bg-sidebar: #f4f4f5;--ia-chat-sidebar-border-color: #e4e4e7;--ia-chat-item-active-bg-color: #d6d6d6;--ia-chat-box-hover-color: #b9b9b92d;--ia-chat-delete-btn-color: #3f3c3c;--ia-chat-delete-btn-hover-color: #fdfdfdf5;--ia-chat-font-family: Roboto, Arial, Helvetica, sans-serif;--ia-chat-message-font-size: 14px;--ia-chat-message-font-weight: 400;--ia-message-box-bg-color: #fce2c2;--ia-message-user-color: #4b5563;--ia-chat-message-padding: 10px;--ia-chat-textarea-bg-color: #f3f3f3;--ia-chat-send-btn-hover-color: rgba(242, 139, 12, .8);--ia-chat-btn-list-docs: #8583832d}.ia-chat-reset{position:relative}.dark{height:100%;width:100%;--ia-chat-box-shadow-color: #4d4d4d;--ia-chat-box-text-color: #cecfd1;--ia-chat-bg-color: #1e293b;--ia-chat-bg-sidebar: #1e293b;--ia-chat-textarea-bg-color: #212535;--ia-message-box-bg-color: #cbd5e1;--ia-message-user-color: #0f233f;--ia-common-color: #4c5158;--ia-chat-box-hover-color: #8583832d;--ia-chat-btn-list-docs: #cbd5e1;--ia-chat-item-active-bg-color: rgba(242, 139, 12, .8)}.ia-chat-page-container{height:100%;width:100%;position:relative;background-color:inherit;display:flex;gap:1rem}.ia-dots-loader-container{padding:0 1.25rem;background-color:var(--ia-message-box-bg-color);border-radius:8px;padding:.5rem;width:50px;display:flex;align-items:center;justify-content:center}.ia-chat-common-btn{all:unset;padding:2px;cursor:pointer;width:15px;height:15px}.ia-chat-common-btn svg{width:15px;height:15px;fill:var(--ia-primary-color)}.ia-chat-common-btn:hover{background-color:var(--ia-chat-delete-btn-hover-color)}.header-title{font-size:13px;font-weight:700;padding:7px;color:var(--ia-chat-box-text-color)}
|
2
|
+
`,document.head.appendChild(Vt);const Tn={xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"};function Rn(t,e){return u.openBlock(),u.createElementBlock("svg",Tn,e[0]||(e[0]=[u.createElementVNode("path",{"fill-rule":"evenodd",d:"M8.857 3h6.286c1.084 0 1.958 0 2.666.058.729.06 1.369.185 1.961.487a5 5 0 0 1 2.185 2.185c.302.592.428 1.233.487 1.961.058.708.058 1.582.058 2.666v3.286c0 1.084 0 1.958-.058 2.666-.06.729-.185 1.369-.487 1.961a5 5 0 0 1-2.185 2.185c-.592.302-1.232.428-1.961.487C17.1 21 16.227 21 15.143 21H8.857c-1.084 0-1.958 0-2.666-.058-.728-.06-1.369-.185-1.96-.487a5 5 0 0 1-2.186-2.185c-.302-.592-.428-1.232-.487-1.961C1.5 15.6 1.5 14.727 1.5 13.643v-3.286c0-1.084 0-1.958.058-2.666.06-.728.185-1.369.487-1.96A5 5 0 0 1 4.23 3.544c.592-.302 1.233-.428 1.961-.487C6.9 3 7.773 3 8.857 3M6.354 5.051c-.605.05-.953.142-1.216.276a3 3 0 0 0-1.311 1.311c-.134.263-.226.611-.276 1.216-.05.617-.051 1.41-.051 2.546v3.2c0 1.137 0 1.929.051 2.546.05.605.142.953.276 1.216a3 3 0 0 0 1.311 1.311c.263.134.611.226 1.216.276.617.05 1.41.051 2.546.051h.6V5h-.6c-1.137 0-1.929 0-2.546.051M11.5 5v14h3.6c1.137 0 1.929 0 2.546-.051.605-.05.953-.142 1.216-.276a3 3 0 0 0 1.311-1.311c.134-.263.226-.611.276-1.216.05-.617.051-1.41.051-2.546v-3.2c0-1.137 0-1.929-.051-2.546-.05-.605-.142-.953-.276-1.216a3 3 0 0 0-1.311-1.311c-.263-.134-.611-.226-1.216-.276C17.029 5.001 16.236 5 15.1 5zM5 8.5a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1M5 12a1 1 0 0 1 1-1h1a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1","clip-rule":"evenodd"},null,-1)]))}const Ln={render:Rn},Bn=["title"],Nn=u.defineComponent({__name:"SidebarButton",props:{title:{}},emits:["click"],setup(t,{emit:e}){const r=t,n=e;return(o,s)=>(u.openBlock(),u.createElementBlock("button",{class:"ia-sidebar-btn",title:r.title,onClick:s[0]||(s[0]=c=>n("click"))},[u.createVNode(u.unref(Ln))],8,Bn))}}),U=(t,e)=>{const r=t.__vccOpts||t;for(const[n,o]of e)r[n]=o;return r},It=U(Nn,[["__scopeId","data-v-077679a4"]]),Fn={},Vn={class:"ia-dots-loader"};function In(t,e){return u.openBlock(),u.createElementBlock("div",Vn)}const Mt=U(Fn,[["render",In],["__scopeId","data-v-b3e877da"]]),Mn={class:"ia-chat-message-container"},On=U(u.defineComponent({__name:"ChatMessage",props:{message:{}},setup(t){const e=t;return(r,n)=>(u.openBlock(),u.createElementBlock("div",Mn,u.toDisplayString(e.message.message),1))}}),[["__scopeId","data-v-590c91ba"]]);function zn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Un(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}var R={},Ot={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
3
|
+
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},Ze=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\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-\u2E4E\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[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,ce={},zt={};function Pn(t){var e,r,n=zt[t];if(n)return n;for(n=zt[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),/^[0-9a-z]$/i.test(r)?n.push(r):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)n[t.charCodeAt(e)]=t[e];return n}function _e(t,e,r){var n,o,s,c,a,i="";for(typeof e!="string"&&(r=e,e=_e.defaultChars),typeof r>"u"&&(r=!0),a=Pn(e),n=0,o=t.length;n<o;n++){if(s=t.charCodeAt(n),r&&s===37&&n+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(n+1,n+3))){i+=t.slice(n,n+3),n+=2;continue}if(s<128){i+=a[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&n+1<o&&(c=t.charCodeAt(n+1),c>=56320&&c<=57343)){i+=encodeURIComponent(t[n]+t[n+1]),n++;continue}i+="%EF%BF%BD";continue}i+=encodeURIComponent(t[n])}return i}_e.defaultChars=";/?:@&=+$,-_.!~*'()#",_e.componentChars="-_.!~*'()";var $n=_e,Ut={};function Hn(t){var e,r,n=Ut[t];if(n)return n;for(n=Ut[t]=[],e=0;e<128;e++)r=String.fromCharCode(e),n.push(r);for(e=0;e<t.length;e++)r=t.charCodeAt(e),n[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2);return n}function we(t,e){var r;return typeof e!="string"&&(e=we.defaultChars),r=Hn(e),t.replace(/(%[a-f0-9]{2})+/gi,function(n){var o,s,c,a,i,l,p,d="";for(o=0,s=n.length;o<s;o+=3){if(c=parseInt(n.slice(o+1,o+3),16),c<128){d+=r[c];continue}if((c&224)===192&&o+3<s&&(a=parseInt(n.slice(o+4,o+6),16),(a&192)===128)){p=c<<6&1984|a&63,p<128?d+="��":d+=String.fromCharCode(p),o+=3;continue}if((c&240)===224&&o+6<s&&(a=parseInt(n.slice(o+4,o+6),16),i=parseInt(n.slice(o+7,o+9),16),(a&192)===128&&(i&192)===128)){p=c<<12&61440|a<<6&4032|i&63,p<2048||p>=55296&&p<=57343?d+="���":d+=String.fromCharCode(p),o+=6;continue}if((c&248)===240&&o+9<s&&(a=parseInt(n.slice(o+4,o+6),16),i=parseInt(n.slice(o+7,o+9),16),l=parseInt(n.slice(o+10,o+12),16),(a&192)===128&&(i&192)===128&&(l&192)===128)){p=c<<18&1835008|a<<12&258048|i<<6&4032|l&63,p<65536||p>1114111?d+="����":(p-=65536,d+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),o+=9;continue}d+="�"}return d})}we.defaultChars=";/?:@&=+$,#",we.componentChars="";var jn=we,Gn=function(e){var r="";return r+=e.protocol||"",r+=e.slashes?"//":"",r+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?r+="["+e.hostname+"]":r+=e.hostname||"",r+=e.port?":"+e.port:"",r+=e.pathname||"",r+=e.search||"",r+=e.hash||"",r};function Ee(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var Zn=/^([a-z0-9.+-]+:)/i,Jn=/:[0-9]*$/,Wn=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Kn=["<",">",'"',"`"," ","\r",`
|
4
|
+
`," "],Yn=["{","}","|","\\","^","`"].concat(Kn),Qn=["'"].concat(Yn),Pt=["%","/","?",";","#"].concat(Qn),$t=["/","?","#"],Xn=255,Ht=/^[+a-z0-9A-Z_-]{0,63}$/,eo=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jt={javascript:!0,"javascript:":!0},Gt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function to(t,e){if(t&&t instanceof Ee)return t;var r=new Ee;return r.parse(t,e),r}Ee.prototype.parse=function(t,e){var r,n,o,s,c,a=t;if(a=a.trim(),!e&&t.split("#").length===1){var i=Wn.exec(a);if(i)return this.pathname=i[1],i[2]&&(this.search=i[2]),this}var l=Zn.exec(a);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,a=a.substr(l.length)),(e||l||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=a.substr(0,2)==="//",c&&!(l&&jt[l])&&(a=a.substr(2),this.slashes=!0)),!jt[l]&&(c||l&&!Gt[l])){var p=-1;for(r=0;r<$t.length;r++)s=a.indexOf($t[r]),s!==-1&&(p===-1||s<p)&&(p=s);var d,f;for(p===-1?f=a.lastIndexOf("@"):f=a.lastIndexOf("@",p),f!==-1&&(d=a.slice(0,f),a=a.slice(f+1),this.auth=d),p=-1,r=0;r<Pt.length;r++)s=a.indexOf(Pt[r]),s!==-1&&(p===-1||s<p)&&(p=s);p===-1&&(p=a.length),a[p-1]===":"&&p--;var h=a.slice(0,p);a=a.slice(p),this.parseHost(h),this.hostname=this.hostname||"";var g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){var b=this.hostname.split(/\./);for(r=0,n=b.length;r<n;r++){var k=b[r];if(k&&!k.match(Ht)){for(var y="",x=0,E=k.length;x<E;x++)k.charCodeAt(x)>127?y+="x":y+=k[x];if(!y.match(Ht)){var q=b.slice(0,r),A=b.slice(r+1),_=k.match(eo);_&&(q.push(_[1]),A.unshift(_[2])),A.length&&(a=A.join(".")+a),this.hostname=q.join(".");break}}}}this.hostname.length>Xn&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var S=a.indexOf("#");S!==-1&&(this.hash=a.substr(S),a=a.slice(0,S));var L=a.indexOf("?");return L!==-1&&(this.search=a.substr(L),a=a.slice(0,L)),a&&(this.pathname=a),Gt[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ee.prototype.parseHost=function(t){var e=Jn.exec(t);e&&(e=e[0],e!==":"&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)};var ro=to;ce.encode=$n,ce.decode=jn,ce.format=Gn,ce.parse=ro;var ee={},Je,Zt;function Jt(){return Zt||(Zt=1,Je=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Je}var We,Wt;function Kt(){return Wt||(Wt=1,We=/[\0-\x1F\x7F-\x9F]/),We}var Ke,Yt;function no(){return Yt||(Yt=1,Ke=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),Ke}var Ye,Qt;function Xt(){return Qt||(Qt=1,Ye=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),Ye}var er;function oo(){return er||(er=1,ee.Any=Jt(),ee.Cc=Kt(),ee.Cf=no(),ee.P=Ze,ee.Z=Xt()),ee}(function(t){function e(w){return Object.prototype.toString.call(w)}function r(w){return e(w)==="[object String]"}var n=Object.prototype.hasOwnProperty;function o(w,C){return n.call(w,C)}function s(w){var C=Array.prototype.slice.call(arguments,1);return C.forEach(function(v){if(v){if(typeof v!="object")throw new TypeError(v+"must be object");Object.keys(v).forEach(function(N){w[N]=v[N]})}}),w}function c(w,C,v){return[].concat(w.slice(0,C),v,w.slice(C+1))}function a(w){return!(w>=55296&&w<=57343||w>=64976&&w<=65007||(w&65535)===65535||(w&65535)===65534||w>=0&&w<=8||w===11||w>=14&&w<=31||w>=127&&w<=159||w>1114111)}function i(w){if(w>65535){w-=65536;var C=55296+(w>>10),v=56320+(w&1023);return String.fromCharCode(C,v)}return String.fromCharCode(w)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,p=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(l.source+"|"+p.source,"gi"),f=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,h=Ot;function g(w,C){var v;return o(h,C)?h[C]:C.charCodeAt(0)===35&&f.test(C)&&(v=C[1].toLowerCase()==="x"?parseInt(C.slice(2),16):parseInt(C.slice(1),10),a(v))?i(v):w}function b(w){return w.indexOf("\\")<0?w:w.replace(l,"$1")}function k(w){return w.indexOf("\\")<0&&w.indexOf("&")<0?w:w.replace(d,function(C,v,N){return v||g(C,N)})}var y=/[&<>"]/,x=/[&<>"]/g,E={"&":"&","<":"<",">":">",'"':"""};function q(w){return E[w]}function A(w){return y.test(w)?w.replace(x,q):w}var _=/[.?*+^$[\]\\(){}|-]/g;function S(w){return w.replace(_,"\\$&")}function L(w){switch(w){case 9:case 32:return!0}return!1}function M(w){if(w>=8192&&w<=8202)return!0;switch(w){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}var T=Ze;function F(w){return T.test(w)}function X(w){switch(w){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 $(w){return w=w.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(w=w.replace(/ẞ/g,"ß")),w.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=ce,t.lib.ucmicro=oo(),t.assign=s,t.isString=r,t.has=o,t.unescapeMd=b,t.unescapeAll=k,t.isValidEntityCode=a,t.fromCodePoint=i,t.escapeHtml=A,t.arrayReplaceAt=c,t.isSpace=L,t.isWhiteSpace=M,t.isMdAsciiPunct=X,t.isPunctChar=F,t.escapeRE=S,t.normalizeReference=$})(R);var Ce={},so=function(e,r,n){var o,s,c,a,i=-1,l=e.posMax,p=e.pos;for(e.pos=r+1,o=1;e.pos<l;){if(c=e.src.charCodeAt(e.pos),c===93&&(o--,o===0)){s=!0;break}if(a=e.pos,e.md.inline.skipToken(e),c===91){if(a===e.pos-1)o++;else if(n)return e.pos=p,-1}}return s&&(i=e.pos),e.pos=p,i},tr=R.unescapeAll,co=function(e,r,n){var o,s,c=r,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(c)===60){for(c++;c<n;){if(o=e.charCodeAt(c),o===10||o===60)return a;if(o===62)return a.pos=c+1,a.str=tr(e.slice(r+1,c)),a.ok=!0,a;if(o===92&&c+1<n){c+=2;continue}c++}return a}for(s=0;c<n&&(o=e.charCodeAt(c),!(o===32||o<32||o===127));){if(o===92&&c+1<n){if(e.charCodeAt(c+1)===32)break;c+=2;continue}if(o===40&&(s++,s>32))return a;if(o===41){if(s===0)break;s--}c++}return r===c||s!==0||(a.str=tr(e.slice(r,c)),a.pos=c,a.ok=!0),a},ao=R.unescapeAll,io=function(e,r,n){var o,s,c=0,a=r,i={ok:!1,pos:0,lines:0,str:""};if(a>=n||(s=e.charCodeAt(a),s!==34&&s!==39&&s!==40))return i;for(a++,s===40&&(s=41);a<n;){if(o=e.charCodeAt(a),o===s)return i.pos=a+1,i.lines=c,i.str=ao(e.slice(r+1,a)),i.ok=!0,i;if(o===40&&s===41)return i;o===10?c++:o===92&&a+1<n&&(a++,e.charCodeAt(a)===10&&c++),a++}return i};Ce.parseLinkLabel=so,Ce.parseLinkDestination=co,Ce.parseLinkTitle=io;var lo=R.assign,uo=R.unescapeAll,te=R.escapeHtml,G={};G.code_inline=function(t,e,r,n,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+te(s.content)+"</code>"},G.code_block=function(t,e,r,n,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+te(t[e].content)+`</code></pre>
|
5
|
+
`},G.fence=function(t,e,r,n,o){var s=t[e],c=s.info?uo(s.info).trim():"",a="",i="",l,p,d,f,h;return c&&(d=c.split(/(\s+)/g),a=d[0],i=d.slice(2).join("")),r.highlight?l=r.highlight(s.content,a,i)||te(s.content):l=te(s.content),l.indexOf("<pre")===0?l+`
|
6
|
+
`:c?(p=s.attrIndex("class"),f=s.attrs?s.attrs.slice():[],p<0?f.push(["class",r.langPrefix+a]):(f[p]=f[p].slice(),f[p][1]+=" "+r.langPrefix+a),h={attrs:f},"<pre><code"+o.renderAttrs(h)+">"+l+`</code></pre>
|
7
7
|
`):"<pre><code"+o.renderAttrs(s)+">"+l+`</code></pre>
|
8
8
|
`},G.image=function(t,e,r,n,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,r,n),o.renderToken(t,e,r)},G.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
|
9
9
|
`:`<br>
|
10
10
|
`},G.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
|
11
11
|
`:`<br>
|
12
12
|
`:`
|
13
|
-
`},G.text=function(t,e){return te(t[e].content)},G.html_block=function(t,e){return t[e].content},G.html_inline=function(t,e){return t[e].content};function
|
14
|
-
`),s+=(
|
15
|
-
`:">",s)},
|
16
|
-
`);return n},
|
17
|
-
`),r=r.replace(ho,"�"),e.src=r},go=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},bo=function(e){var r=e.tokens,n,o,s;for(o=0,s=r.length;o<s;o++)n=r[o],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)},ko=R.arrayReplaceAt;function xo(t){return/^<a[>\s]/i.test(t)}function vo(t){return/^<\/a\s*>/i.test(t)}var yo=function(e){var r,n,o,s,c,i,
|
18
|
-
`,c.map=[r,e.line],!0},Oo=function(e,r,n,o){var s,c,i,a,l,p,d,f=!1,h=e.bMarks[r]+e.tShift[r],g=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||h+3>g||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(l=h,h=e.skipChars(h,s),c=h-l,c<3)||(d=e.src.slice(l,h),i=e.src.slice(h,g),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=r;a++,!(a>=n||(h=l=e.bMarks[a]+e.tShift[a],g=e.eMarks[a],h<g&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-l<c)&&(h=e.skipSpaces(h),!(h<g)))){f=!0;break}return c=e.sCount[r],e.line=a+(f?1:0),p=e.push("fence","code",0),p.info=i,p.content=e.getLines(r+1,a,c,!0),p.markup=d,p.map=[r,e.line],!0},zo=R.isSpace,Uo=function(e,r,n,o){var s,c,i,a,l,p,d,f,h,g,b,k,y,x,E,q,A,_,S,L,M=e.lineMax,T=e.bMarks[r]+e.tShift[r],F=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(T)!==62)return!1;if(o)return!0;for(g=[],b=[],x=[],E=[],_=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=r;f<n&&(L=e.sCount[f]<e.blkIndent,T=e.bMarks[f]+e.tShift[f],F=e.eMarks[f],!(T>=F));f++){if(e.src.charCodeAt(T++)===62&&!L){for(a=e.sCount[f]+1,e.src.charCodeAt(T)===32?(T++,a++,s=!1,q=!0):e.src.charCodeAt(T)===9?(q=!0,(e.bsCount[f]+a)%4===3?(T++,a++,s=!1):s=!0):q=!1,h=a,g.push(e.bMarks[f]),e.bMarks[f]=T;T<F&&(c=e.src.charCodeAt(T),zo(c));){c===9?h+=4-(h+e.bsCount[f]+(s?1:0))%4:h++;T++}p=T>=F,b.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(q?1:0),x.push(e.sCount[f]),e.sCount[f]=h-a,E.push(e.tShift[f]),e.tShift[f]=T-e.bMarks[f];continue}if(p)break;for(A=!1,i=0,l=_.length;i<l;i++)if(_[i](e,f,n,!0)){A=!0;break}if(A){e.lineMax=f,e.blkIndent!==0&&(g.push(e.bMarks[f]),b.push(e.bsCount[f]),E.push(e.tShift[f]),x.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}g.push(e.bMarks[f]),b.push(e.bsCount[f]),E.push(e.tShift[f]),x.push(e.sCount[f]),e.sCount[f]=-1}for(k=e.blkIndent,e.blkIndent=0,S=e.push("blockquote_open","blockquote",1),S.markup=">",S.map=d=[r,0],e.md.block.tokenize(e,r,f),S=e.push("blockquote_close","blockquote",-1),S.markup=">",e.lineMax=M,e.parentType=y,d[1]=e.line,i=0;i<E.length;i++)e.bMarks[i+r]=g[i],e.tShift[i+r]=E[i],e.sCount[i+r]=x[i],e.bsCount[i+r]=b[i];return e.blkIndent=k,!0},Po=R.isSpace,$o=function(e,r,n,o){var s,c,i,a,l=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(c=1;l<p;){if(i=e.src.charCodeAt(l++),i!==s&&!Po(i))return!1;i===s&&c++}return c<3?!1:(o||(e.line=r+1,a=e.push("hr","hr",0),a.map=[r,e.line],a.markup=Array(c+1).join(String.fromCharCode(s))),!0)},ur=R.isSpace;function pr(t,e){var r,n,o,s;return n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n<o&&(s=t.src.charCodeAt(n),!ur(s))?-1:n}function dr(t,e){var r,n=t.bMarks[e]+t.tShift[e],o=n,s=t.eMarks[e];if(o+1>=s||(r=t.src.charCodeAt(o++),r<48||r>57))return-1;for(;;){if(o>=s)return-1;if(r=t.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o<s&&(r=t.src.charCodeAt(o),!ur(r))?-1:o}function Ho(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}var jo=function(e,r,n,o){var s,c,i,a,l,p,d,f,h,g,b,k,y,x,E,q,A,_,S,L,M,T,F,X,$,w,C,v=r,B=!1,ye=!0;if(e.sCount[v]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[v]-e.listIndent>=4&&e.sCount[v]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[v]>=e.blkIndent&&(B=!0),(T=dr(e,v))>=0){if(d=!0,X=e.bMarks[v]+e.tShift[v],y=Number(e.src.slice(X,T-1)),B&&y!==1)return!1}else if((T=pr(e,v))>=0)d=!1;else return!1;if(B&&e.skipSpaces(T)>=e.eMarks[v])return!1;if(o)return!0;for(k=e.src.charCodeAt(T-1),b=e.tokens.length,d?(C=e.push("ordered_list_open","ol",1),y!==1&&(C.attrs=[["start",y]])):C=e.push("bullet_list_open","ul",1),C.map=g=[v,0],C.markup=String.fromCharCode(k),F=!1,w=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";v<n;){for(M=T,x=e.eMarks[v],p=E=e.sCount[v]+T-(e.bMarks[v]+e.tShift[v]);M<x;){if(s=e.src.charCodeAt(M),s===9)E+=4-(E+e.bsCount[v])%4;else if(s===32)E++;else break;M++}if(c=M,c>=x?l=1:l=E-p,l>4&&(l=1),a=p+l,C=e.push("list_item_open","li",1),C.markup=String.fromCharCode(k),C.map=f=[v,0],d&&(C.info=e.src.slice(X,T-1)),L=e.tight,S=e.tShift[v],_=e.sCount[v],q=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[v]=c-e.bMarks[v],e.sCount[v]=E,c>=x&&e.isEmpty(v+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,v,n,!0),(!e.tight||F)&&(ye=!1),F=e.line-v>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=q,e.tShift[v]=S,e.sCount[v]=_,e.tight=L,C=e.push("list_item_close","li",-1),C.markup=String.fromCharCode(k),v=e.line,f[1]=v,v>=n||e.sCount[v]<e.blkIndent||e.sCount[v]-e.blkIndent>=4)break;for($=!1,i=0,h=w.length;i<h;i++)if(w[i](e,v,n,!0)){$=!0;break}if($)break;if(d){if(T=dr(e,v),T<0)break;X=e.bMarks[v]+e.tShift[v]}else if(T=pr(e,v),T<0)break;if(k!==e.src.charCodeAt(T-1))break}return d?C=e.push("ordered_list_close","ol",-1):C=e.push("bullet_list_close","ul",-1),C.markup=String.fromCharCode(k),g[1]=v,e.line=v,e.parentType=A,ye&&Ho(e,b),!0},Go=R.normalizeReference,qe=R.isSpace,Zo=function(e,r,n,o){var s,c,i,a,l,p,d,f,h,g,b,k,y,x,E,q,A=0,_=e.bMarks[r]+e.tShift[r],S=e.eMarks[r],L=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(_)!==91)return!1;for(;++_<S;)if(e.src.charCodeAt(_)===93&&e.src.charCodeAt(_-1)!==92){if(_+1===S||e.src.charCodeAt(_+1)!==58)return!1;break}for(a=e.lineMax,E=e.md.block.ruler.getRules("reference"),g=e.parentType,e.parentType="reference";L<a&&!e.isEmpty(L);L++)if(!(e.sCount[L]-e.blkIndent>3)&&!(e.sCount[L]<0)){for(x=!1,p=0,d=E.length;p<d;p++)if(E[p](e,L,a,!0)){x=!0;break}if(x)break}for(y=e.getLines(r,L,e.blkIndent,!1).trim(),S=y.length,_=1;_<S;_++){if(s=y.charCodeAt(_),s===91)return!1;if(s===93){h=_;break}else s===10?A++:s===92&&(_++,_<S&&y.charCodeAt(_)===10&&A++)}if(h<0||y.charCodeAt(h+1)!==58)return!1;for(_=h+2;_<S;_++)if(s=y.charCodeAt(_),s===10)A++;else if(!qe(s))break;if(b=e.md.helpers.parseLinkDestination(y,_,S),!b.ok||(l=e.md.normalizeLink(b.str),!e.md.validateLink(l)))return!1;for(_=b.pos,A+=b.lines,c=_,i=A,k=_;_<S;_++)if(s=y.charCodeAt(_),s===10)A++;else if(!qe(s))break;for(b=e.md.helpers.parseLinkTitle(y,_,S),_<S&&k!==_&&b.ok?(q=b.str,_=b.pos,A+=b.lines):(q="",_=c,A=i);_<S&&(s=y.charCodeAt(_),!!qe(s));)_++;if(_<S&&y.charCodeAt(_)!==10&&q)for(q="",_=c,A=i;_<S&&(s=y.charCodeAt(_),!!qe(s));)_++;return _<S&&y.charCodeAt(_)!==10||(f=Go(y.slice(1,h)),!f)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:q,href:l}),e.parentType=g,e.line=r+A+1),!0)},Jo=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],De={},Wo="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ko="[^\"'=<>`\\x00-\\x20]+",Yo="'[^']*'",Qo='"[^"]*"',Xo="(?:"+Ko+"|"+Yo+"|"+Qo+")",es="(?:\\s+"+Wo+"(?:\\s*=\\s*"+Xo+")?)",fr="<[A-Za-z][A-Za-z0-9\\-]*"+es+"*\\s*\\/?>",hr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ts="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",rs="<[?][\\s\\S]*?[?]>",ns="<![A-Z]+\\s+[^>]*>",os="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ss=new RegExp("^(?:"+fr+"|"+hr+"|"+ts+"|"+rs+"|"+ns+"|"+os+")"),cs=new RegExp("^(?:"+fr+"|"+hr+")");De.HTML_TAG_RE=ss,De.HTML_OPEN_CLOSE_TAG_RE=cs;var is=Jo,as=De.HTML_OPEN_CLOSE_TAG_RE,le=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+is.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(as.source+"\\s*$"),/^$/,!1]],ls=function(e,r,n,o){var s,c,i,a,l=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(a=e.src.slice(l,p),s=0;s<le.length&&!le[s][0].test(a);s++);if(s===le.length)return!1;if(o)return le[s][2];if(c=r+1,!le[s][1].test(a)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],p=e.eMarks[c],a=e.src.slice(l,p),le[s][1].test(a)){a.length!==0&&c++;break}}return e.line=c,i=e.push("html_block","",0),i.map=[r,c],i.content=e.getLines(r,c,e.blkIndent,!0),!0},mr=R.isSpace,us=function(e,r,n,o){var s,c,i,a,l=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=p))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<p&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<p&&!mr(s)?!1:(o||(p=e.skipSpacesBack(p,l),i=e.skipCharsBack(p,35,l),i>l&&mr(e.src.charCodeAt(i-1))&&(p=i),e.line=r+1,a=e.push("heading_open","h"+String(c),1),a.markup="########".slice(0,c),a.map=[r,e.line],a=e.push("inline","",0),a.content=e.src.slice(l,p).trim(),a.map=[r,e.line],a.children=[],a=e.push("heading_close","h"+String(c),-1),a.markup="########".slice(0,c)),!0)},ps=function(e,r,n){var o,s,c,i,a,l,p,d,f,h=r+1,g,b=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(g=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(l=e.bMarks[h]+e.tShift[h],p=e.eMarks[h],l<p&&(f=e.src.charCodeAt(l),(f===45||f===61)&&(l=e.skipChars(l,f),l=e.skipSpaces(l),l>=p)))){d=f===61?1:2;break}if(!(e.sCount[h]<0)){for(s=!1,c=0,i=b.length;c<i;c++)if(b[c](e,h,n,!0)){s=!0;break}if(s)break}}return d?(o=e.getLines(r,h,e.blkIndent,!1).trim(),e.line=h+1,a=e.push("heading_open","h"+String(d),1),a.markup=String.fromCharCode(f),a.map=[r,e.line],a=e.push("inline","",0),a.content=o,a.map=[r,e.line-1],a.children=[],a=e.push("heading_close","h"+String(d),-1),a.markup=String.fromCharCode(f),e.parentType=g,!0):!1},ds=function(e,r,n){var o,s,c,i,a,l,p=r+1,d=e.md.block.ruler.getRules("paragraph");for(l=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)&&!(e.sCount[p]<0)){for(s=!1,c=0,i=d.length;c<i;c++)if(d[c](e,p,n,!0)){s=!0;break}if(s)break}return o=e.getLines(r,p,e.blkIndent,!1).trim(),e.line=p,a=e.push("paragraph_open","p",1),a.map=[r,e.line],a=e.push("inline","",0),a.content=o,a.map=[r,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=l,!0},gr=Xe,Se=R.isSpace;function Z(t,e,r,n){var o,s,c,i,a,l,p,d;for(this.src=t,this.md=e,this.env=r,this.tokens=n,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,this.result="",s=this.src,d=!1,c=i=l=p=0,a=s.length;i<a;i++){if(o=s.charCodeAt(i),!d)if(Se(o)){l++,o===9?p+=4-p%4:p++;continue}else d=!0;(o===10||i===a-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(p),this.bsCount.push(0),d=!1,l=0,p=0,c=i+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Z.prototype.push=function(t,e,r){var n=new gr(t,e,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Z.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Z.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Z.prototype.skipSpaces=function(e){for(var r,n=this.src.length;e<n&&(r=this.src.charCodeAt(e),!!Se(r));e++);return e},Z.prototype.skipSpacesBack=function(e,r){if(e<=r)return e;for(;e>r;)if(!Se(this.src.charCodeAt(--e)))return e+1;return e},Z.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e},Z.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e},Z.prototype.getLines=function(e,r,n,o){var s,c,i,a,l,p,d,f=e;if(e>=r)return"";for(p=new Array(r-e),s=0;f<r;f++,s++){for(c=0,d=a=this.bMarks[f],f+1<r||o?l=this.eMarks[f]+1:l=this.eMarks[f];a<l&&c<n;){if(i=this.src.charCodeAt(a),Se(i))i===9?c+=4-(c+this.bsCount[f])%4:c++;else if(a-d<this.tShift[f])c++;else break;a++}c>n?p[s]=new Array(c-n+1).join(" ")+this.src.slice(a,l):p[s]=this.src.slice(a,l)}return p.join("")},Z.prototype.Token=gr;var fs=Z,hs=Qe,Te=[["table",Io,["paragraph","reference"]],["code",Mo],["fence",Oo,["paragraph","reference","blockquote","list"]],["blockquote",Uo,["paragraph","reference","blockquote","list"]],["hr",$o,["paragraph","reference","blockquote","list"]],["list",jo,["paragraph","reference","blockquote"]],["reference",Zo],["html_block",ls,["paragraph","reference","blockquote"]],["heading",us,["paragraph","reference","blockquote"]],["lheading",ps],["paragraph",ds]];function Re(){this.ruler=new hs;for(var t=0;t<Te.length;t++)this.ruler.push(Te[t][0],Te[t][1],{alt:(Te[t][2]||[]).slice()})}Re.prototype.tokenize=function(t,e,r){for(var n,o,s,c=this.ruler.getRules(""),i=c.length,a=e,l=!1,p=t.md.options.maxNesting;a<r&&(t.line=a=t.skipEmptyLines(a),!(a>=r||t.sCount[a]<t.blkIndent));){if(t.level>=p){t.line=r;break}for(s=t.line,o=0;o<i;o++)if(n=c[o](t,a,r,!1),n){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!n)throw new Error("none of the block rules matched");t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),a=t.line,a<r&&t.isEmpty(a)&&(l=!0,a++,t.line=a)}},Re.prototype.parse=function(t,e,r,n){var o;t&&(o=new this.State(t,e,r,n),this.tokenize(o,o.line,o.lineMax))},Re.prototype.State=fs;var ms=Re;function gs(t){switch(t){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}}for(var bs=function(e,r){for(var n=e.pos;n<e.posMax&&!gs(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)},ks=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,xs=function(e,r){var n,o,s,c,i,a,l,p;return!e.md.options.linkify||e.linkLevel>0||(n=e.pos,o=e.posMax,n+3>o)||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47||(s=e.pending.match(ks),!s)||(c=s[1],i=e.md.linkify.matchAtStart(e.src.slice(n-c.length)),!i)||(a=i.url,a.length<=c.length)||(a=a.replace(/\*+$/,""),l=e.md.normalizeLink(a),!e.md.validateLink(l))?!1:(r||(e.pending=e.pending.slice(0,-c.length),p=e.push("link_open","a",1),p.attrs=[["href",l]],p.markup="linkify",p.info="auto",p=e.push("text","",0),p.content=e.md.normalizeLinkText(a),p=e.push("link_close","a",-1),p.markup="linkify",p.info="auto"),e.pos+=a.length-c.length,!0)},vs=R.isSpace,ys=function(e,r){var n,o,s,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(n=e.pending.length-1,o=e.posMax,!r)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(s=n-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),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(c++;c<o&&vs(e.src.charCodeAt(c));)c++;return e.pos=c,!0},_s=R.isSpace,ot=[],br=0;br<256;br++)ot.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ot[t.charCodeAt(0)]=1});var ws=function(e,r){var n,o,s,c,i,a=e.pos,l=e.posMax;if(e.src.charCodeAt(a)!==92||(a++,a>=l))return!1;if(n=e.src.charCodeAt(a),n===10){for(r||e.push("hardbreak","br",0),a++;a<l&&(n=e.src.charCodeAt(a),!!_s(n));)a++;return e.pos=a,!0}return c=e.src[a],n>=55296&&n<=56319&&a+1<l&&(o=e.src.charCodeAt(a+1),o>=56320&&o<=57343&&(c+=e.src[a+1],a++)),s="\\"+c,r||(i=e.push("text_special","",0),n<256&&ot[n]!==0?i.content=c:i.content=s,i.markup=s,i.info="escape"),e.pos=a+1,!0},Es=function(e,r){var n,o,s,c,i,a,l,p,d=e.pos,f=e.src.charCodeAt(d);if(f!==96)return!1;for(n=d,d++,o=e.posMax;d<o&&e.src.charCodeAt(d)===96;)d++;if(s=e.src.slice(n,d),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=n)return r||(e.pending+=s),e.pos+=l,!0;for(a=d;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(p=a-i,p===l)return r||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(d,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[p]=i}return e.backticksScanned=!0,r||(e.pending+=s),e.pos+=l,!0},Le={};Le.tokenize=function(e,r){var n,o,s,c,i,a=e.pos,l=e.src.charCodeAt(a);if(r||l!==126||(o=e.scanDelims(e.pos,!0),c=o.length,i=String.fromCharCode(l),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=i,c--),n=0;n<c;n+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function kr(t,e){var r,n,o,s,c,i=[],a=e.length;for(r=0;r<a;r++)o=e[r],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1));for(;i.length;){for(r=i.pop(),n=r+1;n<t.tokens.length&&t.tokens[n].type==="s_close";)n++;n--,r!==n&&(c=t.tokens[n],t.tokens[n]=t.tokens[r],t.tokens[r]=c)}}Le.postProcess=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(kr(e,e.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&kr(e,n[r].delimiters)};var Ne={};Ne.tokenize=function(e,r){var n,o,s,c=e.pos,i=e.src.charCodeAt(c);if(r||i!==95&&i!==42)return!1;for(o=e.scanDelims(e.pos,i===42),n=0;n<o.length;n++)s=e.push("text","",0),s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function xr(t,e){var r,n,o,s,c,i,a=e.length;for(r=a-1;r>=0;r--)n=e[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(o=e[n.end],i=r>0&&e[r-1].end===n.end+1&&e[r-1].marker===n.marker&&e[r-1].token===n.token-1&&e[n.end+1].token===o.token+1,c=String.fromCharCode(n.marker),s=t.tokens[n.token],s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="",s=t.tokens[o.token],s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?c+c:c,s.content="",i&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}Ne.postProcess=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(xr(e,e.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&xr(e,n[r].delimiters)};var Cs=R.normalizeReference,st=R.isSpace,As=function(e,r){var n,o,s,c,i,a,l,p,d,f="",h="",g=e.pos,b=e.posMax,k=e.pos,y=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(a=c+1,a<b&&e.src.charCodeAt(a)===40){for(y=!1,a++;a<b&&(o=e.src.charCodeAt(a),!(!st(o)&&o!==10));a++);if(a>=b)return!1;if(k=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(f=e.md.normalizeLink(l.str),e.md.validateLink(f)?a=l.pos:f="",k=a;a<b&&(o=e.src.charCodeAt(a),!(!st(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<b&&k!==a&&l.ok)for(h=l.str,a=l.pos;a<b&&(o=e.src.charCodeAt(a),!(!st(o)&&o!==10));a++);}(a>=b||e.src.charCodeAt(a)!==41)&&(y=!0),a++}if(y){if(typeof e.env.references>"u")return!1;if(a<b&&e.src.charCodeAt(a)===91?(k=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(k,a++):a=c+1):a=c+1,s||(s=e.src.slice(i,c)),p=e.env.references[Cs(s)],!p)return e.pos=g,!1;f=p.href,h=p.title}return r||(e.pos=i,e.posMax=c,d=e.push("link_open","a",1),d.attrs=n=[["href",f]],h&&n.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,d=e.push("link_close","a",-1)),e.pos=a,e.posMax=b,!0},qs=R.normalizeReference,ct=R.isSpace,Ds=function(e,r){var n,o,s,c,i,a,l,p,d,f,h,g,b,k="",y=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(l=i+1,l<x&&e.src.charCodeAt(l)===40){for(l++;l<x&&(o=e.src.charCodeAt(l),!(!ct(o)&&o!==10));l++);if(l>=x)return!1;for(b=l,d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),d.ok&&(k=e.md.normalizeLink(d.str),e.md.validateLink(k)?l=d.pos:k=""),b=l;l<x&&(o=e.src.charCodeAt(l),!(!ct(o)&&o!==10));l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<x&&b!==l&&d.ok)for(f=d.str,l=d.pos;l<x&&(o=e.src.charCodeAt(l),!(!ct(o)&&o!==10));l++);else f="";if(l>=x||e.src.charCodeAt(l)!==41)return e.pos=y,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<x&&e.src.charCodeAt(l)===91?(b=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(b,l++):l=i+1):l=i+1,c||(c=e.src.slice(a,i)),p=e.env.references[qs(c)],!p)return e.pos=y,!1;k=p.href,f=p.title}return r||(s=e.src.slice(a,i),e.md.inline.parse(s,e.md,e.env,g=[]),h=e.push("image","img",0),h.attrs=n=[["src",k],["alt",""]],h.children=g,h.content=s,f&&n.push(["title",f])),e.pos=l,e.posMax=x,!0},Ss=/^([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])?)*)$/,Ts=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Rs=function(e,r){var n,o,s,c,i,a,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(i=e.pos,a=e.posMax;;){if(++l>=a||(c=e.src.charCodeAt(l),c===60))return!1;if(c===62)break}return n=e.src.slice(i+1,l),Ts.test(n)?(o=e.md.normalizeLink(n),e.md.validateLink(o)?(r||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):Ss.test(n)?(o=e.md.normalizeLink("mailto:"+n),e.md.validateLink(o)?(r||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):!1},Ls=De.HTML_TAG_RE;function Ns(t){return/^<a[>\s]/i.test(t)}function Bs(t){return/^<\/a\s*>/i.test(t)}function Fs(t){var e=t|32;return e>=97&&e<=122}var Vs=function(e,r){var n,o,s,c,i=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(i)!==60||i+2>=s)||(n=e.src.charCodeAt(i+1),n!==33&&n!==63&&n!==47&&!Fs(n))||(o=e.src.slice(i).match(Ls),!o)?!1:(r||(c=e.push("html_inline","",0),c.content=o[0],Ns(c.content)&&e.linkLevel++,Bs(c.content)&&e.linkLevel--),e.pos+=o[0].length,!0)},vr=Ot,Is=R.has,Ms=R.isValidEntityCode,yr=R.fromCodePoint,Os=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,zs=/^&([a-z][a-z0-9]{1,31});/i,Us=function(e,r){var n,o,s,c,i=e.pos,a=e.posMax;if(e.src.charCodeAt(i)!==38||i+1>=a)return!1;if(n=e.src.charCodeAt(i+1),n===35){if(s=e.src.slice(i).match(Os),s)return r||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),c=e.push("text_special","",0),c.content=Ms(o)?yr(o):yr(65533),c.markup=s[0],c.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(i).match(zs),s&&Is(vr,s[1]))return r||(c=e.push("text_special","",0),c.content=vr[s[1]],c.markup=s[0],c.info="entity"),e.pos+=s[0].length,!0;return!1};function _r(t){var e,r,n,o,s,c,i,a,l={},p=t.length;if(p){var d=0,f=-2,h=[];for(e=0;e<p;e++)if(n=t[e],h.push(0),(t[d].marker!==n.marker||f!==n.token-1)&&(d=e),f=n.token,n.length=n.length||0,!!n.close){for(l.hasOwnProperty(n.marker)||(l[n.marker]=[-1,-1,-1,-1,-1,-1]),s=l[n.marker][(n.open?3:0)+n.length%3],r=d-h[d]-1,c=r;r>s;r-=h[r]+1)if(o=t[r],o.marker===n.marker&&o.open&&o.end<0&&(i=!1,(o.close||n.open)&&(o.length+n.length)%3===0&&(o.length%3!==0||n.length%3!==0)&&(i=!0),!i)){a=r>0&&!t[r-1].open?h[r-1]+1:0,h[e]=e-r+a,h[r]=a,n.open=!1,o.end=e,o.close=!1,c=-1,f=-2;break}c!==-1&&(l[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}}var Ps=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(_r(e.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&_r(n[r].delimiters)},$s=function(e){var r,n,o=0,s=e.tokens,c=e.tokens.length;for(r=n=0;r<c;r++)s[r].nesting<0&&o--,s[r].level=o,s[r].nesting>0&&o++,s[r].type==="text"&&r+1<c&&s[r+1].type==="text"?s[r+1].content=s[r].content+s[r+1].content:(r!==n&&(s[n]=s[r]),n++);r!==n&&(s.length=n)},it=Xe,wr=R.isWhiteSpace,Er=R.isPunctChar,Cr=R.isMdAsciiPunct;function fe(t,e,r,n){this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.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}fe.prototype.pushPending=function(){var t=new it("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},fe.prototype.push=function(t,e,r){this.pending&&this.pushPending();var n=new it(t,e,r),o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(o),n},fe.prototype.scanDelims=function(t,e){var r=t,n,o,s,c,i,a,l,p,d,f=!0,h=!0,g=this.posMax,b=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;r<g&&this.src.charCodeAt(r)===b;)r++;return s=r-t,o=r<g?this.src.charCodeAt(r):32,l=Cr(n)||Er(String.fromCharCode(n)),d=Cr(o)||Er(String.fromCharCode(o)),a=wr(n),p=wr(o),p?f=!1:d&&(a||l||(f=!1)),a?h=!1:l&&(p||d||(h=!1)),e?(c=f,i=h):(c=f&&(!h||l),i=h&&(!f||d)),{can_open:c,can_close:i,length:s}},fe.prototype.Token=it;var Hs=fe,Ar=Qe,at=[["text",bs],["linkify",xs],["newline",ys],["escape",ws],["backticks",Es],["strikethrough",Le.tokenize],["emphasis",Ne.tokenize],["link",As],["image",Ds],["autolink",Rs],["html_inline",Vs],["entity",Us]],lt=[["balance_pairs",Ps],["strikethrough",Le.postProcess],["emphasis",Ne.postProcess],["fragments_join",$s]];function he(){var t;for(this.ruler=new Ar,t=0;t<at.length;t++)this.ruler.push(at[t][0],at[t][1]);for(this.ruler2=new Ar,t=0;t<lt.length;t++)this.ruler2.push(lt[t][0],lt[t][1])}he.prototype.skipToken=function(t){var e,r,n=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,i=t.cache;if(typeof i[n]<"u"){t.pos=i[n];return}if(t.level<c){for(r=0;r<s;r++)if(t.level++,e=o[r](t,!0),t.level--,e){if(n>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,i[n]=t.pos},he.prototype.tokenize=function(t){for(var e,r,n,o=this.ruler.getRules(""),s=o.length,c=t.posMax,i=t.md.options.maxNesting;t.pos<c;){if(n=t.pos,t.level<i){for(r=0;r<s;r++)if(e=o[r](t,!1),e){if(n>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=c)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},he.prototype.parse=function(t,e,r,n){var o,s,c,i=new this.State(t,e,r,n);for(this.tokenize(i),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](i)},he.prototype.State=Hs;var js=he,ut,qr;function Gs(){return qr||(qr=1,ut=function(t){var e={};t=t||{},e.src_Any=Jt().source,e.src_Cc=Kt().source,e.src_Z=Xt().source,e.src_P=Ze.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),ut}function pt(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t}function Be(t){return Object.prototype.toString.call(t)}function Zs(t){return Be(t)==="[object String]"}function Js(t){return Be(t)==="[object Object]"}function Ws(t){return Be(t)==="[object RegExp]"}function Dr(t){return Be(t)==="[object Function]"}function Ks(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Sr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ys(t){return Object.keys(t||{}).reduce(function(e,r){return e||Sr.hasOwnProperty(r)},!1)}var Qs={"http:":{validate:function(t,e,r){var n=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var n=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var n=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Xs="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]",ec="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function tc(t){t.__index__=-1,t.__text_cache__=""}function rc(t){return function(e,r){var n=e.slice(r);return t.test(n)?n.match(t)[0].length:0}}function Tr(){return function(t,e){e.normalize(t)}}function Fe(t){var e=t.re=Gs()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(Xs),r.push(e.src_xn),e.src_tlds=r.join("|");function n(i){return i.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(t.__schemas__).forEach(function(i){var a=t.__schemas__[i];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[i]=l,Js(a)){Ws(a.validate)?l.validate=rc(a.validate):Dr(a.validate)?l.validate=a.validate:s(i,a),Dr(a.normalize)?l.normalize=a.normalize:a.normalize?s(i,a):l.normalize=Tr();return}if(Zs(a)){o.push(i);return}s(i,a)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Tr()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(Ks).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),tc(t)}function nc(t,e){var r=t.__index__,n=t.__last_index__,o=t.__text_cache__.slice(r,n);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=o,this.text=o,this.url=o}function dt(t,e){var r=new nc(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function O(t,e){if(!(this instanceof O))return new O(t,e);e||Ys(t)&&(e=t,t={}),this.__opts__=pt({},Sr,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=pt({},Qs,t),this.__compiled__={},this.__tlds__=ec,this.__tlds_replaced__=!1,this.re={},Fe(this)}O.prototype.add=function(e,r){return this.__schemas__[e]=r,Fe(this),this},O.prototype.set=function(e){return this.__opts__=pt(this.__opts__,e),this},O.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,n,o,s,c,i,a,l,p;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(s=this.testSchemaAt(e,r[2],a.lastIndex),s){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=n.index+n[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=e.indexOf("@"),p>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=i))),this.__index__>=0},O.prototype.pretest=function(e){return this.re.pretest.test(e)},O.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0},O.prototype.match=function(e){var r=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(dt(this,r)),r=this.__last_index__);for(var o=r?e.slice(r):e;this.test(o);)n.push(dt(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},O.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var r=this.re.schema_at_start.exec(e);if(!r)return null;var n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,dt(this,0)):null},O.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,o,s){return n!==s[o-1]}).reverse(),Fe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Fe(this),this)},O.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},O.prototype.onCompile=function(){};var oc=O;const ue=2147483647,J=36,ft=1,me=26,sc=38,cc=700,Rr=72,Lr=128,Nr="-",ic=/^xn--/,ac=/[^\0-\x7F]/,lc=/[\x2E\u3002\uFF0E\uFF61]/g,uc={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ht=J-ft,W=Math.floor,mt=String.fromCharCode;function Y(t){throw new RangeError(uc[t])}function pc(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}function Br(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(lc,".");const o=t.split("."),s=pc(o,e).join(".");return n+s}function gt(t){const e=[];let r=0;const n=t.length;for(;r<n;){const o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const s=t.charCodeAt(r++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),r--)}else e.push(o)}return e}const Fr=t=>String.fromCodePoint(...t),dc=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:J},Vr=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Ir=function(t,e,r){let n=0;for(t=r?W(t/cc):t>>1,t+=W(t/e);t>ht*me>>1;n+=J)t=W(t/ht);return W(n+(ht+1)*t/(t+sc))},bt=function(t){const e=[],r=t.length;let n=0,o=Lr,s=Rr,c=t.lastIndexOf(Nr);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&Y("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<r;){const a=n;for(let p=1,d=J;;d+=J){i>=r&&Y("invalid-input");const f=dc(t.charCodeAt(i++));f>=J&&Y("invalid-input"),f>W((ue-n)/p)&&Y("overflow"),n+=f*p;const h=d<=s?ft:d>=s+me?me:d-s;if(f<h)break;const g=J-h;p>W(ue/g)&&Y("overflow"),p*=g}const l=e.length+1;s=Ir(n-a,l,a==0),W(n/l)>ue-o&&Y("overflow"),o+=W(n/l),n%=l,e.splice(n++,0,o)}return String.fromCodePoint(...e)},kt=function(t){const e=[];t=gt(t);const r=t.length;let n=Lr,o=0,s=Rr;for(const a of t)a<128&&e.push(mt(a));const c=e.length;let i=c;for(c&&e.push(Nr);i<r;){let a=ue;for(const p of t)p>=n&&p<a&&(a=p);const l=i+1;a-n>W((ue-o)/l)&&Y("overflow"),o+=(a-n)*l,n=a;for(const p of t)if(p<n&&++o>ue&&Y("overflow"),p===n){let d=o;for(let f=J;;f+=J){const h=f<=s?ft:f>=s+me?me:f-s;if(d<h)break;const g=d-h,b=J-h;e.push(mt(Vr(h+g%b,0))),d=W(g/b)}e.push(mt(Vr(d,0))),s=Ir(o,l,i===c),o=0,++i}++o,++n}return e.join("")},Mr=function(t){return Br(t,function(e){return ic.test(e)?bt(e.slice(4).toLowerCase()):e})},Or=function(t){return Br(t,function(e){return ac.test(e)?"xn--"+kt(e):e})},fc=Un(Object.freeze(Object.defineProperty({__proto__:null,decode:bt,default:{version:"2.3.1",ucs2:{decode:gt,encode:Fr},decode:bt,encode:kt,toASCII:Or,toUnicode:Mr},encode:kt,toASCII:Or,toUnicode:Mr,ucs2decode:gt,ucs2encode:Fr},Symbol.toStringTag,{value:"Module"})));var hc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},mc={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"]}}},gc={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"]}}},ge=R,bc=Ce,kc=po,xc=Vo,vc=ms,yc=js,_c=oc,re=ce,zr=fc,wc={default:hc,zero:mc,commonmark:gc},Ec=/^(vbscript|javascript|file|data):/,Cc=/^data:image\/(gif|png|jpeg|webp);/;function Ac(t){var e=t.trim().toLowerCase();return Ec.test(e)?!!Cc.test(e):!0}var Ur=["http:","https:","mailto:"];function qc(t){var e=re.parse(t,!0);if(e.hostname&&(!e.protocol||Ur.indexOf(e.protocol)>=0))try{e.hostname=zr.toASCII(e.hostname)}catch{}return re.encode(re.format(e))}function Dc(t){var e=re.parse(t,!0);if(e.hostname&&(!e.protocol||Ur.indexOf(e.protocol)>=0))try{e.hostname=zr.toUnicode(e.hostname)}catch{}return re.decode(re.format(e),re.decode.defaultChars+"%")}function P(t,e){if(!(this instanceof P))return new P(t,e);e||ge.isString(t)||(e=t||{},t="default"),this.inline=new yc,this.block=new vc,this.core=new xc,this.renderer=new kc,this.linkify=new _c,this.validateLink=Ac,this.normalizeLink=qc,this.normalizeLinkText=Dc,this.utils=ge,this.helpers=ge.assign({},bc),this.options={},this.configure(t),e&&this.set(e)}P.prototype.set=function(t){return ge.assign(this.options,t),this},P.prototype.configure=function(t){var e=this,r;if(ge.isString(t)&&(r=t,t=wc[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this},P.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){r=r.concat(this[o].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var n=t.filter(function(o){return r.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},P.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){r=r.concat(this[o].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var n=t.filter(function(o){return r.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},P.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},P.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens},P.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},P.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens},P.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Sc=P,Tc=Sc;const Rc=zn(Tc),Lc=u.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup(t){const e=u.ref(new Rc(t.options??{}));for(const n of t.plugins??[])e.value.use(n);const r=u.computed(()=>e.value.render(t.source));return()=>u.h("div",{innerHTML:r.value})}}),Nc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 31.8 512 448.18"};function Bc(t,e){return u.openBlock(),u.createElementBlock("svg",Nc,e[0]||(e[0]=[u.createElementVNode("path",{d:"M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13H448c8.8 0 16-7.2 16-16 0-6.8-4.3-12.7-10.4-15-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6 0-7.8-5.6-14.3-13-15.7-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9 0-6.7-4.2-12.6-10.2-14.9-11.5-4.5-17.7-16.9-14.4-28.8.4-1.3.6-2.8.6-4.3 0-8.8-7.2-16-16-16h-97.5c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8l97.5.2c34.7 0 62.9 27.6 64 62 14.6 11.7 24 29.7 24 50 0 4.5-.5 8.8-1.3 13 15.4 11.7 25.3 30.2 25.3 51 0 6.5-1 12.8-2.8 18.7 11.6 11.6 18.8 27.6 18.8 45.3 0 35.3-28.6 64-64 64h-92.3c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89M32 384c-17.7 0-32-14.3-32-32V128c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v224c0 17.7-14.3 32-32 32z"},null,-1)]))}const Fc={render:Bc},Vc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 32.02 512 448.18"};function Ic(t,e){return u.openBlock(),u.createElementBlock("svg",Vc,e[0]||(e[0]=[u.createElementVNode("path",{d:"M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13H448c8.8 0 16 7.2 16 16 0 6.8-4.3 12.7-10.4 15-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6 0 7.8-5.6 14.3-13 15.7-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9 0 6.7-4.2 12.6-10.2 14.9-11.5 4.5-17.7 16.9-14.4 28.8.4 1.3.6 2.8.6 4.3 0 8.8-7.2 16-16 16h-97.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62 14.6-11.7 24-29.7 24-50 0-4.5-.5-8.8-1.3-13 15.4-11.7 25.3-30.2 25.3-51 0-6.5-1-12.8-2.8-18.7 11.6-11.8 18.8-27.8 18.8-45.5 0-35.3-28.6-64-64-64h-92.3c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89M32 192c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32z"},null,-1)]))}const Mc={render:Ic},Pr="infoAuth";function $r(t,e){return function(){return t.apply(e,arguments)}}const{toString:Oc}=Object.prototype,{getPrototypeOf:xt}=Object,Ve=(t=>e=>{const r=Oc.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),j=t=>(t=t.toLowerCase(),e=>Ve(e)===t),Ie=t=>e=>typeof e===t,{isArray:pe}=Array,be=Ie("undefined");function zc(t){return t!==null&&!be(t)&&t.constructor!==null&&!be(t.constructor)&&z(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Hr=j("ArrayBuffer");function Uc(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Hr(t.buffer),e}const Pc=Ie("string"),z=Ie("function"),jr=Ie("number"),Me=t=>t!==null&&typeof t=="object",$c=t=>t===!0||t===!1,Oe=t=>{if(Ve(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Hc=j("Date"),jc=j("File"),Gc=j("Blob"),Zc=j("FileList"),Jc=t=>Me(t)&&z(t.pipe),Wc=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||z(t.append)&&((e=Ve(t))==="formdata"||e==="object"&&z(t.toString)&&t.toString()==="[object FormData]"))},Kc=j("URLSearchParams"),[Yc,Qc,Xc,ei]=["ReadableStream","Request","Response","Headers"].map(j),ti=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ke(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),pe(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length;let i;for(n=0;n<c;n++)i=s[n],e.call(null,t[i],i,t)}}function Gr(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zr=t=>!be(t)&&t!==ne;function vt(){const{caseless:t}=Zr(this)&&this||{},e={},r=(n,o)=>{const s=t&&Gr(e,o)||o;Oe(e[s])&&Oe(n)?e[s]=vt(e[s],n):Oe(n)?e[s]=vt({},n):pe(n)?e[s]=n.slice():e[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ke(arguments[n],r);return e}const ri=(t,e,r,{allOwnKeys:n}={})=>(ke(e,(o,s)=>{r&&z(o)?t[s]=$r(o,r):t[s]=o},{allOwnKeys:n}),t),ni=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oi=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},si=(t,e,r,n)=>{let o,s,c;const i={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!i[c]&&(e[c]=t[c],i[c]=!0);t=r!==!1&&xt(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},ci=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},ii=t=>{if(!t)return null;if(pe(t))return t;let e=t.length;if(!jr(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ai=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),li=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},ui=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},pi=j("HTMLFormElement"),di=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Jr=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),fi=j("RegExp"),Wr=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ke(r,(o,s)=>{let c;(c=e(o,s,t))!==!1&&(n[s]=c||o)}),Object.defineProperties(t,n)},hi=t=>{Wr(t,(e,r)=>{if(z(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(z(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},mi=(t,e)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return pe(t)?n(t):n(String(t).split(e)),r},gi=()=>{},bi=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,yt="abcdefghijklmnopqrstuvwxyz",Kr="0123456789",Yr={DIGIT:Kr,ALPHA:yt,ALPHA_DIGIT:yt+yt.toUpperCase()+Kr},ki=(t=16,e=Yr.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function xi(t){return!!(t&&z(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const vi=t=>{const e=new Array(10),r=(n,o)=>{if(Me(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const s=pe(n)?[]:{};return ke(n,(c,i)=>{const a=r(c,o+1);!be(a)&&(s[i]=a)}),e[o]=void 0,s}}return n};return r(t,0)},yi=j("AsyncFunction"),_i=t=>t&&(Me(t)||z(t))&&z(t.then)&&z(t.catch),Qr=((t,e)=>t?setImmediate:e?((r,n)=>(ne.addEventListener("message",({source:o,data:s})=>{o===ne&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),ne.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",z(ne.postMessage)),wi=typeof queueMicrotask<"u"?queueMicrotask.bind(ne):typeof process<"u"&&process.nextTick||Qr,m={isArray:pe,isArrayBuffer:Hr,isBuffer:zc,isFormData:Wc,isArrayBufferView:Uc,isString:Pc,isNumber:jr,isBoolean:$c,isObject:Me,isPlainObject:Oe,isReadableStream:Yc,isRequest:Qc,isResponse:Xc,isHeaders:ei,isUndefined:be,isDate:Hc,isFile:jc,isBlob:Gc,isRegExp:fi,isFunction:z,isStream:Jc,isURLSearchParams:Kc,isTypedArray:ai,isFileList:Zc,forEach:ke,merge:vt,extend:ri,trim:ti,stripBOM:ni,inherits:oi,toFlatObject:si,kindOf:Ve,kindOfTest:j,endsWith:ci,toArray:ii,forEachEntry:li,matchAll:ui,isHTMLForm:pi,hasOwnProperty:Jr,hasOwnProp:Jr,reduceDescriptors:Wr,freezeMethods:hi,toObjectSet:mi,toCamelCase:di,noop:gi,toFiniteNumber:bi,findKey:Gr,global:ne,isContextDefined:Zr,ALPHABET:Yr,generateString:ki,isSpecCompliantForm:xi,toJSONObject:vi,isAsyncFn:yi,isThenable:_i,setImmediate:Qr,asap:wi};function D(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}m.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.status}}});const Xr=D.prototype,en={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{en[t]={value:t}}),Object.defineProperties(D,en),Object.defineProperty(Xr,"isAxiosError",{value:!0}),D.from=(t,e,r,n,o,s)=>{const c=Object.create(Xr);return m.toFlatObject(t,c,function(a){return a!==Error.prototype},i=>i!=="isAxiosError"),D.call(c,t.message,e,r,n,o),c.cause=t,c.name=t.name,s&&Object.assign(c,s),c};const Ei=null;function _t(t){return m.isPlainObject(t)||m.isArray(t)}function tn(t){return m.endsWith(t,"[]")?t.slice(0,-2):t}function rn(t,e,r){return t?t.concat(e).map(function(o,s){return o=tn(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function Ci(t){return m.isArray(t)&&!t.some(_t)}const Ai=m.toFlatObject(m,{},null,function(e){return/^is[A-Z]/.test(e)});function ze(t,e,r){if(!m.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=m.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,k){return!m.isUndefined(k[b])});const n=r.metaTokens,o=r.visitor||p,s=r.dots,c=r.indexes,a=(r.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(e);if(!m.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(m.isDate(g))return g.toISOString();if(!a&&m.isBlob(g))throw new D("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(g)||m.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,b,k){let y=g;if(g&&!k&&typeof g=="object"){if(m.endsWith(b,"{}"))b=n?b:b.slice(0,-2),g=JSON.stringify(g);else if(m.isArray(g)&&Ci(g)||(m.isFileList(g)||m.endsWith(b,"[]"))&&(y=m.toArray(g)))return b=tn(b),y.forEach(function(E,q){!(m.isUndefined(E)||E===null)&&e.append(c===!0?rn([b],q,s):c===null?b:b+"[]",l(E))}),!1}return _t(g)?!0:(e.append(rn(k,b,s),l(g)),!1)}const d=[],f=Object.assign(Ai,{defaultVisitor:p,convertValue:l,isVisitable:_t});function h(g,b){if(!m.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(g),m.forEach(g,function(y,x){(!(m.isUndefined(y)||y===null)&&o.call(e,y,m.isString(x)?x.trim():x,b,f))===!0&&h(y,b?b.concat(x):[x])}),d.pop()}}if(!m.isObject(t))throw new TypeError("data must be an object");return h(t),e}function nn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function wt(t,e){this._pairs=[],t&&ze(t,this,e)}const on=wt.prototype;on.append=function(e,r){this._pairs.push([e,r])},on.toString=function(e){const r=e?function(n){return e.call(this,n,nn)}:nn;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function qi(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,r){if(!e)return t;const n=r&&r.encode||qi,o=r&&r.serialize;let s;if(o?s=o(e,r):s=m.isURLSearchParams(e)?e.toString():new wt(e,r).toString(n),s){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class cn{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){m.forEach(this.handlers,function(n){n!==null&&e(n)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Di={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Et=typeof window<"u"&&typeof document<"u",Ct=typeof navigator=="object"&&navigator||void 0,Si=Et&&(!Ct||["ReactNative","NativeScript","NS"].indexOf(Ct.product)<0),Ti=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ri=Et&&window.location.href||"http://localhost",V={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Et,hasStandardBrowserEnv:Si,hasStandardBrowserWebWorkerEnv:Ti,navigator:Ct,origin:Ri},Symbol.toStringTag,{value:"Module"})),...Di};function Li(t,e){return ze(t,new V.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return V.isNode&&m.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Ni(t){return m.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Bi(t){const e={},r=Object.keys(t);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function ln(t){function e(r,n,o,s){let c=r[s++];if(c==="__proto__")return!0;const i=Number.isFinite(+c),a=s>=r.length;return c=!c&&m.isArray(o)?o.length:c,a?(m.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!i):((!o[c]||!m.isObject(o[c]))&&(o[c]=[]),e(r,n,o[c],s)&&m.isArray(o[c])&&(o[c]=Bi(o[c])),!i)}if(m.isFormData(t)&&m.isFunction(t.entries)){const r={};return m.forEachEntry(t,(n,o)=>{e(Ni(n),o,r,0)}),r}return null}function Fi(t,e,r){if(m.isString(t))try{return(e||JSON.parse)(t),m.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const xe={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=m.isObject(e);if(s&&m.isHTMLForm(e)&&(e=new FormData(e)),m.isFormData(e))return o?JSON.stringify(ln(e)):e;if(m.isArrayBuffer(e)||m.isBuffer(e)||m.isStream(e)||m.isFile(e)||m.isBlob(e)||m.isReadableStream(e))return e;if(m.isArrayBufferView(e))return e.buffer;if(m.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return Li(e,this.formSerializer).toString();if((i=m.isFileList(e))||n.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ze(i?{"files[]":e}:e,a&&new a,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Fi(e)):e}],transformResponse:[function(e){const r=this.transitional||xe.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(m.isResponse(e)||m.isReadableStream(e))return e;if(e&&m.isString(e)&&(n&&!this.responseType||o)){const c=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(i){if(c)throw i.name==="SyntaxError"?D.from(i,D.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],t=>{xe.headers[t]={}});const Vi=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ii=t=>{const e={};let r,n,o;return t&&t.split(`
|
19
|
-
`).forEach(function(c){o=c.indexOf(":"),r=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!r||e[r]&&
|
20
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[un]=this[un]={accessors:{}}).accessors,o=this.prototype;function s(c){const i=ve(c);n[i]||(Ui(o,c),n[i]=!0)}return m.isArray(e)?e.forEach(s):s(e),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.reduceDescriptors(I.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),m.freezeMethods(I);function qt(t,e){const r=this||xe,n=e||r,o=I.from(n.headers);let s=n.data;return m.forEach(t,function(i){s=i.call(r,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function pn(t){return!!(t&&t.__CANCEL__)}function de(t,e,r){D.call(this,t??"canceled",D.ERR_CANCELED,e,r),this.name="CanceledError"}m.inherits(de,D,{__CANCEL__:!0});function dn(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new D("Request failed with status code "+r.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Pi(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $i(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,s=0,c;return e=e!==void 0?e:1e3,function(a){const l=Date.now(),p=n[s];c||(c=l),r[o]=a,n[o]=l;let d=s,f=0;for(;d!==o;)f+=r[d++],d=d%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),l-c<e)return;const h=p&&l-p;return h?Math.round(f*1e3/h):void 0}}function Hi(t,e){let r=0,n=1e3/e,o,s;const c=(l,p=Date.now())=>{r=p,o=null,s&&(clearTimeout(s),s=null),t.apply(null,l)};return[(...l)=>{const p=Date.now(),d=p-r;d>=n?c(l,p):(o=l,s||(s=setTimeout(()=>{s=null,c(o)},n-d)))},()=>o&&c(o)]}const Pe=(t,e,r=3)=>{let n=0;const o=$i(50,250);return Hi(s=>{const c=s.loaded,i=s.lengthComputable?s.total:void 0,a=c-n,l=o(a),p=c<=i;n=c;const d={loaded:c,total:i,progress:i?c/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&p?(i-c)/l:void 0,event:s,lengthComputable:i!=null,[e?"download":"upload"]:!0};t(d)},r)},fn=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},hn=t=>(...e)=>m.asap(()=>t(...e)),ji=V.hasStandardBrowserEnv?function(){const e=V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent),r=document.createElement("a");let n;function o(s){let c=s;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(c){const i=m.isString(c)?o(c):c;return i.protocol===n.protocol&&i.host===n.host}}():function(){return function(){return!0}}(),Gi=V.hasStandardBrowserEnv?{write(t,e,r,n,o,s){const c=[t+"="+encodeURIComponent(e)];m.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),m.isString(n)&&c.push("path="+n),m.isString(o)&&c.push("domain="+o),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Zi(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ji(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function mn(t,e){return t&&!Zi(e)?Ji(t,e):e}const gn=t=>t instanceof I?{...t}:t;function oe(t,e){e=e||{};const r={};function n(l,p,d){return m.isPlainObject(l)&&m.isPlainObject(p)?m.merge.call({caseless:d},l,p):m.isPlainObject(p)?m.merge({},p):m.isArray(p)?p.slice():p}function o(l,p,d){if(m.isUndefined(p)){if(!m.isUndefined(l))return n(void 0,l,d)}else return n(l,p,d)}function s(l,p){if(!m.isUndefined(p))return n(void 0,p)}function c(l,p){if(m.isUndefined(p)){if(!m.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}function i(l,p,d){if(d in e)return n(l,p);if(d in t)return n(void 0,l)}const a={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:i,headers:(l,p)=>o(gn(l),gn(p),!0)};return m.forEach(Object.keys(Object.assign({},t,e)),function(p){const d=a[p]||o,f=d(t[p],e[p],p);m.isUndefined(f)&&d!==i||(r[p]=f)}),r}const bn=t=>{const e=oe({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:c,auth:i}=e;e.headers=c=I.from(c),e.url=sn(mn(e.baseURL,e.url),t.params,t.paramsSerializer),i&&c.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let a;if(m.isFormData(r)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((a=c.getContentType())!==!1){const[l,...p]=a?a.split(";").map(d=>d.trim()).filter(Boolean):[];c.setContentType([l||"multipart/form-data",...p].join("; "))}}if(V.hasStandardBrowserEnv&&(n&&m.isFunction(n)&&(n=n(e)),n||n!==!1&&ji(e.url))){const l=o&&s&&Gi.read(s);l&&c.set(o,l)}return e},Wi=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){const o=bn(t);let s=o.data;const c=I.from(o.headers).normalize();let{responseType:i,onUploadProgress:a,onDownloadProgress:l}=o,p,d,f,h,g;function b(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function y(){if(!k)return;const E=I.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),A={data:!i||i==="text"||i==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:t,request:k};dn(function(S){r(S),b()},function(S){n(S),b()},A),k=null}"onloadend"in k?k.onloadend=y:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(y)},k.onabort=function(){k&&(n(new D("Request aborted",D.ECONNABORTED,t,k)),k=null)},k.onerror=function(){n(new D("Network Error",D.ERR_NETWORK,t,k)),k=null},k.ontimeout=function(){let q=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||an;o.timeoutErrorMessage&&(q=o.timeoutErrorMessage),n(new D(q,A.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,k)),k=null},s===void 0&&c.setContentType(null),"setRequestHeader"in k&&m.forEach(c.toJSON(),function(q,A){k.setRequestHeader(A,q)}),m.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),i&&i!=="json"&&(k.responseType=o.responseType),l&&([f,g]=Pe(l,!0),k.addEventListener("progress",f)),a&&k.upload&&([d,h]=Pe(a),k.upload.addEventListener("progress",d),k.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(p=E=>{k&&(n(!E||E.type?new de(null,t,k):E),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const x=Pi(o.url);if(x&&V.protocols.indexOf(x)===-1){n(new D("Unsupported protocol "+x+":",D.ERR_BAD_REQUEST,t));return}k.send(s||null)})},Ki=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const s=function(l){if(!o){o=!0,i();const p=l instanceof Error?l:this.reason;n.abort(p instanceof D?p:new de(p instanceof Error?p.message:p))}};let c=e&&setTimeout(()=>{c=null,s(new D(`timeout ${e} of ms exceeded`,D.ETIMEDOUT))},e);const i=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),t=null)};t.forEach(l=>l.addEventListener("abort",s));const{signal:a}=n;return a.unsubscribe=()=>m.asap(i),a}},Yi=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},Qi=async function*(t,e){for await(const r of Xi(t))yield*Yi(r,e)},Xi=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},kn=(t,e,r,n)=>{const o=Qi(t,e);let s=0,c,i=a=>{c||(c=!0,n&&n(a))};return new ReadableStream({async pull(a){try{const{done:l,value:p}=await o.next();if(l){i(),a.close();return}let d=p.byteLength;if(r){let f=s+=d;r(f)}a.enqueue(new Uint8Array(p))}catch(l){throw i(l),l}},cancel(a){return i(a),o.return()}},{highWaterMark:2})},$e=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xn=$e&&typeof ReadableStream=="function",ea=$e&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),vn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ta=xn&&vn(()=>{let t=!1;const e=new Request(V.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),yn=64*1024,Dt=xn&&vn(()=>m.isReadableStream(new Response("").body)),He={stream:Dt&&(t=>t.body)};$e&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!He[e]&&(He[e]=m.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new D(`Response type '${e}' is not supported`,D.ERR_NOT_SUPPORT,n)})})})(new Response);const ra=async t=>{if(t==null)return 0;if(m.isBlob(t))return t.size;if(m.isSpecCompliantForm(t))return(await new Request(V.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(m.isArrayBufferView(t)||m.isArrayBuffer(t))return t.byteLength;if(m.isURLSearchParams(t)&&(t=t+""),m.isString(t))return(await ea(t)).byteLength},na=async(t,e)=>{const r=m.toFiniteNumber(t.getContentLength());return r??ra(e)},St={http:Ei,xhr:Wi,fetch:$e&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:s,timeout:c,onDownloadProgress:i,onUploadProgress:a,responseType:l,headers:p,withCredentials:d="same-origin",fetchOptions:f}=bn(t);l=l?(l+"").toLowerCase():"text";let h=Ki([o,s&&s.toAbortSignal()],c),g;const b=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let k;try{if(a&&ta&&r!=="get"&&r!=="head"&&(k=await na(p,n))!==0){let A=new Request(e,{method:"POST",body:n,duplex:"half"}),_;if(m.isFormData(n)&&(_=A.headers.get("content-type"))&&p.setContentType(_),A.body){const[S,L]=fn(k,Pe(hn(a)));n=kn(A.body,yn,S,L)}}m.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;g=new Request(e,{...f,signal:h,method:r.toUpperCase(),headers:p.normalize().toJSON(),body:n,duplex:"half",credentials:y?d:void 0});let x=await fetch(g);const E=Dt&&(l==="stream"||l==="response");if(Dt&&(i||E&&b)){const A={};["status","statusText","headers"].forEach(M=>{A[M]=x[M]});const _=m.toFiniteNumber(x.headers.get("content-length")),[S,L]=i&&fn(_,Pe(hn(i),!0))||[];x=new Response(kn(x.body,yn,S,()=>{L&&L(),b&&b()}),A)}l=l||"text";let q=await He[m.findKey(He,l)||"text"](x,t);return!E&&b&&b(),await new Promise((A,_)=>{dn(A,_,{data:q,headers:I.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:g})})}catch(y){throw b&&b(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,g),{cause:y.cause||y}):D.from(y,y&&y.code,t,g)}})};m.forEach(St,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const _n=t=>`- ${t}`,oa=t=>m.isFunction(t)||t===null||t===!1,wn={getAdapter:t=>{t=m.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let s=0;s<e;s++){r=t[s];let c;if(n=r,!oa(r)&&(n=St[(c=String(r)).toLowerCase()],n===void 0))throw new D(`Unknown adapter '${c}'`);if(n)break;o[c||"#"+s]=n}if(!n){const s=Object.entries(o).map(([i,a])=>`adapter ${i} `+(a===!1?"is not supported by the environment":"is not available in the build"));let c=e?s.length>1?`since :
|
13
|
+
`},G.text=function(t,e){return te(t[e].content)},G.html_block=function(t,e){return t[e].content},G.html_inline=function(t,e){return t[e].content};function ae(){this.rules=lo({},G)}ae.prototype.renderAttrs=function(e){var r,n,o;if(!e.attrs)return"";for(o="",r=0,n=e.attrs.length;r<n;r++)o+=" "+te(e.attrs[r][0])+'="'+te(e.attrs[r][1])+'"';return o},ae.prototype.renderToken=function(e,r,n){var o,s="",c=!1,a=e[r];return a.hidden?"":(a.block&&a.nesting!==-1&&r&&e[r-1].hidden&&(s+=`
|
14
|
+
`),s+=(a.nesting===-1?"</":"<")+a.tag,s+=this.renderAttrs(a),a.nesting===0&&n.xhtmlOut&&(s+=" /"),a.block&&(c=!0,a.nesting===1&&r+1<e.length&&(o=e[r+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===a.tag)&&(c=!1))),s+=c?`>
|
15
|
+
`:">",s)},ae.prototype.renderInline=function(t,e,r){for(var n,o="",s=this.rules,c=0,a=t.length;c<a;c++)n=t[c].type,typeof s[n]<"u"?o+=s[n](t,c,e,r,this):o+=this.renderToken(t,c,e);return o},ae.prototype.renderInlineAsText=function(t,e,r){for(var n="",o=0,s=t.length;o<s;o++)t[o].type==="text"?n+=t[o].content:t[o].type==="image"?n+=this.renderInlineAsText(t[o].children,e,r):t[o].type==="softbreak"&&(n+=`
|
16
|
+
`);return n},ae.prototype.render=function(t,e,r){var n,o,s,c="",a=this.rules;for(n=0,o=t.length;n<o;n++)s=t[n].type,s==="inline"?c+=this.renderInline(t[n].children,e,r):typeof a[s]<"u"?c+=a[s](t,n,e,r,this):c+=this.renderToken(t,n,e,r);return c};var po=ae;function H(){this.__rules__=[],this.__cache__=null}H.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},H.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn))})})},H.prototype.at=function(t,e,r){var n=this.__find__(t),o=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=o.alt||[],this.__cache__=null},H.prototype.before=function(t,e,r,n){var o=this.__find__(t),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},H.prototype.after=function(t,e,r,n){var o=this.__find__(t),s=n||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},H.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null},H.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(n){var o=this.__find__(n);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[o].enabled=!0,r.push(n)},this),this.__cache__=null,r},H.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(t,e)},H.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var r=[];return t.forEach(function(n){var o=this.__find__(n);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+n)}this.__rules__[o].enabled=!1,r.push(n)},this),this.__cache__=null,r},H.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Qe=H,fo=/\r\n?|\n/g,ho=/\0/g,mo=function(e){var r;r=e.src.replace(fo,`
|
17
|
+
`),r=r.replace(ho,"�"),e.src=r},go=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},bo=function(e){var r=e.tokens,n,o,s;for(o=0,s=r.length;o<s;o++)n=r[o],n.type==="inline"&&e.md.inline.parse(n.content,e.md,e.env,n.children)},ko=R.arrayReplaceAt;function xo(t){return/^<a[>\s]/i.test(t)}function vo(t){return/^<\/a\s*>/i.test(t)}var yo=function(e){var r,n,o,s,c,a,i,l,p,d,f,h,g,b,k,y,x=e.tokens,E;if(e.md.options.linkify){for(n=0,o=x.length;n<o;n++)if(!(x[n].type!=="inline"||!e.md.linkify.pretest(x[n].content)))for(s=x[n].children,g=0,r=s.length-1;r>=0;r--){if(a=s[r],a.type==="link_close"){for(r--;s[r].level!==a.level&&s[r].type!=="link_open";)r--;continue}if(a.type==="html_inline"&&(xo(a.content)&&g>0&&g--,vo(a.content)&&g++),!(g>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(p=a.content,E=e.md.linkify.match(p),i=[],h=a.level,f=0,E.length>0&&E[0].index===0&&r>0&&s[r-1].type==="text_special"&&(E=E.slice(1)),l=0;l<E.length;l++)b=E[l].url,k=e.md.normalizeLink(b),e.md.validateLink(k)&&(y=E[l].text,E[l].schema?E[l].schema==="mailto:"&&!/^mailto:/i.test(y)?y=e.md.normalizeLinkText("mailto:"+y).replace(/^mailto:/,""):y=e.md.normalizeLinkText(y):y=e.md.normalizeLinkText("http://"+y).replace(/^http:\/\//,""),d=E[l].index,d>f&&(c=new e.Token("text","",0),c.content=p.slice(f,d),c.level=h,i.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",k]],c.level=h++,c.markup="linkify",c.info="auto",i.push(c),c=new e.Token("text","",0),c.content=y,c.level=h,i.push(c),c=new e.Token("link_close","a",-1),c.level=--h,c.markup="linkify",c.info="auto",i.push(c),f=E[l].lastIndex);f<p.length&&(c=new e.Token("text","",0),c.content=p.slice(f),c.level=h,i.push(c)),x[n].children=s=ko(s,r,i)}}}},rr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,_o=/\((c|tm|r)\)/i,wo=/\((c|tm|r)\)/ig,Eo={c:"©",r:"®",tm:"™"};function Co(t,e){return Eo[e.toLowerCase()]}function Ao(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&(r.content=r.content.replace(wo,Co)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function qo(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&rr.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(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}var Do=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(_o.test(e.tokens[r].content)&&Ao(e.tokens[r].children),rr.test(e.tokens[r].content)&&qo(e.tokens[r].children))},nr=R.isWhiteSpace,or=R.isPunctChar,sr=R.isMdAsciiPunct,So=/['"]/,cr=/['"]/g,ar="’";function Ae(t,e,r){return t.slice(0,e)+r+t.slice(e+1)}function To(t,e){var r,n,o,s,c,a,i,l,p,d,f,h,g,b,k,y,x,E,q,A,_;for(q=[],r=0;r<t.length;r++){for(n=t[r],i=t[r].level,x=q.length-1;x>=0&&!(q[x].level<=i);x--);if(q.length=x+1,n.type==="text"){o=n.content,c=0,a=o.length;e:for(;c<a&&(cr.lastIndex=c,s=cr.exec(o),!!s);){if(k=y=!0,c=s.index+1,E=s[0]==="'",p=32,s.index-1>=0)p=o.charCodeAt(s.index-1);else for(x=r-1;x>=0&&!(t[x].type==="softbreak"||t[x].type==="hardbreak");x--)if(t[x].content){p=t[x].content.charCodeAt(t[x].content.length-1);break}if(d=32,c<a)d=o.charCodeAt(c);else for(x=r+1;x<t.length&&!(t[x].type==="softbreak"||t[x].type==="hardbreak");x++)if(t[x].content){d=t[x].content.charCodeAt(0);break}if(f=sr(p)||or(String.fromCharCode(p)),h=sr(d)||or(String.fromCharCode(d)),g=nr(p),b=nr(d),b?k=!1:h&&(g||f||(k=!1)),g?y=!1:f&&(b||h||(y=!1)),d===34&&s[0]==='"'&&p>=48&&p<=57&&(y=k=!1),k&&y&&(k=f,y=h),!k&&!y){E&&(n.content=Ae(n.content,s.index,ar));continue}if(y){for(x=q.length-1;x>=0&&(l=q[x],!(q[x].level<i));x--)if(l.single===E&&q[x].level===i){l=q[x],E?(A=e.md.options.quotes[2],_=e.md.options.quotes[3]):(A=e.md.options.quotes[0],_=e.md.options.quotes[1]),n.content=Ae(n.content,s.index,_),t[l.token].content=Ae(t[l.token].content,l.pos,A),c+=_.length-1,l.token===r&&(c+=A.length-1),o=n.content,a=o.length,q.length=x;continue e}}k?q.push({token:r,pos:s.index,single:E,level:i}):y&&E&&(n.content=Ae(n.content,s.index,ar))}}}}var Ro=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type!=="inline"||!So.test(e.tokens[r].content)||To(e.tokens[r].children,e)},Lo=function(e){var r,n,o,s,c,a,i=e.tokens;for(r=0,n=i.length;r<n;r++)if(i[r].type==="inline"){for(o=i[r].children,c=o.length,s=0;s<c;s++)o[s].type==="text_special"&&(o[s].type="text");for(s=a=0;s<c;s++)o[s].type==="text"&&s+1<c&&o[s+1].type==="text"?o[s+1].content=o[s].content+o[s+1].content:(s!==a&&(o[a]=o[s]),a++);s!==a&&(o.length=a)}};function ie(t,e,r){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ie.prototype.attrIndex=function(e){var r,n,o;if(!this.attrs)return-1;for(r=this.attrs,n=0,o=r.length;n<o;n++)if(r[n][0]===e)return n;return-1},ie.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},ie.prototype.attrSet=function(e,r){var n=this.attrIndex(e),o=[e,r];n<0?this.attrPush(o):this.attrs[n]=o},ie.prototype.attrGet=function(e){var r=this.attrIndex(e),n=null;return r>=0&&(n=this.attrs[r][1]),n},ie.prototype.attrJoin=function(e,r){var n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};var Xe=ie,Bo=Xe;function ir(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}ir.prototype.Token=Bo;var No=ir,Fo=Qe,et=[["normalize",mo],["block",go],["inline",bo],["linkify",yo],["replacements",Do],["smartquotes",Ro],["text_join",Lo]];function tt(){this.ruler=new Fo;for(var t=0;t<et.length;t++)this.ruler.push(et[t][0],et[t][1])}tt.prototype.process=function(t){var e,r,n;for(n=this.ruler.getRules(""),e=0,r=n.length;e<r;e++)n[e](t)},tt.prototype.State=No;var Vo=tt,rt=R.isSpace;function nt(t,e){var r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.slice(r,n)}function lr(t){var e=[],r=0,n=t.length,o,s=!1,c=0,a="";for(o=t.charCodeAt(r);r<n;)o===124&&(s?(a+=t.substring(c,r-1),c=r):(e.push(a+t.substring(c,r)),a="",c=r+1)),s=o===92,r++,o=t.charCodeAt(r);return e.push(a+t.substring(c)),e}var Io=function(e,r,n,o){var s,c,a,i,l,p,d,f,h,g,b,k,y,x,E,q,A,_;if(r+2>n||(p=r+1,e.sCount[p]<e.blkIndent)||e.sCount[p]-e.blkIndent>=4||(a=e.bMarks[p]+e.tShift[p],a>=e.eMarks[p])||(A=e.src.charCodeAt(a++),A!==124&&A!==45&&A!==58)||a>=e.eMarks[p]||(_=e.src.charCodeAt(a++),_!==124&&_!==45&&_!==58&&!rt(_))||A===45&&rt(_))return!1;for(;a<e.eMarks[p];){if(s=e.src.charCodeAt(a),s!==124&&s!==45&&s!==58&&!rt(s))return!1;a++}for(c=nt(e,r+1),d=c.split("|"),g=[],i=0;i<d.length;i++){if(b=d[i].trim(),!b){if(i===0||i===d.length-1)continue;return!1}if(!/^:?-+:?$/.test(b))return!1;b.charCodeAt(b.length-1)===58?g.push(b.charCodeAt(0)===58?"center":"right"):b.charCodeAt(0)===58?g.push("left"):g.push("")}if(c=nt(e,r).trim(),c.indexOf("|")===-1||e.sCount[r]-e.blkIndent>=4||(d=lr(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),f=d.length,f===0||f!==g.length))return!1;if(o)return!0;for(x=e.parentType,e.parentType="table",q=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=k=[r,0],h=e.push("thead_open","thead",1),h.map=[r,r+1],h=e.push("tr_open","tr",1),h.map=[r,r+1],i=0;i<d.length;i++)h=e.push("th_open","th",1),g[i]&&(h.attrs=[["style","text-align:"+g[i]]]),h=e.push("inline","",0),h.content=d[i].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),p=r+2;p<n&&!(e.sCount[p]<e.blkIndent);p++){for(E=!1,i=0,l=q.length;i<l;i++)if(q[i](e,p,n,!0)){E=!0;break}if(E||(c=nt(e,p).trim(),!c)||e.sCount[p]-e.blkIndent>=4)break;for(d=lr(c),d.length&&d[0]===""&&d.shift(),d.length&&d[d.length-1]===""&&d.pop(),p===r+2&&(h=e.push("tbody_open","tbody",1),h.map=y=[r+2,0]),h=e.push("tr_open","tr",1),h.map=[p,p+1],i=0;i<f;i++)h=e.push("td_open","td",1),g[i]&&(h.attrs=[["style","text-align:"+g[i]]]),h=e.push("inline","",0),h.content=d[i]?d[i].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return y&&(h=e.push("tbody_close","tbody",-1),y[1]=p),h=e.push("table_close","table",-1),k[1]=p,e.parentType=x,e.line=p,!0},Mo=function(e,r,n){var o,s,c;if(e.sCount[r]-e.blkIndent<4)return!1;for(s=o=r+1;o<n;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,c=e.push("code_block","code",0),c.content=e.getLines(r,s,4+e.blkIndent,!1)+`
|
18
|
+
`,c.map=[r,e.line],!0},Oo=function(e,r,n,o){var s,c,a,i,l,p,d,f=!1,h=e.bMarks[r]+e.tShift[r],g=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||h+3>g||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(l=h,h=e.skipChars(h,s),c=h-l,c<3)||(d=e.src.slice(l,h),a=e.src.slice(h,g),s===96&&a.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(i=r;i++,!(i>=n||(h=l=e.bMarks[i]+e.tShift[i],g=e.eMarks[i],h<g&&e.sCount[i]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[i]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-l<c)&&(h=e.skipSpaces(h),!(h<g)))){f=!0;break}return c=e.sCount[r],e.line=i+(f?1:0),p=e.push("fence","code",0),p.info=a,p.content=e.getLines(r+1,i,c,!0),p.markup=d,p.map=[r,e.line],!0},zo=R.isSpace,Uo=function(e,r,n,o){var s,c,a,i,l,p,d,f,h,g,b,k,y,x,E,q,A,_,S,L,M=e.lineMax,T=e.bMarks[r]+e.tShift[r],F=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(T)!==62)return!1;if(o)return!0;for(g=[],b=[],x=[],E=[],_=e.md.block.ruler.getRules("blockquote"),y=e.parentType,e.parentType="blockquote",f=r;f<n&&(L=e.sCount[f]<e.blkIndent,T=e.bMarks[f]+e.tShift[f],F=e.eMarks[f],!(T>=F));f++){if(e.src.charCodeAt(T++)===62&&!L){for(i=e.sCount[f]+1,e.src.charCodeAt(T)===32?(T++,i++,s=!1,q=!0):e.src.charCodeAt(T)===9?(q=!0,(e.bsCount[f]+i)%4===3?(T++,i++,s=!1):s=!0):q=!1,h=i,g.push(e.bMarks[f]),e.bMarks[f]=T;T<F&&(c=e.src.charCodeAt(T),zo(c));){c===9?h+=4-(h+e.bsCount[f]+(s?1:0))%4:h++;T++}p=T>=F,b.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(q?1:0),x.push(e.sCount[f]),e.sCount[f]=h-i,E.push(e.tShift[f]),e.tShift[f]=T-e.bMarks[f];continue}if(p)break;for(A=!1,a=0,l=_.length;a<l;a++)if(_[a](e,f,n,!0)){A=!0;break}if(A){e.lineMax=f,e.blkIndent!==0&&(g.push(e.bMarks[f]),b.push(e.bsCount[f]),E.push(e.tShift[f]),x.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}g.push(e.bMarks[f]),b.push(e.bsCount[f]),E.push(e.tShift[f]),x.push(e.sCount[f]),e.sCount[f]=-1}for(k=e.blkIndent,e.blkIndent=0,S=e.push("blockquote_open","blockquote",1),S.markup=">",S.map=d=[r,0],e.md.block.tokenize(e,r,f),S=e.push("blockquote_close","blockquote",-1),S.markup=">",e.lineMax=M,e.parentType=y,d[1]=e.line,a=0;a<E.length;a++)e.bMarks[a+r]=g[a],e.tShift[a+r]=E[a],e.sCount[a+r]=x[a],e.bsCount[a+r]=b[a];return e.blkIndent=k,!0},Po=R.isSpace,$o=function(e,r,n,o){var s,c,a,i,l=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(c=1;l<p;){if(a=e.src.charCodeAt(l++),a!==s&&!Po(a))return!1;a===s&&c++}return c<3?!1:(o||(e.line=r+1,i=e.push("hr","hr",0),i.map=[r,e.line],i.markup=Array(c+1).join(String.fromCharCode(s))),!0)},ur=R.isSpace;function pr(t,e){var r,n,o,s;return n=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n<o&&(s=t.src.charCodeAt(n),!ur(s))?-1:n}function dr(t,e){var r,n=t.bMarks[e]+t.tShift[e],o=n,s=t.eMarks[e];if(o+1>=s||(r=t.src.charCodeAt(o++),r<48||r>57))return-1;for(;;){if(o>=s)return-1;if(r=t.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o<s&&(r=t.src.charCodeAt(o),!ur(r))?-1:o}function Ho(t,e){var r,n,o=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===o&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].hidden=!0,t.tokens[r].hidden=!0,r+=2)}var jo=function(e,r,n,o){var s,c,a,i,l,p,d,f,h,g,b,k,y,x,E,q,A,_,S,L,M,T,F,X,$,w,C,v=r,N=!1,ye=!0;if(e.sCount[v]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[v]-e.listIndent>=4&&e.sCount[v]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[v]>=e.blkIndent&&(N=!0),(T=dr(e,v))>=0){if(d=!0,X=e.bMarks[v]+e.tShift[v],y=Number(e.src.slice(X,T-1)),N&&y!==1)return!1}else if((T=pr(e,v))>=0)d=!1;else return!1;if(N&&e.skipSpaces(T)>=e.eMarks[v])return!1;if(o)return!0;for(k=e.src.charCodeAt(T-1),b=e.tokens.length,d?(C=e.push("ordered_list_open","ol",1),y!==1&&(C.attrs=[["start",y]])):C=e.push("bullet_list_open","ul",1),C.map=g=[v,0],C.markup=String.fromCharCode(k),F=!1,w=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";v<n;){for(M=T,x=e.eMarks[v],p=E=e.sCount[v]+T-(e.bMarks[v]+e.tShift[v]);M<x;){if(s=e.src.charCodeAt(M),s===9)E+=4-(E+e.bsCount[v])%4;else if(s===32)E++;else break;M++}if(c=M,c>=x?l=1:l=E-p,l>4&&(l=1),i=p+l,C=e.push("list_item_open","li",1),C.markup=String.fromCharCode(k),C.map=f=[v,0],d&&(C.info=e.src.slice(X,T-1)),L=e.tight,S=e.tShift[v],_=e.sCount[v],q=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=i,e.tight=!0,e.tShift[v]=c-e.bMarks[v],e.sCount[v]=E,c>=x&&e.isEmpty(v+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,v,n,!0),(!e.tight||F)&&(ye=!1),F=e.line-v>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=q,e.tShift[v]=S,e.sCount[v]=_,e.tight=L,C=e.push("list_item_close","li",-1),C.markup=String.fromCharCode(k),v=e.line,f[1]=v,v>=n||e.sCount[v]<e.blkIndent||e.sCount[v]-e.blkIndent>=4)break;for($=!1,a=0,h=w.length;a<h;a++)if(w[a](e,v,n,!0)){$=!0;break}if($)break;if(d){if(T=dr(e,v),T<0)break;X=e.bMarks[v]+e.tShift[v]}else if(T=pr(e,v),T<0)break;if(k!==e.src.charCodeAt(T-1))break}return d?C=e.push("ordered_list_close","ol",-1):C=e.push("bullet_list_close","ul",-1),C.markup=String.fromCharCode(k),g[1]=v,e.line=v,e.parentType=A,ye&&Ho(e,b),!0},Go=R.normalizeReference,qe=R.isSpace,Zo=function(e,r,n,o){var s,c,a,i,l,p,d,f,h,g,b,k,y,x,E,q,A=0,_=e.bMarks[r]+e.tShift[r],S=e.eMarks[r],L=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(_)!==91)return!1;for(;++_<S;)if(e.src.charCodeAt(_)===93&&e.src.charCodeAt(_-1)!==92){if(_+1===S||e.src.charCodeAt(_+1)!==58)return!1;break}for(i=e.lineMax,E=e.md.block.ruler.getRules("reference"),g=e.parentType,e.parentType="reference";L<i&&!e.isEmpty(L);L++)if(!(e.sCount[L]-e.blkIndent>3)&&!(e.sCount[L]<0)){for(x=!1,p=0,d=E.length;p<d;p++)if(E[p](e,L,i,!0)){x=!0;break}if(x)break}for(y=e.getLines(r,L,e.blkIndent,!1).trim(),S=y.length,_=1;_<S;_++){if(s=y.charCodeAt(_),s===91)return!1;if(s===93){h=_;break}else s===10?A++:s===92&&(_++,_<S&&y.charCodeAt(_)===10&&A++)}if(h<0||y.charCodeAt(h+1)!==58)return!1;for(_=h+2;_<S;_++)if(s=y.charCodeAt(_),s===10)A++;else if(!qe(s))break;if(b=e.md.helpers.parseLinkDestination(y,_,S),!b.ok||(l=e.md.normalizeLink(b.str),!e.md.validateLink(l)))return!1;for(_=b.pos,A+=b.lines,c=_,a=A,k=_;_<S;_++)if(s=y.charCodeAt(_),s===10)A++;else if(!qe(s))break;for(b=e.md.helpers.parseLinkTitle(y,_,S),_<S&&k!==_&&b.ok?(q=b.str,_=b.pos,A+=b.lines):(q="",_=c,A=a);_<S&&(s=y.charCodeAt(_),!!qe(s));)_++;if(_<S&&y.charCodeAt(_)!==10&&q)for(q="",_=c,A=a;_<S&&(s=y.charCodeAt(_),!!qe(s));)_++;return _<S&&y.charCodeAt(_)!==10||(f=Go(y.slice(1,h)),!f)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[f]>"u"&&(e.env.references[f]={title:q,href:l}),e.parentType=g,e.line=r+A+1),!0)},Jo=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],De={},Wo="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ko="[^\"'=<>`\\x00-\\x20]+",Yo="'[^']*'",Qo='"[^"]*"',Xo="(?:"+Ko+"|"+Yo+"|"+Qo+")",es="(?:\\s+"+Wo+"(?:\\s*=\\s*"+Xo+")?)",fr="<[A-Za-z][A-Za-z0-9\\-]*"+es+"*\\s*\\/?>",hr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",ts="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",rs="<[?][\\s\\S]*?[?]>",ns="<![A-Z]+\\s+[^>]*>",os="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ss=new RegExp("^(?:"+fr+"|"+hr+"|"+ts+"|"+rs+"|"+ns+"|"+os+")"),cs=new RegExp("^(?:"+fr+"|"+hr+")");De.HTML_TAG_RE=ss,De.HTML_OPEN_CLOSE_TAG_RE=cs;var as=Jo,is=De.HTML_OPEN_CLOSE_TAG_RE,le=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+as.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(is.source+"\\s*$"),/^$/,!1]],ls=function(e,r,n,o){var s,c,a,i,l=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(i=e.src.slice(l,p),s=0;s<le.length&&!le[s][0].test(i);s++);if(s===le.length)return!1;if(o)return le[s][2];if(c=r+1,!le[s][1].test(i)){for(;c<n&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],p=e.eMarks[c],i=e.src.slice(l,p),le[s][1].test(i)){i.length!==0&&c++;break}}return e.line=c,a=e.push("html_block","",0),a.map=[r,c],a.content=e.getLines(r,c,e.blkIndent,!0),!0},mr=R.isSpace,us=function(e,r,n,o){var s,c,a,i,l=e.bMarks[r]+e.tShift[r],p=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=p))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<p&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<p&&!mr(s)?!1:(o||(p=e.skipSpacesBack(p,l),a=e.skipCharsBack(p,35,l),a>l&&mr(e.src.charCodeAt(a-1))&&(p=a),e.line=r+1,i=e.push("heading_open","h"+String(c),1),i.markup="########".slice(0,c),i.map=[r,e.line],i=e.push("inline","",0),i.content=e.src.slice(l,p).trim(),i.map=[r,e.line],i.children=[],i=e.push("heading_close","h"+String(c),-1),i.markup="########".slice(0,c)),!0)},ps=function(e,r,n){var o,s,c,a,i,l,p,d,f,h=r+1,g,b=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(g=e.parentType,e.parentType="paragraph";h<n&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(l=e.bMarks[h]+e.tShift[h],p=e.eMarks[h],l<p&&(f=e.src.charCodeAt(l),(f===45||f===61)&&(l=e.skipChars(l,f),l=e.skipSpaces(l),l>=p)))){d=f===61?1:2;break}if(!(e.sCount[h]<0)){for(s=!1,c=0,a=b.length;c<a;c++)if(b[c](e,h,n,!0)){s=!0;break}if(s)break}}return d?(o=e.getLines(r,h,e.blkIndent,!1).trim(),e.line=h+1,i=e.push("heading_open","h"+String(d),1),i.markup=String.fromCharCode(f),i.map=[r,e.line],i=e.push("inline","",0),i.content=o,i.map=[r,e.line-1],i.children=[],i=e.push("heading_close","h"+String(d),-1),i.markup=String.fromCharCode(f),e.parentType=g,!0):!1},ds=function(e,r,n){var o,s,c,a,i,l,p=r+1,d=e.md.block.ruler.getRules("paragraph");for(l=e.parentType,e.parentType="paragraph";p<n&&!e.isEmpty(p);p++)if(!(e.sCount[p]-e.blkIndent>3)&&!(e.sCount[p]<0)){for(s=!1,c=0,a=d.length;c<a;c++)if(d[c](e,p,n,!0)){s=!0;break}if(s)break}return o=e.getLines(r,p,e.blkIndent,!1).trim(),e.line=p,i=e.push("paragraph_open","p",1),i.map=[r,e.line],i=e.push("inline","",0),i.content=o,i.map=[r,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=l,!0},gr=Xe,Se=R.isSpace;function Z(t,e,r,n){var o,s,c,a,i,l,p,d;for(this.src=t,this.md=e,this.env=r,this.tokens=n,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,this.result="",s=this.src,d=!1,c=a=l=p=0,i=s.length;a<i;a++){if(o=s.charCodeAt(a),!d)if(Se(o)){l++,o===9?p+=4-p%4:p++;continue}else d=!0;(o===10||a===i-1)&&(o!==10&&a++,this.bMarks.push(c),this.eMarks.push(a),this.tShift.push(l),this.sCount.push(p),this.bsCount.push(0),d=!1,l=0,p=0,c=a+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Z.prototype.push=function(t,e,r){var n=new gr(t,e,r);return n.block=!0,r<0&&this.level--,n.level=this.level,r>0&&this.level++,this.tokens.push(n),n},Z.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},Z.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},Z.prototype.skipSpaces=function(e){for(var r,n=this.src.length;e<n&&(r=this.src.charCodeAt(e),!!Se(r));e++);return e},Z.prototype.skipSpacesBack=function(e,r){if(e<=r)return e;for(;e>r;)if(!Se(this.src.charCodeAt(--e)))return e+1;return e},Z.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e},Z.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e},Z.prototype.getLines=function(e,r,n,o){var s,c,a,i,l,p,d,f=e;if(e>=r)return"";for(p=new Array(r-e),s=0;f<r;f++,s++){for(c=0,d=i=this.bMarks[f],f+1<r||o?l=this.eMarks[f]+1:l=this.eMarks[f];i<l&&c<n;){if(a=this.src.charCodeAt(i),Se(a))a===9?c+=4-(c+this.bsCount[f])%4:c++;else if(i-d<this.tShift[f])c++;else break;i++}c>n?p[s]=new Array(c-n+1).join(" ")+this.src.slice(i,l):p[s]=this.src.slice(i,l)}return p.join("")},Z.prototype.Token=gr;var fs=Z,hs=Qe,Te=[["table",Io,["paragraph","reference"]],["code",Mo],["fence",Oo,["paragraph","reference","blockquote","list"]],["blockquote",Uo,["paragraph","reference","blockquote","list"]],["hr",$o,["paragraph","reference","blockquote","list"]],["list",jo,["paragraph","reference","blockquote"]],["reference",Zo],["html_block",ls,["paragraph","reference","blockquote"]],["heading",us,["paragraph","reference","blockquote"]],["lheading",ps],["paragraph",ds]];function Re(){this.ruler=new hs;for(var t=0;t<Te.length;t++)this.ruler.push(Te[t][0],Te[t][1],{alt:(Te[t][2]||[]).slice()})}Re.prototype.tokenize=function(t,e,r){for(var n,o,s,c=this.ruler.getRules(""),a=c.length,i=e,l=!1,p=t.md.options.maxNesting;i<r&&(t.line=i=t.skipEmptyLines(i),!(i>=r||t.sCount[i]<t.blkIndent));){if(t.level>=p){t.line=r;break}for(s=t.line,o=0;o<a;o++)if(n=c[o](t,i,r,!1),n){if(s>=t.line)throw new Error("block rule didn't increment state.line");break}if(!n)throw new Error("none of the block rules matched");t.tight=!l,t.isEmpty(t.line-1)&&(l=!0),i=t.line,i<r&&t.isEmpty(i)&&(l=!0,i++,t.line=i)}},Re.prototype.parse=function(t,e,r,n){var o;t&&(o=new this.State(t,e,r,n),this.tokenize(o,o.line,o.lineMax))},Re.prototype.State=fs;var ms=Re;function gs(t){switch(t){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}}for(var bs=function(e,r){for(var n=e.pos;n<e.posMax&&!gs(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(r||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)},ks=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,xs=function(e,r){var n,o,s,c,a,i,l,p;return!e.md.options.linkify||e.linkLevel>0||(n=e.pos,o=e.posMax,n+3>o)||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47||(s=e.pending.match(ks),!s)||(c=s[1],a=e.md.linkify.matchAtStart(e.src.slice(n-c.length)),!a)||(i=a.url,i.length<=c.length)||(i=i.replace(/\*+$/,""),l=e.md.normalizeLink(i),!e.md.validateLink(l))?!1:(r||(e.pending=e.pending.slice(0,-c.length),p=e.push("link_open","a",1),p.attrs=[["href",l]],p.markup="linkify",p.info="auto",p=e.push("text","",0),p.content=e.md.normalizeLinkText(i),p=e.push("link_close","a",-1),p.markup="linkify",p.info="auto"),e.pos+=i.length-c.length,!0)},vs=R.isSpace,ys=function(e,r){var n,o,s,c=e.pos;if(e.src.charCodeAt(c)!==10)return!1;if(n=e.pending.length-1,o=e.posMax,!r)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(s=n-1;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),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(c++;c<o&&vs(e.src.charCodeAt(c));)c++;return e.pos=c,!0},_s=R.isSpace,ot=[],br=0;br<256;br++)ot.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){ot[t.charCodeAt(0)]=1});var ws=function(e,r){var n,o,s,c,a,i=e.pos,l=e.posMax;if(e.src.charCodeAt(i)!==92||(i++,i>=l))return!1;if(n=e.src.charCodeAt(i),n===10){for(r||e.push("hardbreak","br",0),i++;i<l&&(n=e.src.charCodeAt(i),!!_s(n));)i++;return e.pos=i,!0}return c=e.src[i],n>=55296&&n<=56319&&i+1<l&&(o=e.src.charCodeAt(i+1),o>=56320&&o<=57343&&(c+=e.src[i+1],i++)),s="\\"+c,r||(a=e.push("text_special","",0),n<256&&ot[n]!==0?a.content=c:a.content=s,a.markup=s,a.info="escape"),e.pos=i+1,!0},Es=function(e,r){var n,o,s,c,a,i,l,p,d=e.pos,f=e.src.charCodeAt(d);if(f!==96)return!1;for(n=d,d++,o=e.posMax;d<o&&e.src.charCodeAt(d)===96;)d++;if(s=e.src.slice(n,d),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=n)return r||(e.pending+=s),e.pos+=l,!0;for(i=d;(a=e.src.indexOf("`",i))!==-1;){for(i=a+1;i<o&&e.src.charCodeAt(i)===96;)i++;if(p=i-a,p===l)return r||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(d,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=i,!0;e.backticks[p]=a}return e.backticksScanned=!0,r||(e.pending+=s),e.pos+=l,!0},Le={};Le.tokenize=function(e,r){var n,o,s,c,a,i=e.pos,l=e.src.charCodeAt(i);if(r||l!==126||(o=e.scanDelims(e.pos,!0),c=o.length,a=String.fromCharCode(l),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=a,c--),n=0;n<c;n+=2)s=e.push("text","",0),s.content=a+a,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function kr(t,e){var r,n,o,s,c,a=[],i=e.length;for(r=0;r<i;r++)o=e[r],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&a.push(s.token-1));for(;a.length;){for(r=a.pop(),n=r+1;n<t.tokens.length&&t.tokens[n].type==="s_close";)n++;n--,r!==n&&(c=t.tokens[n],t.tokens[n]=t.tokens[r],t.tokens[r]=c)}}Le.postProcess=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(kr(e,e.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&kr(e,n[r].delimiters)};var Be={};Be.tokenize=function(e,r){var n,o,s,c=e.pos,a=e.src.charCodeAt(c);if(r||a!==95&&a!==42)return!1;for(o=e.scanDelims(e.pos,a===42),n=0;n<o.length;n++)s=e.push("text","",0),s.content=String.fromCharCode(a),e.delimiters.push({marker:a,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function xr(t,e){var r,n,o,s,c,a,i=e.length;for(r=i-1;r>=0;r--)n=e[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(o=e[n.end],a=r>0&&e[r-1].end===n.end+1&&e[r-1].marker===n.marker&&e[r-1].token===n.token-1&&e[n.end+1].token===o.token+1,c=String.fromCharCode(n.marker),s=t.tokens[n.token],s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?c+c:c,s.content="",s=t.tokens[o.token],s.type=a?"strong_close":"em_close",s.tag=a?"strong":"em",s.nesting=-1,s.markup=a?c+c:c,s.content="",a&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}Be.postProcess=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(xr(e,e.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&xr(e,n[r].delimiters)};var Cs=R.normalizeReference,st=R.isSpace,As=function(e,r){var n,o,s,c,a,i,l,p,d,f="",h="",g=e.pos,b=e.posMax,k=e.pos,y=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(i=c+1,i<b&&e.src.charCodeAt(i)===40){for(y=!1,i++;i<b&&(o=e.src.charCodeAt(i),!(!st(o)&&o!==10));i++);if(i>=b)return!1;if(k=i,l=e.md.helpers.parseLinkDestination(e.src,i,e.posMax),l.ok){for(f=e.md.normalizeLink(l.str),e.md.validateLink(f)?i=l.pos:f="",k=i;i<b&&(o=e.src.charCodeAt(i),!(!st(o)&&o!==10));i++);if(l=e.md.helpers.parseLinkTitle(e.src,i,e.posMax),i<b&&k!==i&&l.ok)for(h=l.str,i=l.pos;i<b&&(o=e.src.charCodeAt(i),!(!st(o)&&o!==10));i++);}(i>=b||e.src.charCodeAt(i)!==41)&&(y=!0),i++}if(y){if(typeof e.env.references>"u")return!1;if(i<b&&e.src.charCodeAt(i)===91?(k=i+1,i=e.md.helpers.parseLinkLabel(e,i),i>=0?s=e.src.slice(k,i++):i=c+1):i=c+1,s||(s=e.src.slice(a,c)),p=e.env.references[Cs(s)],!p)return e.pos=g,!1;f=p.href,h=p.title}return r||(e.pos=a,e.posMax=c,d=e.push("link_open","a",1),d.attrs=n=[["href",f]],h&&n.push(["title",h]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,d=e.push("link_close","a",-1)),e.pos=i,e.posMax=b,!0},qs=R.normalizeReference,ct=R.isSpace,Ds=function(e,r){var n,o,s,c,a,i,l,p,d,f,h,g,b,k="",y=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(i=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(l=a+1,l<x&&e.src.charCodeAt(l)===40){for(l++;l<x&&(o=e.src.charCodeAt(l),!(!ct(o)&&o!==10));l++);if(l>=x)return!1;for(b=l,d=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),d.ok&&(k=e.md.normalizeLink(d.str),e.md.validateLink(k)?l=d.pos:k=""),b=l;l<x&&(o=e.src.charCodeAt(l),!(!ct(o)&&o!==10));l++);if(d=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<x&&b!==l&&d.ok)for(f=d.str,l=d.pos;l<x&&(o=e.src.charCodeAt(l),!(!ct(o)&&o!==10));l++);else f="";if(l>=x||e.src.charCodeAt(l)!==41)return e.pos=y,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<x&&e.src.charCodeAt(l)===91?(b=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(b,l++):l=a+1):l=a+1,c||(c=e.src.slice(i,a)),p=e.env.references[qs(c)],!p)return e.pos=y,!1;k=p.href,f=p.title}return r||(s=e.src.slice(i,a),e.md.inline.parse(s,e.md,e.env,g=[]),h=e.push("image","img",0),h.attrs=n=[["src",k],["alt",""]],h.children=g,h.content=s,f&&n.push(["title",f])),e.pos=l,e.posMax=x,!0},Ss=/^([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])?)*)$/,Ts=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Rs=function(e,r){var n,o,s,c,a,i,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(a=e.pos,i=e.posMax;;){if(++l>=i||(c=e.src.charCodeAt(l),c===60))return!1;if(c===62)break}return n=e.src.slice(a+1,l),Ts.test(n)?(o=e.md.normalizeLink(n),e.md.validateLink(o)?(r||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):Ss.test(n)?(o=e.md.normalizeLink("mailto:"+n),e.md.validateLink(o)?(r||(s=e.push("link_open","a",1),s.attrs=[["href",o]],s.markup="autolink",s.info="auto",s=e.push("text","",0),s.content=e.md.normalizeLinkText(n),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=n.length+2,!0):!1):!1},Ls=De.HTML_TAG_RE;function Bs(t){return/^<a[>\s]/i.test(t)}function Ns(t){return/^<\/a\s*>/i.test(t)}function Fs(t){var e=t|32;return e>=97&&e<=122}var Vs=function(e,r){var n,o,s,c,a=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(a)!==60||a+2>=s)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!Fs(n))||(o=e.src.slice(a).match(Ls),!o)?!1:(r||(c=e.push("html_inline","",0),c.content=o[0],Bs(c.content)&&e.linkLevel++,Ns(c.content)&&e.linkLevel--),e.pos+=o[0].length,!0)},vr=Ot,Is=R.has,Ms=R.isValidEntityCode,yr=R.fromCodePoint,Os=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,zs=/^&([a-z][a-z0-9]{1,31});/i,Us=function(e,r){var n,o,s,c,a=e.pos,i=e.posMax;if(e.src.charCodeAt(a)!==38||a+1>=i)return!1;if(n=e.src.charCodeAt(a+1),n===35){if(s=e.src.slice(a).match(Os),s)return r||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),c=e.push("text_special","",0),c.content=Ms(o)?yr(o):yr(65533),c.markup=s[0],c.info="entity"),e.pos+=s[0].length,!0}else if(s=e.src.slice(a).match(zs),s&&Is(vr,s[1]))return r||(c=e.push("text_special","",0),c.content=vr[s[1]],c.markup=s[0],c.info="entity"),e.pos+=s[0].length,!0;return!1};function _r(t){var e,r,n,o,s,c,a,i,l={},p=t.length;if(p){var d=0,f=-2,h=[];for(e=0;e<p;e++)if(n=t[e],h.push(0),(t[d].marker!==n.marker||f!==n.token-1)&&(d=e),f=n.token,n.length=n.length||0,!!n.close){for(l.hasOwnProperty(n.marker)||(l[n.marker]=[-1,-1,-1,-1,-1,-1]),s=l[n.marker][(n.open?3:0)+n.length%3],r=d-h[d]-1,c=r;r>s;r-=h[r]+1)if(o=t[r],o.marker===n.marker&&o.open&&o.end<0&&(a=!1,(o.close||n.open)&&(o.length+n.length)%3===0&&(o.length%3!==0||n.length%3!==0)&&(a=!0),!a)){i=r>0&&!t[r-1].open?h[r-1]+1:0,h[e]=e-r+i,h[r]=i,n.open=!1,o.end=e,o.close=!1,c=-1,f=-2;break}c!==-1&&(l[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}}var Ps=function(e){var r,n=e.tokens_meta,o=e.tokens_meta.length;for(_r(e.delimiters),r=0;r<o;r++)n[r]&&n[r].delimiters&&_r(n[r].delimiters)},$s=function(e){var r,n,o=0,s=e.tokens,c=e.tokens.length;for(r=n=0;r<c;r++)s[r].nesting<0&&o--,s[r].level=o,s[r].nesting>0&&o++,s[r].type==="text"&&r+1<c&&s[r+1].type==="text"?s[r+1].content=s[r].content+s[r+1].content:(r!==n&&(s[n]=s[r]),n++);r!==n&&(s.length=n)},at=Xe,wr=R.isWhiteSpace,Er=R.isPunctChar,Cr=R.isMdAsciiPunct;function fe(t,e,r,n){this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.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}fe.prototype.pushPending=function(){var t=new at("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},fe.prototype.push=function(t,e,r){this.pending&&this.pushPending();var n=new at(t,e,r),o=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(o),n},fe.prototype.scanDelims=function(t,e){var r=t,n,o,s,c,a,i,l,p,d,f=!0,h=!0,g=this.posMax,b=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;r<g&&this.src.charCodeAt(r)===b;)r++;return s=r-t,o=r<g?this.src.charCodeAt(r):32,l=Cr(n)||Er(String.fromCharCode(n)),d=Cr(o)||Er(String.fromCharCode(o)),i=wr(n),p=wr(o),p?f=!1:d&&(i||l||(f=!1)),i?h=!1:l&&(p||d||(h=!1)),e?(c=f,a=h):(c=f&&(!h||l),a=h&&(!f||d)),{can_open:c,can_close:a,length:s}},fe.prototype.Token=at;var Hs=fe,Ar=Qe,it=[["text",bs],["linkify",xs],["newline",ys],["escape",ws],["backticks",Es],["strikethrough",Le.tokenize],["emphasis",Be.tokenize],["link",As],["image",Ds],["autolink",Rs],["html_inline",Vs],["entity",Us]],lt=[["balance_pairs",Ps],["strikethrough",Le.postProcess],["emphasis",Be.postProcess],["fragments_join",$s]];function he(){var t;for(this.ruler=new Ar,t=0;t<it.length;t++)this.ruler.push(it[t][0],it[t][1]);for(this.ruler2=new Ar,t=0;t<lt.length;t++)this.ruler2.push(lt[t][0],lt[t][1])}he.prototype.skipToken=function(t){var e,r,n=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,a=t.cache;if(typeof a[n]<"u"){t.pos=a[n];return}if(t.level<c){for(r=0;r<s;r++)if(t.level++,e=o[r](t,!0),t.level--,e){if(n>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}else t.pos=t.posMax;e||t.pos++,a[n]=t.pos},he.prototype.tokenize=function(t){for(var e,r,n,o=this.ruler.getRules(""),s=o.length,c=t.posMax,a=t.md.options.maxNesting;t.pos<c;){if(n=t.pos,t.level<a){for(r=0;r<s;r++)if(e=o[r](t,!1),e){if(n>=t.pos)throw new Error("inline rule didn't increment state.pos");break}}if(e){if(t.pos>=c)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},he.prototype.parse=function(t,e,r,n){var o,s,c,a=new this.State(t,e,r,n);for(this.tokenize(a),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](a)},he.prototype.State=Hs;var js=he,ut,qr;function Gs(){return qr||(qr=1,ut=function(t){var e={};t=t||{},e.src_Any=Jt().source,e.src_Cc=Kt().source,e.src_Z=Xt().source,e.src_P=Ze.source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><|]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.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]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!"+(t["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),ut}function pt(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t}function Ne(t){return Object.prototype.toString.call(t)}function Zs(t){return Ne(t)==="[object String]"}function Js(t){return Ne(t)==="[object Object]"}function Ws(t){return Ne(t)==="[object RegExp]"}function Dr(t){return Ne(t)==="[object Function]"}function Ks(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Sr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Ys(t){return Object.keys(t||{}).reduce(function(e,r){return e||Sr.hasOwnProperty(r)},!1)}var Qs={"http:":{validate:function(t,e,r){var n=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var n=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var n=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},Xs="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]",ec="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function tc(t){t.__index__=-1,t.__text_cache__=""}function rc(t){return function(e,r){var n=e.slice(r);return t.test(n)?n.match(t)[0].length:0}}function Tr(){return function(t,e){e.normalize(t)}}function Fe(t){var e=t.re=Gs()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(Xs),r.push(e.src_xn),e.src_tlds=r.join("|");function n(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(a,i){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+i)}Object.keys(t.__schemas__).forEach(function(a){var i=t.__schemas__[a];if(i!==null){var l={validate:null,link:null};if(t.__compiled__[a]=l,Js(i)){Ws(i.validate)?l.validate=rc(i.validate):Dr(i.validate)?l.validate=i.validate:s(a,i),Dr(i.normalize)?l.normalize=i.normalize:i.normalize?s(a,i):l.normalize=Tr();return}if(Zs(i)){o.push(a);return}s(a,i)}}),o.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:Tr()};var c=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(Ks).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.schema_at_start=RegExp("^"+t.re.schema_search.source,"i"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),tc(t)}function nc(t,e){var r=t.__index__,n=t.__last_index__,o=t.__text_cache__.slice(r,n);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=o,this.text=o,this.url=o}function dt(t,e){var r=new nc(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function O(t,e){if(!(this instanceof O))return new O(t,e);e||Ys(t)&&(e=t,t={}),this.__opts__=pt({},Sr,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=pt({},Qs,t),this.__compiled__={},this.__tlds__=ec,this.__tlds_replaced__=!1,this.re={},Fe(this)}O.prototype.add=function(e,r){return this.__schemas__[e]=r,Fe(this),this},O.prototype.set=function(e){return this.__opts__=pt(this.__opts__,e),this},O.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,n,o,s,c,a,i,l,p;if(this.re.schema_test.test(e)){for(i=this.re.schema_search,i.lastIndex=0;(r=i.exec(e))!==null;)if(s=this.testSchemaAt(e,r[2],i.lastIndex),s){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+s;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(c=n.index+n[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=e.indexOf("@"),p>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,a=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=a))),this.__index__>=0},O.prototype.pretest=function(e){return this.re.pretest.test(e)},O.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0},O.prototype.match=function(e){var r=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(dt(this,r)),r=this.__last_index__);for(var o=r?e.slice(r):e;this.test(o);)n.push(dt(this,r)),o=o.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null},O.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var r=this.re.schema_at_start.exec(e);if(!r)return null;var n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,dt(this,0)):null},O.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,o,s){return n!==s[o-1]}).reverse(),Fe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Fe(this),this)},O.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},O.prototype.onCompile=function(){};var oc=O;const ue=2147483647,J=36,ft=1,me=26,sc=38,cc=700,Rr=72,Lr=128,Br="-",ac=/^xn--/,ic=/[^\0-\x7F]/,lc=/[\x2E\u3002\uFF0E\uFF61]/g,uc={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ht=J-ft,W=Math.floor,mt=String.fromCharCode;function Y(t){throw new RangeError(uc[t])}function pc(t,e){const r=[];let n=t.length;for(;n--;)r[n]=e(t[n]);return r}function Nr(t,e){const r=t.split("@");let n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(lc,".");const o=t.split("."),s=pc(o,e).join(".");return n+s}function gt(t){const e=[];let r=0;const n=t.length;for(;r<n;){const o=t.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const s=t.charCodeAt(r++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),r--)}else e.push(o)}return e}const Fr=t=>String.fromCodePoint(...t),dc=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:J},Vr=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Ir=function(t,e,r){let n=0;for(t=r?W(t/cc):t>>1,t+=W(t/e);t>ht*me>>1;n+=J)t=W(t/ht);return W(n+(ht+1)*t/(t+sc))},bt=function(t){const e=[],r=t.length;let n=0,o=Lr,s=Rr,c=t.lastIndexOf(Br);c<0&&(c=0);for(let a=0;a<c;++a)t.charCodeAt(a)>=128&&Y("not-basic"),e.push(t.charCodeAt(a));for(let a=c>0?c+1:0;a<r;){const i=n;for(let p=1,d=J;;d+=J){a>=r&&Y("invalid-input");const f=dc(t.charCodeAt(a++));f>=J&&Y("invalid-input"),f>W((ue-n)/p)&&Y("overflow"),n+=f*p;const h=d<=s?ft:d>=s+me?me:d-s;if(f<h)break;const g=J-h;p>W(ue/g)&&Y("overflow"),p*=g}const l=e.length+1;s=Ir(n-i,l,i==0),W(n/l)>ue-o&&Y("overflow"),o+=W(n/l),n%=l,e.splice(n++,0,o)}return String.fromCodePoint(...e)},kt=function(t){const e=[];t=gt(t);const r=t.length;let n=Lr,o=0,s=Rr;for(const i of t)i<128&&e.push(mt(i));const c=e.length;let a=c;for(c&&e.push(Br);a<r;){let i=ue;for(const p of t)p>=n&&p<i&&(i=p);const l=a+1;i-n>W((ue-o)/l)&&Y("overflow"),o+=(i-n)*l,n=i;for(const p of t)if(p<n&&++o>ue&&Y("overflow"),p===n){let d=o;for(let f=J;;f+=J){const h=f<=s?ft:f>=s+me?me:f-s;if(d<h)break;const g=d-h,b=J-h;e.push(mt(Vr(h+g%b,0))),d=W(g/b)}e.push(mt(Vr(d,0))),s=Ir(o,l,a===c),o=0,++a}++o,++n}return e.join("")},Mr=function(t){return Nr(t,function(e){return ac.test(e)?bt(e.slice(4).toLowerCase()):e})},Or=function(t){return Nr(t,function(e){return ic.test(e)?"xn--"+kt(e):e})},fc=Un(Object.freeze(Object.defineProperty({__proto__:null,decode:bt,default:{version:"2.3.1",ucs2:{decode:gt,encode:Fr},decode:bt,encode:kt,toASCII:Or,toUnicode:Mr},encode:kt,toASCII:Or,toUnicode:Mr,ucs2decode:gt,ucs2encode:Fr},Symbol.toStringTag,{value:"Module"})));var hc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},mc={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"]}}},gc={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"]}}},ge=R,bc=Ce,kc=po,xc=Vo,vc=ms,yc=js,_c=oc,re=ce,zr=fc,wc={default:hc,zero:mc,commonmark:gc},Ec=/^(vbscript|javascript|file|data):/,Cc=/^data:image\/(gif|png|jpeg|webp);/;function Ac(t){var e=t.trim().toLowerCase();return Ec.test(e)?!!Cc.test(e):!0}var Ur=["http:","https:","mailto:"];function qc(t){var e=re.parse(t,!0);if(e.hostname&&(!e.protocol||Ur.indexOf(e.protocol)>=0))try{e.hostname=zr.toASCII(e.hostname)}catch{}return re.encode(re.format(e))}function Dc(t){var e=re.parse(t,!0);if(e.hostname&&(!e.protocol||Ur.indexOf(e.protocol)>=0))try{e.hostname=zr.toUnicode(e.hostname)}catch{}return re.decode(re.format(e),re.decode.defaultChars+"%")}function P(t,e){if(!(this instanceof P))return new P(t,e);e||ge.isString(t)||(e=t||{},t="default"),this.inline=new yc,this.block=new vc,this.core=new xc,this.renderer=new kc,this.linkify=new _c,this.validateLink=Ac,this.normalizeLink=qc,this.normalizeLinkText=Dc,this.utils=ge,this.helpers=ge.assign({},bc),this.options={},this.configure(t),e&&this.set(e)}P.prototype.set=function(t){return ge.assign(this.options,t),this},P.prototype.configure=function(t){var e=this,r;if(ge.isString(t)&&(r=t,t=wc[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this},P.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){r=r.concat(this[o].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var n=t.filter(function(o){return r.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this},P.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){r=r.concat(this[o].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var n=t.filter(function(o){return r.indexOf(o)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this},P.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},P.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens},P.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},P.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens},P.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Sc=P,Tc=Sc;const Rc=zn(Tc),Lc=u.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup(t){const e=u.ref(new Rc(t.options??{}));for(const n of t.plugins??[])e.value.use(n);const r=u.computed(()=>e.value.render(t.source));return()=>u.h("div",{innerHTML:r.value})}}),Bc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 31.8 512 448.18"};function Nc(t,e){return u.openBlock(),u.createElementBlock("svg",Bc,e[0]||(e[0]=[u.createElementVNode("path",{d:"M323.8 477.2c-38.2 10.9-78.1-11.2-89-49.4l-5.7-20c-3.7-13-10.4-25-19.5-35l-51.3-56.4c-8.9-9.8-8.2-25 1.6-33.9s25-8.2 33.9 1.6l51.3 56.4c14.1 15.5 24.4 34 30.1 54.1l5.7 20c3.6 12.7 16.9 20.1 29.7 16.5s20.1-16.9 16.5-29.7l-5.7-20c-5.7-19.9-14.7-38.7-26.6-55.5-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13H448c8.8 0 16-7.2 16-16 0-6.8-4.3-12.7-10.4-15-7.4-2.8-13-9-14.9-16.7s.1-15.8 5.3-21.7c2.5-2.8 4-6.5 4-10.6 0-7.8-5.6-14.3-13-15.7-8.2-1.6-15.1-7.3-18-15.2s-1.6-16.7 3.6-23.3c2.1-2.7 3.4-6.1 3.4-9.9 0-6.7-4.2-12.6-10.2-14.9-11.5-4.5-17.7-16.9-14.4-28.8.4-1.3.6-2.8.6-4.3 0-8.8-7.2-16-16-16h-97.5c-12.6 0-25 3.7-35.5 10.7l-61.7 41.1c-11 7.4-25.9 4.4-33.3-6.7s-4.4-25.9 6.7-33.3l61.7-41.1c18.4-12.3 40-18.8 62.1-18.8l97.5.2c34.7 0 62.9 27.6 64 62 14.6 11.7 24 29.7 24 50 0 4.5-.5 8.8-1.3 13 15.4 11.7 25.3 30.2 25.3 51 0 6.5-1 12.8-2.8 18.7 11.6 11.6 18.8 27.6 18.8 45.3 0 35.3-28.6 64-64 64h-92.3c4.7 10.4 8.7 21.2 11.8 32.2l5.7 20c10.9 38.2-11.2 78.1-49.4 89M32 384c-17.7 0-32-14.3-32-32V128c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v224c0 17.7-14.3 32-32 32z"},null,-1)]))}const Fc={render:Nc},Vc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 32.02 512 448.18"};function Ic(t,e){return u.openBlock(),u.createElementBlock("svg",Vc,e[0]||(e[0]=[u.createElementVNode("path",{d:"M323.8 34.8c-38.2-10.9-78.1 11.2-89 49.4l-5.7 20c-3.7 13-10.4 25-19.5 35l-51.3 56.4c-8.9 9.8-8.2 25 1.6 33.9s25 8.2 33.9-1.6l51.3-56.4c14.1-15.5 24.4-34 30.1-54.1l5.7-20c3.6-12.7 16.9-20.1 29.7-16.5s20.1 16.9 16.5 29.7l-5.7 20c-5.7 19.9-14.7 38.7-26.6 55.5-5.2 7.3-5.8 16.9-1.7 24.9s12.3 13 21.3 13H448c8.8 0 16 7.2 16 16 0 6.8-4.3 12.7-10.4 15-7.4 2.8-13 9-14.9 16.7s.1 15.8 5.3 21.7c2.5 2.8 4 6.5 4 10.6 0 7.8-5.6 14.3-13 15.7-8.2 1.6-15.1 7.3-18 15.2s-1.6 16.7 3.6 23.3c2.1 2.7 3.4 6.1 3.4 9.9 0 6.7-4.2 12.6-10.2 14.9-11.5 4.5-17.7 16.9-14.4 28.8.4 1.3.6 2.8.6 4.3 0 8.8-7.2 16-16 16h-97.5c-12.6 0-25-3.7-35.5-10.7l-61.7-41.1c-11-7.4-25.9-4.4-33.3 6.7s-4.4 25.9 6.7 33.3l61.7 41.1c18.4 12.3 40 18.8 62.1 18.8H384c34.7 0 62.9-27.6 64-62 14.6-11.7 24-29.7 24-50 0-4.5-.5-8.8-1.3-13 15.4-11.7 25.3-30.2 25.3-51 0-6.5-1-12.8-2.8-18.7 11.6-11.8 18.8-27.8 18.8-45.5 0-35.3-28.6-64-64-64h-92.3c4.7-10.4 8.7-21.2 11.8-32.2l5.7-20c10.9-38.2-11.2-78.1-49.4-89M32 192c-17.7 0-32 14.3-32 32v224c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32z"},null,-1)]))}const Mc={render:Ic},Pr="infoAuth";function $r(t,e){return function(){return t.apply(e,arguments)}}const{toString:Oc}=Object.prototype,{getPrototypeOf:xt}=Object,Ve=(t=>e=>{const r=Oc.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),j=t=>(t=t.toLowerCase(),e=>Ve(e)===t),Ie=t=>e=>typeof e===t,{isArray:pe}=Array,be=Ie("undefined");function zc(t){return t!==null&&!be(t)&&t.constructor!==null&&!be(t.constructor)&&z(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Hr=j("ArrayBuffer");function Uc(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Hr(t.buffer),e}const Pc=Ie("string"),z=Ie("function"),jr=Ie("number"),Me=t=>t!==null&&typeof t=="object",$c=t=>t===!0||t===!1,Oe=t=>{if(Ve(t)!=="object")return!1;const e=xt(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},Hc=j("Date"),jc=j("File"),Gc=j("Blob"),Zc=j("FileList"),Jc=t=>Me(t)&&z(t.pipe),Wc=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||z(t.append)&&((e=Ve(t))==="formdata"||e==="object"&&z(t.toString)&&t.toString()==="[object FormData]"))},Kc=j("URLSearchParams"),[Yc,Qc,Xc,ea]=["ReadableStream","Request","Response","Headers"].map(j),ta=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ke(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),pe(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{const s=r?Object.getOwnPropertyNames(t):Object.keys(t),c=s.length;let a;for(n=0;n<c;n++)a=s[n],e.call(null,t[a],a,t)}}function Gr(t,e){e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const ne=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zr=t=>!be(t)&&t!==ne;function vt(){const{caseless:t}=Zr(this)&&this||{},e={},r=(n,o)=>{const s=t&&Gr(e,o)||o;Oe(e[s])&&Oe(n)?e[s]=vt(e[s],n):Oe(n)?e[s]=vt({},n):pe(n)?e[s]=n.slice():e[s]=n};for(let n=0,o=arguments.length;n<o;n++)arguments[n]&&ke(arguments[n],r);return e}const ra=(t,e,r,{allOwnKeys:n}={})=>(ke(e,(o,s)=>{r&&z(o)?t[s]=$r(o,r):t[s]=o},{allOwnKeys:n}),t),na=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),oa=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},sa=(t,e,r,n)=>{let o,s,c;const a={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)c=o[s],(!n||n(c,t,e))&&!a[c]&&(e[c]=t[c],a[c]=!0);t=r!==!1&&xt(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},ca=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},aa=t=>{if(!t)return null;if(pe(t))return t;let e=t.length;if(!jr(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},ia=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&xt(Uint8Array)),la=(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=n.next())&&!o.done;){const s=o.value;e.call(t,s[0],s[1])}},ua=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},pa=j("HTMLFormElement"),da=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Jr=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),fa=j("RegExp"),Wr=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};ke(r,(o,s)=>{let c;(c=e(o,s,t))!==!1&&(n[s]=c||o)}),Object.defineProperties(t,n)},ha=t=>{Wr(t,(e,r)=>{if(z(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(z(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},ma=(t,e)=>{const r={},n=o=>{o.forEach(s=>{r[s]=!0})};return pe(t)?n(t):n(String(t).split(e)),r},ga=()=>{},ba=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,yt="abcdefghijklmnopqrstuvwxyz",Kr="0123456789",Yr={DIGIT:Kr,ALPHA:yt,ALPHA_DIGIT:yt+yt.toUpperCase()+Kr},ka=(t=16,e=Yr.ALPHA_DIGIT)=>{let r="";const{length:n}=e;for(;t--;)r+=e[Math.random()*n|0];return r};function xa(t){return!!(t&&z(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const va=t=>{const e=new Array(10),r=(n,o)=>{if(Me(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[o]=n;const s=pe(n)?[]:{};return ke(n,(c,a)=>{const i=r(c,o+1);!be(i)&&(s[a]=i)}),e[o]=void 0,s}}return n};return r(t,0)},ya=j("AsyncFunction"),_a=t=>t&&(Me(t)||z(t))&&z(t.then)&&z(t.catch),Qr=((t,e)=>t?setImmediate:e?((r,n)=>(ne.addEventListener("message",({source:o,data:s})=>{o===ne&&s===r&&n.length&&n.shift()()},!1),o=>{n.push(o),ne.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",z(ne.postMessage)),wa=typeof queueMicrotask<"u"?queueMicrotask.bind(ne):typeof process<"u"&&process.nextTick||Qr,m={isArray:pe,isArrayBuffer:Hr,isBuffer:zc,isFormData:Wc,isArrayBufferView:Uc,isString:Pc,isNumber:jr,isBoolean:$c,isObject:Me,isPlainObject:Oe,isReadableStream:Yc,isRequest:Qc,isResponse:Xc,isHeaders:ea,isUndefined:be,isDate:Hc,isFile:jc,isBlob:Gc,isRegExp:fa,isFunction:z,isStream:Jc,isURLSearchParams:Kc,isTypedArray:ia,isFileList:Zc,forEach:ke,merge:vt,extend:ra,trim:ta,stripBOM:na,inherits:oa,toFlatObject:sa,kindOf:Ve,kindOfTest:j,endsWith:ca,toArray:aa,forEachEntry:la,matchAll:ua,isHTMLForm:pa,hasOwnProperty:Jr,hasOwnProp:Jr,reduceDescriptors:Wr,freezeMethods:ha,toObjectSet:ma,toCamelCase:da,noop:ga,toFiniteNumber:ba,findKey:Gr,global:ne,isContextDefined:Zr,ALPHABET:Yr,generateString:ka,isSpecCompliantForm:xa,toJSONObject:va,isAsyncFn:ya,isThenable:_a,setImmediate:Qr,asap:wa};function D(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o,this.status=o.status?o.status:null)}m.inherits(D,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:m.toJSONObject(this.config),code:this.code,status:this.status}}});const Xr=D.prototype,en={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{en[t]={value:t}}),Object.defineProperties(D,en),Object.defineProperty(Xr,"isAxiosError",{value:!0}),D.from=(t,e,r,n,o,s)=>{const c=Object.create(Xr);return m.toFlatObject(t,c,function(i){return i!==Error.prototype},a=>a!=="isAxiosError"),D.call(c,t.message,e,r,n,o),c.cause=t,c.name=t.name,s&&Object.assign(c,s),c};const Ea=null;function _t(t){return m.isPlainObject(t)||m.isArray(t)}function tn(t){return m.endsWith(t,"[]")?t.slice(0,-2):t}function rn(t,e,r){return t?t.concat(e).map(function(o,s){return o=tn(o),!r&&s?"["+o+"]":o}).join(r?".":""):e}function Ca(t){return m.isArray(t)&&!t.some(_t)}const Aa=m.toFlatObject(m,{},null,function(e){return/^is[A-Z]/.test(e)});function ze(t,e,r){if(!m.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=m.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,k){return!m.isUndefined(k[b])});const n=r.metaTokens,o=r.visitor||p,s=r.dots,c=r.indexes,i=(r.Blob||typeof Blob<"u"&&Blob)&&m.isSpecCompliantForm(e);if(!m.isFunction(o))throw new TypeError("visitor must be a function");function l(g){if(g===null)return"";if(m.isDate(g))return g.toISOString();if(!i&&m.isBlob(g))throw new D("Blob is not supported. Use a Buffer instead.");return m.isArrayBuffer(g)||m.isTypedArray(g)?i&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,b,k){let y=g;if(g&&!k&&typeof g=="object"){if(m.endsWith(b,"{}"))b=n?b:b.slice(0,-2),g=JSON.stringify(g);else if(m.isArray(g)&&Ca(g)||(m.isFileList(g)||m.endsWith(b,"[]"))&&(y=m.toArray(g)))return b=tn(b),y.forEach(function(E,q){!(m.isUndefined(E)||E===null)&&e.append(c===!0?rn([b],q,s):c===null?b:b+"[]",l(E))}),!1}return _t(g)?!0:(e.append(rn(k,b,s),l(g)),!1)}const d=[],f=Object.assign(Aa,{defaultVisitor:p,convertValue:l,isVisitable:_t});function h(g,b){if(!m.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+b.join("."));d.push(g),m.forEach(g,function(y,x){(!(m.isUndefined(y)||y===null)&&o.call(e,y,m.isString(x)?x.trim():x,b,f))===!0&&h(y,b?b.concat(x):[x])}),d.pop()}}if(!m.isObject(t))throw new TypeError("data must be an object");return h(t),e}function nn(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function wt(t,e){this._pairs=[],t&&ze(t,this,e)}const on=wt.prototype;on.append=function(e,r){this._pairs.push([e,r])},on.toString=function(e){const r=e?function(n){return e.call(this,n,nn)}:nn;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function qa(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function sn(t,e,r){if(!e)return t;const n=r&&r.encode||qa,o=r&&r.serialize;let s;if(o?s=o(e,r):s=m.isURLSearchParams(e)?e.toString():new wt(e,r).toString(n),s){const c=t.indexOf("#");c!==-1&&(t=t.slice(0,c)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class cn{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){m.forEach(this.handlers,function(n){n!==null&&e(n)})}}const an={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Da={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:wt,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Et=typeof window<"u"&&typeof document<"u",Ct=typeof navigator=="object"&&navigator||void 0,Sa=Et&&(!Ct||["ReactNative","NativeScript","NS"].indexOf(Ct.product)<0),Ta=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Ra=Et&&window.location.href||"http://localhost",V={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Et,hasStandardBrowserEnv:Sa,hasStandardBrowserWebWorkerEnv:Ta,navigator:Ct,origin:Ra},Symbol.toStringTag,{value:"Module"})),...Da};function La(t,e){return ze(t,new V.classes.URLSearchParams,Object.assign({visitor:function(r,n,o,s){return V.isNode&&m.isBuffer(r)?(this.append(n,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},e))}function Ba(t){return m.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Na(t){const e={},r=Object.keys(t);let n;const o=r.length;let s;for(n=0;n<o;n++)s=r[n],e[s]=t[s];return e}function ln(t){function e(r,n,o,s){let c=r[s++];if(c==="__proto__")return!0;const a=Number.isFinite(+c),i=s>=r.length;return c=!c&&m.isArray(o)?o.length:c,i?(m.hasOwnProp(o,c)?o[c]=[o[c],n]:o[c]=n,!a):((!o[c]||!m.isObject(o[c]))&&(o[c]=[]),e(r,n,o[c],s)&&m.isArray(o[c])&&(o[c]=Na(o[c])),!a)}if(m.isFormData(t)&&m.isFunction(t.entries)){const r={};return m.forEachEntry(t,(n,o)=>{e(Ba(n),o,r,0)}),r}return null}function Fa(t,e,r){if(m.isString(t))try{return(e||JSON.parse)(t),m.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const xe={transitional:an,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,s=m.isObject(e);if(s&&m.isHTMLForm(e)&&(e=new FormData(e)),m.isFormData(e))return o?JSON.stringify(ln(e)):e;if(m.isArrayBuffer(e)||m.isBuffer(e)||m.isStream(e)||m.isFile(e)||m.isBlob(e)||m.isReadableStream(e))return e;if(m.isArrayBufferView(e))return e.buffer;if(m.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return La(e,this.formSerializer).toString();if((a=m.isFileList(e))||n.indexOf("multipart/form-data")>-1){const i=this.env&&this.env.FormData;return ze(a?{"files[]":e}:e,i&&new i,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Fa(e)):e}],transformResponse:[function(e){const r=this.transitional||xe.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(m.isResponse(e)||m.isReadableStream(e))return e;if(e&&m.isString(e)&&(n&&!this.responseType||o)){const c=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e)}catch(a){if(c)throw a.name==="SyntaxError"?D.from(a,D.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:V.classes.FormData,Blob:V.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};m.forEach(["delete","get","head","post","put","patch"],t=>{xe.headers[t]={}});const Va=m.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ia=t=>{const e={};let r,n,o;return t&&t.split(`
|
19
|
+
`).forEach(function(c){o=c.indexOf(":"),r=c.substring(0,o).trim().toLowerCase(),n=c.substring(o+1).trim(),!(!r||e[r]&&Va[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},un=Symbol("internals");function ve(t){return t&&String(t).trim().toLowerCase()}function Ue(t){return t===!1||t==null?t:m.isArray(t)?t.map(Ue):String(t)}function Ma(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Oa=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function At(t,e,r,n,o){if(m.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!m.isString(e)){if(m.isString(n))return e.indexOf(n)!==-1;if(m.isRegExp(n))return n.test(e)}}function za(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Ua(t,e){const r=m.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,s,c){return this[n].call(this,e,o,s,c)},configurable:!0})})}class I{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function s(a,i,l){const p=ve(i);if(!p)throw new Error("header name must be a non-empty string");const d=m.findKey(o,p);(!d||o[d]===void 0||l===!0||l===void 0&&o[d]!==!1)&&(o[d||i]=Ue(a))}const c=(a,i)=>m.forEach(a,(l,p)=>s(l,p,i));if(m.isPlainObject(e)||e instanceof this.constructor)c(e,r);else if(m.isString(e)&&(e=e.trim())&&!Oa(e))c(Ia(e),r);else if(m.isHeaders(e))for(const[a,i]of e.entries())s(i,a,n);else e!=null&&s(r,e,n);return this}get(e,r){if(e=ve(e),e){const n=m.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return Ma(o);if(m.isFunction(r))return r.call(this,o,n);if(m.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=ve(e),e){const n=m.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||At(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function s(c){if(c=ve(c),c){const a=m.findKey(n,c);a&&(!r||At(n,n[a],a,r))&&(delete n[a],o=!0)}}return m.isArray(e)?e.forEach(s):s(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const s=r[n];(!e||At(this,this[s],s,e,!0))&&(delete this[s],o=!0)}return o}normalize(e){const r=this,n={};return m.forEach(this,(o,s)=>{const c=m.findKey(n,s);if(c){r[c]=Ue(o),delete r[s];return}const a=e?za(s):String(s).trim();a!==s&&delete r[s],r[a]=Ue(o),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return m.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&m.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
20
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[un]=this[un]={accessors:{}}).accessors,o=this.prototype;function s(c){const a=ve(c);n[a]||(Ua(o,c),n[a]=!0)}return m.isArray(e)?e.forEach(s):s(e),this}}I.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),m.reduceDescriptors(I.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),m.freezeMethods(I);function qt(t,e){const r=this||xe,n=e||r,o=I.from(n.headers);let s=n.data;return m.forEach(t,function(a){s=a.call(r,s,o.normalize(),e?e.status:void 0)}),o.normalize(),s}function pn(t){return!!(t&&t.__CANCEL__)}function de(t,e,r){D.call(this,t??"canceled",D.ERR_CANCELED,e,r),this.name="CanceledError"}m.inherits(de,D,{__CANCEL__:!0});function dn(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new D("Request failed with status code "+r.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Pa(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function $a(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,s=0,c;return e=e!==void 0?e:1e3,function(i){const l=Date.now(),p=n[s];c||(c=l),r[o]=i,n[o]=l;let d=s,f=0;for(;d!==o;)f+=r[d++],d=d%t;if(o=(o+1)%t,o===s&&(s=(s+1)%t),l-c<e)return;const h=p&&l-p;return h?Math.round(f*1e3/h):void 0}}function Ha(t,e){let r=0,n=1e3/e,o,s;const c=(l,p=Date.now())=>{r=p,o=null,s&&(clearTimeout(s),s=null),t.apply(null,l)};return[(...l)=>{const p=Date.now(),d=p-r;d>=n?c(l,p):(o=l,s||(s=setTimeout(()=>{s=null,c(o)},n-d)))},()=>o&&c(o)]}const Pe=(t,e,r=3)=>{let n=0;const o=$a(50,250);return Ha(s=>{const c=s.loaded,a=s.lengthComputable?s.total:void 0,i=c-n,l=o(i),p=c<=a;n=c;const d={loaded:c,total:a,progress:a?c/a:void 0,bytes:i,rate:l||void 0,estimated:l&&a&&p?(a-c)/l:void 0,event:s,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(d)},r)},fn=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},hn=t=>(...e)=>m.asap(()=>t(...e)),ja=V.hasStandardBrowserEnv?function(){const e=V.navigator&&/(msie|trident)/i.test(V.navigator.userAgent),r=document.createElement("a");let n;function o(s){let c=s;return e&&(r.setAttribute("href",c),c=r.href),r.setAttribute("href",c),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=o(window.location.href),function(c){const a=m.isString(c)?o(c):c;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),Ga=V.hasStandardBrowserEnv?{write(t,e,r,n,o,s){const c=[t+"="+encodeURIComponent(e)];m.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),m.isString(n)&&c.push("path="+n),m.isString(o)&&c.push("domain="+o),s===!0&&c.push("secure"),document.cookie=c.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Za(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Ja(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function mn(t,e){return t&&!Za(e)?Ja(t,e):e}const gn=t=>t instanceof I?{...t}:t;function oe(t,e){e=e||{};const r={};function n(l,p,d){return m.isPlainObject(l)&&m.isPlainObject(p)?m.merge.call({caseless:d},l,p):m.isPlainObject(p)?m.merge({},p):m.isArray(p)?p.slice():p}function o(l,p,d){if(m.isUndefined(p)){if(!m.isUndefined(l))return n(void 0,l,d)}else return n(l,p,d)}function s(l,p){if(!m.isUndefined(p))return n(void 0,p)}function c(l,p){if(m.isUndefined(p)){if(!m.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}function a(l,p,d){if(d in e)return n(l,p);if(d in t)return n(void 0,l)}const i={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:a,headers:(l,p)=>o(gn(l),gn(p),!0)};return m.forEach(Object.keys(Object.assign({},t,e)),function(p){const d=i[p]||o,f=d(t[p],e[p],p);m.isUndefined(f)&&d!==a||(r[p]=f)}),r}const bn=t=>{const e=oe({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:s,headers:c,auth:a}=e;e.headers=c=I.from(c),e.url=sn(mn(e.baseURL,e.url),t.params,t.paramsSerializer),a&&c.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let i;if(m.isFormData(r)){if(V.hasStandardBrowserEnv||V.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((i=c.getContentType())!==!1){const[l,...p]=i?i.split(";").map(d=>d.trim()).filter(Boolean):[];c.setContentType([l||"multipart/form-data",...p].join("; "))}}if(V.hasStandardBrowserEnv&&(n&&m.isFunction(n)&&(n=n(e)),n||n!==!1&&ja(e.url))){const l=o&&s&&Ga.read(s);l&&c.set(o,l)}return e},Wa=typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(r,n){const o=bn(t);let s=o.data;const c=I.from(o.headers).normalize();let{responseType:a,onUploadProgress:i,onDownloadProgress:l}=o,p,d,f,h,g;function b(){h&&h(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function y(){if(!k)return;const E=I.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),A={data:!a||a==="text"||a==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:t,request:k};dn(function(S){r(S),b()},function(S){n(S),b()},A),k=null}"onloadend"in k?k.onloadend=y:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(y)},k.onabort=function(){k&&(n(new D("Request aborted",D.ECONNABORTED,t,k)),k=null)},k.onerror=function(){n(new D("Network Error",D.ERR_NETWORK,t,k)),k=null},k.ontimeout=function(){let q=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||an;o.timeoutErrorMessage&&(q=o.timeoutErrorMessage),n(new D(q,A.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,t,k)),k=null},s===void 0&&c.setContentType(null),"setRequestHeader"in k&&m.forEach(c.toJSON(),function(q,A){k.setRequestHeader(A,q)}),m.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),a&&a!=="json"&&(k.responseType=o.responseType),l&&([f,g]=Pe(l,!0),k.addEventListener("progress",f)),i&&k.upload&&([d,h]=Pe(i),k.upload.addEventListener("progress",d),k.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(p=E=>{k&&(n(!E||E.type?new de(null,t,k):E),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const x=Pa(o.url);if(x&&V.protocols.indexOf(x)===-1){n(new D("Unsupported protocol "+x+":",D.ERR_BAD_REQUEST,t));return}k.send(s||null)})},Ka=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const s=function(l){if(!o){o=!0,a();const p=l instanceof Error?l:this.reason;n.abort(p instanceof D?p:new de(p instanceof Error?p.message:p))}};let c=e&&setTimeout(()=>{c=null,s(new D(`timeout ${e} of ms exceeded`,D.ETIMEDOUT))},e);const a=()=>{t&&(c&&clearTimeout(c),c=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),t=null)};t.forEach(l=>l.addEventListener("abort",s));const{signal:i}=n;return i.unsubscribe=()=>m.asap(a),i}},Ya=function*(t,e){let r=t.byteLength;if(!e||r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},Qa=async function*(t,e){for await(const r of Xa(t))yield*Ya(r,e)},Xa=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},kn=(t,e,r,n)=>{const o=Qa(t,e);let s=0,c,a=i=>{c||(c=!0,n&&n(i))};return new ReadableStream({async pull(i){try{const{done:l,value:p}=await o.next();if(l){a(),i.close();return}let d=p.byteLength;if(r){let f=s+=d;r(f)}i.enqueue(new Uint8Array(p))}catch(l){throw a(l),l}},cancel(i){return a(i),o.return()}},{highWaterMark:2})},$e=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",xn=$e&&typeof ReadableStream=="function",ei=$e&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),vn=(t,...e)=>{try{return!!t(...e)}catch{return!1}},ti=xn&&vn(()=>{let t=!1;const e=new Request(V.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),yn=64*1024,Dt=xn&&vn(()=>m.isReadableStream(new Response("").body)),He={stream:Dt&&(t=>t.body)};$e&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!He[e]&&(He[e]=m.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new D(`Response type '${e}' is not supported`,D.ERR_NOT_SUPPORT,n)})})})(new Response);const ri=async t=>{if(t==null)return 0;if(m.isBlob(t))return t.size;if(m.isSpecCompliantForm(t))return(await new Request(V.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(m.isArrayBufferView(t)||m.isArrayBuffer(t))return t.byteLength;if(m.isURLSearchParams(t)&&(t=t+""),m.isString(t))return(await ei(t)).byteLength},ni=async(t,e)=>{const r=m.toFiniteNumber(t.getContentLength());return r??ri(e)},St={http:Ea,xhr:Wa,fetch:$e&&(async t=>{let{url:e,method:r,data:n,signal:o,cancelToken:s,timeout:c,onDownloadProgress:a,onUploadProgress:i,responseType:l,headers:p,withCredentials:d="same-origin",fetchOptions:f}=bn(t);l=l?(l+"").toLowerCase():"text";let h=Ka([o,s&&s.toAbortSignal()],c),g;const b=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let k;try{if(i&&ti&&r!=="get"&&r!=="head"&&(k=await ni(p,n))!==0){let A=new Request(e,{method:"POST",body:n,duplex:"half"}),_;if(m.isFormData(n)&&(_=A.headers.get("content-type"))&&p.setContentType(_),A.body){const[S,L]=fn(k,Pe(hn(i)));n=kn(A.body,yn,S,L)}}m.isString(d)||(d=d?"include":"omit");const y="credentials"in Request.prototype;g=new Request(e,{...f,signal:h,method:r.toUpperCase(),headers:p.normalize().toJSON(),body:n,duplex:"half",credentials:y?d:void 0});let x=await fetch(g);const E=Dt&&(l==="stream"||l==="response");if(Dt&&(a||E&&b)){const A={};["status","statusText","headers"].forEach(M=>{A[M]=x[M]});const _=m.toFiniteNumber(x.headers.get("content-length")),[S,L]=a&&fn(_,Pe(hn(a),!0))||[];x=new Response(kn(x.body,yn,S,()=>{L&&L(),b&&b()}),A)}l=l||"text";let q=await He[m.findKey(He,l)||"text"](x,t);return!E&&b&&b(),await new Promise((A,_)=>{dn(A,_,{data:q,headers:I.from(x.headers),status:x.status,statusText:x.statusText,config:t,request:g})})}catch(y){throw b&&b(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,t,g),{cause:y.cause||y}):D.from(y,y&&y.code,t,g)}})};m.forEach(St,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const _n=t=>`- ${t}`,oi=t=>m.isFunction(t)||t===null||t===!1,wn={getAdapter:t=>{t=m.isArray(t)?t:[t];const{length:e}=t;let r,n;const o={};for(let s=0;s<e;s++){r=t[s];let c;if(n=r,!oi(r)&&(n=St[(c=String(r)).toLowerCase()],n===void 0))throw new D(`Unknown adapter '${c}'`);if(n)break;o[c||"#"+s]=n}if(!n){const s=Object.entries(o).map(([a,i])=>`adapter ${a} `+(i===!1?"is not supported by the environment":"is not available in the build"));let c=e?s.length>1?`since :
|
21
21
|
`+s.map(_n).join(`
|
22
|
-
`):" "+_n(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:St};function Tt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new de(null,t)}function En(t){return Tt(t),t.headers=I.from(t.headers),t.data=qt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),wn.getAdapter(t.adapter||xe.adapter)(t).then(function(n){return Tt(t),n.data=qt.call(t,t.transformResponse,n),n.headers=I.from(n.headers),n},function(n){return pn(n)||(Tt(t),n&&n.response&&(n.response.data=qt.call(t,t.transformResponse,n.response),n.response.headers=I.from(n.response.headers))),Promise.reject(n)})}const Cn="1.7.7",Rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Rt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const An={};Rt.transitional=function(e,r,n){function o(s,c){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+c+(n?". "+n:"")}return(s,c,
|
23
|
-
`+s):n.stack=s}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=oe(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Lt.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean)},!1),o!=null&&(m.isFunction(o)?r.paramsSerializer={serialize:o}:Lt.assertOptions(o,{encode:Q.function,serialize:Q.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=s&&m.merge(s.common,s[r.method]);s&&m.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),r.headers=I.concat(c,s);const i=[];let a=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(a=a&&b.synchronous,i.unshift(b.fulfilled,b.rejected))});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let p,d=0,f;if(!a){const g=[En.bind(this),void 0];for(g.unshift.apply(g,i),g.push.apply(g,l),f=g.length,p=Promise.resolve(r);d<f;)p=p.then(g[d++],g[d++]);return p}f=i.length;let h=r;for(d=0;d<f;){const g=i[d++],b=i[d++];try{h=g(h)}catch(k){b.call(this,k);break}}try{p=En.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)p=p.then(l[d++],l[d++]);return p}getUri(e){e=oe(this.defaults,e);const r=mn(e.baseURL,e.url);return sn(r,e.params,e.paramsSerializer)}}m.forEach(["delete","get","head","options"],function(e){se.prototype[e]=function(r,n){return this.request(oe(n||{},{method:e,url:r,data:(n||{}).data}))}}),m.forEach(["post","put","patch"],function(e){function r(n){return function(s,c,i){return this.request(oe(i||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}se.prototype[e]=r(),se.prototype[e+"Form"]=r(!0)});class Nt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const c=new Promise(i=>{n.subscribe(i),s=i}).then(o);return c.cancel=function(){n.unsubscribe(s)},c},e(function(s,c,i){n.reason||(n.reason=new de(s,c,i),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Nt(function(o){e=o}),cancel:e}}}function ca(t){return function(r){return t.apply(null,r)}}function ia(t){return m.isObject(t)&&t.isAxiosError===!0}const Bt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Bt).forEach(([t,e])=>{Bt[e]=t});function qn(t){const e=new se(t),r=$r(se.prototype.request,e);return m.extend(r,se.prototype,e,{allOwnKeys:!0}),m.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return qn(oe(t,o))},r}const N=qn(xe);N.Axios=se,N.CanceledError=de,N.CancelToken=Nt,N.isCancel=pn,N.VERSION=Cn,N.toFormData=ze,N.AxiosError=D,N.Cancel=N.CanceledError,N.all=function(e){return Promise.all(e)},N.spread=ca,N.isAxiosError=ia,N.mergeConfig=oe,N.AxiosHeaders=I,N.formToJSON=t=>ln(m.isHTMLForm(t)?new FormData(t):t),N.getAdapter=wn.getAdapter,N.HttpStatusCode=Bt,N.default=N;const aa=async t=>N.post(`${t.baseUrl}/query`,{message:t.message,chatId:t.chatId,docNames:t.docNames},{headers:{Authorization:`Bearer ${t.token}`}}),la=async t=>N.get(`${t.baseUrl}/chats`,{headers:{Authorization:`Bearer ${t.token}`}}),Dn=async t=>N.get(`${t.baseUrl}/chats/${t.chatId}/messages`,{params:{lastMessageId:t.lastMessageId?t.lastMessageId:void 0},headers:{Authorization:`Bearer ${t.token}`}}),ua=async t=>N.get(`${t.baseUrl}/chats/documentos`,{headers:{Authorization:`Bearer ${t.token}`}}),pa=async t=>N.patch(`${t.baseUrl}/message/${t.messageId}/like`,{meGusta:t.meGusta},{headers:{Authorization:`Bearer ${t.token}`}}),da=async t=>N.delete(`${t.baseUrl}/chats/${t.chatId}`,{headers:{Authorization:`Bearer ${t.token}`}}),fa={key:0,class:"ia-chat-bot-message"},ha={class:"ia-chat-message-options-bar"},ma=["onClick","disabled"],ga=["onClick","disabled"],ba={key:0,class:"ia-dots-loader-container"},ka=U(u.defineComponent({__name:"ChatMessageList",props:{messages:{},total:{},isLoading:{type:Boolean}},emits:["loadMore"],setup(t,{emit:e}){const r=t,n=u.inject(Pr)??{baseUrl:"",authToken:""},o=e,s=u.ref(),c=u.ref(),i=async(a,l)=>{console.log("Like evento recibido:",a);try{await pa({baseUrl:n.baseUrl,token:n.authToken,messageId:a,meGusta:l});const p=r.messages.find(d=>d.id===a);p&&(p.meGusta=l)}catch(p){console.error(p)}};return u.onMounted(()=>{c.value&&(s.value=new IntersectionObserver(a=>{a.forEach(l=>{l.isIntersecting&&r.total>r.messages.length&&o("loadMore")})}),s.value.observe(c.value))}),u.onUnmounted(()=>{s.value&&s.value.disconnect()}),(a,l)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{ref_key:"target",ref:c,class:"chat-target-messages"},null,512),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.messages,p=>(u.openBlock(),u.createElementBlock("div",{class:"chat-messages-container",key:p.id},[p.esIA?(u.openBlock(),u.createElementBlock("div",fa,[u.createVNode(u.unref(Lc),{source:p.message,class:"ia-chat-bot-message-container"},null,8,["source"]),u.createElementVNode("div",ha,[u.createElementVNode("button",{class:u.normalizeClass(["ia-chat-message-like-btn",{liked:p.meGusta===!0}]),onClick:d=>i(p.id,!0),disabled:p.meGusta!==null&&p.meGusta!==void 0,title:"Calificar"},[u.createVNode(u.unref(Mc))],10,ma),u.createElementVNode("button",{class:u.normalizeClass(["ia-chat-message-like-btn",{disliked:p.meGusta===!1}]),onClick:d=>i(p.id,!1),disabled:p.meGusta!==null&&p.meGusta!==void 0},[u.createVNode(u.unref(Fc))],10,ga)])])):(u.openBlock(),u.createBlock(On,{key:1,message:p},null,8,["message"]))]))),128)),a.isLoading?(u.openBlock(),u.createElementBlock("div",ba,[u.createVNode(Mt)])):u.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-2abbdc01"]]),xa={},va={class:"ia-chat-loading"};function ya(t,e){return u.openBlock(),u.createElementBlock("div",va,e[0]||(e[0]=[u.createStaticVNode('<div class="ia-loader-relative" data-v-9a82108b><svg class="ia-icon_1" viewBox="0 0 275 276" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9a82108b><path d="M137.1 1C124.2 1 111.2 2.80001 98.3 6.60001C68.5 15.4 43.9 33.5 26.8 56.7C9.69999 79.9 0.0999756 108.3 0.0999756 137.9C0.0999756 150.8 1.90001 163.8 5.70001 176.7C7.60001 183 13.3 187 19.5 187C25.7 187 22.2 186.8 23.6 186.4C31.2 184.1 35.6 176.1 33.3 168.5C30.3 158.3 28.8 148 28.8 137.8C28.8 114.5 36.4 92 49.9 73.7C63.4 55.3 82.7 41.1 106.3 34.2C116.5 31.2 126.8 29.7 137 29.7C160.3 29.7 182.8 37.3 201.1 50.8C219.5 64.3 233.7 83.6 240.6 107.2C242.5 113.5 248.2 117.5 254.4 117.5C260.6 117.5 257.1 117.3 258.5 116.9C266.1 114.6 270.5 106.6 268.2 99C259.4 69.2 241.3 44.6 218.1 27.5C194.9 10.4 166.5 0.799988 136.9 0.799988" fill="url(#paint0_linear_672_78)" data-v-9a82108b></path><path d="M254.5 88.9C253.1 88.9 251.8 89.1 250.4 89.5C242.8 91.8 238.4 99.8 240.7 107.4C243.7 117.6 245.2 127.9 245.2 138.1C245.2 161.4 237.6 183.9 224.1 202.2C210.6 220.6 191.3 234.8 167.7 241.7C157.5 244.7 147.2 246.2 137 246.2C113.7 246.2 91.2 238.6 72.9 225.1C54.5 211.6 40.3001 192.3 33.4001 168.7C31.5001 162.4 25.8 158.4 19.6 158.4C13.4 158.4 16.9 158.6 15.5 159C7.90003 161.3 3.50001 169.3 5.80001 176.9C14.6 206.7 32.7001 231.3 55.9001 248.4C79.1001 265.5 107.5 275.1 137.1 275.1C150 275.1 163 273.3 175.9 269.5C205.7 260.7 230.3 242.6 247.4 219.4C264.5 196.2 274.1 167.8 274.1 138.2C274.1 125.4 272.3 112.3 268.5 99.4C266.6 93.1 260.9 89.1 254.7 89.1" fill="url(#paint1_linear_672_78)" data-v-9a82108b></path><defs data-v-9a82108b><linearGradient id="paint0_linear_672_78" x1="-2.44076e-05" y1="94.1" x2="269" y2="94.1" gradientUnits="userSpaceOnUse" data-v-9a82108b><stop stop-color="white" data-v-9a82108b></stop><stop offset="1" stop-color="white" stop-opacity="0" data-v-9a82108b></stop></linearGradient><linearGradient id="paint1_linear_672_78" x1="5.00002" y1="181.9" x2="274" y2="181.9" gradientUnits="userSpaceOnUse" data-v-9a82108b><stop stop-color="white" stop-opacity="0" data-v-9a82108b></stop><stop offset="1" stop-color="white" data-v-9a82108b></stop></linearGradient></defs></svg><svg class="ia-icon_2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 176 74" data-v-9a82108b><path fill="#fff" d="M6.4 70v-3.5c-.3 1.3-1.5 4.5-2.2 6.6h-.8c-.6-1.7-1.7-5.2-2.1-6.6v6.6H.5v-7.3h1.4c.8 2.1 1.7 5.1 2 6.1.1-.7 1.3-3.9 2.1-6.1h1.3v7.3h-.9V70ZM10.8 65.8v7.3h-.9v-7.3h.9ZM13.5 73.1v-7.3h1.2c2.9 5.1 3.3 5.8 3.4 6.2v-6.1h.9v7.3h-1.1c-3.1-5.6-3.3-6-3.5-6.3v6.4h-.8l-.1-.2ZM22.5 65.8v7.3h-.9v-7.3h.9ZM25.5 71c.1.9.8 1.4 1.6 1.4s1.4-.4 1.4-1.3-.4-1.1-1.7-1.5c-1.5-.5-2.1-1-2.1-2s.9-1.9 2.2-1.9c1.3 0 2.2.9 2.3 1.9h-.9c-.1-.7-.5-1.2-1.4-1.2-.9 0-1.3.4-1.3 1.1 0 .7.4.9 1.5 1.3 1.8.5 2.2 1.2 2.2 2.2 0 1-.8 2.1-2.4 2.1-1.6 0-2.4-.8-2.5-2.1h1.1ZM32.9 66.6h-2.1v-.8H36v.8h-2.1v6.5H33v-6.5h-.1ZM41.9 69.6h-3.3v2.6h3.6v.8h-4.5v-7.3H42v.8h-3.4v2.3h3.3v.8ZM45.2 69.8v3.3h-.9v-7.3h2.6c1.3 0 2.2.6 2.2 1.9 0 1.3-.6 1.5-1.2 1.7.8.2 1.1.8 1.1 1.8 0 .8 0 1.4.1 1.9h-.9c0-.3-.1-1-.1-1.7 0-1.2-.4-1.6-1.6-1.6h-1.3Zm0-.7h1.3c.9 0 1.6-.3 1.6-1.3s-.5-1.2-1.4-1.2h-1.6v2.5h.1ZM52.3 65.8v7.3h-.9v-7.3h.9ZM60.7 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM66.5 65.8h2.4c1.3 0 2.3.7 2.3 2s-1 2.1-2.5 2.1h-1.4V73h-.9v-7.3l.1.1Zm.9 3.4h1.4c.9 0 1.6-.3 1.6-1.4 0-1.1-.6-1.3-1.6-1.3h-1.4v2.7ZM74.2 65.8v4.6c0 1.1.4 2 1.7 2 1.3 0 1.7-.8 1.7-2v-4.6h.9v4.6c0 1.5-.6 2.7-2.6 2.7s-2.6-1-2.6-2.7v-4.7h.9v.1Zm3.5-2.1-1.6 1.4h-.9l1.3-1.4H77.7ZM81.1 65.8h2.5c1.3 0 2.1.7 2.1 1.8s-.6 1.4-1 1.5c.5.2 1.3.6 1.3 1.8 0 1.2-1 2.1-2.4 2.1h-2.4v-7.3l-.1.1Zm2.3 3c1 0 1.4-.4 1.4-1.1 0-.7-.4-1.1-1.4-1.1h-1.5v2.3h1.4l.1-.1ZM82 72.3h1.5c.9 0 1.6-.4 1.6-1.4 0-1-.6-1.4-1.7-1.4H82v2.8ZM88.2 65.8h.9v6.5h3.5v.8h-4.4v-7.3ZM95.3 65.8v7.3h-.9v-7.3h.9ZM103.2 71c-.2 1.2-1 2.2-2.7 2.2-1.7 0-2.9-1.6-2.9-3.8 0-2.2.9-3.7 3-3.7s2.4 1 2.6 2.2h-.9c-.2-.8-.6-1.5-1.7-1.5s-2 1.4-2 2.9.5 3 2 3 1.5-.6 1.7-1.5h.9v.2ZM111.1 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM116.9 65.8h2.4c1.8 0 3.2 1.2 3.2 3.5s-1.2 3.8-3.4 3.8h-2.2v-7.3Zm.9 6.5h1.3c1.7 0 2.5-1.1 2.5-3s-1-2.7-2.4-2.7h-1.3v5.8l-.1-.1ZM128.9 69.6h-3.3v2.6h3.6v.8h-4.5v-7.3h4.3v.8h-3.4v2.3h3.3v.8ZM134.8 65.8h2.5c1.3 0 2.1.7 2.1 1.8s-.6 1.4-1 1.5c.5.2 1.3.6 1.3 1.8 0 1.2-1 2.1-2.4 2.1h-2.4v-7.3l-.1.1Zm2.3 3c1 0 1.4-.4 1.4-1.1 0-.7-.4-1.1-1.4-1.1h-1.5v2.3h1.4l.1-.1Zm-1.4 3.5h1.5c.9 0 1.6-.4 1.6-1.4 0-1-.6-1.4-1.7-1.4h-1.4v2.8ZM147.7 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM150 65.8h.9v6.5h3.5v.8H150v-7.3ZM157.1 65.8v7.3h-.9v-7.3h.9ZM161.3 73.1l-2.4-7.3h1l1.1 3.6c.3 1 .7 2.1.8 2.8.1-.6.6-1.8.9-2.8l1.2-3.6h.9l-2.5 7.3h-1.1.1ZM167.6 65.8v7.3h-.9v-7.3h.9ZM171.1 70.9l-.7 2.2h-.9l2.4-7.3h1.1l2.5 7.3h-1l-.7-2.2h-2.7Zm2.4-.8c-.6-1.9-1-2.9-1.1-3.5-.2.9-.6 2-1.1 3.5h2.2ZM8.2 49.2c0 3.8-.9 6.3-5.5 6.3s-1.7 0-2.2-.2v-3.4c.4 0 .9.1 1.5.1 1.8 0 2.1-.9 2.1-2.6V32.3h4.1v16.9ZM15.3 32.4v15.7c0 1.9.5 4.1 3 4.1s3-1.9 3-4.1V32.3h4.1v15.8c0 4.1-1.6 7.4-7.1 7.4s-7-3.1-7-7.4V32.3h4.1l-.1.1ZM31.5 48.8c.2 1.9 1 3.6 3.1 3.6s2.8-1.3 2.8-3-.9-3-3.8-4.4c-3.9-1.9-5.5-3.5-5.5-6.9 0-3.4 2.4-6.2 6.5-6.2s6.4 3.5 6.5 6.5h-4c-.1-1.3-.5-3.2-2.5-3.2s-2.3 1.1-2.3 2.6.7 2.4 3.4 3.7c4.1 1.9 5.9 3.7 5.9 7.6 0 3.9-2.2 6.6-7.1 6.6-4.9 0-6.9-3.4-7-6.8h4.1l-.1-.1ZM47 35.9h-4.9v-3.6H56v3.6h-4.9v19.3H47V35.9ZM61.8 32.4v22.9h-4.1V32.4h4.1ZM78.7 48.6c-.1 1.2-.5 7.1-6.9 7.1s-7.3-5.7-7.3-11.9S66.7 32 72 32s6.5 5.2 6.6 7h-4.1c0-.8-.1-3.6-2.6-3.6s-3.2 3.1-3.2 8.4c0 5.3.4 8.4 3.1 8.4s2.6-2.8 2.7-3.6H78.7ZM84.8 32.4v22.9h-4.1V32.4h4.1ZM91.8 49.5l-1.1 5.8h-4.1l5.3-22.9h5.3l5.4 22.9h-4.3l-1.1-5.8H91.8Zm4.6-3.6c-.9-4.4-1.5-7.6-1.9-9.8-.3 2.1-1 5.5-1.8 9.8h3.8-.1ZM109.9 32.4h4.1v19.4h7.8l-.4 3.5h-11.5V32.4ZM127.5 32.4v22.9h-4.1V32.4h4.1ZM131 32.4h7c4 0 6.2 2.2 6.2 5.8 0 3.6-1.4 4.3-2.6 4.8 1.6.7 3.3 2.1 3.3 5.6 0 3.5-2.8 6.7-6.9 6.7h-6.9V32.4h-.1Zm6 9.1c2.5 0 3.2-1 3.2-3s-1.1-2.9-3.1-2.9H135v5.9h2Zm-2 10.6h2.4c2 0 3.2-1 3.2-3.6s-1-3.7-3.7-3.7h-2v7.4l.1-.1ZM151.2 45.5v9.8h-4.1V32.4h7c4.2 0 6.5 2.2 6.5 6.3s-1.8 4.7-3 5.2c1.8.8 2.6 2.3 2.6 5.7v.9c0 2.6.1 3.6.3 4.8h-4c-.3-1-.4-2.9-.4-4.8v-.8c0-3.1-.7-4.1-3.3-4.1H151l.2-.1Zm0-3.3h1.9c2.5 0 3.4-1.1 3.4-3.4s-.9-3.1-3-3.1h-2.3v6.5ZM174.6 45.1h-7.3v6.6h8.2l-.5 3.5h-11.8V32.3h11.7v3.6h-7.7v5.6h7.3v3.6h.1ZM10 12.3H2.9v8.2h7.9l-.3 2.1H.6V1.2h9.8v2.1H2.9v7H10v2.1-.1ZM29.4 16.6c0 1.2-.6 6.2-5.8 6.2s-6.1-6-6.1-11.2C17.5 6.4 19.1.7 23.9.7c4.8 0 5.4 4.8 5.5 6.1H27c0-.7-.2-4-3.2-4s-3.9 4.6-3.9 8.8c0 4.2.5 9.1 3.7 9.1s3.3-3.1 3.4-4.2h2.4v.1ZM49.2 11.7c0 7.3-1.7 11.2-6.4 11.2s-6.2-3.8-6.2-11.2C36.6 4.3 38.7.8 42.9.8c4.2 0 6.3 3.6 6.3 10.8v.1Zm-10.2 0c0 6.1 1.2 9.2 3.9 9.2s3.9-3 3.9-9.1S45.6 3 42.9 3 39 5.9 39 11.8v-.1ZM58.4 16.9c.2 2.2 1.2 4 3.6 4 2.4 0 3.4-1.2 3.4-3.7s-.9-3.5-3.8-4.9c-3.4-1.6-4.8-3.1-4.8-6.2S58.7.8 62.2.8c3.5 0 5.3 3 5.3 5.5h-2.3c-.1-1-.4-3.5-3.1-3.5s-2.9 1.4-2.9 3.1c0 1.7.9 3 3.6 4.3 3.7 1.8 5.1 3.6 5.1 6.8 0 3.2-1.9 5.9-5.9 5.9s-5.7-2.8-5.9-5.9h2.4l-.1-.1ZM77.9 1.1v21.4h-2.3V1.1h2.3ZM87.9 16.9c.2 2.2 1.2 4 3.6 4 2.4 0 3.4-1.2 3.4-3.7s-.9-3.5-3.8-4.9c-3.4-1.6-4.8-3.1-4.8-6.2S88.2.8 91.7.8c3.5 0 5.3 3 5.3 5.5h-2.3c-.1-1-.4-3.5-3.1-3.5s-2.9 1.4-2.9 3.1c0 1.7.9 3 3.6 4.3 3.7 1.8 5.1 3.6 5.1 6.8 0 3.2-1.9 5.9-5.9 5.9s-5.7-2.8-5.9-5.9H88l-.1-.1ZM107.9 3.2h-4.8V1.1H115v2.1h-4.8v19.3h-2.4V3.2h.1ZM131.5 12.3h-7.1v8.2h7.9l-.3 2.1h-9.9V1.2h9.8v2.1h-7.5v7h7.1v2.1-.1ZM152.5 13.4c0-4 0-8 .1-10.3-.8 3.7-2.7 12.6-4.4 19.4h-2.3c-1.3-5.9-3.3-15.5-4.1-19.4.1 2.5.2 7.2.2 10.9v8.5h-2.2V1.1h3.5c1.7 6.7 3.4 14.9 3.9 17.7.4-2.3 2.5-11.2 4.2-17.7h3.5v21.4h-2.3v-9.1h-.1ZM165.9 15.8l-1.6 6.8h-2.4l5.2-21.4h3l5.3 21.4h-2.5l-1.6-6.8h-5.6.2Zm5.1-2.1c-1.2-5.3-2-8.6-2.3-10.3-.3 1.9-1.2 5.7-2.2 10.3h4.6-.1Z" data-v-9a82108b></path></svg></div>',1)]))}const _a=U(xa,[["render",ya],["__scopeId","data-v-9a82108b"]]),wa={},Ea={class:"ia-message-loader"};function Ca(t,e){return u.openBlock(),u.createElementBlock("div",Ea,e[0]||(e[0]=[u.createElementVNode("div",{class:"msg-loader"},null,-1)]))}const Aa=U(wa,[["render",Ca],["__scopeId","data-v-f96b52cc"]]),qa={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function Da(t,e){return u.openBlock(),u.createElementBlock("svg",qa,e[0]||(e[0]=[u.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)]))}const Sa={render:Da},Ta={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function Ra(t,e){return u.openBlock(),u.createElementBlock("svg",Ta,e[0]||(e[0]=[u.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)]))}const La={render:Ra},Na={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 24 24"};function Ba(t,e){return u.openBlock(),u.createElementBlock("svg",Na,e[0]||(e[0]=[u.createElementVNode("path",{fill:"#323232","fill-rule":"evenodd",d:"M20.774 8.1c1.61-1.616 1.541-3.738.339-5.038A3.3 3.3 0 0 0 18.748 2c-.949-.022-1.931.34-2.838 1.099a1 1 0 0 0-.067.061L2.874 16.181A3 3 0 0 0 2 18.3v1.693C2 21.094 2.892 22 4.004 22h1.679a3 3 0 0 0 2.125-.883zm-3.567-2.307a1 1 0 1 0-1.414 1.414l1 1a1 1 0 1 0 1.414-1.414z","clip-rule":"evenodd"},null,-1)]))}const Fa={render:Ba},Va={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 24 24"};function Ia(t,e){return u.openBlock(),u.createElementBlock("svg",Va,e[0]||(e[0]=[u.createElementVNode("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 6 3-3m0 0 3 3m-3-3v10m-5-3c-.932 0-1.398 0-1.765.152a2 2 0 0 0-1.083 1.083C4 11.602 4 12.068 4 13v4.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h9.607c1.118 0 1.677 0 2.104-.218.376-.192.682-.498.874-.874.218-.428.218-.987.218-2.105V13c0-.932 0-1.398-.152-1.765a2 2 0 0 0-1.083-1.083C18.398 10 17.932 10 17 10"},null,-1)]))}const Ma={render:Ia},Oa={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 24 24"};function za(t,e){return u.openBlock(),u.createElementBlock("svg",Oa,e[0]||(e[0]=[u.createElementVNode("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 5a1 1 0 1 0-2 0 1 1 0 0 0 2 0M13 12a1 1 0 1 0-2 0 1 1 0 0 0 2 0M13 19a1 1 0 1 0-2 0 1 1 0 0 0 2 0"},null,-1)]))}const Ua={render:za},Pa={class:"ia-chat-history-item"},$a=["title"],Ha={class:"ia-chat-menu-item-btn",title:"Menú"},ja={key:0,class:"dropdown-menu"},Ga={class:"ia-chat-delete-item-btn",title:"Editar"},Za={class:"ia-chat-delete-item-btn",title:"Compartir"},je=U(u.defineComponent({__name:"ChatHistoryItem",props:{item:{}},emits:["click","delete"],setup(t,{emit:e}){const r=t,n=u.ref(!1),o=u.ref(null),s=()=>{n.value=!n.value},c=a=>{o.value&&!o.value.contains(a.target)&&(n.value=!1)};u.onMounted(()=>{document.addEventListener("click",c)}),u.onBeforeUnmount(()=>{document.removeEventListener("click",c)});const i=e;return(a,l)=>(u.openBlock(),u.createElementBlock("div",Pa,[u.createElementVNode("button",{class:"ia-chat-history-item-btn",onClick:l[0]||(l[0]=p=>i("click",r.item)),title:r.item.titulo},u.toDisplayString(r.item.titulo),9,$a),u.createElementVNode("div",{class:"menu-container",ref_key:"menuRef",ref:o},[u.createElementVNode("button",{onClick:s,class:"menu-button"},[u.createElementVNode("button",Ha,[u.createVNode(u.unref(Ua))])]),n.value?(u.openBlock(),u.createElementBlock("ul",ja,[u.createElementVNode("li",null,[u.createElementVNode("button",Ga,[u.createVNode(u.unref(Fa))])]),u.createElementVNode("li",null,[u.createElementVNode("button",Za,[u.createVNode(u.unref(Ma))])]),u.createElementVNode("li",null,[u.createElementVNode("button",{class:"ia-chat-delete-item-btn",onClick:l[1]||(l[1]=p=>i("delete",r.item.id)),title:"Eliminar"},[u.createVNode(u.unref(La))])])])):u.createCommentVNode("",!0)],512)]))}}),[["__scopeId","data-v-1d2382b2"]]),Ja={key:0,class:"header-title"},Wa={key:1,class:"header-title"},Ka={key:2,class:"header-title"},Ya={class:"header-title"},Qa=U(u.defineComponent({__name:"ChatHistoryList",props:{history:{},currentChatId:{}},emits:["click","delete"],setup(t,{emit:e}){const r=t,n=e,o=(i,a)=>{const l=Math.abs(a.getTime()-i.getTime());return Math.ceil(l/(1e3*60*60*24))},s=i=>{const a={year:"numeric",month:"long"},l=i.toLocaleDateString(void 0,a);return l.charAt(0).toUpperCase()+l.slice(1)},c=u.computed(()=>{const i=new Date,a={today:[],last7Days:[],last30Days:[],older:{}};return r.history.forEach(l=>{const p=new Date(l.actualizadoEn),d=o(i,p);if(d===0)a.today.push(l);else if(d<=7)a.last7Days.push(l);else if(d<=30)a.last30Days.push(l);else{const f=s(p);a.older[f]||(a.older[f]=[]),a.older[f].push(l)}}),a});return(i,a)=>(u.openBlock(),u.createElementBlock("div",null,[c.value.today.length?(u.openBlock(),u.createElementBlock("h2",Ja,"Hoy")):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.today,l=>(u.openBlock(),u.createBlock(je,{key:l.id,item:l,class:u.normalizeClass({"ia-chat-history-item-active":l.id===i.currentChatId}),onClick:a[0]||(a[0]=p=>n("click",p)),onDelete:a[1]||(a[1]=p=>n("delete",p))},null,8,["item","class"]))),128)),c.value.last7Days.length?(u.openBlock(),u.createElementBlock("h2",Wa,"Últimos 7 días")):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.last7Days,l=>(u.openBlock(),u.createBlock(je,{key:l.id,item:l,class:u.normalizeClass({"ia-chat-history-item-active":l.id===i.currentChatId}),onClick:a[2]||(a[2]=p=>n("click",p)),onDelete:a[3]||(a[3]=p=>n("delete",p))},null,8,["item","class"]))),128)),c.value.last30Days.length?(u.openBlock(),u.createElementBlock("h2",Ka,"Últimos 30 días")):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.last30Days,l=>(u.openBlock(),u.createBlock(je,{key:l.id,item:l,class:u.normalizeClass({"ia-chat-history-item-active":l.id===i.currentChatId}),onClick:a[4]||(a[4]=p=>n("click",p)),onDelete:a[5]||(a[5]=p=>n("delete",p))},null,8,["item","class"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.older,(l,p)=>(u.openBlock(),u.createElementBlock("div",{key:p},[u.createElementVNode("h2",Ya,u.toDisplayString(p),1),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(l,d=>(u.openBlock(),u.createBlock(je,{key:d.id,item:d,class:u.normalizeClass({"ia-chat-history-item-active":d.id===i.currentChatId}),onClick:a[6]||(a[6]=f=>n("click",f)),onDelete:a[7]||(a[7]=f=>n("delete",f))},null,8,["item","class"]))),128))]))),128))]))}}),[["__scopeId","data-v-30860a69"]]),Xa={class:"ia-chat-sidebar"},el={class:"ia-sidebar-header"},tl={class:"ia-sidebar-body"},rl=U(u.defineComponent({__name:"ChatSidebar",props:{baseUrl:{},isVisible:{type:Boolean},history:{},currentChatId:{}},emits:["update:isVisible","loadChat","new-chat","delete"],setup(t,{emit:e}){const r=t,n=e,o=u.ref(),s=c=>{o.value=c,n("loadChat",c)};return(c,i)=>u.withDirectives((u.openBlock(),u.createElementBlock("nav",Xa,[u.createElementVNode("header",el,[u.createVNode(It,{title:r.isVisible?"Esconder historial":"Mostrar historial",onClick:i[0]||(i[0]=a=>n("update:isVisible",!r.isVisible))},null,8,["title"]),i[4]||(i[4]=u.createElementVNode("p",null,"Chats",-1)),u.createElementVNode("button",{class:"ia-sidebar-btn",onClick:i[1]||(i[1]=a=>n("new-chat"))},[u.createVNode(u.unref(Sa))])]),u.createElementVNode("div",tl,[u.createVNode(Qa,{history:r.history,currentChatId:r.currentChatId,onClick:i[2]||(i[2]=a=>s(a.id)),onDelete:i[3]||(i[3]=a=>n("delete",a))},null,8,["history","currentChatId"])])],512)),[[u.vShow,r.isVisible]])}}),[["__scopeId","data-v-99d8270c"]]),nl={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"800",height:"800",viewBox:"0 0 512.003 512.003"};function ol(t,e){return u.openBlock(),u.createElementBlock("svg",nl,e[0]||(e[0]=[u.createElementVNode("path",{d:"M507.284 248.364 12.35.898A8.56 8.56 0 0 0 2.153 2.86a8.55 8.55 0 0 0-.759 10.351l159.07 242.79L1.393 498.792a8.55 8.55 0 0 0 .759 10.351 8.564 8.564 0 0 0 10.197 1.963l494.933-247.467a8.542 8.542 0 0 0 .002-15.275"},null,-1)]))}const sl={render:ol},cl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function il(t,e){return u.openBlock(),u.createElementBlock("svg",cl,e[0]||(e[0]=[u.createElementVNode("path",{d:"M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4"},null,-1)]))}const al={render:il},ll={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"};function ul(t,e){return u.openBlock(),u.createElementBlock("svg",ll,e[0]||(e[0]=[u.createElementVNode("circle",{cx:"20",cy:"20",r:"20",fill:"#fff"},null,-1),u.createElementVNode("path",{fill:"var(--ia-primary-color)",d:"M20 0C8.95 0 0 8.95 0 20c0 3.41.85 6.61 2.35 9.42a24.601 24.601 0 0 0 15.05 5.16c1.86 0 3.73-.21 5.58-.65q.78-.18 1.56-.42c.37-.11.74-.23 1.11-.37.42-.15.83-.31 1.24-.49.17-.07.35-.15.52-.23-.02-.08-.04-.17-.04-.25 0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1a1 1 0 0 1-.61-.21v.03c-.35.16-.71.32-1.07.46-.14.06-.28.11-.42.17-1.37.52-2.76.91-4.16 1.18-.08.02-.16.03-.24.05-1.49.27-2.98.4-4.47.4-4.97 0-9.82-1.48-13.93-4.2-.09-.06-.18-.12-.27-.19C6.76 36.36 12.95 40 20 40c11.05 0 20-8.95 20-20S31.05 0 20 0m1.06 4.63a2.77 2.77 0 1 1 0 5.54 2.77 2.77 0 0 1 0-5.54m-8.78 23.32c-.79-.26-1.52-.66-2.13-1.22a5.46 5.46 0 0 1-1.39-2.03c-.3-.77-.43-1.61-.43-2.48a1.72 1.72 0 1 1 3.44 0c0 .53.08.93.2 1.23.12.31.27.52.5.73s.5.37.88.49.87.2 1.48.2c.66 0 1.18-.13 1.66-.38.47-.25.77-.54 1.03-.96.24-.42.37-.87.37-1.49v-9.48a1.72 1.72 0 1 1 3.44 0v9.5c0 1.14-.28 2.27-.85 3.23a5.94 5.94 0 0 1-2.4 2.26c-.99.52-2.1.77-3.24.76-.9 0-1.75-.11-2.54-.37Zm19.25-.68a1.72 1.72 0 0 1-.92.92c-.1.04-.21.08-.32.1s-.23.03-.35.03H16.29h.02c1.14 0 2.25-.25 3.24-.76 1-.51 1.83-1.29 2.4-2.26.58-.97.86-2.09.85-3.23v-9.51c0-.65-.37-1.22-.91-1.51.24-.13.51-.21.81-.21.95 0 1.72.77 1.72 1.72v9.64c.02.54.14.96.37 1.34.25.42.56.71 1.03.96.41.21.86.33 1.39.36s2.73.01 2.73.01c.59 0 1.11.3 1.42.76.19.27.29.6.29.96 0 .24-.05.46-.14.67Z"},null,-1),u.createElementVNode("path",{fill:"var(--ia-primary-color)",d:"M21.06 9.29a1.874 1.874 0 0 0 1.88-1.88 1.874 1.874 0 0 0-1.88-1.88 1.874 1.874 0 0 0-1.88 1.88 1.874 1.874 0 0 0 1.88 1.88"},null,-1)]))}const pl={render:ul},dl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function fl(t,e){return u.openBlock(),u.createElementBlock("svg",dl,e[0]||(e[0]=[u.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)]))}const hl={render:fl},ml={key:0,class:"modal-overlay"},gl={key:0,class:"ia-message-loader"},bl={class:"modal-content"},kl={class:"ia-doc-header"},xl={class:"document-list"},vl={class:"seleccionados"},yl={style:{"list-style":"none",width:"100%"}},_l=["onClick"],wl={class:"document-button"},El={key:0},Cl=U(u.defineComponent({__name:"DocumentList",props:{visible:Boolean,documentos:Array,items:Array},emits:["close","selection"],setup(t,{emit:e}){const r=t,n=e,o=u.ref(!1),s=u.ref([]),c=l=>s.value.includes(l),i=l=>{c(l)?s.value=s.value.filter(p=>p!==l):s.value.push(l)};u.watch(()=>r.visible,l=>{l&&(s.value=[...r.items])});const a=()=>{n("selection",s.value),n("close")};return(l,p)=>(u.openBlock(),u.createElementBlock("div",null,[t.visible?(u.openBlock(),u.createElementBlock("div",ml,[o.value?(u.openBlock(),u.createElementBlock("div",gl,p[1]||(p[1]=[u.createElementVNode("div",{class:"msg-loader"},null,-1)]))):u.createCommentVNode("",!0),u.createElementVNode("div",bl,[u.createElementVNode("header",kl,[p[2]||(p[2]=u.createElementVNode("p",null,"Listado de Documentos",-1)),u.createElementVNode("button",{class:"close-btn",onClick:p[0]||(p[0]=d=>n("close"))},"X")]),u.createElementVNode("div",xl,[u.createElementVNode("p",vl,u.toDisplayString(s.value.length)+" Documentos seleccionados",1),u.createElementVNode("ul",yl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.documentos,(d,f)=>(u.openBlock(),u.createElementBlock("li",{key:f,class:u.normalizeClass(["document-item",c(d.name)?"selected":""]),onClick:h=>i(d.name)},[u.createElementVNode("button",wl,[u.createElementVNode("span",null,u.toDisplayString(d.shortDescription),1)])],10,_l))),128))])]),r.documentos.length?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("p",El,"No hay datos disponibles")),u.createElementVNode("button",{onClick:a,class:"confirm-btn"},[u.createVNode(u.unref(hl)),p[3]||(p[3]=u.createTextVNode("Confirmar Selección "))])])])):u.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-985f3dbb"]]),Al={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function ql(t,e){return u.openBlock(),u.createElementBlock("svg",Al,e[0]||(e[0]=[u.createElementVNode("path",{d:"M64 464h48v48H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0h165.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V304h-48V160h-80c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16v384c0 8.8 7.2 16 16 16m112-112h32c30.9 0 56 25.1 56 56s-25.1 56-56 56h-16v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V368c0-8.8 7.2-16 16-16m32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-16v48zm96-80h32c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48h-32c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16m32 128c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16h-16v96zm80-112c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16h-32v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16h-32v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V368"},null,-1)]))}const Dl={render:ql},Sl={class:"file-list"},Tl={class:"ia-chat-common-btn",title:"pdf"},Rl={class:"file-details"},Ll=["onClick"],Nl=U(u.defineComponent({__name:"Documentos",props:{items:Array},emits:["update-items"],setup(t,{emit:e}){const r=t,n=e,o=s=>{const c=[...r.items];c.splice(s,1),n("update-items",c)};return(s,c)=>(u.openBlock(),u.createElementBlock("div",Sl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.items,(i,a)=>(u.openBlock(),u.createElementBlock("div",{key:i,class:"file-card"},[u.createElementVNode("button",Tl,[u.createVNode(u.unref(Dl))]),u.createElementVNode("div",Rl,[u.createElementVNode("p",null,u.toDisplayString(i),1)]),u.createElementVNode("button",{class:"remove-button",onClick:l=>o(a)},"X",8,Ll)]))),128))]))}}),[["__scopeId","data-v-864928b6"]]),Bl={class:"ia-chat-container"},Fl={class:"ia-chat-header"},Vl={style:{display:"flex",gap:"0.5rem"}},Il={class:"ia-chat-body-container"},Ml={class:"ia-chat-body"},Ol={class:"ia-chat-empty-container"},zl={key:0,class:"ia-dots-loader-container"},Ul={class:"ia-chat-footer"},Pl={key:0},$l={class:"ia-chat-text-area-container"},Sn=U(u.defineComponent({__name:"ChatPage",props:{baseUrl:{},authToken:{},darkMode:{type:Boolean,default:!1},containerClass:{}},setup(t){const e=t,r=u.reactive({baseUrl:"",authToken:""}),n=u.ref([]),o=u.ref(!1),s=u.ref([]),c=()=>{o.value=!0},i=()=>{o.value=!1},a=C=>{s.value=C},l=C=>{s.value=C},p=u.ref(!0),d=u.computed(()=>e.darkMode?`dark ia-chat-page-container ${e.containerClass?e.containerClass:""}`:`ia-chat-page-container ${e.containerClass?e.containerClass:""}`),f=u.ref([]),h=u.ref({messages:[],total:0}),g=u.ref(!1),b=u.ref(!1),k=u.ref(!1),y=u.ref(""),x=u.ref();u.onMounted(()=>{r.baseUrl=e.baseUrl,r.authToken=e.authToken,u.provide(Pr,r),E(),_()});const E=async()=>{try{const C=await la({baseUrl:e.baseUrl,token:e.authToken});f.value=C.data.response.data}catch(C){console.log(C)}},q=async C=>{try{g.value=!0;const v=await Dn({baseUrl:e.baseUrl,chatId:C.chatId,token:e.authToken});x.value=C.chatId,h.value={messages:[...v.data.response.data],total:v.data.response.pagination.total},u.nextTick(()=>{w()})}catch(v){console.log(v)}finally{g.value=!1}},A=async C=>{try{b.value=!0;const v=await Dn({baseUrl:e.baseUrl,chatId:C.chatId,token:e.authToken,lastMessageId:C.lastMessageId});x.value=C.chatId,h.value={messages:[...v.data.response.data,...h.value.messages],total:v.data.response.pagination.total},u.nextTick(()=>{$.value&&($.value.scrollTop=40)})}catch(v){console.log(v)}finally{b.value=!1}},_=async()=>{try{g.value=!0;const C=await ua({baseUrl:e.baseUrl,token:e.authToken});n.value=C.data.response.data}catch(C){console.log(C)}finally{g.value=!1}},S=async C=>{var v,B,ye;if(C&&C.key==="Enter"&&C.shiftKey){y.value+=`
|
24
|
-
`;return}if(y.value)try{const Ft=Math.round(Math.random()*1e6).toString();h.value.messages.push({id:Ft,message:y.value,chatId:x.value?x.value:void 0,esIA:!1,creadoEn:new Date().toISOString()}),h.value.total+=1,k.value=!0,u.nextTick(()=>{w()});const jl=y.value;y.value="";const Ge=await
|
22
|
+
`):" "+_n(s[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return n},adapters:St};function Tt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new de(null,t)}function En(t){return Tt(t),t.headers=I.from(t.headers),t.data=qt.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),wn.getAdapter(t.adapter||xe.adapter)(t).then(function(n){return Tt(t),n.data=qt.call(t,t.transformResponse,n),n.headers=I.from(n.headers),n},function(n){return pn(n)||(Tt(t),n&&n.response&&(n.response.data=qt.call(t,t.transformResponse,n.response),n.response.headers=I.from(n.response.headers))),Promise.reject(n)})}const Cn="1.7.7",Rt={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Rt[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const An={};Rt.transitional=function(e,r,n){function o(s,c){return"[Axios v"+Cn+"] Transitional option '"+s+"'"+c+(n?". "+n:"")}return(s,c,a)=>{if(e===!1)throw new D(o(c," has been removed"+(r?" in "+r:"")),D.ERR_DEPRECATED);return r&&!An[c]&&(An[c]=!0,console.warn(o(c," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(s,c,a):!0}};function si(t,e,r){if(typeof t!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const s=n[o],c=e[s];if(c){const a=t[s],i=a===void 0||c(a,s,t);if(i!==!0)throw new D("option "+s+" must be "+i,D.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new D("Unknown option "+s,D.ERR_BAD_OPTION)}}const Lt={assertOptions:si,validators:Rt},Q=Lt.validators;class se{constructor(e){this.defaults=e,this.interceptors={request:new cn,response:new cn}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
23
|
+
`+s):n.stack=s}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=oe(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:s}=r;n!==void 0&&Lt.assertOptions(n,{silentJSONParsing:Q.transitional(Q.boolean),forcedJSONParsing:Q.transitional(Q.boolean),clarifyTimeoutError:Q.transitional(Q.boolean)},!1),o!=null&&(m.isFunction(o)?r.paramsSerializer={serialize:o}:Lt.assertOptions(o,{encode:Q.function,serialize:Q.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let c=s&&m.merge(s.common,s[r.method]);s&&m.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),r.headers=I.concat(c,s);const a=[];let i=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(r)===!1||(i=i&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const l=[];this.interceptors.response.forEach(function(b){l.push(b.fulfilled,b.rejected)});let p,d=0,f;if(!i){const g=[En.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,l),f=g.length,p=Promise.resolve(r);d<f;)p=p.then(g[d++],g[d++]);return p}f=a.length;let h=r;for(d=0;d<f;){const g=a[d++],b=a[d++];try{h=g(h)}catch(k){b.call(this,k);break}}try{p=En.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,f=l.length;d<f;)p=p.then(l[d++],l[d++]);return p}getUri(e){e=oe(this.defaults,e);const r=mn(e.baseURL,e.url);return sn(r,e.params,e.paramsSerializer)}}m.forEach(["delete","get","head","options"],function(e){se.prototype[e]=function(r,n){return this.request(oe(n||{},{method:e,url:r,data:(n||{}).data}))}}),m.forEach(["post","put","patch"],function(e){function r(n){return function(s,c,a){return this.request(oe(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:c}))}}se.prototype[e]=r(),se.prototype[e+"Form"]=r(!0)});class Bt{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});const n=this;this.promise.then(o=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](o);n._listeners=null}),this.promise.then=o=>{let s;const c=new Promise(a=>{n.subscribe(a),s=a}).then(o);return c.cancel=function(){n.unsubscribe(s)},c},e(function(s,c,a){n.reason||(n.reason=new de(s,c,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Bt(function(o){e=o}),cancel:e}}}function ci(t){return function(r){return t.apply(null,r)}}function ai(t){return m.isObject(t)&&t.isAxiosError===!0}const Nt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nt).forEach(([t,e])=>{Nt[e]=t});function qn(t){const e=new se(t),r=$r(se.prototype.request,e);return m.extend(r,se.prototype,e,{allOwnKeys:!0}),m.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return qn(oe(t,o))},r}const B=qn(xe);B.Axios=se,B.CanceledError=de,B.CancelToken=Bt,B.isCancel=pn,B.VERSION=Cn,B.toFormData=ze,B.AxiosError=D,B.Cancel=B.CanceledError,B.all=function(e){return Promise.all(e)},B.spread=ci,B.isAxiosError=ai,B.mergeConfig=oe,B.AxiosHeaders=I,B.formToJSON=t=>ln(m.isHTMLForm(t)?new FormData(t):t),B.getAdapter=wn.getAdapter,B.HttpStatusCode=Nt,B.default=B;const ii=async t=>B.post(`${t.baseUrl}/query`,{message:t.message,chatId:t.chatId,docNames:t.docNames},{headers:{Authorization:`Bearer ${t.token}`}}),li=async t=>B.get(`${t.baseUrl}/chats`,{headers:{Authorization:`Bearer ${t.token}`}}),Dn=async t=>B.get(`${t.baseUrl}/chats/${t.chatId}/messages`,{params:{lastMessageId:t.lastMessageId?t.lastMessageId:void 0},headers:{Authorization:`Bearer ${t.token}`}}),ui=async t=>B.get(`${t.baseUrl}/chats/documentos`,{headers:{Authorization:`Bearer ${t.token}`}}),pi=async t=>B.patch(`${t.baseUrl}/message/${t.messageId}/like`,{meGusta:t.meGusta},{headers:{Authorization:`Bearer ${t.token}`}}),di=async t=>B.delete(`${t.baseUrl}/chats/${t.chatId}`,{headers:{Authorization:`Bearer ${t.token}`}}),fi={key:0,class:"ia-chat-bot-message"},hi={class:"ia-chat-message-options-bar"},mi=["onClick","disabled"],gi=["onClick","disabled"],bi={key:0,class:"ia-dots-loader-container"},ki=U(u.defineComponent({__name:"ChatMessageList",props:{messages:{},total:{},isLoading:{type:Boolean}},emits:["loadMore"],setup(t,{emit:e}){const r=t,n=u.inject(Pr)??{baseUrl:"",authToken:""},o=e,s=u.ref(),c=u.ref(),a=async(i,l)=>{console.log("Like evento recibido:",i);try{await pi({baseUrl:n.baseUrl,token:n.authToken,messageId:i,meGusta:l});const p=r.messages.find(d=>d.id===i);p&&(p.meGusta=l)}catch(p){console.error(p)}};return u.onMounted(()=>{c.value&&(s.value=new IntersectionObserver(i=>{i.forEach(l=>{l.isIntersecting&&r.total>r.messages.length&&o("loadMore")})}),s.value.observe(c.value))}),u.onUnmounted(()=>{s.value&&s.value.disconnect()}),(i,l)=>(u.openBlock(),u.createElementBlock(u.Fragment,null,[u.createElementVNode("div",{ref_key:"target",ref:c,class:"chat-target-messages"},null,512),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.messages,p=>(u.openBlock(),u.createElementBlock("div",{class:"chat-messages-container",key:p.id},[p.esIA?(u.openBlock(),u.createElementBlock("div",fi,[u.createVNode(u.unref(Lc),{source:p.message,class:"ia-chat-bot-message-container"},null,8,["source"]),u.createElementVNode("div",hi,[u.createElementVNode("button",{class:u.normalizeClass(["ia-chat-message-like-btn",{liked:p.meGusta===!0}]),onClick:d=>a(p.id,!0),disabled:p.meGusta!==null&&p.meGusta!==void 0,title:"Calificar"},[u.createVNode(u.unref(Mc))],10,mi),u.createElementVNode("button",{class:u.normalizeClass(["ia-chat-message-like-btn",{disliked:p.meGusta===!1}]),onClick:d=>a(p.id,!1),disabled:p.meGusta!==null&&p.meGusta!==void 0},[u.createVNode(u.unref(Fc))],10,gi)])])):(u.openBlock(),u.createBlock(On,{key:1,message:p},null,8,["message"]))]))),128)),i.isLoading?(u.openBlock(),u.createElementBlock("div",bi,[u.createVNode(Mt)])):u.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-2abbdc01"]]),xi={},vi={class:"ia-chat-loading"};function yi(t,e){return u.openBlock(),u.createElementBlock("div",vi,e[0]||(e[0]=[u.createStaticVNode('<div class="ia-loader-relative" data-v-9a82108b><svg class="ia-icon_1" viewBox="0 0 275 276" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-9a82108b><path d="M137.1 1C124.2 1 111.2 2.80001 98.3 6.60001C68.5 15.4 43.9 33.5 26.8 56.7C9.69999 79.9 0.0999756 108.3 0.0999756 137.9C0.0999756 150.8 1.90001 163.8 5.70001 176.7C7.60001 183 13.3 187 19.5 187C25.7 187 22.2 186.8 23.6 186.4C31.2 184.1 35.6 176.1 33.3 168.5C30.3 158.3 28.8 148 28.8 137.8C28.8 114.5 36.4 92 49.9 73.7C63.4 55.3 82.7 41.1 106.3 34.2C116.5 31.2 126.8 29.7 137 29.7C160.3 29.7 182.8 37.3 201.1 50.8C219.5 64.3 233.7 83.6 240.6 107.2C242.5 113.5 248.2 117.5 254.4 117.5C260.6 117.5 257.1 117.3 258.5 116.9C266.1 114.6 270.5 106.6 268.2 99C259.4 69.2 241.3 44.6 218.1 27.5C194.9 10.4 166.5 0.799988 136.9 0.799988" fill="url(#paint0_linear_672_78)" data-v-9a82108b></path><path d="M254.5 88.9C253.1 88.9 251.8 89.1 250.4 89.5C242.8 91.8 238.4 99.8 240.7 107.4C243.7 117.6 245.2 127.9 245.2 138.1C245.2 161.4 237.6 183.9 224.1 202.2C210.6 220.6 191.3 234.8 167.7 241.7C157.5 244.7 147.2 246.2 137 246.2C113.7 246.2 91.2 238.6 72.9 225.1C54.5 211.6 40.3001 192.3 33.4001 168.7C31.5001 162.4 25.8 158.4 19.6 158.4C13.4 158.4 16.9 158.6 15.5 159C7.90003 161.3 3.50001 169.3 5.80001 176.9C14.6 206.7 32.7001 231.3 55.9001 248.4C79.1001 265.5 107.5 275.1 137.1 275.1C150 275.1 163 273.3 175.9 269.5C205.7 260.7 230.3 242.6 247.4 219.4C264.5 196.2 274.1 167.8 274.1 138.2C274.1 125.4 272.3 112.3 268.5 99.4C266.6 93.1 260.9 89.1 254.7 89.1" fill="url(#paint1_linear_672_78)" data-v-9a82108b></path><defs data-v-9a82108b><linearGradient id="paint0_linear_672_78" x1="-2.44076e-05" y1="94.1" x2="269" y2="94.1" gradientUnits="userSpaceOnUse" data-v-9a82108b><stop stop-color="white" data-v-9a82108b></stop><stop offset="1" stop-color="white" stop-opacity="0" data-v-9a82108b></stop></linearGradient><linearGradient id="paint1_linear_672_78" x1="5.00002" y1="181.9" x2="274" y2="181.9" gradientUnits="userSpaceOnUse" data-v-9a82108b><stop stop-color="white" stop-opacity="0" data-v-9a82108b></stop><stop offset="1" stop-color="white" data-v-9a82108b></stop></linearGradient></defs></svg><svg class="ia-icon_2" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 176 74" data-v-9a82108b><path fill="#fff" d="M6.4 70v-3.5c-.3 1.3-1.5 4.5-2.2 6.6h-.8c-.6-1.7-1.7-5.2-2.1-6.6v6.6H.5v-7.3h1.4c.8 2.1 1.7 5.1 2 6.1.1-.7 1.3-3.9 2.1-6.1h1.3v7.3h-.9V70ZM10.8 65.8v7.3h-.9v-7.3h.9ZM13.5 73.1v-7.3h1.2c2.9 5.1 3.3 5.8 3.4 6.2v-6.1h.9v7.3h-1.1c-3.1-5.6-3.3-6-3.5-6.3v6.4h-.8l-.1-.2ZM22.5 65.8v7.3h-.9v-7.3h.9ZM25.5 71c.1.9.8 1.4 1.6 1.4s1.4-.4 1.4-1.3-.4-1.1-1.7-1.5c-1.5-.5-2.1-1-2.1-2s.9-1.9 2.2-1.9c1.3 0 2.2.9 2.3 1.9h-.9c-.1-.7-.5-1.2-1.4-1.2-.9 0-1.3.4-1.3 1.1 0 .7.4.9 1.5 1.3 1.8.5 2.2 1.2 2.2 2.2 0 1-.8 2.1-2.4 2.1-1.6 0-2.4-.8-2.5-2.1h1.1ZM32.9 66.6h-2.1v-.8H36v.8h-2.1v6.5H33v-6.5h-.1ZM41.9 69.6h-3.3v2.6h3.6v.8h-4.5v-7.3H42v.8h-3.4v2.3h3.3v.8ZM45.2 69.8v3.3h-.9v-7.3h2.6c1.3 0 2.2.6 2.2 1.9 0 1.3-.6 1.5-1.2 1.7.8.2 1.1.8 1.1 1.8 0 .8 0 1.4.1 1.9h-.9c0-.3-.1-1-.1-1.7 0-1.2-.4-1.6-1.6-1.6h-1.3Zm0-.7h1.3c.9 0 1.6-.3 1.6-1.3s-.5-1.2-1.4-1.2h-1.6v2.5h.1ZM52.3 65.8v7.3h-.9v-7.3h.9ZM60.7 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM66.5 65.8h2.4c1.3 0 2.3.7 2.3 2s-1 2.1-2.5 2.1h-1.4V73h-.9v-7.3l.1.1Zm.9 3.4h1.4c.9 0 1.6-.3 1.6-1.4 0-1.1-.6-1.3-1.6-1.3h-1.4v2.7ZM74.2 65.8v4.6c0 1.1.4 2 1.7 2 1.3 0 1.7-.8 1.7-2v-4.6h.9v4.6c0 1.5-.6 2.7-2.6 2.7s-2.6-1-2.6-2.7v-4.7h.9v.1Zm3.5-2.1-1.6 1.4h-.9l1.3-1.4H77.7ZM81.1 65.8h2.5c1.3 0 2.1.7 2.1 1.8s-.6 1.4-1 1.5c.5.2 1.3.6 1.3 1.8 0 1.2-1 2.1-2.4 2.1h-2.4v-7.3l-.1.1Zm2.3 3c1 0 1.4-.4 1.4-1.1 0-.7-.4-1.1-1.4-1.1h-1.5v2.3h1.4l.1-.1ZM82 72.3h1.5c.9 0 1.6-.4 1.6-1.4 0-1-.6-1.4-1.7-1.4H82v2.8ZM88.2 65.8h.9v6.5h3.5v.8h-4.4v-7.3ZM95.3 65.8v7.3h-.9v-7.3h.9ZM103.2 71c-.2 1.2-1 2.2-2.7 2.2-1.7 0-2.9-1.6-2.9-3.8 0-2.2.9-3.7 3-3.7s2.4 1 2.6 2.2h-.9c-.2-.8-.6-1.5-1.7-1.5s-2 1.4-2 2.9.5 3 2 3 1.5-.6 1.7-1.5h.9v.2ZM111.1 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM116.9 65.8h2.4c1.8 0 3.2 1.2 3.2 3.5s-1.2 3.8-3.4 3.8h-2.2v-7.3Zm.9 6.5h1.3c1.7 0 2.5-1.1 2.5-3s-1-2.7-2.4-2.7h-1.3v5.8l-.1-.1ZM128.9 69.6h-3.3v2.6h3.6v.8h-4.5v-7.3h4.3v.8h-3.4v2.3h3.3v.8ZM134.8 65.8h2.5c1.3 0 2.1.7 2.1 1.8s-.6 1.4-1 1.5c.5.2 1.3.6 1.3 1.8 0 1.2-1 2.1-2.4 2.1h-2.4v-7.3l-.1.1Zm2.3 3c1 0 1.4-.4 1.4-1.1 0-.7-.4-1.1-1.4-1.1h-1.5v2.3h1.4l.1-.1Zm-1.4 3.5h1.5c.9 0 1.6-.4 1.6-1.4 0-1-.6-1.4-1.7-1.4h-1.4v2.8ZM147.7 69.4c0 2.1-1 3.8-3.1 3.8s-3-1.6-3-3.8c0-2.2 1-3.7 3.1-3.7s3 1.6 3 3.7Zm-5.2 0c0 1.7.7 3 2.1 3 1.4 0 2.1-1.3 2.1-3s-.7-2.9-2.1-2.9c-1.4 0-2.1 1.3-2.1 2.9ZM150 65.8h.9v6.5h3.5v.8H150v-7.3ZM157.1 65.8v7.3h-.9v-7.3h.9ZM161.3 73.1l-2.4-7.3h1l1.1 3.6c.3 1 .7 2.1.8 2.8.1-.6.6-1.8.9-2.8l1.2-3.6h.9l-2.5 7.3h-1.1.1ZM167.6 65.8v7.3h-.9v-7.3h.9ZM171.1 70.9l-.7 2.2h-.9l2.4-7.3h1.1l2.5 7.3h-1l-.7-2.2h-2.7Zm2.4-.8c-.6-1.9-1-2.9-1.1-3.5-.2.9-.6 2-1.1 3.5h2.2ZM8.2 49.2c0 3.8-.9 6.3-5.5 6.3s-1.7 0-2.2-.2v-3.4c.4 0 .9.1 1.5.1 1.8 0 2.1-.9 2.1-2.6V32.3h4.1v16.9ZM15.3 32.4v15.7c0 1.9.5 4.1 3 4.1s3-1.9 3-4.1V32.3h4.1v15.8c0 4.1-1.6 7.4-7.1 7.4s-7-3.1-7-7.4V32.3h4.1l-.1.1ZM31.5 48.8c.2 1.9 1 3.6 3.1 3.6s2.8-1.3 2.8-3-.9-3-3.8-4.4c-3.9-1.9-5.5-3.5-5.5-6.9 0-3.4 2.4-6.2 6.5-6.2s6.4 3.5 6.5 6.5h-4c-.1-1.3-.5-3.2-2.5-3.2s-2.3 1.1-2.3 2.6.7 2.4 3.4 3.7c4.1 1.9 5.9 3.7 5.9 7.6 0 3.9-2.2 6.6-7.1 6.6-4.9 0-6.9-3.4-7-6.8h4.1l-.1-.1ZM47 35.9h-4.9v-3.6H56v3.6h-4.9v19.3H47V35.9ZM61.8 32.4v22.9h-4.1V32.4h4.1ZM78.7 48.6c-.1 1.2-.5 7.1-6.9 7.1s-7.3-5.7-7.3-11.9S66.7 32 72 32s6.5 5.2 6.6 7h-4.1c0-.8-.1-3.6-2.6-3.6s-3.2 3.1-3.2 8.4c0 5.3.4 8.4 3.1 8.4s2.6-2.8 2.7-3.6H78.7ZM84.8 32.4v22.9h-4.1V32.4h4.1ZM91.8 49.5l-1.1 5.8h-4.1l5.3-22.9h5.3l5.4 22.9h-4.3l-1.1-5.8H91.8Zm4.6-3.6c-.9-4.4-1.5-7.6-1.9-9.8-.3 2.1-1 5.5-1.8 9.8h3.8-.1ZM109.9 32.4h4.1v19.4h7.8l-.4 3.5h-11.5V32.4ZM127.5 32.4v22.9h-4.1V32.4h4.1ZM131 32.4h7c4 0 6.2 2.2 6.2 5.8 0 3.6-1.4 4.3-2.6 4.8 1.6.7 3.3 2.1 3.3 5.6 0 3.5-2.8 6.7-6.9 6.7h-6.9V32.4h-.1Zm6 9.1c2.5 0 3.2-1 3.2-3s-1.1-2.9-3.1-2.9H135v5.9h2Zm-2 10.6h2.4c2 0 3.2-1 3.2-3.6s-1-3.7-3.7-3.7h-2v7.4l.1-.1ZM151.2 45.5v9.8h-4.1V32.4h7c4.2 0 6.5 2.2 6.5 6.3s-1.8 4.7-3 5.2c1.8.8 2.6 2.3 2.6 5.7v.9c0 2.6.1 3.6.3 4.8h-4c-.3-1-.4-2.9-.4-4.8v-.8c0-3.1-.7-4.1-3.3-4.1H151l.2-.1Zm0-3.3h1.9c2.5 0 3.4-1.1 3.4-3.4s-.9-3.1-3-3.1h-2.3v6.5ZM174.6 45.1h-7.3v6.6h8.2l-.5 3.5h-11.8V32.3h11.7v3.6h-7.7v5.6h7.3v3.6h.1ZM10 12.3H2.9v8.2h7.9l-.3 2.1H.6V1.2h9.8v2.1H2.9v7H10v2.1-.1ZM29.4 16.6c0 1.2-.6 6.2-5.8 6.2s-6.1-6-6.1-11.2C17.5 6.4 19.1.7 23.9.7c4.8 0 5.4 4.8 5.5 6.1H27c0-.7-.2-4-3.2-4s-3.9 4.6-3.9 8.8c0 4.2.5 9.1 3.7 9.1s3.3-3.1 3.4-4.2h2.4v.1ZM49.2 11.7c0 7.3-1.7 11.2-6.4 11.2s-6.2-3.8-6.2-11.2C36.6 4.3 38.7.8 42.9.8c4.2 0 6.3 3.6 6.3 10.8v.1Zm-10.2 0c0 6.1 1.2 9.2 3.9 9.2s3.9-3 3.9-9.1S45.6 3 42.9 3 39 5.9 39 11.8v-.1ZM58.4 16.9c.2 2.2 1.2 4 3.6 4 2.4 0 3.4-1.2 3.4-3.7s-.9-3.5-3.8-4.9c-3.4-1.6-4.8-3.1-4.8-6.2S58.7.8 62.2.8c3.5 0 5.3 3 5.3 5.5h-2.3c-.1-1-.4-3.5-3.1-3.5s-2.9 1.4-2.9 3.1c0 1.7.9 3 3.6 4.3 3.7 1.8 5.1 3.6 5.1 6.8 0 3.2-1.9 5.9-5.9 5.9s-5.7-2.8-5.9-5.9h2.4l-.1-.1ZM77.9 1.1v21.4h-2.3V1.1h2.3ZM87.9 16.9c.2 2.2 1.2 4 3.6 4 2.4 0 3.4-1.2 3.4-3.7s-.9-3.5-3.8-4.9c-3.4-1.6-4.8-3.1-4.8-6.2S88.2.8 91.7.8c3.5 0 5.3 3 5.3 5.5h-2.3c-.1-1-.4-3.5-3.1-3.5s-2.9 1.4-2.9 3.1c0 1.7.9 3 3.6 4.3 3.7 1.8 5.1 3.6 5.1 6.8 0 3.2-1.9 5.9-5.9 5.9s-5.7-2.8-5.9-5.9H88l-.1-.1ZM107.9 3.2h-4.8V1.1H115v2.1h-4.8v19.3h-2.4V3.2h.1ZM131.5 12.3h-7.1v8.2h7.9l-.3 2.1h-9.9V1.2h9.8v2.1h-7.5v7h7.1v2.1-.1ZM152.5 13.4c0-4 0-8 .1-10.3-.8 3.7-2.7 12.6-4.4 19.4h-2.3c-1.3-5.9-3.3-15.5-4.1-19.4.1 2.5.2 7.2.2 10.9v8.5h-2.2V1.1h3.5c1.7 6.7 3.4 14.9 3.9 17.7.4-2.3 2.5-11.2 4.2-17.7h3.5v21.4h-2.3v-9.1h-.1ZM165.9 15.8l-1.6 6.8h-2.4l5.2-21.4h3l5.3 21.4h-2.5l-1.6-6.8h-5.6.2Zm5.1-2.1c-1.2-5.3-2-8.6-2.3-10.3-.3 1.9-1.2 5.7-2.2 10.3h4.6-.1Z" data-v-9a82108b></path></svg></div>',1)]))}const _i=U(xi,[["render",yi],["__scopeId","data-v-9a82108b"]]),wi={},Ei={class:"ia-message-loader"};function Ci(t,e){return u.openBlock(),u.createElementBlock("div",Ei,e[0]||(e[0]=[u.createElementVNode("div",{class:"msg-loader"},null,-1)]))}const Ai=U(wi,[["render",Ci],["__scopeId","data-v-f96b52cc"]]),qi={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function Di(t,e){return u.openBlock(),u.createElementBlock("svg",qi,e[0]||(e[0]=[u.createElementVNode("path",{d:"M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32v144H48c-17.7 0-32 14.3-32 32s14.3 32 32 32h144v144c0 17.7 14.3 32 32 32s32-14.3 32-32V288h144c17.7 0 32-14.3 32-32s-14.3-32-32-32H256z"},null,-1)]))}const Si={render:Di},Ti={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function Ri(t,e){return u.openBlock(),u.createElementBlock("svg",Ti,e[0]||(e[0]=[u.createElementVNode("path",{d:"M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z"},null,-1)]))}const Li={render:Ri},Bi={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 24 24"};function Ni(t,e){return u.openBlock(),u.createElementBlock("svg",Bi,e[0]||(e[0]=[u.createElementVNode("path",{fill:"#323232","fill-rule":"evenodd",d:"M20.774 8.1c1.61-1.616 1.541-3.738.339-5.038A3.3 3.3 0 0 0 18.748 2c-.949-.022-1.931.34-2.838 1.099a1 1 0 0 0-.067.061L2.874 16.181A3 3 0 0 0 2 18.3v1.693C2 21.094 2.892 22 4.004 22h1.679a3 3 0 0 0 2.125-.883zm-3.567-2.307a1 1 0 1 0-1.414 1.414l1 1a1 1 0 1 0 1.414-1.414z","clip-rule":"evenodd"},null,-1)]))}const Fi={render:Ni},Vi={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 24 24"};function Ii(t,e){return u.openBlock(),u.createElementBlock("svg",Vi,e[0]||(e[0]=[u.createElementVNode("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 6 3-3m0 0 3 3m-3-3v10m-5-3c-.932 0-1.398 0-1.765.152a2 2 0 0 0-1.083 1.083C4 11.602 4 12.068 4 13v4.8c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874c.427.218.987.218 2.105.218h9.607c1.118 0 1.677 0 2.104-.218.376-.192.682-.498.874-.874.218-.428.218-.987.218-2.105V13c0-.932 0-1.398-.152-1.765a2 2 0 0 0-1.083-1.083C18.398 10 17.932 10 17 10"},null,-1)]))}const Mi={render:Ii},Oi={xmlns:"http://www.w3.org/2000/svg",width:"800",height:"800",fill:"none",viewBox:"0 0 24 24"};function zi(t,e){return u.openBlock(),u.createElementBlock("svg",Oi,e[0]||(e[0]=[u.createElementVNode("path",{stroke:"#000","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 5a1 1 0 1 0-2 0 1 1 0 0 0 2 0M13 12a1 1 0 1 0-2 0 1 1 0 0 0 2 0M13 19a1 1 0 1 0-2 0 1 1 0 0 0 2 0"},null,-1)]))}const Ui={render:zi},Pi={class:"ia-chat-history-item"},$i=["title"],Hi={class:"ia-chat-menu-item-btn",title:"Menú"},ji={key:0,class:"dropdown-menu"},Gi={class:"ia-chat-delete-item-btn",title:"Editar"},Zi={class:"ia-chat-delete-item-btn",title:"Compartir"},je=U(u.defineComponent({__name:"ChatHistoryItem",props:{item:{}},emits:["click","delete"],setup(t,{emit:e}){const r=t,n=u.ref(!1),o=u.ref(null),s=()=>{n.value=!n.value},c=i=>{o.value&&!o.value.contains(i.target)&&(n.value=!1)};u.onMounted(()=>{document.addEventListener("click",c)}),u.onBeforeUnmount(()=>{document.removeEventListener("click",c)});const a=e;return(i,l)=>(u.openBlock(),u.createElementBlock("div",Pi,[u.createElementVNode("button",{class:"ia-chat-history-item-btn",onClick:l[0]||(l[0]=p=>a("click",r.item)),title:r.item.titulo},u.toDisplayString(r.item.titulo),9,$i),u.createElementVNode("div",{class:"menu-container",ref_key:"menuRef",ref:o},[u.createElementVNode("button",{onClick:s,class:"menu-button"},[u.createElementVNode("span",Hi,[u.createVNode(u.unref(Ui))])]),n.value?(u.openBlock(),u.createElementBlock("ul",ji,[u.createElementVNode("li",null,[u.createElementVNode("button",Gi,[u.createVNode(u.unref(Fi))])]),u.createElementVNode("li",null,[u.createElementVNode("button",Zi,[u.createVNode(u.unref(Mi))])]),u.createElementVNode("li",null,[u.createElementVNode("button",{class:"ia-chat-delete-item-btn",onClick:l[1]||(l[1]=p=>a("delete",r.item.id)),title:"Eliminar"},[u.createVNode(u.unref(Li))])])])):u.createCommentVNode("",!0)],512)]))}}),[["__scopeId","data-v-1e9b01b2"]]),Ji={key:0,class:"header-title"},Wi={key:1,class:"header-title"},Ki={key:2,class:"header-title"},Yi={class:"header-title"},Qi=U(u.defineComponent({__name:"ChatHistoryList",props:{history:{},currentChatId:{}},emits:["click","delete"],setup(t,{emit:e}){const r=t,n=e,o=(a,i)=>{const l=Math.abs(i.getTime()-a.getTime());return Math.ceil(l/(1e3*60*60*24))},s=a=>{const i={year:"numeric",month:"long"},l=a.toLocaleDateString(void 0,i);return l.charAt(0).toUpperCase()+l.slice(1)},c=u.computed(()=>{const a=new Date,i={today:[],last7Days:[],last30Days:[],older:{}};return r.history.forEach(l=>{const p=new Date(l.actualizadoEn),d=o(a,p);if(d===0)i.today.push(l);else if(d<=7)i.last7Days.push(l);else if(d<=30)i.last30Days.push(l);else{const f=s(p);i.older[f]||(i.older[f]=[]),i.older[f].push(l)}}),i});return(a,i)=>(u.openBlock(),u.createElementBlock("div",null,[c.value.today.length?(u.openBlock(),u.createElementBlock("h2",Ji,"Hoy")):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.today,l=>(u.openBlock(),u.createBlock(je,{key:l.id,item:l,class:u.normalizeClass({"ia-chat-history-item-active":l.id===a.currentChatId}),onClick:i[0]||(i[0]=p=>n("click",p)),onDelete:i[1]||(i[1]=p=>n("delete",p))},null,8,["item","class"]))),128)),c.value.last7Days.length?(u.openBlock(),u.createElementBlock("h2",Wi,"Últimos 7 días")):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.last7Days,l=>(u.openBlock(),u.createBlock(je,{key:l.id,item:l,class:u.normalizeClass({"ia-chat-history-item-active":l.id===a.currentChatId}),onClick:i[2]||(i[2]=p=>n("click",p)),onDelete:i[3]||(i[3]=p=>n("delete",p))},null,8,["item","class"]))),128)),c.value.last30Days.length?(u.openBlock(),u.createElementBlock("h2",Ki,"Últimos 30 días")):u.createCommentVNode("",!0),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.last30Days,l=>(u.openBlock(),u.createBlock(je,{key:l.id,item:l,class:u.normalizeClass({"ia-chat-history-item-active":l.id===a.currentChatId}),onClick:i[4]||(i[4]=p=>n("click",p)),onDelete:i[5]||(i[5]=p=>n("delete",p))},null,8,["item","class"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(c.value.older,(l,p)=>(u.openBlock(),u.createElementBlock("div",{key:p},[u.createElementVNode("h2",Yi,u.toDisplayString(p),1),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(l,d=>(u.openBlock(),u.createBlock(je,{key:d.id,item:d,class:u.normalizeClass({"ia-chat-history-item-active":d.id===a.currentChatId}),onClick:i[6]||(i[6]=f=>n("click",f)),onDelete:i[7]||(i[7]=f=>n("delete",f))},null,8,["item","class"]))),128))]))),128))]))}}),[["__scopeId","data-v-30860a69"]]),Xi={class:"ia-chat-sidebar"},el={class:"ia-sidebar-header"},tl={class:"ia-sidebar-body"},rl=U(u.defineComponent({__name:"ChatSidebar",props:{baseUrl:{},isVisible:{type:Boolean},history:{},currentChatId:{}},emits:["update:isVisible","loadChat","new-chat","delete"],setup(t,{emit:e}){const r=t,n=e,o=u.ref(),s=c=>{o.value=c,n("loadChat",c)};return(c,a)=>u.withDirectives((u.openBlock(),u.createElementBlock("nav",Xi,[u.createElementVNode("header",el,[u.createVNode(It,{title:r.isVisible?"Esconder historial":"Mostrar historial",onClick:a[0]||(a[0]=i=>n("update:isVisible",!r.isVisible))},null,8,["title"]),a[4]||(a[4]=u.createElementVNode("b",{class:"header-title"},"Chats",-1)),u.createElementVNode("button",{class:"ia-sidebar-btn",onClick:a[1]||(a[1]=i=>n("new-chat"))},[u.createVNode(u.unref(Si))])]),u.createElementVNode("div",tl,[u.createVNode(Qi,{history:r.history,currentChatId:r.currentChatId,onClick:a[2]||(a[2]=i=>s(i.id)),onDelete:a[3]||(a[3]=i=>n("delete",i))},null,8,["history","currentChatId"])])],512)),[[u.vShow,r.isVisible]])}}),[["__scopeId","data-v-754d77d1"]]),nl={xmlns:"http://www.w3.org/2000/svg","xml:space":"preserve",width:"800",height:"800",viewBox:"0 0 512.003 512.003"};function ol(t,e){return u.openBlock(),u.createElementBlock("svg",nl,e[0]||(e[0]=[u.createElementVNode("path",{d:"M507.284 248.364 12.35.898A8.56 8.56 0 0 0 2.153 2.86a8.55 8.55 0 0 0-.759 10.351l159.07 242.79L1.393 498.792a8.55 8.55 0 0 0 .759 10.351 8.564 8.564 0 0 0 10.197 1.963l494.933-247.467a8.542 8.542 0 0 0 .002-15.275"},null,-1)]))}const sl={render:ol},cl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function al(t,e){return u.openBlock(),u.createElementBlock("svg",cl,e[0]||(e[0]=[u.createElementVNode("path",{d:"M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4"},null,-1)]))}const il={render:al},ll={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 40 40"};function ul(t,e){return u.openBlock(),u.createElementBlock("svg",ll,e[0]||(e[0]=[u.createElementVNode("circle",{cx:"20",cy:"20",r:"20",fill:"#fff"},null,-1),u.createElementVNode("path",{fill:"var(--ia-primary-color)",d:"M20 0C8.95 0 0 8.95 0 20c0 3.41.85 6.61 2.35 9.42a24.601 24.601 0 0 0 15.05 5.16c1.86 0 3.73-.21 5.58-.65q.78-.18 1.56-.42c.37-.11.74-.23 1.11-.37.42-.15.83-.31 1.24-.49.17-.07.35-.15.52-.23-.02-.08-.04-.17-.04-.25 0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1a1 1 0 0 1-.61-.21v.03c-.35.16-.71.32-1.07.46-.14.06-.28.11-.42.17-1.37.52-2.76.91-4.16 1.18-.08.02-.16.03-.24.05-1.49.27-2.98.4-4.47.4-4.97 0-9.82-1.48-13.93-4.2-.09-.06-.18-.12-.27-.19C6.76 36.36 12.95 40 20 40c11.05 0 20-8.95 20-20S31.05 0 20 0m1.06 4.63a2.77 2.77 0 1 1 0 5.54 2.77 2.77 0 0 1 0-5.54m-8.78 23.32c-.79-.26-1.52-.66-2.13-1.22a5.46 5.46 0 0 1-1.39-2.03c-.3-.77-.43-1.61-.43-2.48a1.72 1.72 0 1 1 3.44 0c0 .53.08.93.2 1.23.12.31.27.52.5.73s.5.37.88.49.87.2 1.48.2c.66 0 1.18-.13 1.66-.38.47-.25.77-.54 1.03-.96.24-.42.37-.87.37-1.49v-9.48a1.72 1.72 0 1 1 3.44 0v9.5c0 1.14-.28 2.27-.85 3.23a5.94 5.94 0 0 1-2.4 2.26c-.99.52-2.1.77-3.24.76-.9 0-1.75-.11-2.54-.37Zm19.25-.68a1.72 1.72 0 0 1-.92.92c-.1.04-.21.08-.32.1s-.23.03-.35.03H16.29h.02c1.14 0 2.25-.25 3.24-.76 1-.51 1.83-1.29 2.4-2.26.58-.97.86-2.09.85-3.23v-9.51c0-.65-.37-1.22-.91-1.51.24-.13.51-.21.81-.21.95 0 1.72.77 1.72 1.72v9.64c.02.54.14.96.37 1.34.25.42.56.71 1.03.96.41.21.86.33 1.39.36s2.73.01 2.73.01c.59 0 1.11.3 1.42.76.19.27.29.6.29.96 0 .24-.05.46-.14.67Z"},null,-1),u.createElementVNode("path",{fill:"var(--ia-primary-color)",d:"M21.06 9.29a1.874 1.874 0 0 0 1.88-1.88 1.874 1.874 0 0 0-1.88-1.88 1.874 1.874 0 0 0-1.88 1.88 1.874 1.874 0 0 0 1.88 1.88"},null,-1)]))}const pl={render:ul},dl={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"};function fl(t,e){return u.openBlock(),u.createElementBlock("svg",dl,e[0]||(e[0]=[u.createElementVNode("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"},null,-1)]))}const hl={render:fl},ml={key:0,class:"modal-overlay"},gl={key:0,class:"ia-message-loader"},bl={class:"modal-content"},kl={class:"ia-doc-header"},xl={class:"document-list"},vl={class:"seleccionados"},yl={style:{"list-style":"none",width:"100%"}},_l=["onClick"],wl={class:"document-button"},El={key:0},Cl=U(u.defineComponent({__name:"DocumentList",props:{visible:Boolean,documentos:Array,items:Array},emits:["close","selection"],setup(t,{emit:e}){const r=t,n=e,o=u.ref(!1),s=u.ref([]),c=l=>s.value.includes(l),a=l=>{c(l)?s.value=s.value.filter(p=>p!==l):s.value.push(l)};u.watch(()=>r.visible,l=>{l&&(s.value=[...r.items])});const i=()=>{n("selection",s.value),n("close")};return(l,p)=>(u.openBlock(),u.createElementBlock("div",null,[t.visible?(u.openBlock(),u.createElementBlock("div",ml,[o.value?(u.openBlock(),u.createElementBlock("div",gl,p[1]||(p[1]=[u.createElementVNode("div",{class:"msg-loader"},null,-1)]))):u.createCommentVNode("",!0),u.createElementVNode("div",bl,[u.createElementVNode("header",kl,[p[2]||(p[2]=u.createElementVNode("p",null,"Listado de Documentos",-1)),u.createElementVNode("button",{class:"close-btn",onClick:p[0]||(p[0]=d=>n("close"))},"X")]),u.createElementVNode("div",xl,[u.createElementVNode("p",vl,u.toDisplayString(s.value.length)+" Documentos seleccionados",1),u.createElementVNode("ul",yl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(r.documentos,(d,f)=>(u.openBlock(),u.createElementBlock("li",{key:f,class:u.normalizeClass(["document-item",c(d.name)?"selected":""]),onClick:h=>a(d.name)},[u.createElementVNode("button",wl,[u.createElementVNode("span",null,u.toDisplayString(d.shortDescription),1)])],10,_l))),128))])]),r.documentos.length?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("p",El,"No hay datos disponibles")),u.createElementVNode("button",{onClick:i,class:"confirm-btn"},[u.createVNode(u.unref(hl)),p[3]||(p[3]=u.createTextVNode("Confirmar Selección "))])])])):u.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-9f1a4d35"]]),Al={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"};function ql(t,e){return u.openBlock(),u.createElementBlock("svg",Al,e[0]||(e[0]=[u.createElementVNode("path",{d:"M64 464h48v48H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0h165.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V304h-48V160h-80c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16v384c0 8.8 7.2 16 16 16m112-112h32c30.9 0 56 25.1 56 56s-25.1 56-56 56h-16v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V368c0-8.8 7.2-16 16-16m32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24h-16v48zm96-80h32c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48h-32c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16m32 128c8.8 0 16-7.2 16-16v-64c0-8.8-7.2-16-16-16h-16v96zm80-112c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16h-32v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16h-32v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V368"},null,-1)]))}const Dl={render:ql},Sl={class:"file-list"},Tl={class:"ia-chat-common-btn",title:"pdf"},Rl={class:"file-details"},Ll=["onClick"],Bl=U(u.defineComponent({__name:"Documentos",props:{items:Array},emits:["update-items"],setup(t,{emit:e}){const r=t,n=e,o=s=>{const c=[...r.items];c.splice(s,1),n("update-items",c)};return(s,c)=>(u.openBlock(),u.createElementBlock("div",Sl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.items,(a,i)=>(u.openBlock(),u.createElementBlock("div",{key:a,class:"file-card"},[u.createElementVNode("button",Tl,[u.createVNode(u.unref(Dl))]),u.createElementVNode("div",Rl,[u.createElementVNode("p",null,u.toDisplayString(a),1)]),u.createElementVNode("button",{class:"remove-button",onClick:l=>o(i)},"X",8,Ll)]))),128))]))}}),[["__scopeId","data-v-864928b6"]]),Nl={class:"ia-chat-container"},Fl={class:"ia-chat-header"},Vl={style:{display:"flex",gap:"0.5rem"}},Il={class:"ia-chat-body-container"},Ml={class:"ia-chat-body"},Ol={class:"ia-chat-empty-container"},zl={key:0,class:"ia-dots-loader-container"},Ul={class:"ia-chat-footer"},Pl={key:0},$l={class:"ia-chat-text-area-container"},Sn=U(u.defineComponent({__name:"ChatPage",props:{baseUrl:{},authToken:{},darkMode:{type:Boolean,default:!1},showDocuments:{type:Boolean,default:!1},containerClass:{}},setup(t){const e=t,r=u.reactive({baseUrl:"",authToken:""}),n=u.ref([]),o=u.ref(!1),s=u.ref([]),c=()=>{o.value=!0},a=()=>{o.value=!1},i=C=>{s.value=C},l=C=>{s.value=C},p=u.ref(!0),d=u.computed(()=>e.darkMode?`dark ia-chat-page-container ${e.containerClass?e.containerClass:""}`:`ia-chat-page-container ${e.containerClass?e.containerClass:""}`),f=u.ref([]),h=u.ref({messages:[],total:0}),g=u.ref(!1),b=u.ref(!1),k=u.ref(!1),y=u.ref(""),x=u.ref();u.onMounted(()=>{r.baseUrl=e.baseUrl,r.authToken=e.authToken,u.provide(Pr,r),E(),_()});const E=async()=>{try{const C=await li({baseUrl:e.baseUrl,token:e.authToken});f.value=C.data.response.data}catch(C){console.log(C)}},q=async C=>{try{g.value=!0;const v=await Dn({baseUrl:e.baseUrl,chatId:C.chatId,token:e.authToken});x.value=C.chatId,h.value={messages:[...v.data.response.data],total:v.data.response.pagination.total},u.nextTick(()=>{w()})}catch(v){console.log(v)}finally{g.value=!1}},A=async C=>{try{b.value=!0;const v=await Dn({baseUrl:e.baseUrl,chatId:C.chatId,token:e.authToken,lastMessageId:C.lastMessageId});x.value=C.chatId,h.value={messages:[...v.data.response.data,...h.value.messages],total:v.data.response.pagination.total},u.nextTick(()=>{$.value&&($.value.scrollTop=40)})}catch(v){console.log(v)}finally{b.value=!1}},_=async()=>{try{g.value=!0;const C=await ui({baseUrl:e.baseUrl,token:e.authToken});n.value=C.data.response.data}catch(C){console.log(C)}finally{g.value=!1}},S=async C=>{var v,N,ye;if(C&&C.key==="Enter"&&C.shiftKey){y.value+=`
|
24
|
+
`;return}if(y.value)try{const Ft=Math.round(Math.random()*1e6).toString();h.value.messages.push({id:Ft,message:y.value,chatId:x.value?x.value:void 0,esIA:!1,creadoEn:new Date().toISOString()}),h.value.total+=1,k.value=!0,u.nextTick(()=>{w()});const jl=y.value;y.value="";const Ge=await ii({baseUrl:e.baseUrl,message:jl,docNames:((v=s.value)==null?void 0:v.length)>0?s.value:void 0,chatId:x.value,token:e.authToken});if(Ge.data.response.data.nuevoChat){const Gl=Ge.data.response.data.nuevoChat;f.value=[Gl,...f.value]}x.value=(N=Ge.data.response.data.messages)==null?void 0:N[0].chatId,h.value.messages.push((ye=Ge.data.response.data.messages)==null?void 0:ye[1]),h.value.total+=1,u.nextTick(()=>{w()})}catch(Ft){console.log(Ft)}finally{k.value=!1}},L=async C=>{try{const v=await di({baseUrl:e.baseUrl,chatId:C.chatId,token:e.authToken});E(),T(),x.value=void 0}catch(v){console.log(v)}},M=()=>{x.value=void 0,T()},T=()=>{h.value={messages:[],total:0},y.value=""},F=u.ref();u.watch(y,()=>{X()});const X=()=>{u.nextTick(()=>{F.value&&(F.value.style.height="auto",F.value.style.height=`${F.value.scrollHeight}px`)})},$=u.ref(),w=()=>{$.value&&($.value.scrollTop=$.value.scrollHeight)};return(C,v)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(d.value)},[u.createVNode(rl,{baseUrl:e.baseUrl,isVisible:p.value,"onUpdate:isVisible":v[0]||(v[0]=N=>p.value=N),currentChatId:x.value,history:f.value,onLoadChat:v[1]||(v[1]=N=>q({chatId:N})),onNewChat:M,onDelete:v[2]||(v[2]=N=>L({chatId:N}))},null,8,["baseUrl","isVisible","currentChatId","history"]),u.createElementVNode("section",Nl,[u.createElementVNode("header",Fl,[u.createElementVNode("div",Vl,[p.value?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(It,{key:0,title:"Mostrar historial",onClick:v[3]||(v[3]=N=>p.value=!0)})),v[8]||(v[8]=u.createElementVNode("p",null,[u.createTextVNode("Fiscal"),u.createElementVNode("span",{style:{color:"var(--ia-primary-color)"}}," IA")],-1))]),v[9]||(v[9]=u.createElementVNode("p",null,null,-1))]),u.createElementVNode("div",Il,[g.value?(u.openBlock(),u.createBlock(_i,{key:0})):u.createCommentVNode("",!0),u.createElementVNode("div",Ml,[u.createElementVNode("div",{class:"ia-chat-body-messages",ref_key:"chatContainer",ref:$},[b.value?(u.openBlock(),u.createBlock(Ai,{key:0})):u.createCommentVNode("",!0),x.value?(u.openBlock(),u.createBlock(ki,{key:1,messages:h.value.messages,total:h.value.total,"is-loading":k.value,onLoadMore:v[4]||(v[4]=()=>A({chatId:x.value,lastMessageId:h.value.messages[0].id}))},null,8,["messages","total","is-loading"])):(u.openBlock(),u.createElementBlock(u.Fragment,{key:2},[u.createElementVNode("div",Ol,[u.createVNode(u.unref(pl)),v[10]||(v[10]=u.createElementVNode("p",null,"Para comenzar, escribe una consulta",-1))]),k.value?(u.openBlock(),u.createElementBlock("div",zl,[u.createVNode(Mt)])):u.createCommentVNode("",!0)],64))],512),u.createElementVNode("footer",Ul,[s.value.length?(u.openBlock(),u.createElementBlock("p",Pl," Se está usando los documentos seleccionados para consulta. ")):u.createCommentVNode("",!0),u.createVNode(Bl,{items:s.value,onUpdateItems:l},null,8,["items"]),u.createElementVNode("div",$l,[e.showDocuments?(u.openBlock(),u.createElementBlock("button",{key:0,class:"ia-chat-page-send-btn",onClick:c},[u.createVNode(u.unref(il))])):u.createCommentVNode("",!0),u.createVNode(Cl,{visible:o.value,documentos:n.value,items:s.value,onClose:a,onSelection:i},null,8,["visible","documentos","items"]),u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":v[5]||(v[5]=N=>y.value=N),placeholder:"Escriba una consulta",class:"ia-chat-text-area",required:"",rows:1,"auto-resize":"",maxlength:"500",ref_key:"textAreaRef",ref:F,onKeydown:v[6]||(v[6]=u.withKeys(u.withModifiers(N=>S(N),["prevent"]),["enter"]))},null,544),[[u.vModelText,y.value]]),u.createElementVNode("button",{class:"ia-chat-page-send-btn",onClick:v[7]||(v[7]=()=>S())},[u.createVNode(u.unref(sl))])]),v[11]||(v[11]=u.createElementVNode("p",null,"BolivIA puede cometer errores. Considera verificar la información importante",-1))])])])])],2))}}),[["__scopeId","data-v-ea1d389d"]]),Hl={install:t=>{t.component("ChatPage",Sn)}};K.ChatPage=Sn,K.default=Hl,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|