@n8n/chat 0.18.0 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +2 -2
  2. package/dist/App.vue.d.ts +8 -0
  3. package/dist/__stories__/App.stories.d.ts +18 -0
  4. package/dist/__tests__/index.spec.d.ts +1 -0
  5. package/dist/__tests__/setup.d.ts +1 -0
  6. package/dist/__tests__/utils/create.d.ts +6 -0
  7. package/dist/__tests__/utils/fetch.d.ts +5 -0
  8. package/dist/__tests__/utils/selectors.d.ts +12 -0
  9. package/dist/api/generic.d.ts +6 -0
  10. package/dist/api/message.d.ts +4 -0
  11. package/dist/chat.bundle.es.js +11029 -0
  12. package/dist/chat.bundle.umd.js +37 -0
  13. package/dist/chat.es.js +6939 -0
  14. package/dist/chat.umd.js +18 -0
  15. package/dist/components/Button.vue.d.ts +11 -0
  16. package/dist/components/Chat.vue.d.ts +2 -0
  17. package/dist/components/ChatWindow.vue.d.ts +2 -0
  18. package/dist/components/GetStarted.vue.d.ts +2 -0
  19. package/dist/components/GetStartedFooter.vue.d.ts +2 -0
  20. package/dist/components/Input.vue.d.ts +2 -0
  21. package/dist/components/Layout.vue.d.ts +13 -0
  22. package/dist/components/Message.vue.d.ts +26 -0
  23. package/dist/components/MessageTyping.vue.d.ts +29 -0
  24. package/dist/components/MessagesList.vue.d.ts +17 -0
  25. package/dist/components/PoweredBy.vue.d.ts +2 -0
  26. package/dist/composables/useChat.d.ts +3 -0
  27. package/dist/composables/useI18n.d.ts +4 -0
  28. package/dist/composables/useOptions.d.ts +5 -0
  29. package/dist/constants/defaults.d.ts +4 -0
  30. package/dist/constants/localStorage.d.ts +2 -0
  31. package/dist/constants/symbols.d.ts +5 -0
  32. package/dist/event-buses/chatEventBus.d.ts +1 -0
  33. package/dist/index.d.ts +3 -0
  34. package/dist/plugins/chat.d.ts +4 -0
  35. package/dist/style.css +1 -0
  36. package/dist/types/chat.d.ts +12 -0
  37. package/{src/types/messages.ts → dist/types/messages.d.ts} +10 -12
  38. package/dist/types/options.d.ts +31 -0
  39. package/dist/types/webhook.d.ts +16 -0
  40. package/dist/utils/event-bus.d.ts +8 -0
  41. package/dist/utils/mount.d.ts +1 -0
  42. package/package.json +45 -9
  43. package/.eslintignore +0 -2
  44. package/.eslintrc.cjs +0 -10
  45. package/.np-config.json +0 -5
  46. package/.storybook/main.ts +0 -4
  47. package/.storybook/preview.scss +0 -4
  48. package/.storybook/preview.ts +0 -15
  49. package/.vscode/extensions.json +0 -3
  50. package/build.config.js +0 -21
  51. package/env.d.ts +0 -1
  52. package/index.html +0 -13
  53. package/resources/images/fullscreen.png +0 -0
  54. package/resources/images/windowed.png +0 -0
  55. package/resources/workflow-manual.json +0 -238
  56. package/resources/workflow.json +0 -119
  57. package/scripts/pack.js +0 -11
  58. package/scripts/postbuild.js +0 -36
  59. package/src/App.vue +0 -23
  60. package/src/__stories__/App.stories.ts +0 -43
  61. package/src/__tests__/index.spec.ts +0 -218
  62. package/src/__tests__/setup.ts +0 -1
  63. package/src/__tests__/utils/create.ts +0 -16
  64. package/src/__tests__/utils/fetch.ts +0 -18
  65. package/src/__tests__/utils/selectors.ts +0 -53
  66. package/src/api/generic.ts +0 -63
  67. package/src/api/message.ts +0 -37
  68. package/src/components/Button.vue +0 -41
  69. package/src/components/Chat.vue +0 -96
  70. package/src/components/ChatWindow.vue +0 -123
  71. package/src/components/GetStarted.vue +0 -24
  72. package/src/components/GetStartedFooter.vue +0 -20
  73. package/src/components/Input.vue +0 -108
  74. package/src/components/Layout.vue +0 -99
  75. package/src/components/Message.vue +0 -137
  76. package/src/components/MessageTyping.vue +0 -110
  77. package/src/components/MessagesList.vue +0 -33
  78. package/src/components/PoweredBy.vue +0 -17
  79. package/src/composables/useChat.ts +0 -7
  80. package/src/composables/useI18n.ts +0 -21
  81. package/src/composables/useOptions.ts +0 -11
  82. package/src/constants/defaults.ts +0 -30
  83. package/src/constants/localStorage.ts +0 -2
  84. package/src/constants/symbols.ts +0 -8
  85. package/src/css/_tokens.scss +0 -38
  86. package/src/css/index.scss +0 -1
  87. package/src/event-buses/chatEventBus.ts +0 -3
  88. package/src/index.ts +0 -42
  89. package/src/main.scss +0 -5
  90. package/src/plugins/chat.ts +0 -115
  91. package/src/shims.d.ts +0 -6
  92. package/src/types/chat.ts +0 -12
  93. package/src/types/icons.d.ts +0 -5
  94. package/src/types/options.ts +0 -33
  95. package/src/types/webhook.ts +0 -18
  96. package/src/utils/event-bus.ts +0 -51
  97. package/src/utils/mount.ts +0 -16
  98. package/tsconfig.json +0 -27
  99. package/vite.config.mts +0 -53
  100. package/vitest.config.mts +0 -30
  101. /package/{src/__tests__/utils/index.ts → dist/__tests__/utils/index.d.ts} +0 -0
  102. /package/{src/api/index.ts → dist/api/index.d.ts} +0 -0
  103. /package/{src/components/index.ts → dist/components/index.d.ts} +0 -0
  104. /package/{src/composables/index.ts → dist/composables/index.d.ts} +0 -0
  105. /package/{src/constants/index.ts → dist/constants/index.d.ts} +0 -0
  106. /package/{src/event-buses/index.ts → dist/event-buses/index.d.ts} +0 -0
  107. /package/{public → dist}/favicon.ico +0 -0
  108. /package/{src/plugins/index.ts → dist/plugins/index.d.ts} +0 -0
  109. /package/{src/types/index.ts → dist/types/index.d.ts} +0 -0
  110. /package/{src/utils/index.ts → dist/utils/index.d.ts} +0 -0
@@ -0,0 +1,18 @@
1
+ (function(pe,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(pe=typeof globalThis<"u"?globalThis:pe||self,u(pe.N8nChat={},pe.Vue))})(this,function(pe,u){"use strict";function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Dr(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var o=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return t[r]}})}),n}function zt(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(e=>{const n=t[e],r=typeof n;(r==="object"||r==="function")&&!Object.isFrozen(n)&&zt(n)}),t}class Ut{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Vt(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function le(t,...e){const n=Object.create(null);for(const r in t)n[r]=t[r];return e.forEach(function(r){for(const o in r)n[o]=r[o]}),n}const Tr="</span>",$t=t=>!!t.scope,Rr=(t,{prefix:e})=>{if(t.startsWith("language:"))return t.replace("language:","language-");if(t.includes(".")){const n=t.split(".");return[`${e}${n.shift()}`,...n.map((r,o)=>`${r}${"_".repeat(o+1)}`)].join(" ")}return`${e}${t}`};class Nr{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Vt(e)}openNode(e){if(!$t(e))return;const n=Rr(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){$t(e)&&(this.buffer+=Tr)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Gt=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class ot{constructor(){this.rootNode=Gt(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n=Gt({scope:e});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return typeof n=="string"?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(r=>this._walk(e,r)),e.closeNode(n)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(n=>typeof n=="string")?e.children=[e.children.join("")]:e.children.forEach(n=>{ot._collapse(n)}))}}class Lr extends ot{constructor(e){super(),this.options=e}addText(e){e!==""&&this.add(e)}startScope(e){this.openNode(e)}endScope(){this.closeNode()}__addSublanguage(e,n){const r=e.root;n&&(r.scope=`language:${n}`),this.add(r)}toHTML(){return new Nr(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ae(t){return t?typeof t=="string"?t:t.source:null}function Ht(t){return fe("(?=",t,")")}function Br(t){return fe("(?:",t,")*")}function Mr(t){return fe("(?:",t,")?")}function fe(...t){return t.map(n=>Ae(n)).join("")}function Ir(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function st(...t){return"("+(Ir(t).capture?"":"?:")+t.map(r=>Ae(r)).join("|")+")"}function jt(t){return new RegExp(t.toString()+"|").exec("").length-1}function Or(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Fr=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ct(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=Ae(r),i="";for(;s.length>0;){const c=Fr.exec(s);if(!c){i+=s;break}i+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?i+="\\"+String(Number(c[1])+o):(i+=c[0],c[0]==="("&&n++)}return i}).map(r=>`(${r})`).join(e)}const Pr=/\b\B/,Zt="[a-zA-Z]\\w*",it="[a-zA-Z_]\\w*",Wt="\\b\\d+(\\.\\d+)?",Kt="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Jt="\\b(0b[01]+)",zr="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ur=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=fe(e,/.*\b/,t.binary,/\b.*/)),le({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Ce={begin:"\\\\[\\s\\S]",relevance:0},Vr={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ce]},$r={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ce]},Gr={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Be=function(t,e,n={}){const r=le({scope:"comment",begin:t,end:e,contains:[]},n);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const o=st("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:fe(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Hr=Be("//","$"),jr=Be("/\\*","\\*/"),Zr=Be("#","$"),Wr={scope:"number",begin:Wt,relevance:0},Kr={scope:"number",begin:Kt,relevance:0},Jr={scope:"number",begin:Jt,relevance:0},Yr={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Ce,{begin:/\[/,end:/\]/,relevance:0,contains:[Ce]}]},Xr={scope:"title",begin:Zt,relevance:0},Qr={scope:"title",begin:it,relevance:0},eo={begin:"\\.\\s*"+it,relevance:0};var Me=Object.freeze({__proto__:null,APOS_STRING_MODE:Vr,BACKSLASH_ESCAPE:Ce,BINARY_NUMBER_MODE:Jr,BINARY_NUMBER_RE:Jt,COMMENT:Be,C_BLOCK_COMMENT_MODE:jr,C_LINE_COMMENT_MODE:Hr,C_NUMBER_MODE:Kr,C_NUMBER_RE:Kt,END_SAME_AS_BEGIN:function(t){return Object.assign(t,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})},HASH_COMMENT_MODE:Zr,IDENT_RE:Zt,MATCH_NOTHING_RE:Pr,METHOD_GUARD:eo,NUMBER_MODE:Wr,NUMBER_RE:Wt,PHRASAL_WORDS_MODE:Gr,QUOTE_STRING_MODE:$r,REGEXP_MODE:Yr,RE_STARTERS_RE:zr,SHEBANG:Ur,TITLE_MODE:Xr,UNDERSCORE_IDENT_RE:it,UNDERSCORE_TITLE_MODE:Qr});function to(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function no(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function ro(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=to,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function oo(t,e){Array.isArray(t.illegal)&&(t.illegal=st(...t.illegal))}function so(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function co(t,e){t.relevance===void 0&&(t.relevance=1)}const io=(t,e)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(r=>{delete t[r]}),t.keywords=n.keywords,t.begin=fe(n.beforeMatch,Ht(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},ao=["of","and","for","in","not","or","if","then","parent","list","value"],lo="keyword";function Yt(t,e,n=lo){const r=Object.create(null);return typeof t=="string"?o(n,t.split(" ")):Array.isArray(t)?o(n,t):Object.keys(t).forEach(function(s){Object.assign(r,Yt(t[s],e,s))}),r;function o(s,i){e&&(i=i.map(c=>c.toLowerCase())),i.forEach(function(c){const a=c.split("|");r[a[0]]=[s,uo(a[0],a[1])]})}}function uo(t,e){return e?Number(e):po(t)?0:1}function po(t){return ao.includes(t.toLowerCase())}const Xt={},he=t=>{console.error(t)},Qt=(t,...e)=>{console.log(`WARN: ${t}`,...e)},_e=(t,e)=>{Xt[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),Xt[`${t}/${e}`]=!0)},Ie=new Error;function en(t,e,{key:n}){let r=0;const o=t[n],s={},i={};for(let c=1;c<=e.length;c++)i[c+r]=o[c],s[c+r]=!0,r+=jt(e[c-1]);t[n]=i,t[n]._emit=s,t[n]._multi=!0}function fo(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw he("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Ie;if(typeof t.beginScope!="object"||t.beginScope===null)throw he("beginScope must be object"),Ie;en(t,t.begin,{key:"beginScope"}),t.begin=ct(t.begin,{joinWith:""})}}function ho(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw he("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Ie;if(typeof t.endScope!="object"||t.endScope===null)throw he("endScope must be object"),Ie;en(t,t.end,{key:"endScope"}),t.end=ct(t.end,{joinWith:""})}}function go(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function mo(t){go(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),fo(t),ho(t)}function bo(t){function e(i,c){return new RegExp(Ae(i),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(c?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(c,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,c]),this.matchAt+=jt(c)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const c=this.regexes.map(a=>a[1]);this.matcherRe=e(ct(c,{joinWith:"|"}),!0),this.lastIndex=0}exec(c){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(c);if(!a)return null;const l=a.findIndex((f,h)=>h>0&&f!==void 0),p=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,p)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(c){if(this.multiRegexes[c])return this.multiRegexes[c];const a=new n;return this.rules.slice(c).forEach(([l,p])=>a.addRule(l,p)),a.compile(),this.multiRegexes[c]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(c,a){this.rules.push([c,a]),a.type==="begin"&&this.count++}exec(c){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(c);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const p=this.getMatcher(0);p.lastIndex=this.lastIndex+1,l=p.exec(c)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(i){const c=new r;return i.contains.forEach(a=>c.addRule(a.begin,{rule:a,type:"begin"})),i.terminatorEnd&&c.addRule(i.terminatorEnd,{type:"end"}),i.illegal&&c.addRule(i.illegal,{type:"illegal"}),c}function s(i,c){const a=i;if(i.isCompiled)return a;[no,so,mo,io].forEach(p=>p(i,c)),t.compilerExtensions.forEach(p=>p(i,c)),i.__beforeBegin=null,[ro,oo,co].forEach(p=>p(i,c)),i.isCompiled=!0;let l=null;return typeof i.keywords=="object"&&i.keywords.$pattern&&(i.keywords=Object.assign({},i.keywords),l=i.keywords.$pattern,delete i.keywords.$pattern),l=l||/\w+/,i.keywords&&(i.keywords=Yt(i.keywords,t.case_insensitive)),a.keywordPatternRe=e(l,!0),c&&(i.begin||(i.begin=/\B|\b/),a.beginRe=e(a.begin),!i.end&&!i.endsWithParent&&(i.end=/\B|\b/),i.end&&(a.endRe=e(a.end)),a.terminatorEnd=Ae(a.end)||"",i.endsWithParent&&c.terminatorEnd&&(a.terminatorEnd+=(i.end?"|":"")+c.terminatorEnd)),i.illegal&&(a.illegalRe=e(i.illegal)),i.contains||(i.contains=[]),i.contains=[].concat(...i.contains.map(function(p){return _o(p==="self"?i:p)})),i.contains.forEach(function(p){s(p,a)}),i.starts&&s(i.starts,c),a.matcher=o(a),a}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=le(t.classNameAliases||{}),s(t)}function tn(t){return t?t.endsWithParent||tn(t.starts):!1}function _o(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return le(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:tn(t)?le(t,{starts:t.starts?le(t.starts):null}):Object.isFrozen(t)?le(t):t}var ko="11.9.0";class xo extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const at=Vt,nn=le,rn=Symbol("nomatch"),wo=7,on=function(t){const e=Object.create(null),n=Object.create(null),r=[];let o=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",i={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Lr};function a(g){return c.noHighlightRe.test(g)}function l(g){let y=g.className+" ";y+=g.parentNode?g.parentNode.className:"";const D=c.languageDetectRe.exec(y);if(D){const M=G(D[1]);return M||(Qt(s.replace("{}",D[1])),Qt("Falling back to no-highlight mode for this block.",g)),M?D[1]:"no-highlight"}return y.split(/\s+/).find(M=>a(M)||G(M))}function p(g,y,D){let M="",V="";typeof y=="object"?(M=g,D=y.ignoreIllegals,V=y.language):(_e("10.7.0","highlight(lang, code, ...args) has been deprecated."),_e("10.7.0",`Please use highlight(code, options) instead.
2
+ https://github.com/highlightjs/highlight.js/issues/2277`),V=g,M=y),D===void 0&&(D=!0);const Z={code:M,language:V};O("before:highlight",Z);const X=Z.result?Z.result:f(Z.language,Z.code,D);return X.code=Z.code,O("after:highlight",X),X}function f(g,y,D,M){const V=Object.create(null);function Z(w,A){return w.keywords[A]}function X(){if(!q.keywords){H.addText(z);return}let w=0;q.keywordPatternRe.lastIndex=0;let A=q.keywordPatternRe.exec(z),R="";for(;A;){R+=z.substring(w,A.index);const F=se.case_insensitive?A[0].toLowerCase():A[0],j=Z(q,F);if(j){const[ae,Ta]=j;if(H.addText(R),R="",V[F]=(V[F]||0)+1,V[F]<=wo&&(nt+=Ta),ae.startsWith("_"))R+=A[0];else{const Ra=se.classNameAliases[ae]||ae;oe(A[0],Ra)}}else R+=A[0];w=q.keywordPatternRe.lastIndex,A=q.keywordPatternRe.exec(z)}R+=z.substring(w),H.addText(R)}function et(){if(z==="")return;let w=null;if(typeof q.subLanguage=="string"){if(!e[q.subLanguage]){H.addText(z);return}w=f(q.subLanguage,z,!0,qr[q.subLanguage]),qr[q.subLanguage]=w._top}else w=d(z,q.subLanguage.length?q.subLanguage:null);q.relevance>0&&(nt+=w.relevance),H.__addSublanguage(w._emitter,w.language)}function W(){q.subLanguage!=null?et():X(),z=""}function oe(w,A){w!==""&&(H.startScope(A),H.addText(w),H.endScope())}function Er(w,A){let R=1;const F=A.length-1;for(;R<=F;){if(!w._emit[R]){R++;continue}const j=se.classNameAliases[w[R]]||w[R],ae=A[R];j?oe(ae,j):(z=ae,X(),z=""),R++}}function Ar(w,A){return w.scope&&typeof w.scope=="string"&&H.openNode(se.classNameAliases[w.scope]||w.scope),w.beginScope&&(w.beginScope._wrap?(oe(z,se.classNameAliases[w.beginScope._wrap]||w.beginScope._wrap),z=""):w.beginScope._multi&&(Er(w.beginScope,A),z="")),q=Object.create(w,{parent:{value:q}}),q}function Cr(w,A,R){let F=Or(w.endRe,R);if(F){if(w["on:end"]){const j=new Ut(w);w["on:end"](A,j),j.isMatchIgnored&&(F=!1)}if(F){for(;w.endsParent&&w.parent;)w=w.parent;return w}}if(w.endsWithParent)return Cr(w.parent,A,R)}function Aa(w){return q.matcher.regexIndex===0?(z+=w[0],1):(Pt=!0,0)}function Ca(w){const A=w[0],R=w.rule,F=new Ut(R),j=[R.__beforeBegin,R["on:begin"]];for(const ae of j)if(ae&&(ae(w,F),F.isMatchIgnored))return Aa(A);return R.skip?z+=A:(R.excludeBegin&&(z+=A),W(),!R.returnBegin&&!R.excludeBegin&&(z=A)),Ar(R,w),R.returnBegin?0:A.length}function Sa(w){const A=w[0],R=y.substring(w.index),F=Cr(q,w,R);if(!F)return rn;const j=q;q.endScope&&q.endScope._wrap?(W(),oe(A,q.endScope._wrap)):q.endScope&&q.endScope._multi?(W(),Er(q.endScope,w)):j.skip?z+=A:(j.returnEnd||j.excludeEnd||(z+=A),W(),j.excludeEnd&&(z=A));do q.scope&&H.closeNode(),!q.skip&&!q.subLanguage&&(nt+=q.relevance),q=q.parent;while(q!==F.parent);return F.starts&&Ar(F.starts,w),j.returnEnd?0:A.length}function qa(){const w=[];for(let A=q;A!==se;A=A.parent)A.scope&&w.unshift(A.scope);w.forEach(A=>H.openNode(A))}let tt={};function Sr(w,A){const R=A&&A[0];if(z+=w,R==null)return W(),0;if(tt.type==="begin"&&A.type==="end"&&tt.index===A.index&&R===""){if(z+=y.slice(A.index,A.index+1),!o){const F=new Error(`0 width match regex (${g})`);throw F.languageName=g,F.badRule=tt.rule,F}return 1}if(tt=A,A.type==="begin")return Ca(A);if(A.type==="illegal"&&!D){const F=new Error('Illegal lexeme "'+R+'" for mode "'+(q.scope||"<unnamed>")+'"');throw F.mode=q,F}else if(A.type==="end"){const F=Sa(A);if(F!==rn)return F}if(A.type==="illegal"&&R==="")return 1;if(Ft>1e5&&Ft>A.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=R,R.length}const se=G(g);if(!se)throw he(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const Da=bo(se);let Ot="",q=M||Da;const qr={},H=new c.__emitter(c);qa();let z="",nt=0,be=0,Ft=0,Pt=!1;try{if(se.__emitTokens)se.__emitTokens(y,H);else{for(q.matcher.considerAll();;){Ft++,Pt?Pt=!1:q.matcher.considerAll(),q.matcher.lastIndex=be;const w=q.matcher.exec(y);if(!w)break;const A=y.substring(be,w.index),R=Sr(A,w);be=w.index+R}Sr(y.substring(be))}return H.finalize(),Ot=H.toHTML(),{language:g,value:Ot,relevance:nt,illegal:!1,_emitter:H,_top:q}}catch(w){if(w.message&&w.message.includes("Illegal"))return{language:g,value:at(y),illegal:!0,relevance:0,_illegalBy:{message:w.message,index:be,context:y.slice(be-100,be+100),mode:w.mode,resultSoFar:Ot},_emitter:H};if(o)return{language:g,value:at(y),illegal:!1,relevance:0,errorRaised:w,_emitter:H,_top:q};throw w}}function h(g){const y={value:at(g),illegal:!1,relevance:0,_top:i,_emitter:new c.__emitter(c)};return y._emitter.addText(g),y}function d(g,y){y=y||c.languages||Object.keys(e);const D=h(g),M=y.filter(G).filter(P).map(W=>f(W,g,!1));M.unshift(D);const V=M.sort((W,oe)=>{if(W.relevance!==oe.relevance)return oe.relevance-W.relevance;if(W.language&&oe.language){if(G(W.language).supersetOf===oe.language)return 1;if(G(oe.language).supersetOf===W.language)return-1}return 0}),[Z,X]=V,et=Z;return et.secondBest=X,et}function m(g,y,D){const M=y&&n[y]||D;g.classList.add("hljs"),g.classList.add(`language-${M}`)}function x(g){let y=null;const D=l(g);if(a(D))return;if(O("before:highlightElement",{el:g,language:D}),g.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",g);return}if(g.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(g)),c.throwUnescapedHTML))throw new xo("One of your code blocks includes unescaped HTML.",g.innerHTML);y=g;const M=y.textContent,V=D?p(M,{language:D,ignoreIllegals:!0}):d(M);g.innerHTML=V.value,g.dataset.highlighted="yes",m(g,D,V.language),g.result={language:V.language,re:V.relevance,relevance:V.relevance},V.secondBest&&(g.secondBest={language:V.secondBest.language,relevance:V.secondBest.relevance}),O("after:highlightElement",{el:g,result:V,text:M})}function C(g){c=nn(c,g)}const v=()=>{S(),_e("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function b(){S(),_e("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let E=!1;function S(){if(document.readyState==="loading"){E=!0;return}document.querySelectorAll(c.cssSelector).forEach(x)}function T(){E&&S()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",T,!1);function k(g,y){let D=null;try{D=y(t)}catch(M){if(he("Language definition for '{}' could not be registered.".replace("{}",g)),o)he(M);else throw M;D=i}D.name||(D.name=g),e[g]=D,D.rawDefinition=y.bind(null,t),D.aliases&&N(D.aliases,{languageName:g})}function B(g){delete e[g];for(const y of Object.keys(n))n[y]===g&&delete n[y]}function U(){return Object.keys(e)}function G(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function N(g,{languageName:y}){typeof g=="string"&&(g=[g]),g.forEach(D=>{n[D.toLowerCase()]=y})}function P(g){const y=G(g);return y&&!y.disableAutodetect}function ie(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=y=>{g["before:highlightBlock"](Object.assign({block:y.el},y))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=y=>{g["after:highlightBlock"](Object.assign({block:y.el},y))})}function re(g){ie(g),r.push(g)}function _(g){const y=r.indexOf(g);y!==-1&&r.splice(y,1)}function O(g,y){const D=g;r.forEach(function(M){M[D]&&M[D](y)})}function L(g){return _e("10.7.0","highlightBlock will be removed entirely in v12.0"),_e("10.7.0","Please use highlightElement now."),x(g)}Object.assign(t,{highlight:p,highlightAuto:d,highlightAll:S,highlightElement:x,highlightBlock:L,configure:C,initHighlighting:v,initHighlightingOnLoad:b,registerLanguage:k,unregisterLanguage:B,listLanguages:U,getLanguage:G,registerAliases:N,autoDetection:P,inherit:nn,addPlugin:re,removePlugin:_}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ko,t.regex={concat:fe,lookahead:Ht,either:st,optional:Mr,anyNumberOfTimes:Br};for(const g in Me)typeof Me[g]=="object"&&zt(Me[g]);return Object.assign(t,Me),t},ke=on({});ke.newInstance=()=>on({});var yo=ke;ke.HighlightJS=ke,ke.default=ke;const Oe=rt(yo);function vo(t){const e=t.regex,n=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=t.inherit(s,{begin:/\(/,end:/\)/}),c=t.inherit(t.APOS_STRING_MODE,{className:"string"}),a=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),l={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,a,c,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,i,a,c]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[a]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[l],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[l],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(n,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:l}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}const sn="[A-Za-z$_][0-9A-Za-z$_]*",Eo=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],Ao=["true","false","null","undefined","NaN","Infinity"],cn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],an=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],ln=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Co=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],So=[].concat(ln,cn,an);function qo(t){const e=t.regex,n=(y,{after:D})=>{const M="</"+y[0].slice(1);return y.input.indexOf(M,D)!==-1},r=sn,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,i={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(y,D)=>{const M=y[0].length+y.index,V=y.input[M];if(V==="<"||V===","){D.ignoreMatch();return}V===">"&&(n(y,{after:M})||D.ignoreMatch());let Z;const X=y.input.substring(M);if(Z=X.match(/^\s*=/)){D.ignoreMatch();return}if((Z=X.match(/^\s+extends\s+/))&&Z.index===0){D.ignoreMatch();return}}},c={$pattern:sn,keyword:Eo,literal:Ao,built_in:So,"variable.language":Co},a="[0-9](_?[0-9])*",l=`\\.(${a})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${p})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${p})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:c,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"css"}},x={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,h]},b={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},E=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,m,x,C,{match:/\$\d+/},f];h.contains=E.concat({begin:/\{/,end:/\}/,keywords:c,contains:["self"].concat(E)});const S=[].concat(b,h.contains),T=S.concat([{begin:/\(/,end:/\)/,keywords:c,contains:["self"].concat(S)}]),k={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:T},B={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},U={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...cn,...an]}},G={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},N={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[k],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ie(y){return e.concat("(?!",y.join("|"),")")}const re={match:e.concat(/\b/,ie([...ln,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},_={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},O={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},k]},L="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",g={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(L)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[k]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:c,exports:{PARAMS_CONTAINS:T,CLASS_REFERENCE:U},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),G,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,m,x,C,b,{match:/\$\d+/},f,U,{className:"attr",begin:r+e.lookahead(":"),relevance:0},g,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[b,t.REGEXP_MODE,{className:"function",begin:L,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:c,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:i.begin,"on:begin":i.isTrulyOpeningTag,end:i.end}],subLanguage:"xml",contains:[{begin:i.begin,end:i.end,skip:!0,contains:["self"]}]}]},N,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[k,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},_,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[k]},re,P,B,O,{match:/\$[(.]/}]}}const un=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Do={},To={class:"chat-button"};function Ro(t,e){return u.openBlock(),u.createElementBlock("button",To,[u.renderSlot(t.$slots,"default")])}const No=un(Do,[["render",Ro]]),Lo={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Bo=[u.createElementVNode("path",{fill:"currentColor",d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z"},null,-1)];function Mo(t,e){return u.openBlock(),u.createElementBlock("svg",Lo,[...Bo])}const Io={name:"mdi-close",render:Mo};function Oo(){const t=new Map;function e(o,s){const i=t.get(o);i&&i.splice(i.indexOf(s)>>>0,1)}function n(o,s){let i=t.get(o);return i?i.push(s):i=[s],t.set(o,i),()=>e(o,s)}function r(o,s){const i=t.get(o);i&&i.slice().forEach(async c=>{await c(s)})}return{on:n,off:e,emit:r}}function Fo(t){if(!document.querySelector(t)){const n=document.createElement("div");t.startsWith("#")&&(n.id=t.replace("#","")),t.startsWith(".")&&n.classList.add(t.replace(".","")),document.body.appendChild(n)}}const ce=Oo(),Po={class:"chat-layout"},zo={key:0,class:"chat-header"},Uo={key:2,class:"chat-footer"},Vo=u.defineComponent({__name:"Layout",setup(t){const e=u.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return u.onMounted(()=>{ce.on("scrollToBottom",n),window.addEventListener("resize",n)}),u.onBeforeUnmount(()=>{ce.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(u.openBlock(),u.createElementBlock("main",Po,[r.$slots.header?(u.openBlock(),u.createElementBlock("div",zo,[u.renderSlot(r.$slots,"header")])):u.createCommentVNode("",!0),r.$slots.default?(u.openBlock(),u.createElementBlock("div",{key:1,ref_key:"chatBodyRef",ref:e,class:"chat-body"},[u.renderSlot(r.$slots,"default")],512)):u.createCommentVNode("",!0),r.$slots.footer?(u.openBlock(),u.createElementBlock("div",Uo,[u.renderSlot(r.$slots,"footer")])):u.createCommentVNode("",!0)]))}}),Se={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",loadPreviousSession:!0,chatInputKey:"chatInput",chatSessionKey:"sessionId",defaultLanguage:"en",showWelcomeScreen:!1,initialMessages:["Hi there! 👋","My name is Nathan. How can I assist you today?"],i18n:{en:{title:"Hi there! 👋",subtitle:"Start a chat. We're here to help you 24/7.",footer:"",getStarted:"New Conversation",inputPlaceholder:"Type your question..",closeButtonTooltip:"Close chat"}},theme:{}},$o="#n8n-chat",pn="n8n-chat/sessionId",fn="Chat",hn="ChatOptions";function lt(){return u.inject(fn)}function qe(){return{options:u.inject(hn)}}function Fe(){const{options:t}=qe(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var i,c;const s=(c=(i=t==null?void 0:t.i18n)==null?void 0:i[e])==null?void 0:c[o];return u.isRef(s)?s.value:s??o}function r(o){var s,i;return!!((i=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&i[o])}return{t:n,te:r}}const Go={class:"chat-get-started"},Ho=u.defineComponent({__name:"GetStarted",setup(t){const{t:e}=Fe();return(n,r)=>(u.openBlock(),u.createElementBlock("div",Go,[u.createVNode(No,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(e)("getStarted")),1)]),_:1})]))}}),jo={},Zo={class:"chat-powered-by"},Wo=u.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1);function Ko(t,e){return u.openBlock(),u.createElementBlock("div",Zo,[u.createTextVNode(" Powered by "),Wo])}const Jo=un(jo,[["render",Ko]]),Yo={class:"chat-get-started-footer"},Xo={key:0},Qo=u.defineComponent({__name:"GetStartedFooter",setup(t){const{t:e,te:n}=Fe();return(r,o)=>(u.openBlock(),u.createElementBlock("div",Yo,[u.unref(n)("footer")?(u.openBlock(),u.createElementBlock("div",Xo,u.toDisplayString(u.unref(e)("footer")),1)):u.createCommentVNode("",!0),u.createVNode(Jo)]))}});var I={},dn={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:"‌"},ut=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,xe={},gn={};function es(t){var e,n,r=gn[t];if(r)return r;for(r=gn[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e<t.length;e++)r[t.charCodeAt(e)]=t[e];return r}function Pe(t,e,n){var r,o,s,i,c,a="";for(typeof e!="string"&&(n=e,e=Pe.defaultChars),typeof n>"u"&&(n=!0),c=es(e),r=0,o=t.length;r<o;r++){if(s=t.charCodeAt(r),n&&s===37&&r+2<o&&/^[0-9a-f]{2}$/i.test(t.slice(r+1,r+3))){a+=t.slice(r,r+3),r+=2;continue}if(s<128){a+=c[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<o&&(i=t.charCodeAt(r+1),i>=56320&&i<=57343)){a+=encodeURIComponent(t[r]+t[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[r])}return a}Pe.defaultChars=";/?:@&=+$,-_.!~*'()#",Pe.componentChars="-_.!~*'()";var ts=Pe,mn={};function ns(t){var e,n,r=mn[t];if(r)return r;for(r=mn[t]=[],e=0;e<128;e++)n=String.fromCharCode(e),r.push(n);for(e=0;e<t.length;e++)n=t.charCodeAt(e),r[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}function ze(t,e){var n;return typeof e!="string"&&(e=ze.defaultChars),n=ns(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,i,c,a,l,p,f="";for(o=0,s=r.length;o<s;o+=3){if(i=parseInt(r.slice(o+1,o+3),16),i<128){f+=n[i];continue}if((i&224)===192&&o+3<s&&(c=parseInt(r.slice(o+4,o+6),16),(c&192)===128)){p=i<<6&1984|c&63,p<128?f+="��":f+=String.fromCharCode(p),o+=3;continue}if((i&240)===224&&o+6<s&&(c=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),(c&192)===128&&(a&192)===128)){p=i<<12&61440|c<<6&4032|a&63,p<2048||p>=55296&&p<=57343?f+="���":f+=String.fromCharCode(p),o+=6;continue}if((i&248)===240&&o+9<s&&(c=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),l=parseInt(r.slice(o+10,o+12),16),(c&192)===128&&(a&192)===128&&(l&192)===128)){p=i<<18&1835008|c<<12&258048|a<<6&4032|l&63,p<65536||p>1114111?f+="����":(p-=65536,f+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),o+=9;continue}f+="�"}return f})}ze.defaultChars=";/?:@&=+$,#",ze.componentChars="";var rs=ze,os=function(e){var n="";return n+=e.protocol||"",n+=e.slashes?"//":"",n+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?n+="["+e.hostname+"]":n+=e.hostname||"",n+=e.port?":"+e.port:"",n+=e.pathname||"",n+=e.search||"",n+=e.hash||"",n};function Ue(){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 ss=/^([a-z0-9.+-]+:)/i,cs=/:[0-9]*$/,is=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,as=["<",">",'"',"`"," ","\r",`
4
+ `," "],ls=["{","}","|","\\","^","`"].concat(as),us=["'"].concat(ls),bn=["%","/","?",";","#"].concat(us),_n=["/","?","#"],ps=255,kn=/^[+a-z0-9A-Z_-]{0,63}$/,fs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,xn={javascript:!0,"javascript:":!0},wn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function hs(t,e){if(t&&t instanceof Ue)return t;var n=new Ue;return n.parse(t,e),n}Ue.prototype.parse=function(t,e){var n,r,o,s,i,c=t;if(c=c.trim(),!e&&t.split("#").length===1){var a=is.exec(c);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=ss.exec(c);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,c=c.substr(l.length)),(e||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=c.substr(0,2)==="//",i&&!(l&&xn[l])&&(c=c.substr(2),this.slashes=!0)),!xn[l]&&(i||l&&!wn[l])){var p=-1;for(n=0;n<_n.length;n++)s=c.indexOf(_n[n]),s!==-1&&(p===-1||s<p)&&(p=s);var f,h;for(p===-1?h=c.lastIndexOf("@"):h=c.lastIndexOf("@",p),h!==-1&&(f=c.slice(0,h),c=c.slice(h+1),this.auth=f),p=-1,n=0;n<bn.length;n++)s=c.indexOf(bn[n]),s!==-1&&(p===-1||s<p)&&(p=s);p===-1&&(p=c.length),c[p-1]===":"&&p--;var d=c.slice(0,p);c=c.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var m=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!m){var x=this.hostname.split(/\./);for(n=0,r=x.length;n<r;n++){var C=x[n];if(C&&!C.match(kn)){for(var v="",b=0,E=C.length;b<E;b++)C.charCodeAt(b)>127?v+="x":v+=C[b];if(!v.match(kn)){var S=x.slice(0,n),T=x.slice(n+1),k=C.match(fs);k&&(S.push(k[1]),T.unshift(k[2])),T.length&&(c=T.join(".")+c),this.hostname=S.join(".");break}}}}this.hostname.length>ps&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var B=c.indexOf("#");B!==-1&&(this.hash=c.substr(B),c=c.slice(0,B));var U=c.indexOf("?");return U!==-1&&(this.search=c.substr(U),c=c.slice(0,U)),c&&(this.pathname=c),wn[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ue.prototype.parseHost=function(t){var e=cs.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 ds=hs;xe.encode=ts,xe.decode=rs,xe.format=os,xe.parse=ds;var de={},pt,yn;function vn(){return yn||(yn=1,pt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),pt}var ft,En;function An(){return En||(En=1,ft=/[\0-\x1F\x7F-\x9F]/),ft}var ht,Cn;function gs(){return Cn||(Cn=1,ht=/[\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]/),ht}var dt,Sn;function qn(){return Sn||(Sn=1,dt=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),dt}var Dn;function ms(){return Dn||(Dn=1,de.Any=vn(),de.Cc=An(),de.Cf=gs(),de.P=ut,de.Z=qn()),de}(function(t){function e(_){return Object.prototype.toString.call(_)}function n(_){return e(_)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(_,O){return r.call(_,O)}function s(_){var O=Array.prototype.slice.call(arguments,1);return O.forEach(function(L){if(L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(g){_[g]=L[g]})}}),_}function i(_,O,L){return[].concat(_.slice(0,O),L,_.slice(O+1))}function c(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function a(_){if(_>65535){_-=65536;var O=55296+(_>>10),L=56320+(_&1023);return String.fromCharCode(O,L)}return String.fromCharCode(_)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,p=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(l.source+"|"+p.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=dn;function m(_,O){var L=0;return o(d,O)?d[O]:O.charCodeAt(0)===35&&h.test(O)&&(L=O[1].toLowerCase()==="x"?parseInt(O.slice(2),16):parseInt(O.slice(1),10),c(L))?a(L):_}function x(_){return _.indexOf("\\")<0?_:_.replace(l,"$1")}function C(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(f,function(O,L,g){return L||m(O,g)})}var v=/[&<>"]/,b=/[&<>"]/g,E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function S(_){return E[_]}function T(_){return v.test(_)?_.replace(b,S):_}var k=/[.?*+^$[\]\\(){}|-]/g;function B(_){return _.replace(k,"\\$&")}function U(_){switch(_){case 9:case 32:return!0}return!1}function G(_){if(_>=8192&&_<=8202)return!0;switch(_){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 N=ut;function P(_){return N.test(_)}function ie(_){switch(_){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 re(_){return _=_.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(_=_.replace(/ẞ/g,"ß")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=xe,t.lib.ucmicro=ms(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=x,t.unescapeAll=C,t.isValidEntityCode=c,t.fromCodePoint=a,t.escapeHtml=T,t.arrayReplaceAt=i,t.isSpace=U,t.isWhiteSpace=G,t.isMdAsciiPunct=ie,t.isPunctChar=P,t.escapeRE=B,t.normalizeReference=re})(I);var Ve={},bs=function(e,n,r){var o,s,i,c,a=-1,l=e.posMax,p=e.pos;for(e.pos=n+1,o=1;e.pos<l;){if(i=e.src.charCodeAt(e.pos),i===93&&(o--,o===0)){s=!0;break}if(c=e.pos,e.md.inline.skipToken(e),i===91){if(c===e.pos-1)o++;else if(r)return e.pos=p,-1}}return s&&(a=e.pos),e.pos=p,a},Tn=I.unescapeAll,_s=function(e,n,r){var o,s,i=0,c=n,a={ok:!1,pos:0,lines:0,str:""};if(e.charCodeAt(n)===60){for(n++;n<r;){if(o=e.charCodeAt(n),o===10||o===60)return a;if(o===62)return a.pos=n+1,a.str=Tn(e.slice(c+1,n)),a.ok=!0,a;if(o===92&&n+1<r){n+=2;continue}n++}return a}for(s=0;n<r&&(o=e.charCodeAt(n),!(o===32||o<32||o===127));){if(o===92&&n+1<r){if(e.charCodeAt(n+1)===32)break;n+=2;continue}if(o===40&&(s++,s>32))return a;if(o===41){if(s===0)break;s--}n++}return c===n||s!==0||(a.str=Tn(e.slice(c,n)),a.lines=i,a.pos=n,a.ok=!0),a},ks=I.unescapeAll,xs=function(e,n,r){var o,s,i=0,c=n,a={ok:!1,pos:0,lines:0,str:""};if(n>=r||(s=e.charCodeAt(n),s!==34&&s!==39&&s!==40))return a;for(n++,s===40&&(s=41);n<r;){if(o=e.charCodeAt(n),o===s)return a.pos=n+1,a.lines=i,a.str=ks(e.slice(c+1,n)),a.ok=!0,a;if(o===40&&s===41)return a;o===10?i++:o===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&i++),n++}return a};Ve.parseLinkLabel=bs,Ve.parseLinkDestination=_s,Ve.parseLinkTitle=xs;var ws=I.assign,ys=I.unescapeAll,ge=I.escapeHtml,Q={};Q.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+ge(t[e].content)+"</code>"},Q.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+ge(t[e].content)+`</code></pre>
5
+ `},Q.fence=function(t,e,n,r,o){var s=t[e],i=s.info?ys(s.info).trim():"",c="",a="",l,p,f,h,d;return i&&(f=i.split(/(\s+)/g),c=f[0],a=f.slice(2).join("")),n.highlight?l=n.highlight(s.content,c,a)||ge(s.content):l=ge(s.content),l.indexOf("<pre")===0?l+`
6
+ `:i?(p=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[],p<0?h.push(["class",n.langPrefix+c]):(h[p]=h[p].slice(),h[p][1]+=" "+n.langPrefix+c),d={attrs:h},"<pre><code"+o.renderAttrs(d)+">"+l+`</code></pre>
7
+ `):"<pre><code"+o.renderAttrs(s)+">"+l+`</code></pre>
8
+ `},Q.image=function(t,e,n,r,o){var s=t[e];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,r),o.renderToken(t,e,n)},Q.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
9
+ `:`<br>
10
+ `},Q.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
11
+ `:`<br>
12
+ `:`
13
+ `},Q.text=function(t,e){return ge(t[e].content)},Q.html_block=function(t,e){return t[e].content},Q.html_inline=function(t,e){return t[e].content};function we(){this.rules=ws({},Q)}we.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+ge(e.attrs[n][0])+'="'+ge(e.attrs[n][1])+'"';return o},we.prototype.renderToken=function(e,n,r){var o,s="",i=!1,c=e[n];return c.hidden?"":(c.block&&c.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
14
+ `),s+=(c.nesting===-1?"</":"<")+c.tag,s+=this.renderAttrs(c),c.nesting===0&&r.xhtmlOut&&(s+=" /"),c.block&&(i=!0,c.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===c.tag)&&(i=!1))),s+=i?`>
15
+ `:">",s)},we.prototype.renderInline=function(t,e,n){for(var r,o="",s=this.rules,i=0,c=t.length;i<c;i++)r=t[i].type,typeof s[r]<"u"?o+=s[r](t,i,e,n,this):o+=this.renderToken(t,i,e);return o},we.prototype.renderInlineAsText=function(t,e,n){for(var r="",o=0,s=t.length;o<s;o++)t[o].type==="text"?r+=t[o].content:t[o].type==="image"?r+=this.renderInlineAsText(t[o].children,e,n):t[o].type==="softbreak"&&(r+=`
16
+ `);return r},we.prototype.render=function(t,e,n){var r,o,s,i="",c=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?i+=this.renderInline(t[r].children,e,n):typeof c[s]<"u"?i+=c[t[r].type](t,r,e,n,this):i+=this.renderToken(t,r,e,n);return i};var vs=we;function Y(){this.__rules__=[],this.__cache__=null}Y.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},Y.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(r){e.indexOf(r)<0&&e.push(r)})}),t.__cache__={},e.forEach(function(n){t.__cache__[n]=[],t.__rules__.forEach(function(r){r.enabled&&(n&&r.alt.indexOf(n)<0||t.__cache__[n].push(r.fn))})})},Y.prototype.at=function(t,e,n){var r=this.__find__(t),o=n||{};if(r===-1)throw new Error("Parser rule not found: "+t);this.__rules__[r].fn=e,this.__rules__[r].alt=o.alt||[],this.__cache__=null},Y.prototype.before=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Y.prototype.after=function(t,e,n,r){var o=this.__find__(t),s=r||{};if(o===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(o+1,0,{name:e,enabled:!0,fn:n,alt:s.alt||[]}),this.__cache__=null},Y.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},Y.prototype.enable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!0,n.push(r)},this),this.__cache__=null,n},Y.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},Y.prototype.disable=function(t,e){Array.isArray(t)||(t=[t]);var n=[];return t.forEach(function(r){var o=this.__find__(r);if(o<0){if(e)return;throw new Error("Rules manager: invalid rule name "+r)}this.__rules__[o].enabled=!1,n.push(r)},this),this.__cache__=null,n},Y.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var gt=Y,Es=/\r\n?|\n/g,As=/\0/g,Cs=function(e){var n;n=e.src.replace(Es,`
17
+ `),n=n.replace(As,"�"),e.src=n},Ss=function(e){var n;e.inlineMode?(n=new e.Token("inline","",0),n.content=e.src,n.map=[0,1],n.children=[],e.tokens.push(n)):e.md.block.parse(e.src,e.md,e.env,e.tokens)},qs=function(e){var n=e.tokens,r,o,s;for(o=0,s=n.length;o<s;o++)r=n[o],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)},Ds=I.arrayReplaceAt;function Ts(t){return/^<a[>\s]/i.test(t)}function Rs(t){return/^<\/a\s*>/i.test(t)}var Ns=function(e){var n,r,o,s,i,c,a,l,p,f,h,d,m,x,C,v,b=e.tokens,E;if(e.md.options.linkify){for(r=0,o=b.length;r<o;r++)if(!(b[r].type!=="inline"||!e.md.linkify.pretest(b[r].content)))for(s=b[r].children,m=0,n=s.length-1;n>=0;n--){if(c=s[n],c.type==="link_close"){for(n--;s[n].level!==c.level&&s[n].type!=="link_open";)n--;continue}if(c.type==="html_inline"&&(Ts(c.content)&&m>0&&m--,Rs(c.content)&&m++),!(m>0)&&c.type==="text"&&e.md.linkify.test(c.content)){for(p=c.content,E=e.md.linkify.match(p),a=[],d=c.level,h=0,l=0;l<E.length;l++)x=E[l].url,C=e.md.normalizeLink(x),e.md.validateLink(C)&&(v=E[l].text,E[l].schema?E[l].schema==="mailto:"&&!/^mailto:/i.test(v)?v=e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):v=e.md.normalizeLinkText(v):v=e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),f=E[l].index,f>h&&(i=new e.Token("text","",0),i.content=p.slice(h,f),i.level=d,a.push(i)),i=new e.Token("link_open","a",1),i.attrs=[["href",C]],i.level=d++,i.markup="linkify",i.info="auto",a.push(i),i=new e.Token("text","",0),i.content=v,i.level=d,a.push(i),i=new e.Token("link_close","a",-1),i.level=--d,i.markup="linkify",i.info="auto",a.push(i),h=E[l].lastIndex);h<p.length&&(i=new e.Token("text","",0),i.content=p.slice(h),i.level=d,a.push(i)),b[r].children=s=Ds(s,n,a)}}}},Rn=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ls=/\((c|tm|r|p)\)/i,Bs=/\((c|tm|r|p)\)/ig,Ms={c:"©",r:"®",p:"§",tm:"™"};function Is(t,e){return Ms[e.toLowerCase()]}function Os(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&(n.content=n.content.replace(Bs,Is)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function Fs(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&Rn.test(n.content)&&(n.content=n.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–")),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}var Ps=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Ls.test(e.tokens[n].content)&&Os(e.tokens[n].children),Rn.test(e.tokens[n].content)&&Fs(e.tokens[n].children))},Nn=I.isWhiteSpace,Ln=I.isPunctChar,Bn=I.isMdAsciiPunct,zs=/['"]/,Mn=/['"]/g,In="’";function $e(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function Us(t,e){var n,r,o,s,i,c,a,l,p,f,h,d,m,x,C,v,b,E,S,T,k;for(S=[],n=0;n<t.length;n++){for(r=t[n],a=t[n].level,b=S.length-1;b>=0&&!(S[b].level<=a);b--);if(S.length=b+1,r.type==="text"){o=r.content,i=0,c=o.length;e:for(;i<c&&(Mn.lastIndex=i,s=Mn.exec(o),!!s);){if(C=v=!0,i=s.index+1,E=s[0]==="'",p=32,s.index-1>=0)p=o.charCodeAt(s.index-1);else for(b=n-1;b>=0&&!(t[b].type==="softbreak"||t[b].type==="hardbreak");b--)if(t[b].content){p=t[b].content.charCodeAt(t[b].content.length-1);break}if(f=32,i<c)f=o.charCodeAt(i);else for(b=n+1;b<t.length&&!(t[b].type==="softbreak"||t[b].type==="hardbreak");b++)if(t[b].content){f=t[b].content.charCodeAt(0);break}if(h=Bn(p)||Ln(String.fromCharCode(p)),d=Bn(f)||Ln(String.fromCharCode(f)),m=Nn(p),x=Nn(f),x?C=!1:d&&(m||h||(C=!1)),m?v=!1:h&&(x||d||(v=!1)),f===34&&s[0]==='"'&&p>=48&&p<=57&&(v=C=!1),C&&v&&(C=h,v=d),!C&&!v){E&&(r.content=$e(r.content,s.index,In));continue}if(v){for(b=S.length-1;b>=0&&(l=S[b],!(S[b].level<a));b--)if(l.single===E&&S[b].level===a){l=S[b],E?(T=e.md.options.quotes[2],k=e.md.options.quotes[3]):(T=e.md.options.quotes[0],k=e.md.options.quotes[1]),r.content=$e(r.content,s.index,k),t[l.token].content=$e(t[l.token].content,l.pos,T),i+=k.length-1,l.token===n&&(i+=T.length-1),o=r.content,c=o.length,S.length=b;continue e}}C?S.push({token:n,pos:s.index,single:E,level:a}):v&&E&&(r.content=$e(r.content,s.index,In))}}}}var Vs=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!zs.test(e.tokens[n].content)||Us(e.tokens[n].children,e)};function ye(t,e,n){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}ye.prototype.attrIndex=function(e){var n,r,o;if(!this.attrs)return-1;for(n=this.attrs,r=0,o=n.length;r<o;r++)if(n[r][0]===e)return r;return-1},ye.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},ye.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},ye.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},ye.prototype.attrJoin=function(e,n){var r=this.attrIndex(e);r<0?this.attrPush([e,n]):this.attrs[r][1]=this.attrs[r][1]+" "+n};var mt=ye,$s=mt;function On(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}On.prototype.Token=$s;var Gs=On,Hs=gt,bt=[["normalize",Cs],["block",Ss],["inline",qs],["linkify",Ns],["replacements",Ps],["smartquotes",Vs]];function _t(){this.ruler=new Hs;for(var t=0;t<bt.length;t++)this.ruler.push(bt[t][0],bt[t][1])}_t.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},_t.prototype.State=Gs;var js=_t,kt=I.isSpace;function xt(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function Fn(t){var e=[],n=0,r=t.length,o,s=!1,i=0,c="";for(o=t.charCodeAt(n);n<r;)o===124&&(s?(c+=t.substring(i,n-1),i=n):(e.push(c+t.substring(i,n)),c="",i=n+1)),s=o===92,n++,o=t.charCodeAt(n);return e.push(c+t.substring(i)),e}var Zs=function(e,n,r,o){var s,i,c,a,l,p,f,h,d,m,x,C,v,b,E,S,T,k;if(n+2>r||(p=n+1,e.sCount[p]<e.blkIndent)||e.sCount[p]-e.blkIndent>=4||(c=e.bMarks[p]+e.tShift[p],c>=e.eMarks[p])||(T=e.src.charCodeAt(c++),T!==124&&T!==45&&T!==58)||c>=e.eMarks[p]||(k=e.src.charCodeAt(c++),k!==124&&k!==45&&k!==58&&!kt(k))||T===45&&kt(k))return!1;for(;c<e.eMarks[p];){if(s=e.src.charCodeAt(c),s!==124&&s!==45&&s!==58&&!kt(s))return!1;c++}for(i=xt(e,n+1),f=i.split("|"),m=[],a=0;a<f.length;a++){if(x=f[a].trim(),!x){if(a===0||a===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(x))return!1;x.charCodeAt(x.length-1)===58?m.push(x.charCodeAt(0)===58?"center":"right"):x.charCodeAt(0)===58?m.push("left"):m.push("")}if(i=xt(e,n).trim(),i.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=Fn(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),h=f.length,h===0||h!==m.length))return!1;if(o)return!0;for(b=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=C=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],a=0;a<f.length;a++)d=e.push("th_open","th",1),m[a]&&(d.attrs=[["style","text-align:"+m[a]]]),d=e.push("inline","",0),d.content=f[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),p=n+2;p<r&&!(e.sCount[p]<e.blkIndent);p++){for(E=!1,a=0,l=S.length;a<l;a++)if(S[a](e,p,r,!0)){E=!0;break}if(E||(i=xt(e,p).trim(),!i)||e.sCount[p]-e.blkIndent>=4)break;for(f=Fn(i),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),p===n+2&&(d=e.push("tbody_open","tbody",1),d.map=v=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[p,p+1],a=0;a<h;a++)d=e.push("td_open","td",1),m[a]&&(d.attrs=[["style","text-align:"+m[a]]]),d=e.push("inline","",0),d.content=f[a]?f[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return v&&(d=e.push("tbody_close","tbody",-1),v[1]=p),d=e.push("table_close","table",-1),C[1]=p,e.parentType=b,e.line=p,!0},Ws=function(e,n,r){var o,s,i;if(e.sCount[n]-e.blkIndent<4)return!1;for(s=o=n+1;o<r;){if(e.isEmpty(o)){o++;continue}if(e.sCount[o]-e.blkIndent>=4){o++,s=o;continue}break}return e.line=s,i=e.push("code_block","code",0),i.content=e.getLines(n,s,4+e.blkIndent,!1)+`
18
+ `,i.map=[n,e.line],!0},Ks=function(e,n,r,o){var s,i,c,a,l,p,f,h=!1,d=e.bMarks[n]+e.tShift[n],m=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>m||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(l=d,d=e.skipChars(d,s),i=d-l,i<3)||(f=e.src.slice(l,d),c=e.src.slice(d,m),s===96&&c.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(d=l=e.bMarks[a]+e.tShift[a],m=e.eMarks[a],d<m&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-l<i)&&(d=e.skipSpaces(d),!(d<m)))){h=!0;break}return i=e.sCount[n],e.line=a+(h?1:0),p=e.push("fence","code",0),p.info=c,p.content=e.getLines(n+1,a,i,!0),p.markup=f,p.map=[n,e.line],!0},Pn=I.isSpace,Js=function(e,n,r,o){var s,i,c,a,l,p,f,h,d,m,x,C,v,b,E,S,T,k,B,U,G=e.lineMax,N=e.bMarks[n]+e.tShift[n],P=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(N++)!==62)return!1;if(o)return!0;for(a=d=e.sCount[n]+1,e.src.charCodeAt(N)===32?(N++,a++,d++,s=!1,S=!0):e.src.charCodeAt(N)===9?(S=!0,(e.bsCount[n]+d)%4===3?(N++,a++,d++,s=!1):s=!0):S=!1,m=[e.bMarks[n]],e.bMarks[n]=N;N<P&&(i=e.src.charCodeAt(N),Pn(i));){i===9?d+=4-(d+e.bsCount[n]+(s?1:0))%4:d++;N++}for(x=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(S?1:0),p=N>=P,b=[e.sCount[n]],e.sCount[n]=d-a,E=[e.tShift[n]],e.tShift[n]=N-e.bMarks[n],k=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",h=n+1;h<r&&(U=e.sCount[h]<e.blkIndent,N=e.bMarks[h]+e.tShift[h],P=e.eMarks[h],!(N>=P));h++){if(e.src.charCodeAt(N++)===62&&!U){for(a=d=e.sCount[h]+1,e.src.charCodeAt(N)===32?(N++,a++,d++,s=!1,S=!0):e.src.charCodeAt(N)===9?(S=!0,(e.bsCount[h]+d)%4===3?(N++,a++,d++,s=!1):s=!0):S=!1,m.push(e.bMarks[h]),e.bMarks[h]=N;N<P&&(i=e.src.charCodeAt(N),Pn(i));){i===9?d+=4-(d+e.bsCount[h]+(s?1:0))%4:d++;N++}p=N>=P,x.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(S?1:0),b.push(e.sCount[h]),e.sCount[h]=d-a,E.push(e.tShift[h]),e.tShift[h]=N-e.bMarks[h];continue}if(p)break;for(T=!1,c=0,l=k.length;c<l;c++)if(k[c](e,h,r,!0)){T=!0;break}if(T){e.lineMax=h,e.blkIndent!==0&&(m.push(e.bMarks[h]),x.push(e.bsCount[h]),E.push(e.tShift[h]),b.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}m.push(e.bMarks[h]),x.push(e.bsCount[h]),E.push(e.tShift[h]),b.push(e.sCount[h]),e.sCount[h]=-1}for(C=e.blkIndent,e.blkIndent=0,B=e.push("blockquote_open","blockquote",1),B.markup=">",B.map=f=[n,0],e.md.block.tokenize(e,n,h),B=e.push("blockquote_close","blockquote",-1),B.markup=">",e.lineMax=G,e.parentType=v,f[1]=e.line,c=0;c<E.length;c++)e.bMarks[c+n]=m[c],e.tShift[c+n]=E[c],e.sCount[c+n]=b[c],e.bsCount[c+n]=x[c];return e.blkIndent=C,!0},Ys=I.isSpace,Xs=function(e,n,r,o){var s,i,c,a,l=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(i=1;l<p;){if(c=e.src.charCodeAt(l++),c!==s&&!Ys(c))return!1;c===s&&i++}return i<3?!1:(o||(e.line=n+1,a=e.push("hr","hr",0),a.map=[n,e.line],a.markup=Array(i+1).join(String.fromCharCode(s))),!0)},zn=I.isSpace;function Un(t,e){var n,r,o,s;return r=t.bMarks[e]+t.tShift[e],o=t.eMarks[e],n=t.src.charCodeAt(r++),n!==42&&n!==45&&n!==43||r<o&&(s=t.src.charCodeAt(r),!zn(s))?-1:r}function Vn(t,e){var n,r=t.bMarks[e]+t.tShift[e],o=r,s=t.eMarks[e];if(o+1>=s||(n=t.src.charCodeAt(o++),n<48||n>57))return-1;for(;;){if(o>=s)return-1;if(n=t.src.charCodeAt(o++),n>=48&&n<=57){if(o-r>=10)return-1;continue}if(n===41||n===46)break;return-1}return o<s&&(n=t.src.charCodeAt(o),!zn(n))?-1:o}function Qs(t,e){var n,r,o=t.level+2;for(n=e+2,r=t.tokens.length-2;n<r;n++)t.tokens[n].level===o&&t.tokens[n].type==="paragraph_open"&&(t.tokens[n+2].hidden=!0,t.tokens[n].hidden=!0,n+=2)}var ec=function(e,n,r,o){var s,i,c,a,l,p,f,h,d,m,x,C,v,b,E,S,T,k,B,U,G,N,P,ie,re,_,O,L,g=!1,y=!0;if(e.sCount[n]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[n]-e.listIndent>=4&&e.sCount[n]<e.blkIndent)return!1;if(o&&e.parentType==="paragraph"&&e.sCount[n]>=e.blkIndent&&(g=!0),(P=Vn(e,n))>=0){if(f=!0,re=e.bMarks[n]+e.tShift[n],v=Number(e.src.slice(re,P-1)),g&&v!==1)return!1}else if((P=Un(e,n))>=0)f=!1;else return!1;if(g&&e.skipSpaces(P)>=e.eMarks[n])return!1;if(C=e.src.charCodeAt(P-1),o)return!0;for(x=e.tokens.length,f?(L=e.push("ordered_list_open","ol",1),v!==1&&(L.attrs=[["start",v]])):L=e.push("bullet_list_open","ul",1),L.map=m=[n,0],L.markup=String.fromCharCode(C),E=n,ie=!1,O=e.md.block.ruler.getRules("list"),k=e.parentType,e.parentType="list";E<r;){for(N=P,b=e.eMarks[E],p=S=e.sCount[E]+P-(e.bMarks[n]+e.tShift[n]);N<b;){if(s=e.src.charCodeAt(N),s===9)S+=4-(S+e.bsCount[E])%4;else if(s===32)S++;else break;N++}if(i=N,i>=b?l=1:l=S-p,l>4&&(l=1),a=p+l,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(C),L.map=h=[n,0],f&&(L.info=e.src.slice(re,P-1)),G=e.tight,U=e.tShift[n],B=e.sCount[n],T=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[n]=i-e.bMarks[n],e.sCount[n]=S,i>=b&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||ie)&&(y=!1),ie=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=T,e.tShift[n]=U,e.sCount[n]=B,e.tight=G,L=e.push("list_item_close","li",-1),L.markup=String.fromCharCode(C),E=n=e.line,h[1]=E,i=e.bMarks[n],E>=r||e.sCount[E]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(_=!1,c=0,d=O.length;c<d;c++)if(O[c](e,E,r,!0)){_=!0;break}if(_)break;if(f){if(P=Vn(e,E),P<0)break;re=e.bMarks[E]+e.tShift[E]}else if(P=Un(e,E),P<0)break;if(C!==e.src.charCodeAt(P-1))break}return f?L=e.push("ordered_list_close","ol",-1):L=e.push("bullet_list_close","ul",-1),L.markup=String.fromCharCode(C),m[1]=E,e.line=E,e.parentType=k,y&&Qs(e,x),!0},tc=I.normalizeReference,Ge=I.isSpace,nc=function(e,n,r,o){var s,i,c,a,l,p,f,h,d,m,x,C,v,b,E,S,T=0,k=e.bMarks[n]+e.tShift[n],B=e.eMarks[n],U=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(k)!==91)return!1;for(;++k<B;)if(e.src.charCodeAt(k)===93&&e.src.charCodeAt(k-1)!==92){if(k+1===B||e.src.charCodeAt(k+1)!==58)return!1;break}for(a=e.lineMax,E=e.md.block.ruler.getRules("reference"),m=e.parentType,e.parentType="reference";U<a&&!e.isEmpty(U);U++)if(!(e.sCount[U]-e.blkIndent>3)&&!(e.sCount[U]<0)){for(b=!1,p=0,f=E.length;p<f;p++)if(E[p](e,U,a,!0)){b=!0;break}if(b)break}for(v=e.getLines(n,U,e.blkIndent,!1).trim(),B=v.length,k=1;k<B;k++){if(s=v.charCodeAt(k),s===91)return!1;if(s===93){d=k;break}else s===10?T++:s===92&&(k++,k<B&&v.charCodeAt(k)===10&&T++)}if(d<0||v.charCodeAt(d+1)!==58)return!1;for(k=d+2;k<B;k++)if(s=v.charCodeAt(k),s===10)T++;else if(!Ge(s))break;if(x=e.md.helpers.parseLinkDestination(v,k,B),!x.ok||(l=e.md.normalizeLink(x.str),!e.md.validateLink(l)))return!1;for(k=x.pos,T+=x.lines,i=k,c=T,C=k;k<B;k++)if(s=v.charCodeAt(k),s===10)T++;else if(!Ge(s))break;for(x=e.md.helpers.parseLinkTitle(v,k,B),k<B&&C!==k&&x.ok?(S=x.str,k=x.pos,T+=x.lines):(S="",k=i,T=c);k<B&&(s=v.charCodeAt(k),!!Ge(s));)k++;if(k<B&&v.charCodeAt(k)!==10&&S)for(S="",k=i,T=c;k<B&&(s=v.charCodeAt(k),!!Ge(s));)k++;return k<B&&v.charCodeAt(k)!==10||(h=tc(v.slice(1,d)),!h)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:S,href:l}),e.parentType=m,e.line=n+T+1),!0)},rc=["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"],He={},oc="[a-zA-Z_:][a-zA-Z0-9:._-]*",sc="[^\"'=<>`\\x00-\\x20]+",cc="'[^']*'",ic='"[^"]*"',ac="(?:"+sc+"|"+cc+"|"+ic+")",lc="(?:\\s+"+oc+"(?:\\s*=\\s*"+ac+")?)",$n="<[A-Za-z][A-Za-z0-9\\-]*"+lc+"*\\s*\\/?>",Gn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",uc="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",pc="<[?][\\s\\S]*?[?]>",fc="<![A-Z]+\\s+[^>]*>",hc="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",dc=new RegExp("^(?:"+$n+"|"+Gn+"|"+uc+"|"+pc+"|"+fc+"|"+hc+")"),gc=new RegExp("^(?:"+$n+"|"+Gn+")");He.HTML_TAG_RE=dc,He.HTML_OPEN_CLOSE_TAG_RE=gc;var mc=rc,bc=He.HTML_OPEN_CLOSE_TAG_RE,ve=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+mc.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(bc.source+"\\s*$"),/^$/,!1]],_c=function(e,n,r,o){var s,i,c,a,l=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(l)!==60)return!1;for(a=e.src.slice(l,p),s=0;s<ve.length&&!ve[s][0].test(a);s++);if(s===ve.length)return!1;if(o)return ve[s][2];if(i=n+1,!ve[s][1].test(a)){for(;i<r&&!(e.sCount[i]<e.blkIndent);i++)if(l=e.bMarks[i]+e.tShift[i],p=e.eMarks[i],a=e.src.slice(l,p),ve[s][1].test(a)){a.length!==0&&i++;break}}return e.line=i,c=e.push("html_block","",0),c.map=[n,i],c.content=e.getLines(n,i,e.blkIndent,!0),!0},Hn=I.isSpace,kc=function(e,n,r,o){var s,i,c,a,l=e.bMarks[n]+e.tShift[n],p=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=p))return!1;for(i=1,s=e.src.charCodeAt(++l);s===35&&l<p&&i<=6;)i++,s=e.src.charCodeAt(++l);return i>6||l<p&&!Hn(s)?!1:(o||(p=e.skipSpacesBack(p,l),c=e.skipCharsBack(p,35,l),c>l&&Hn(e.src.charCodeAt(c-1))&&(p=c),e.line=n+1,a=e.push("heading_open","h"+String(i),1),a.markup="########".slice(0,i),a.map=[n,e.line],a=e.push("inline","",0),a.content=e.src.slice(l,p).trim(),a.map=[n,e.line],a.children=[],a=e.push("heading_close","h"+String(i),-1),a.markup="########".slice(0,i)),!0)},xc=function(e,n,r){var o,s,i,c,a,l,p,f,h,d=n+1,m,x=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(m=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d],p=e.eMarks[d],l<p&&(h=e.src.charCodeAt(l),(h===45||h===61)&&(l=e.skipChars(l,h),l=e.skipSpaces(l),l>=p)))){f=h===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,i=0,c=x.length;i<c;i++)if(x[i](e,d,r,!0)){s=!0;break}if(s)break}}return f?(o=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,a=e.push("heading_open","h"+String(f),1),a.markup=String.fromCharCode(h),a.map=[n,e.line],a=e.push("inline","",0),a.content=o,a.map=[n,e.line-1],a.children=[],a=e.push("heading_close","h"+String(f),-1),a.markup=String.fromCharCode(h),e.parentType=m,!0):!1},wc=function(e,n){var r,o,s,i,c,a,l=n+1,p=e.md.block.ruler.getRules("paragraph"),f=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<f&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(o=!1,s=0,i=p.length;s<i;s++)if(p[s](e,l,f,!0)){o=!0;break}if(o)break}return r=e.getLines(n,l,e.blkIndent,!1).trim(),e.line=l,c=e.push("paragraph_open","p",1),c.map=[n,e.line],c=e.push("inline","",0),c.content=r,c.map=[n,e.line],c.children=[],c=e.push("paragraph_close","p",-1),e.parentType=a,!0},jn=mt,je=I.isSpace;function ee(t,e,n,r){var o,s,i,c,a,l,p,f;for(this.src=t,this.md=e,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",s=this.src,f=!1,i=c=l=p=0,a=s.length;c<a;c++){if(o=s.charCodeAt(c),!f)if(je(o)){l++,o===9?p+=4-p%4:p++;continue}else f=!0;(o===10||c===a-1)&&(o!==10&&c++,this.bMarks.push(i),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(p),this.bsCount.push(0),f=!1,l=0,p=0,i=c+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}ee.prototype.push=function(t,e,n){var r=new jn(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ee.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ee.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ee.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!je(n));e++);return e},ee.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!je(this.src.charCodeAt(--e)))return e+1;return e},ee.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},ee.prototype.skipCharsBack=function(e,n,r){if(e<=r)return e;for(;e>r;)if(n!==this.src.charCodeAt(--e))return e+1;return e},ee.prototype.getLines=function(e,n,r,o){var s,i,c,a,l,p,f,h=e;if(e>=n)return"";for(p=new Array(n-e),s=0;h<n;h++,s++){for(i=0,f=a=this.bMarks[h],h+1<n||o?l=this.eMarks[h]+1:l=this.eMarks[h];a<l&&i<r;){if(c=this.src.charCodeAt(a),je(c))c===9?i+=4-(i+this.bsCount[h])%4:i++;else if(a-f<this.tShift[h])i++;else break;a++}i>r?p[s]=new Array(i-r+1).join(" ")+this.src.slice(a,l):p[s]=this.src.slice(a,l)}return p.join("")},ee.prototype.Token=jn;var yc=ee,vc=gt,Ze=[["table",Zs,["paragraph","reference"]],["code",Ws],["fence",Ks,["paragraph","reference","blockquote","list"]],["blockquote",Js,["paragraph","reference","blockquote","list"]],["hr",Xs,["paragraph","reference","blockquote","list"]],["list",ec,["paragraph","reference","blockquote"]],["reference",nc],["html_block",_c,["paragraph","reference","blockquote"]],["heading",kc,["paragraph","reference","blockquote"]],["lheading",xc],["paragraph",wc]];function We(){this.ruler=new vc;for(var t=0;t<Ze.length;t++)this.ruler.push(Ze[t][0],Ze[t][1],{alt:(Ze[t][2]||[]).slice()})}We.prototype.tokenize=function(t,e,n){for(var r,o,s=this.ruler.getRules(""),i=s.length,c=e,a=!1,l=t.md.options.maxNesting;c<n&&(t.line=c=t.skipEmptyLines(c),!(c>=n||t.sCount[c]<t.blkIndent));){if(t.level>=l){t.line=n;break}for(o=0;o<i&&(r=s[o](t,c,n,!1),!r);o++);t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),c=t.line,c<n&&t.isEmpty(c)&&(a=!0,c++,t.line=c)}},We.prototype.parse=function(t,e,n,r){var o;t&&(o=new this.State(t,e,n,r),this.tokenize(o,o.line,o.lineMax))},We.prototype.State=yc;var Ec=We;function Ac(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 Cc=function(e,n){for(var r=e.pos;r<e.posMax&&!Ac(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},Sc=I.isSpace,qc=function(e,n){var r,o,s,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(r=e.pending.length-1,o=e.posMax,!n)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(s=r-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(i++;i<o&&Sc(e.src.charCodeAt(i));)i++;return e.pos=i,!0},Dc=I.isSpace,wt=[],Zn=0;Zn<256;Zn++)wt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){wt[t.charCodeAt(0)]=1});var Tc=function(e,n){var r,o=e.pos,s=e.posMax;if(e.src.charCodeAt(o)!==92)return!1;if(o++,o<s){if(r=e.src.charCodeAt(o),r<256&&wt[r]!==0)return n||(e.pending+=e.src[o]),e.pos+=2,!0;if(r===10){for(n||e.push("hardbreak","br",0),o++;o<s&&(r=e.src.charCodeAt(o),!!Dc(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},Rc=function(e,n){var r,o,s,i,c,a,l,p,f=e.pos,h=e.src.charCodeAt(f);if(h!==96)return!1;for(r=f,f++,o=e.posMax;f<o&&e.src.charCodeAt(f)===96;)f++;if(s=e.src.slice(r,f),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=r)return n||(e.pending+=s),e.pos+=l,!0;for(c=a=f;(c=e.src.indexOf("`",a))!==-1;){for(a=c+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(p=a-c,p===l)return n||(i=e.push("code_inline","code",0),i.markup=s,i.content=e.src.slice(f,c).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[p]=c}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=l,!0},Ke={};Ke.tokenize=function(e,n){var r,o,s,i,c,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==126||(o=e.scanDelims(e.pos,!0),i=o.length,c=String.fromCharCode(l),i<2))return!1;for(i%2&&(s=e.push("text","",0),s.content=c,i--),r=0;r<i;r+=2)s=e.push("text","",0),s.content=c+c,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 Wn(t,e){var n,r,o,s,i,c=[],a=e.length;for(n=0;n<a;n++)o=e[n],o.marker===126&&o.end!==-1&&(s=e[o.end],i=t.tokens[o.token],i.type="s_open",i.tag="s",i.nesting=1,i.markup="~~",i.content="",i=t.tokens[s.token],i.type="s_close",i.tag="s",i.nesting=-1,i.markup="~~",i.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&c.push(s.token-1));for(;c.length;){for(n=c.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(i=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=i)}}Ke.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Wn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Wn(e,r[n].delimiters)};var Je={};Je.tokenize=function(e,n){var r,o,s,i=e.pos,c=e.src.charCodeAt(i);if(n||c!==95&&c!==42)return!1;for(o=e.scanDelims(e.pos,c===42),r=0;r<o.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(c),e.delimiters.push({marker:c,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 Kn(t,e){var n,r,o,s,i,c,a=e.length;for(n=a-1;n>=0;n--)r=e[n],!(r.marker!==95&&r.marker!==42)&&r.end!==-1&&(o=e[r.end],c=n>0&&e[n-1].end===r.end+1&&e[n-1].marker===r.marker&&e[n-1].token===r.token-1&&e[r.end+1].token===o.token+1,i=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=c?"strong_open":"em_open",s.tag=c?"strong":"em",s.nesting=1,s.markup=c?i+i:i,s.content="",s=t.tokens[o.token],s.type=c?"strong_close":"em_close",s.tag=c?"strong":"em",s.nesting=-1,s.markup=c?i+i:i,s.content="",c&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}Je.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Kn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Kn(e,r[n].delimiters)};var Nc=I.normalizeReference,yt=I.isSpace,Lc=function(e,n){var r,o,s,i,c,a,l,p,f,h="",d="",m=e.pos,x=e.posMax,C=e.pos,v=!0;if(e.src.charCodeAt(e.pos)!==91||(c=e.pos+1,i=e.md.helpers.parseLinkLabel(e,e.pos,!0),i<0))return!1;if(a=i+1,a<x&&e.src.charCodeAt(a)===40){for(v=!1,a++;a<x&&(o=e.src.charCodeAt(a),!(!yt(o)&&o!==10));a++);if(a>=x)return!1;if(C=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(h=e.md.normalizeLink(l.str),e.md.validateLink(h)?a=l.pos:h="",C=a;a<x&&(o=e.src.charCodeAt(a),!(!yt(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<x&&C!==a&&l.ok)for(d=l.str,a=l.pos;a<x&&(o=e.src.charCodeAt(a),!(!yt(o)&&o!==10));a++);}(a>=x||e.src.charCodeAt(a)!==41)&&(v=!0),a++}if(v){if(typeof e.env.references>"u")return!1;if(a<x&&e.src.charCodeAt(a)===91?(C=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(C,a++):a=i+1):a=i+1,s||(s=e.src.slice(c,i)),p=e.env.references[Nc(s)],!p)return e.pos=m,!1;h=p.href,d=p.title}return n||(e.pos=c,e.posMax=i,f=e.push("link_open","a",1),f.attrs=r=[["href",h]],d&&r.push(["title",d]),e.md.inline.tokenize(e),f=e.push("link_close","a",-1)),e.pos=a,e.posMax=x,!0},Bc=I.normalizeReference,vt=I.isSpace,Mc=function(e,n){var r,o,s,i,c,a,l,p,f,h,d,m,x,C="",v=e.pos,b=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,c=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),c<0))return!1;if(l=c+1,l<b&&e.src.charCodeAt(l)===40){for(l++;l<b&&(o=e.src.charCodeAt(l),!(!vt(o)&&o!==10));l++);if(l>=b)return!1;for(x=l,f=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),f.ok&&(C=e.md.normalizeLink(f.str),e.md.validateLink(C)?l=f.pos:C=""),x=l;l<b&&(o=e.src.charCodeAt(l),!(!vt(o)&&o!==10));l++);if(f=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<b&&x!==l&&f.ok)for(h=f.str,l=f.pos;l<b&&(o=e.src.charCodeAt(l),!(!vt(o)&&o!==10));l++);else h="";if(l>=b||e.src.charCodeAt(l)!==41)return e.pos=v,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<b&&e.src.charCodeAt(l)===91?(x=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?i=e.src.slice(x,l++):l=c+1):l=c+1,i||(i=e.src.slice(a,c)),p=e.env.references[Bc(i)],!p)return e.pos=v,!1;C=p.href,h=p.title}return n||(s=e.src.slice(a,c),e.md.inline.parse(s,e.md,e.env,m=[]),d=e.push("image","img",0),d.attrs=r=[["src",C],["alt",""]],d.children=m,d.content=s,h&&r.push(["title",h])),e.pos=l,e.posMax=b,!0},Ic=/^([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])?)*)$/,Oc=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Fc=function(e,n){var r,o,s,i,c,a,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(c=e.pos,a=e.posMax;;){if(++l>=a||(i=e.src.charCodeAt(l),i===60))return!1;if(i===62)break}return r=e.src.slice(c+1,l),Oc.test(r)?(o=e.md.normalizeLink(r),e.md.validateLink(o)?(n||(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(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):Ic.test(r)?(o=e.md.normalizeLink("mailto:"+r),e.md.validateLink(o)?(n||(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(r),s=e.push("link_close","a",-1),s.markup="autolink",s.info="auto"),e.pos+=r.length+2,!0):!1):!1},Pc=He.HTML_TAG_RE;function zc(t){var e=t|32;return e>=97&&e<=122}var Uc=function(e,n){var r,o,s,i,c=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(c)!==60||c+2>=s)||(r=e.src.charCodeAt(c+1),r!==33&&r!==63&&r!==47&&!zc(r))||(o=e.src.slice(c).match(Pc),!o)?!1:(n||(i=e.push("html_inline","",0),i.content=e.src.slice(c,c+o[0].length)),e.pos+=o[0].length,!0)},Jn=dn,Vc=I.has,$c=I.isValidEntityCode,Yn=I.fromCodePoint,Gc=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Hc=/^&([a-z][a-z0-9]{1,31});/i,jc=function(e,n){var r,o,s,i=e.pos,c=e.posMax;if(e.src.charCodeAt(i)!==38)return!1;if(i+1<c){if(r=e.src.charCodeAt(i+1),r===35){if(s=e.src.slice(i).match(Gc),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=$c(o)?Yn(o):Yn(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(i).match(Hc),s&&Vc(Jn,s[1]))return n||(e.pending+=Jn[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function Xn(t,e){var n,r,o,s,i,c,a,l,p={},f=e.length;if(f){var h=0,d=-2,m=[];for(n=0;n<f;n++)if(o=e[n],m.push(0),(e[h].marker!==o.marker||d!==o.token-1)&&(h=n),d=o.token,o.length=o.length||0,!!o.close){for(p.hasOwnProperty(o.marker)||(p[o.marker]=[-1,-1,-1,-1,-1,-1]),i=p[o.marker][(o.open?3:0)+o.length%3],r=h-m[h]-1,c=r;r>i;r-=m[r]+1)if(s=e[r],s.marker===o.marker&&s.open&&s.end<0&&(a=!1,(s.close||o.open)&&(s.length+o.length)%3===0&&(s.length%3!==0||o.length%3!==0)&&(a=!0),!a)){l=r>0&&!e[r-1].open?m[r-1]+1:0,m[n]=n-r+l,m[r]=l,o.open=!1,s.end=n,s.close=!1,c=-1,d=-2;break}c!==-1&&(p[o.marker][(o.open?3:0)+(o.length||0)%3]=c)}}}var Zc=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Xn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Xn(e,r[n].delimiters)},Wc=function(e){var n,r,o=0,s=e.tokens,i=e.tokens.length;for(n=r=0;n<i;n++)s[n].nesting<0&&o--,s[n].level=o,s[n].nesting>0&&o++,s[n].type==="text"&&n+1<i&&s[n+1].type==="text"?s[n+1].content=s[n].content+s[n+1].content:(n!==r&&(s[r]=s[n]),r++);n!==r&&(s.length=r)},Et=mt,Qn=I.isWhiteSpace,er=I.isPunctChar,tr=I.isMdAsciiPunct;function De(t,e,n,r){this.src=t,this.env=n,this.md=e,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}De.prototype.pushPending=function(){var t=new Et("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},De.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Et(t,e,n),o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},De.prototype.scanDelims=function(t,e){var n=t,r,o,s,i,c,a,l,p,f,h=!0,d=!0,m=this.posMax,x=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<m&&this.src.charCodeAt(n)===x;)n++;return s=n-t,o=n<m?this.src.charCodeAt(n):32,l=tr(r)||er(String.fromCharCode(r)),f=tr(o)||er(String.fromCharCode(o)),a=Qn(r),p=Qn(o),p?h=!1:f&&(a||l||(h=!1)),a?d=!1:l&&(p||f||(d=!1)),e?(i=h,c=d):(i=h&&(!d||l),c=d&&(!h||f)),{can_open:i,can_close:c,length:s}},De.prototype.Token=Et;var Kc=De,nr=gt,At=[["text",Cc],["newline",qc],["escape",Tc],["backticks",Rc],["strikethrough",Ke.tokenize],["emphasis",Je.tokenize],["link",Lc],["image",Mc],["autolink",Fc],["html_inline",Uc],["entity",jc]],Ct=[["balance_pairs",Zc],["strikethrough",Ke.postProcess],["emphasis",Je.postProcess],["text_collapse",Wc]];function Te(){var t;for(this.ruler=new nr,t=0;t<At.length;t++)this.ruler.push(At[t][0],At[t][1]);for(this.ruler2=new nr,t=0;t<Ct.length;t++)this.ruler2.push(Ct[t][0],Ct[t][1])}Te.prototype.skipToken=function(t){var e,n,r=t.pos,o=this.ruler.getRules(""),s=o.length,i=t.md.options.maxNesting,c=t.cache;if(typeof c[r]<"u"){t.pos=c[r];return}if(t.level<i)for(n=0;n<s&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,c[r]=t.pos},Te.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),o=r.length,s=t.posMax,i=t.md.options.maxNesting;t.pos<s;){if(t.level<i)for(n=0;n<o&&(e=r[n](t,!1),!e);n++);if(e){if(t.pos>=s)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()},Te.prototype.parse=function(t,e,n,r){var o,s,i,c=new this.State(t,e,n,r);for(this.tokenize(c),s=this.ruler2.getRules(""),i=s.length,o=0;o<i;o++)s[o](c)},Te.prototype.State=Kc;var Jc=Te,St,rr;function Yc(){return rr||(rr=1,St=function(t){var e={};e.src_Any=vn().source,e.src_Cc=An().source,e.src_Z=qn().source,e.src_P=ut.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 n="[><|]";return e.src_pseudo_letter="(?:(?!"+n+"|"+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="(?=$|"+n+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+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&&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="(^|"+n+'|"|\\(|'+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}),St}function qt(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(n){n&&Object.keys(n).forEach(function(r){t[r]=n[r]})}),t}function Ye(t){return Object.prototype.toString.call(t)}function Xc(t){return Ye(t)==="[object String]"}function Qc(t){return Ye(t)==="[object Object]"}function ei(t){return Ye(t)==="[object RegExp]"}function or(t){return Ye(t)==="[object Function]"}function ti(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var sr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function ni(t){return Object.keys(t||{}).reduce(function(e,n){return e||sr.hasOwnProperty(n)},!1)}var ri={"http:":{validate:function(t,e,n){var r=t.slice(e);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,n){var r=t.slice(e);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,n){var r=t.slice(e);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},oi="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]",si="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function ci(t){t.__index__=-1,t.__text_cache__=""}function ii(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function cr(){return function(t,e){e.normalize(t)}}function Xe(t){var e=t.re=Yc()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(oi),n.push(e.src_xn),e.src_tlds=n.join("|");function r(c){return c.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(r(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(r(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(r(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(r(e.tpl_host_fuzzy_test),"i");var o=[];t.__compiled__={};function s(c,a){throw new Error('(LinkifyIt) Invalid schema "'+c+'": '+a)}Object.keys(t.__schemas__).forEach(function(c){var a=t.__schemas__[c];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[c]=l,Qc(a)){ei(a.validate)?l.validate=ii(a.validate):or(a.validate)?l.validate=a.validate:s(c,a),or(a.normalize)?l.normalize=a.normalize:a.normalize?s(c,a):l.normalize=cr();return}if(Xc(a)){o.push(c);return}s(c,a)}}),o.forEach(function(c){t.__compiled__[t.__schemas__[c]]&&(t.__compiled__[c].validate=t.__compiled__[t.__schemas__[c]].validate,t.__compiled__[c].normalize=t.__compiled__[t.__schemas__[c]].normalize)}),t.__compiled__[""]={validate:null,normalize:cr()};var i=Object.keys(t.__compiled__).filter(function(c){return c.length>0&&t.__compiled__[c]}).map(ti).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+i+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),ci(t)}function ai(t,e){var n=t.__index__,r=t.__last_index__,o=t.__text_cache__.slice(n,r);this.schema=t.__schema__.toLowerCase(),this.index=n+e,this.lastIndex=r+e,this.raw=o,this.text=o,this.url=o}function ir(t,e){var n=new ai(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function K(t,e){if(!(this instanceof K))return new K(t,e);e||ni(t)&&(e=t,t={}),this.__opts__=qt({},sr,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=qt({},ri,t),this.__compiled__={},this.__tlds__=si,this.__tlds_replaced__=!1,this.re={},Xe(this)}K.prototype.add=function(e,n){return this.__schemas__[e]=n,Xe(this),this},K.prototype.set=function(e){return this.__opts__=qt(this.__opts__,e),this},K.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var n,r,o,s,i,c,a,l,p;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(n=a.exec(e))!==null;)if(s=this.testSchemaAt(e,n[2],a.lastIndex),s){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[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__)&&(r=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(i=r.index+r[1].length,(this.__index__<0||i<this.__index__)&&(this.__schema__="",this.__index__=i,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(p=e.indexOf("@"),p>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(i=o.index+o[1].length,c=o.index+o[0].length,(this.__index__<0||i<this.__index__||i===this.__index__&&c>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=i,this.__last_index__=c))),this.__index__>=0},K.prototype.pretest=function(e){return this.re.pretest.test(e)},K.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},K.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(ir(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(ir(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},K.prototype.tlds=function(e,n){return e=Array.isArray(e)?e:[e],n?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(r,o,s){return r!==s[o-1]}).reverse(),Xe(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Xe(this),this)},K.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},K.prototype.onCompile=function(){};var li=K;const Ee=2147483647,te=36,Dt=1,Re=26,ui=38,pi=700,ar=72,lr=128,ur="-",fi=/^xn--/,hi=/[^\0-\x7F]/,di=/[\x2E\u3002\uFF0E\uFF61]/g,gi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Tt=te-Dt,ne=Math.floor,Rt=String.fromCharCode;function ue(t){throw new RangeError(gi[t])}function mi(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function pr(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(di,".");const o=t.split("."),s=mi(o,e).join(".");return r+s}function Nt(t){const e=[];let n=0;const r=t.length;for(;n<r;){const o=t.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const s=t.charCodeAt(n++);(s&64512)==56320?e.push(((o&1023)<<10)+(s&1023)+65536):(e.push(o),n--)}else e.push(o)}return e}const fr=t=>String.fromCodePoint(...t),bi=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:te},hr=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},dr=function(t,e,n){let r=0;for(t=n?ne(t/pi):t>>1,t+=ne(t/e);t>Tt*Re>>1;r+=te)t=ne(t/Tt);return ne(r+(Tt+1)*t/(t+ui))},Lt=function(t){const e=[],n=t.length;let r=0,o=lr,s=ar,i=t.lastIndexOf(ur);i<0&&(i=0);for(let c=0;c<i;++c)t.charCodeAt(c)>=128&&ue("not-basic"),e.push(t.charCodeAt(c));for(let c=i>0?i+1:0;c<n;){const a=r;for(let p=1,f=te;;f+=te){c>=n&&ue("invalid-input");const h=bi(t.charCodeAt(c++));h>=te&&ue("invalid-input"),h>ne((Ee-r)/p)&&ue("overflow"),r+=h*p;const d=f<=s?Dt:f>=s+Re?Re:f-s;if(h<d)break;const m=te-d;p>ne(Ee/m)&&ue("overflow"),p*=m}const l=e.length+1;s=dr(r-a,l,a==0),ne(r/l)>Ee-o&&ue("overflow"),o+=ne(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},Bt=function(t){const e=[];t=Nt(t);const n=t.length;let r=lr,o=0,s=ar;for(const a of t)a<128&&e.push(Rt(a));const i=e.length;let c=i;for(i&&e.push(ur);c<n;){let a=Ee;for(const p of t)p>=r&&p<a&&(a=p);const l=c+1;a-r>ne((Ee-o)/l)&&ue("overflow"),o+=(a-r)*l,r=a;for(const p of t)if(p<r&&++o>Ee&&ue("overflow"),p===r){let f=o;for(let h=te;;h+=te){const d=h<=s?Dt:h>=s+Re?Re:h-s;if(f<d)break;const m=f-d,x=te-d;e.push(Rt(hr(d+m%x,0))),f=ne(m/x)}e.push(Rt(hr(f,0))),s=dr(o,l,c===i),o=0,++c}++o,++r}return e.join("")},gr=function(t){return pr(t,function(e){return fi.test(e)?Lt(e.slice(4).toLowerCase()):e})},mr=function(t){return pr(t,function(e){return hi.test(e)?"xn--"+Bt(e):e})},_i=Dr(Object.freeze(Object.defineProperty({__proto__:null,decode:Lt,default:{version:"2.3.1",ucs2:{decode:Nt,encode:fr},decode:Lt,encode:Bt,toASCII:mr,toUnicode:gr},encode:Bt,toASCII:mr,toUnicode:gr,ucs2decode:Nt,ucs2encode:fr},Symbol.toStringTag,{value:"Module"})));var ki={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},xi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}},wi={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},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","text_collapse"]}}},Ne=I,yi=Ve,vi=vs,Ei=js,Ai=Ec,Ci=Jc,Si=li,me=xe,br=_i,qi={default:ki,zero:xi,commonmark:wi},Di=/^(vbscript|javascript|file|data):/,Ti=/^data:image\/(gif|png|jpeg|webp);/;function Ri(t){var e=t.trim().toLowerCase();return Di.test(e)?!!Ti.test(e):!0}var _r=["http:","https:","mailto:"];function Ni(t){var e=me.parse(t,!0);if(e.hostname&&(!e.protocol||_r.indexOf(e.protocol)>=0))try{e.hostname=br.toASCII(e.hostname)}catch{}return me.encode(me.format(e))}function Li(t){var e=me.parse(t,!0);if(e.hostname&&(!e.protocol||_r.indexOf(e.protocol)>=0))try{e.hostname=br.toUnicode(e.hostname)}catch{}return me.decode(me.format(e),me.decode.defaultChars+"%")}function J(t,e){if(!(this instanceof J))return new J(t,e);e||Ne.isString(t)||(e=t||{},t="default"),this.inline=new Ci,this.block=new Ai,this.core=new Ei,this.renderer=new vi,this.linkify=new Si,this.validateLink=Ri,this.normalizeLink=Ni,this.normalizeLinkText=Li,this.utils=Ne,this.helpers=Ne.assign({},yi),this.options={},this.configure(t),e&&this.set(e)}J.prototype.set=function(t){return Ne.assign(this.options,t),this},J.prototype.configure=function(t){var e=this,n;if(Ne.isString(t)&&(n=t,t=qi[n],!t))throw new Error('Wrong `markdown-it` preset "'+n+'", 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(r){t.components[r].rules&&e[r].ruler.enableOnly(t.components[r].rules),t.components[r].rules2&&e[r].ruler2.enableOnly(t.components[r].rules2)}),this},J.prototype.enable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(t,!0))},this),n=n.concat(this.inline.ruler2.enable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},J.prototype.disable=function(t,e){var n=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(t,!0))},this),n=n.concat(this.inline.ruler2.disable(t,!0));var r=t.filter(function(o){return n.indexOf(o)<0});if(r.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},J.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},J.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var n=new this.core.State(t,this,e);return this.core.process(n),n.tokens},J.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},J.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},J.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Bi=J,Mi=Bi;const Ii=rt(Mi);var Oi=u.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1},plugins:{type:Array,required:!1}},setup:function(t){for(var e,n,r=u.ref(new Ii((e=t.options)!==null&&e!==void 0?e:{})),o=0,s=(n=t.plugins)!==null&&n!==void 0?n:[];o<s.length;o++){var i=s[o];r.value.use(i)}var c=u.computed(function(){return r.value.render(t.source)});return function(){return u.h("div",{innerHTML:c.value})}}});function Fi(t,e){var n,r,o=t.attrs[t.attrIndex("href")][1];for(n=0;n<e.length;++n){if(r=e[n],typeof r.matcher=="function"){if(r.matcher(o,r))return r;continue}return r}}function Pi(t,e,n){Object.keys(n).forEach(function(r){var o,s=n[r];r==="className"&&(r="class"),o=e[t].attrIndex(r),o<0?e[t].attrPush([r,s]):e[t].attrs[o][1]=s})}function kr(t,e){e?e=Array.isArray(e)?e:[e]:e=[],Object.freeze(e);var n=t.renderer.rules.link_open||this.defaultRender;t.renderer.rules.link_open=function(r,o,s,i,c){var a=Fi(r[o],e),l=a&&a.attrs;return l&&Pi(o,r,l),n(r,o,s,i,c)}}kr.defaultRender=function(t,e,n,r,o){return o.renderToken(t,e,n)};var zi=kr;const Ui=rt(zi),Mt=u.defineComponent({__name:"Message",props:{message:{}},setup(t){const e=t,{message:n}=u.toRefs(e),{options:r}=qe(),o=u.computed(()=>n.value.text||"&lt;Empty response&gt;"),s=u.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot","chat-message-transparent":n.value.transparent===!0})),i=l=>{l.use(Ui,{attrs:{target:"_blank",rel:"noopener"}})},c={highlight(l,p){if(p&&Oe.getLanguage(p))try{return Oe.highlight(l,{language:p}).value}catch{}return""}},a=(r==null?void 0:r.messageComponents)??{};return(l,p)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-message",s.value])},[u.renderSlot(l.$slots,"default",{},()=>[u.unref(n).type==="component"&&u.unref(a)[u.unref(n).key]?(u.openBlock(),u.createBlock(u.resolveDynamicComponent(u.unref(a)[u.unref(n).key]),u.normalizeProps(u.mergeProps({key:0},u.unref(n).arguments)),null,16)):(u.openBlock(),u.createBlock(u.unref(Oi),{key:1,class:"chat-message-markdown",source:o.value,options:c,plugins:[i]},null,8,["source","plugins"]))])],2))}}),Vi=u.createElementVNode("div",{class:"chat-message-typing-body"},[u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),$i=u.defineComponent({__name:"MessageTyping",props:{animation:{default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=u.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(u.openBlock(),u.createBlock(u.unref(Mt),{class:u.normalizeClass(r.value),message:n},{default:u.withCtx(()=>[Vi]),_:1},8,["class"]))}}),Gi={class:"chat-messages-list"},Hi=u.defineComponent({__name:"MessagesList",props:{messages:{}},setup(t){const e=lt(),{initialMessages:n,waitingForResponse:r}=e;return(o,s)=>(u.openBlock(),u.createElementBlock("div",Gi,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(n),i=>(u.openBlock(),u.createBlock(Mt,{key:i.id,message:i},null,8,["message"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(o.messages,i=>(u.openBlock(),u.createBlock(Mt,{key:i.id,message:i},null,8,["message"]))),128)),u.unref(r)?(u.openBlock(),u.createBlock($i,{key:0})):u.createCommentVNode("",!0)]))}}),ji={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Zi=[u.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2z"},null,-1)];function Wi(t,e){return u.openBlock(),u.createElementBlock("svg",ji,[...Zi])}const Ki={name:"mdi-send",render:Wi},Ji={class:"chat-input"},Yi=["disabled","placeholder"],Xi=["disabled"],Qi=u.defineComponent({__name:"Input",setup(t){const{options:e}=qe(),n=lt(),{waitingForResponse:r}=n,{t:o}=Fe(),s=u.ref(null),i=u.ref(""),c=u.computed(()=>{var f;return i.value===""||r.value||((f=e.disabled)==null?void 0:f.value)===!0}),a=u.computed(()=>{var f;return((f=e.disabled)==null?void 0:f.value)===!0});u.onMounted(()=>{ce.on("focusInput",()=>{s.value&&s.value.focus()})});async function l(f){if(f.preventDefault(),c.value)return;const h=i.value;i.value="",await n.sendMessage(h)}async function p(f){f.shiftKey||await l(f)}return(f,h)=>(u.openBlock(),u.createElementBlock("div",Ji,[u.withDirectives(u.createElementVNode("textarea",{ref_key:"chatTextArea",ref:s,"onUpdate:modelValue":h[0]||(h[0]=d=>i.value=d),rows:"1",disabled:a.value,placeholder:u.unref(o)("inputPlaceholder"),onKeydown:u.withKeys(p,["enter"])},null,40,Yi),[[u.vModelText,i.value]]),u.createElementVNode("button",{disabled:c.value,class:"chat-input-send-button",onClick:l},[u.createVNode(u.unref(Ki),{height:"32",width:"32"})],8,Xi)]))}}),ea={class:"chat-heading"},ta=["title"],na={key:0},xr=u.defineComponent({__name:"Chat",setup(t){const{t:e}=Fe(),n=lt(),{messages:r,currentSessionId:o}=n,{options:s}=qe(),i=u.computed(()=>s.mode==="window"&&s.showWindowCloseButton);async function c(){n.startNewSession&&(n.startNewSession(),u.nextTick(()=>{ce.emit("scrollToBottom")}))}async function a(){n.loadPreviousSession&&(await n.loadPreviousSession(),u.nextTick(()=>{ce.emit("scrollToBottom")}))}function l(){ce.emit("close")}return u.onMounted(async()=>{await a(),!s.showWelcomeScreen&&!o.value&&await c()}),(p,f)=>(u.openBlock(),u.createBlock(Vo,{class:"chat-wrapper"},{header:u.withCtx(()=>[u.createElementVNode("div",ea,[u.createElementVNode("h1",null,u.toDisplayString(u.unref(e)("title")),1),i.value?(u.openBlock(),u.createElementBlock("button",{key:0,class:"chat-close-button",title:u.unref(e)("closeButtonTooltip"),onClick:l},[u.createVNode(u.unref(Io),{height:"18",width:"18"})],8,ta)):u.createCommentVNode("",!0)]),u.unref(e)("subtitle")?(u.openBlock(),u.createElementBlock("p",na,u.toDisplayString(u.unref(e)("subtitle")),1)):u.createCommentVNode("",!0)]),footer:u.withCtx(()=>[u.unref(o)?(u.openBlock(),u.createBlock(Qi,{key:0})):(u.openBlock(),u.createBlock(Qo,{key:1}))]),default:u.withCtx(()=>[!u.unref(o)&&u.unref(s).showWelcomeScreen?(u.openBlock(),u.createBlock(Ho,{key:0,"onClick:button":c})):(u.openBlock(),u.createBlock(Hi,{key:1,messages:u.unref(r)},null,8,["messages"]))]),_:1}))}}),ra={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},oa=[u.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8"},null,-1)];function sa(t,e){return u.openBlock(),u.createElementBlock("svg",ra,[...oa])}const ca={name:"mdi-chat",render:sa},ia={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},aa=[u.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z"},null,-1)];function la(t,e){return u.openBlock(),u.createElementBlock("svg",ia,[...aa])}const ua={name:"mdi-chevron-down",render:la},pa={class:"chat-window-wrapper"},fa={class:"chat-window"},ha=u.defineComponent({__name:"ChatWindow",setup(t){const e=u.ref(!1);function n(){e.value=!e.value,e.value&&u.nextTick(()=>{ce.emit("scrollToBottom")})}return(r,o)=>(u.openBlock(),u.createElementBlock("div",pa,[u.createVNode(u.Transition,{name:"chat-window-transition"},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("div",fa,[u.createVNode(xr)],512),[[u.vShow,e.value]])]),_:1}),u.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[u.createVNode(u.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:u.withCtx(()=>[e.value?(u.openBlock(),u.createBlock(u.unref(ua),{key:1,height:"32",width:"32"})):(u.openBlock(),u.createBlock(u.unref(ca),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),da=u.defineComponent({__name:"App",props:{},setup(t){const{options:e}=qe(),n=u.computed(()=>e.mode==="fullscreen");return u.onMounted(()=>{Oe.registerLanguage("xml",vo),Oe.registerLanguage("javascript",qo)}),(r,o)=>n.value?(u.openBlock(),u.createBlock(u.unref(xr),{key:0,class:"n8n-chat"})):(u.openBlock(),u.createBlock(u.unref(ha),{key:1,class:"n8n-chat"}))}});var Qe,ga=new Uint8Array(16);function ma(){if(!Qe&&(Qe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Qe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qe(ga)}const ba=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function _a(t){return typeof t=="string"&&ba.test(t)}for(var $=[],It=0;It<256;++It)$.push((It+256).toString(16).substr(1));function ka(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=($[t[e+0]]+$[t[e+1]]+$[t[e+2]]+$[t[e+3]]+"-"+$[t[e+4]]+$[t[e+5]]+"-"+$[t[e+6]]+$[t[e+7]]+"-"+$[t[e+8]]+$[t[e+9]]+"-"+$[t[e+10]]+$[t[e+11]]+$[t[e+12]]+$[t[e+13]]+$[t[e+14]]+$[t[e+15]]).toLowerCase();if(!_a(n))throw TypeError("Stringified UUID is invalid");return n}function Le(t,e,n){t=t||{};var r=t.random||(t.rng||ma)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,ka(r)}async function xa(){return""}async function wr(...t){var r;const e=await xa();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json",...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function yr(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),await wr(r,{...n,method:"GET"})}async function vr(t,e={},n={}){return await wr(t,{...n,method:"POST",body:JSON.stringify(e)})}async function wa(t,e){var r,o;return await(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?vr:yr)(`${e.webhookUrl}`,{action:"loadPreviousSession",[e.chatSessionKey]:t,...e.metadata?{metadata:e.metadata}:{}},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function ya(t,e,n){var o,s;return await(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?vr:yr)(`${n.webhookUrl}`,{action:"sendMessage",[n.chatSessionKey]:e,[n.chatInputKey]:t,...n.metadata?{metadata:n.metadata}:{}},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const va={install(t,e){t.provide(hn,e);const n=u.ref([]),r=u.ref(null),o=u.ref(!1),s=u.computed(()=>(e.initialMessages??[]).map(p=>({id:Le(),text:p,sender:"bot",createdAt:new Date().toISOString()})));async function i(p){const f={id:Le(),text:p,sender:"user",createdAt:new Date().toISOString()};n.value.push(f),o.value=!0,u.nextTick(()=>{ce.emit("scrollToBottom")});const h=await ya(p,r.value,e);let d=h.output??h.text??"";if(d===""&&Object.keys(h).length>0)try{d=JSON.stringify(h,null,2)}catch{}const m={id:Le(),text:d,sender:"bot",createdAt:new Date().toISOString()};n.value.push(m),o.value=!1,u.nextTick(()=>{ce.emit("scrollToBottom")})}async function c(){if(!e.loadPreviousSession)return;const p=localStorage.getItem(pn)??Le(),f=await wa(p,e),h=new Date().toISOString();return n.value=((f==null?void 0:f.data)||[]).map((d,m)=>({id:`${m}`,text:d.kwargs.content,sender:d.id.includes("HumanMessage")?"user":"bot",createdAt:h})),n.value.length&&(r.value=p),p}async function a(){r.value=Le(),localStorage.setItem(pn,r.value)}const l={initialMessages:s,messages:n,currentSessionId:r,waitingForResponse:o,loadPreviousSession:c,startNewSession:a,sendMessage:i};t.provide(fn,l),t.config.globalProperties.$chat=l}};function Ea(t){var o,s;const e={...Se,...t,webhookConfig:{...Se.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Se.i18n,...t==null?void 0:t.i18n,en:{...(o=Se.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Se.theme,...t==null?void 0:t.theme}},n=e.target??$o;typeof n=="string"&&Fo(n);const r=u.createApp(da);return r.use(va,e),r.mount(n),r}pe.createChat=Ea,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,11 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
5
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
6
+ export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare function __VLS_template(): {
2
+ header?(_: {}): any;
3
+ default?(_: {}): any;
4
+ footer?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
7
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
8
+ export default _default;
9
+ type __VLS_WithTemplateSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,26 @@
1
+ import { ChatMessage } from '../types';
2
+
3
+ declare function __VLS_template(): {
4
+ default?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
7
+ message: ChatMessage;
8
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ message: ChatMessage;
10
+ }>>>, {}, {}>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,29 @@
1
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ animation?: "bouncing" | "scaling";
3
+ }>, {
4
+ animation: string;
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
6
+ animation?: "bouncing" | "scaling";
7
+ }>, {
8
+ animation: string;
9
+ }>>>, {
10
+ animation: "bouncing" | "scaling";
11
+ }, {}>;
12
+ export default _default;
13
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
24
+ default: D[K];
25
+ }> : P[K];
26
+ };
27
+ type __VLS_Prettify<T> = {
28
+ [K in keyof T]: T[K];
29
+ } & {};
@@ -0,0 +1,17 @@
1
+ import { ChatMessage } from '../types';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
4
+ messages: ChatMessage[];
5
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ messages: ChatMessage[];
7
+ }>>>, {}, {}>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Chat } from '../types';
2
+
3
+ export declare function useChat(): Chat;
@@ -0,0 +1,4 @@
1
+ export declare function useI18n(): {
2
+ t: (key: string) => string;
3
+ te: (key: string) => boolean;
4
+ };
@@ -0,0 +1,5 @@
1
+ import { ChatOptions } from '../types';
2
+
3
+ export declare function useOptions(): {
4
+ options: ChatOptions;
5
+ };
@@ -0,0 +1,4 @@
1
+ import { ChatOptions } from '../types';
2
+
3
+ export declare const defaultOptions: ChatOptions;
4
+ export declare const defaultMountingTarget = "#n8n-chat";
@@ -0,0 +1,2 @@
1
+ export declare const localStorageNamespace = "n8n-chat";
2
+ export declare const localStorageSessionIdKey = "n8n-chat/sessionId";