@n8n/chat 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -5
- package/chat.bundle.es.js +10756 -0
- package/chat.bundle.umd.js +18 -0
- package/chat.es.js +6866 -0
- package/chat.umd.js +18 -0
- package/package.json +62 -2
- package/style.css +1 -0
- package/types/App.vue.d.ts +8 -0
- package/types/__stories__/App.stories.d.ts +17 -0
- package/types/__tests__/index.spec.d.ts +1 -0
- package/types/__tests__/setup.d.ts +0 -0
- package/types/__tests__/utils/create.d.ts +5 -0
- package/types/__tests__/utils/fetch.d.ts +4 -0
- package/types/__tests__/utils/selectors.d.ts +12 -0
- package/types/api/generic.d.ts +6 -0
- package/types/api/message.d.ts +3 -0
- package/types/components/Button.vue.d.ts +9 -0
- package/types/components/Chat.vue.d.ts +2 -0
- package/types/components/ChatWindow.vue.d.ts +2 -0
- package/types/components/GetStarted.vue.d.ts +2 -0
- package/types/components/GetStartedFooter.vue.d.ts +2 -0
- package/types/components/Input.vue.d.ts +2 -0
- package/types/components/Layout.vue.d.ts +11 -0
- package/types/components/Message.vue.d.ts +21 -0
- package/types/components/MessageTyping.vue.d.ts +15 -0
- package/types/components/MessagesList.vue.d.ts +14 -0
- package/types/components/PoweredBy.vue.d.ts +2 -0
- package/types/composables/useChat.d.ts +2 -0
- package/types/composables/useI18n.d.ts +4 -0
- package/types/composables/useOptions.d.ts +4 -0
- package/types/constants/defaults.d.ts +3 -0
- package/types/constants/localStorage.d.ts +2 -0
- package/types/constants/symbols.d.ts +4 -0
- package/types/event-buses/chatEventBus.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/plugins/chat.d.ts +3 -0
- package/types/types/chat.d.ts +11 -0
- package/types/types/messages.d.ts +6 -0
- package/types/types/options.d.ts +24 -0
- package/types/types/webhook.d.ts +15 -0
- package/types/utils/event-bus.d.ts +8 -0
- package/types/utils/mount.d.ts +1 -0
- package/.eslintignore +0 -2
- package/.eslintrc.cjs +0 -52
- package/.np-config.json +0 -5
- package/.storybook/main.ts +0 -27
- package/.storybook/preview.scss +0 -4
- package/.storybook/preview.ts +0 -16
- package/.vscode/extensions.json +0 -3
- package/env.d.ts +0 -1
- package/index.html +0 -13
- package/resources/workflow.json +0 -293
- package/scripts/pack.js +0 -11
- package/scripts/postbuild.js +0 -16
- package/src/App.vue +0 -23
- package/src/__stories__/App.stories.ts +0 -43
- package/src/__tests__/index.spec.ts +0 -223
- package/src/__tests__/setup.ts +0 -1
- package/src/__tests__/utils/create.ts +0 -16
- package/src/__tests__/utils/fetch.ts +0 -18
- package/src/__tests__/utils/selectors.ts +0 -53
- package/src/api/generic.ts +0 -64
- package/src/api/message.ts +0 -31
- package/src/components/Button.vue +0 -41
- package/src/components/Chat.vue +0 -48
- package/src/components/ChatWindow.vue +0 -125
- package/src/components/GetStarted.vue +0 -24
- package/src/components/GetStartedFooter.vue +0 -20
- package/src/components/Input.vue +0 -93
- package/src/components/Layout.vue +0 -82
- package/src/components/Message.vue +0 -97
- package/src/components/MessageTyping.vue +0 -109
- package/src/components/MessagesList.vue +0 -37
- package/src/components/PoweredBy.vue +0 -17
- package/src/composables/useChat.ts +0 -7
- package/src/composables/useI18n.ts +0 -16
- package/src/composables/useOptions.ts +0 -11
- package/src/constants/defaults.ts +0 -25
- package/src/constants/localStorage.ts +0 -2
- package/src/constants/symbols.ts +0 -8
- package/src/event-buses/chatEventBus.ts +0 -3
- package/src/index.ts +0 -42
- package/src/main.scss +0 -40
- package/src/plugins/chat.ts +0 -101
- package/src/shims.d.ts +0 -6
- package/src/types/chat.ts +0 -12
- package/src/types/messages.ts +0 -6
- package/src/types/options.ts +0 -23
- package/src/types/webhook.ts +0 -17
- package/src/utils/event-bus.ts +0 -51
- package/src/utils/mount.ts +0 -16
- package/tsconfig.json +0 -27
- package/vite.config.ts +0 -51
- package/vitest.config.ts +0 -20
- /package/{public/favicon.ico → favicon.ico} +0 -0
- /package/{src/__tests__/utils/index.ts → types/__tests__/utils/index.d.ts} +0 -0
- /package/{src/api/index.ts → types/api/index.d.ts} +0 -0
- /package/{src/components/index.ts → types/components/index.d.ts} +0 -0
- /package/{src/composables/index.ts → types/composables/index.d.ts} +0 -0
- /package/{src/constants/index.ts → types/constants/index.d.ts} +0 -0
- /package/{src/event-buses/index.ts → types/event-buses/index.d.ts} +0 -0
- /package/{src/plugins/index.ts → types/plugins/index.d.ts} +0 -0
- /package/{src/types/index.ts → types/types/index.d.ts} +0 -0
- /package/{src/utils/index.ts → types/utils/index.d.ts} +0 -0
package/chat.umd.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
(function(le,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(le=typeof globalThis<"u"?globalThis:le||self,p(le.N8nChat={},le.Vue))})(this,function(le,p){"use strict";const ya="",wa="",Pt=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Sr={},Dr={class:"chat-button"};function Tr(t,e){return p.openBlock(),p.createElementBlock("button",Dr,[p.renderSlot(t.$slots,"default")])}const Rr=Pt(Sr,[["render",Tr]]);function Nr(){const t=new Map;function e(o,s){const c=t.get(o);c&&c.splice(c.indexOf(s)>>>0,1)}function n(o,s){let c=t.get(o);return c?c.push(s):c=[s],t.set(o,c),()=>e(o,s)}function r(o,s){const c=t.get(o);c&&c.slice().forEach(async i=>{await i(s)})}return{on:n,off:e,emit:r}}function Lr(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 ue=Nr(),Br={class:"chat-layout"},Mr={key:0,class:"chat-header"},Ir={key:2,class:"chat-footer"},Fr=p.defineComponent({__name:"Layout",setup(t){const e=p.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return p.onMounted(()=>{ue.on("scrollToBottom",n),window.addEventListener("resize",n)}),p.onBeforeUnmount(()=>{ue.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(p.openBlock(),p.createElementBlock("main",Br,[r.$slots.header?(p.openBlock(),p.createElementBlock("div",Mr,[p.renderSlot(r.$slots,"header")])):p.createCommentVNode("",!0),r.$slots.default?(p.openBlock(),p.createElementBlock("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[p.renderSlot(r.$slots,"default")],512)):p.createCommentVNode("",!0),r.$slots.footer?(p.openBlock(),p.createElementBlock("div",Ir,[p.renderSlot(r.$slots,"footer")])):p.createCommentVNode("",!0)]))}}),va="",Ae={webhookUrl:"http://localhost:5678",webhookConfig:{method:"POST",headers:{}},target:"#n8n-chat",mode:"window",chatInputKey:"chat_input",chatHistoryKey:"chat_history",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.."}},theme:{}},Or="#n8n-chat",zt="n8n-chat/sessionId",Ut="Chat",Vt="ChatOptions";function nt(){return p.inject(Ut)}function rt(){return{options:p.inject(Vt)}}function Le(){const{options:t}=rt(),e=(t==null?void 0:t.defaultLanguage)??"en";function n(o){var s,c;return((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])==null?void 0:c[o])??o}function r(o){var s,c;return!!((c=(s=t==null?void 0:t.i18n)==null?void 0:s[e])!=null&&c[o])}return{t:n,te:r}}const Pr={class:"chat-get-started"},zr=p.defineComponent({__name:"GetStarted",setup(t){const{t:e}=Le();return(n,r)=>(p.openBlock(),p.createElementBlock("div",Pr,[p.createVNode(Rr,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(e)("getStarted")),1)]),_:1})]))}}),Aa="",Ca="",Ur={},Vr={class:"chat-powered-by"},$r=p.createElementVNode("a",{href:"https://n8n.io?utm_source=n8n-external&utm_medium=widget-powered-by"},"n8n",-1);function Gr(t,e){return p.openBlock(),p.createElementBlock("div",Vr,[p.createTextVNode(" Powered by "),$r])}const Hr=Pt(Ur,[["render",Gr]]),jr={class:"chat-get-started-footer"},Zr={key:0},Wr=p.defineComponent({__name:"GetStartedFooter",setup(t){const{t:e,te:n}=Le();return(r,o)=>(p.openBlock(),p.createElementBlock("div",jr,[p.unref(n)("footer")?(p.openBlock(),p.createElementBlock("div",Zr,p.toDisplayString(p.unref(e)("footer")),1)):p.createCommentVNode("",!0),p.createVNode(Hr)]))}}),qa="";function $t(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Kr(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}var I={},Gt={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:`
|
|
2
|
+
`,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:""},ot=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,_e={},Ht={};function Jr(t){var e,n,r=Ht[t];if(r)return r;for(r=Ht[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 Be(t,e,n){var r,o,s,c,i,a="";for(typeof e!="string"&&(n=e,e=Be.defaultChars),typeof n>"u"&&(n=!0),i=Jr(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+=i[s];continue}if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1<o&&(c=t.charCodeAt(r+1),c>=56320&&c<=57343)){a+=encodeURIComponent(t[r]+t[r+1]),r++;continue}a+="%EF%BF%BD";continue}a+=encodeURIComponent(t[r])}return a}Be.defaultChars=";/?:@&=+$,-_.!~*'()#",Be.componentChars="-_.!~*'()";var Yr=Be,jt={};function Xr(t){var e,n,r=jt[t];if(r)return r;for(r=jt[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 Me(t,e){var n;return typeof e!="string"&&(e=Me.defaultChars),n=Xr(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,c,i,a,l,u,f="";for(o=0,s=r.length;o<s;o+=3){if(c=parseInt(r.slice(o+1,o+3),16),c<128){f+=n[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(r.slice(o+4,o+6),16),(i&192)===128)){u=c<<6&1984|i&63,u<128?f+="��":f+=String.fromCharCode(u),o+=3;continue}if((c&240)===224&&o+6<s&&(i=parseInt(r.slice(o+4,o+6),16),a=parseInt(r.slice(o+7,o+9),16),(i&192)===128&&(a&192)===128)){u=c<<12&61440|i<<6&4032|a&63,u<2048||u>=55296&&u<=57343?f+="���":f+=String.fromCharCode(u),o+=6;continue}if((c&248)===240&&o+9<s&&(i=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),(i&192)===128&&(a&192)===128&&(l&192)===128)){u=c<<18&1835008|i<<12&258048|a<<6&4032|l&63,u<65536||u>1114111?f+="����":(u-=65536,f+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),o+=9;continue}f+="�"}return f})}Me.defaultChars=";/?:@&=+$,#",Me.componentChars="";var Qr=Me,eo=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 Ie(){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 to=/^([a-z0-9.+-]+:)/i,no=/:[0-9]*$/,ro=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,oo=["<",">",'"',"`"," ","\r",`
|
|
3
|
+
`," "],so=["{","}","|","\\","^","`"].concat(oo),co=["'"].concat(so),Zt=["%","/","?",";","#"].concat(co),Wt=["/","?","#"],io=255,Kt=/^[+a-z0-9A-Z_-]{0,63}$/,ao=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Jt={javascript:!0,"javascript:":!0},Yt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function lo(t,e){if(t&&t instanceof Ie)return t;var n=new Ie;return n.parse(t,e),n}Ie.prototype.parse=function(t,e){var n,r,o,s,c,i=t;if(i=i.trim(),!e&&t.split("#").length===1){var a=ro.exec(i);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=to.exec(i);if(l&&(l=l[0],o=l.toLowerCase(),this.protocol=l,i=i.substr(l.length)),(e||l||i.match(/^\/\/[^@\/]+@[^@\/]+/))&&(c=i.substr(0,2)==="//",c&&!(l&&Jt[l])&&(i=i.substr(2),this.slashes=!0)),!Jt[l]&&(c||l&&!Yt[l])){var u=-1;for(n=0;n<Wt.length;n++)s=i.indexOf(Wt[n]),s!==-1&&(u===-1||s<u)&&(u=s);var f,d;for(u===-1?d=i.lastIndexOf("@"):d=i.lastIndexOf("@",u),d!==-1&&(f=i.slice(0,d),i=i.slice(d+1),this.auth=f),u=-1,n=0;n<Zt.length;n++)s=i.indexOf(Zt[n]),s!==-1&&(u===-1||s<u)&&(u=s);u===-1&&(u=i.length),i[u-1]===":"&&u--;var h=i.slice(0,u);i=i.slice(u),this.parseHost(h),this.hostname=this.hostname||"";var k=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!k){var y=this.hostname.split(/\./);for(n=0,r=y.length;n<r;n++){var C=y[n];if(C&&!C.match(Kt)){for(var v="",m=0,E=C.length;m<E;m++)C.charCodeAt(m)>127?v+="x":v+=C[m];if(!v.match(Kt)){var q=y.slice(0,n),T=y.slice(n+1),_=C.match(ao);_&&(q.push(_[1]),T.unshift(_[2])),T.length&&(i=T.join(".")+i),this.hostname=q.join(".");break}}}}this.hostname.length>io&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var B=i.indexOf("#");B!==-1&&(this.hash=i.substr(B),i=i.slice(0,B));var U=i.indexOf("?");return U!==-1&&(this.search=i.substr(U),i=i.slice(0,U)),i&&(this.pathname=i),Yt[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Ie.prototype.parseHost=function(t){var e=no.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 uo=lo;_e.encode=Yr,_e.decode=Qr,_e.format=eo,_e.parse=uo;var pe={},st,Xt;function Qt(){return Xt||(Xt=1,st=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),st}var ct,en;function tn(){return en||(en=1,ct=/[\0-\x1F\x7F-\x9F]/),ct}var it,nn;function po(){return nn||(nn=1,it=/[\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]/),it}var at,rn;function on(){return rn||(rn=1,at=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),at}var sn;function fo(){return sn||(sn=1,pe.Any=Qt(),pe.Cc=tn(),pe.Cf=po(),pe.P=ot,pe.Z=on()),pe}(function(t){function e(b){return Object.prototype.toString.call(b)}function n(b){return e(b)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(b,F){return r.call(b,F)}function s(b){var F=Array.prototype.slice.call(arguments,1);return F.forEach(function(L){if(L){if(typeof L!="object")throw new TypeError(L+"must be object");Object.keys(L).forEach(function(g){b[g]=L[g]})}}),b}function c(b,F,L){return[].concat(b.slice(0,F),L,b.slice(F+1))}function i(b){return!(b>=55296&&b<=57343||b>=64976&&b<=65007||(b&65535)===65535||(b&65535)===65534||b>=0&&b<=8||b===11||b>=14&&b<=31||b>=127&&b<=159||b>1114111)}function a(b){if(b>65535){b-=65536;var F=55296+(b>>10),L=56320+(b&1023);return String.fromCharCode(F,L)}return String.fromCharCode(b)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,f=new RegExp(l.source+"|"+u.source,"gi"),d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,h=Gt;function k(b,F){var L=0;return o(h,F)?h[F]:F.charCodeAt(0)===35&&d.test(F)&&(L=F[1].toLowerCase()==="x"?parseInt(F.slice(2),16):parseInt(F.slice(1),10),i(L))?a(L):b}function y(b){return b.indexOf("\\")<0?b:b.replace(l,"$1")}function C(b){return b.indexOf("\\")<0&&b.indexOf("&")<0?b:b.replace(f,function(F,L,g){return L||k(F,g)})}var v=/[&<>"]/,m=/[&<>"]/g,E={"&":"&","<":"<",">":">",'"':"""};function q(b){return E[b]}function T(b){return v.test(b)?b.replace(m,q):b}var _=/[.?*+^$[\]\\(){}|-]/g;function B(b){return b.replace(_,"\\$&")}function U(b){switch(b){case 9:case 32:return!0}return!1}function G(b){if(b>=8192&&b<=8202)return!0;switch(b){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=ot;function P(b){return N.test(b)}function ce(b){switch(b){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(b){return b=b.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(b=b.replace(/ẞ/g,"ß")),b.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=_e,t.lib.ucmicro=fo(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=y,t.unescapeAll=C,t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=T,t.arrayReplaceAt=c,t.isSpace=U,t.isWhiteSpace=G,t.isMdAsciiPunct=ce,t.isPunctChar=P,t.escapeRE=B,t.normalizeReference=re})(I);var Fe={},ho=function(e,n,r){var o,s,c,i,a=-1,l=e.posMax,u=e.pos;for(e.pos=n+1,o=1;e.pos<l;){if(c=e.src.charCodeAt(e.pos),c===93&&(o--,o===0)){s=!0;break}if(i=e.pos,e.md.inline.skipToken(e),c===91){if(i===e.pos-1)o++;else if(r)return e.pos=u,-1}}return s&&(a=e.pos),e.pos=u,a},cn=I.unescapeAll,go=function(e,n,r){var o,s,c=0,i=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=cn(e.slice(i+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 i===n||s!==0||(a.str=cn(e.slice(i,n)),a.lines=c,a.pos=n,a.ok=!0),a},mo=I.unescapeAll,bo=function(e,n,r){var o,s,c=0,i=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=c,a.str=mo(e.slice(i+1,n)),a.ok=!0,a;if(o===40&&s===41)return a;o===10?c++:o===92&&n+1<r&&(n++,e.charCodeAt(n)===10&&c++),n++}return a};Fe.parseLinkLabel=ho,Fe.parseLinkDestination=go,Fe.parseLinkTitle=bo;var _o=I.assign,ko=I.unescapeAll,fe=I.escapeHtml,Q={};Q.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+fe(t[e].content)+"</code>"},Q.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+fe(t[e].content)+`</code></pre>
|
|
4
|
+
`},Q.fence=function(t,e,n,r,o){var s=t[e],c=s.info?ko(s.info).trim():"",i="",a="",l,u,f,d,h;return c&&(f=c.split(/(\s+)/g),i=f[0],a=f.slice(2).join("")),n.highlight?l=n.highlight(s.content,i,a)||fe(s.content):l=fe(s.content),l.indexOf("<pre")===0?l+`
|
|
5
|
+
`:c?(u=s.attrIndex("class"),d=s.attrs?s.attrs.slice():[],u<0?d.push(["class",n.langPrefix+i]):(d[u]=d[u].slice(),d[u][1]+=" "+n.langPrefix+i),h={attrs:d},"<pre><code"+o.renderAttrs(h)+">"+l+`</code></pre>
|
|
6
|
+
`):"<pre><code"+o.renderAttrs(s)+">"+l+`</code></pre>
|
|
7
|
+
`},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 />
|
|
8
|
+
`:`<br>
|
|
9
|
+
`},Q.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
10
|
+
`:`<br>
|
|
11
|
+
`:`
|
|
12
|
+
`},Q.text=function(t,e){return fe(t[e].content)},Q.html_block=function(t,e){return t[e].content},Q.html_inline=function(t,e){return t[e].content};function ke(){this.rules=_o({},Q)}ke.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+fe(e.attrs[n][0])+'="'+fe(e.attrs[n][1])+'"';return o},ke.prototype.renderToken=function(e,n,r){var o,s="",c=!1,i=e[n];return i.hidden?"":(i.block&&i.nesting!==-1&&n&&e[n-1].hidden&&(s+=`
|
|
13
|
+
`),s+=(i.nesting===-1?"</":"<")+i.tag,s+=this.renderAttrs(i),i.nesting===0&&r.xhtmlOut&&(s+=" /"),i.block&&(c=!0,i.nesting===1&&n+1<e.length&&(o=e[n+1],(o.type==="inline"||o.hidden||o.nesting===-1&&o.tag===i.tag)&&(c=!1))),s+=c?`>
|
|
14
|
+
`:">",s)},ke.prototype.renderInline=function(t,e,n){for(var r,o="",s=this.rules,c=0,i=t.length;c<i;c++)r=t[c].type,typeof s[r]<"u"?o+=s[r](t,c,e,n,this):o+=this.renderToken(t,c,e);return o},ke.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+=`
|
|
15
|
+
`);return r},ke.prototype.render=function(t,e,n){var r,o,s,c="",i=this.rules;for(r=0,o=t.length;r<o;r++)s=t[r].type,s==="inline"?c+=this.renderInline(t[r].children,e,n):typeof i[s]<"u"?c+=i[t[r].type](t,r,e,n,this):c+=this.renderToken(t,r,e,n);return c};var xo=ke;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 lt=Y,yo=/\r\n?|\n/g,wo=/\0/g,vo=function(e){var n;n=e.src.replace(yo,`
|
|
16
|
+
`),n=n.replace(wo,"�"),e.src=n},Eo=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)},Ao=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)},Co=I.arrayReplaceAt;function qo(t){return/^<a[>\s]/i.test(t)}function So(t){return/^<\/a\s*>/i.test(t)}var Do=function(e){var n,r,o,s,c,i,a,l,u,f,d,h,k,y,C,v,m=e.tokens,E;if(e.md.options.linkify){for(r=0,o=m.length;r<o;r++)if(!(m[r].type!=="inline"||!e.md.linkify.pretest(m[r].content)))for(s=m[r].children,k=0,n=s.length-1;n>=0;n--){if(i=s[n],i.type==="link_close"){for(n--;s[n].level!==i.level&&s[n].type!=="link_open";)n--;continue}if(i.type==="html_inline"&&(qo(i.content)&&k>0&&k--,So(i.content)&&k++),!(k>0)&&i.type==="text"&&e.md.linkify.test(i.content)){for(u=i.content,E=e.md.linkify.match(u),a=[],h=i.level,d=0,l=0;l<E.length;l++)y=E[l].url,C=e.md.normalizeLink(y),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>d&&(c=new e.Token("text","",0),c.content=u.slice(d,f),c.level=h,a.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",C]],c.level=h++,c.markup="linkify",c.info="auto",a.push(c),c=new e.Token("text","",0),c.content=v,c.level=h,a.push(c),c=new e.Token("link_close","a",-1),c.level=--h,c.markup="linkify",c.info="auto",a.push(c),d=E[l].lastIndex);d<u.length&&(c=new e.Token("text","",0),c.content=u.slice(d),c.level=h,a.push(c)),m[r].children=s=Co(s,n,a)}}}},an=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,To=/\((c|tm|r|p)\)/i,Ro=/\((c|tm|r|p)\)/ig,No={c:"©",r:"®",p:"§",tm:"™"};function Lo(t,e){return No[e.toLowerCase()]}function Bo(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(Ro,Lo)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function Mo(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&an.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 Io=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(To.test(e.tokens[n].content)&&Bo(e.tokens[n].children),an.test(e.tokens[n].content)&&Mo(e.tokens[n].children))},ln=I.isWhiteSpace,un=I.isPunctChar,pn=I.isMdAsciiPunct,Fo=/['"]/,fn=/['"]/g,hn="’";function Oe(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function Oo(t,e){var n,r,o,s,c,i,a,l,u,f,d,h,k,y,C,v,m,E,q,T,_;for(q=[],n=0;n<t.length;n++){for(r=t[n],a=t[n].level,m=q.length-1;m>=0&&!(q[m].level<=a);m--);if(q.length=m+1,r.type==="text"){o=r.content,c=0,i=o.length;e:for(;c<i&&(fn.lastIndex=c,s=fn.exec(o),!!s);){if(C=v=!0,c=s.index+1,E=s[0]==="'",u=32,s.index-1>=0)u=o.charCodeAt(s.index-1);else for(m=n-1;m>=0&&!(t[m].type==="softbreak"||t[m].type==="hardbreak");m--)if(t[m].content){u=t[m].content.charCodeAt(t[m].content.length-1);break}if(f=32,c<i)f=o.charCodeAt(c);else for(m=n+1;m<t.length&&!(t[m].type==="softbreak"||t[m].type==="hardbreak");m++)if(t[m].content){f=t[m].content.charCodeAt(0);break}if(d=pn(u)||un(String.fromCharCode(u)),h=pn(f)||un(String.fromCharCode(f)),k=ln(u),y=ln(f),y?C=!1:h&&(k||d||(C=!1)),k?v=!1:d&&(y||h||(v=!1)),f===34&&s[0]==='"'&&u>=48&&u<=57&&(v=C=!1),C&&v&&(C=d,v=h),!C&&!v){E&&(r.content=Oe(r.content,s.index,hn));continue}if(v){for(m=q.length-1;m>=0&&(l=q[m],!(q[m].level<a));m--)if(l.single===E&&q[m].level===a){l=q[m],E?(T=e.md.options.quotes[2],_=e.md.options.quotes[3]):(T=e.md.options.quotes[0],_=e.md.options.quotes[1]),r.content=Oe(r.content,s.index,_),t[l.token].content=Oe(t[l.token].content,l.pos,T),c+=_.length-1,l.token===n&&(c+=T.length-1),o=r.content,i=o.length,q.length=m;continue e}}C?q.push({token:n,pos:s.index,single:E,level:a}):v&&E&&(r.content=Oe(r.content,s.index,hn))}}}}var Po=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!Fo.test(e.tokens[n].content)||Oo(e.tokens[n].children,e)};function xe(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}xe.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},xe.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},xe.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},xe.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},xe.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 ut=xe,zo=ut;function dn(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}dn.prototype.Token=zo;var Uo=dn,Vo=lt,pt=[["normalize",vo],["block",Eo],["inline",Ao],["linkify",Do],["replacements",Io],["smartquotes",Po]];function ft(){this.ruler=new Vo;for(var t=0;t<pt.length;t++)this.ruler.push(pt[t][0],pt[t][1])}ft.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},ft.prototype.State=Uo;var $o=ft,ht=I.isSpace;function dt(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function gn(t){var e=[],n=0,r=t.length,o,s=!1,c=0,i="";for(o=t.charCodeAt(n);n<r;)o===124&&(s?(i+=t.substring(c,n-1),c=n):(e.push(i+t.substring(c,n)),i="",c=n+1)),s=o===92,n++,o=t.charCodeAt(n);return e.push(i+t.substring(c)),e}var Go=function(e,n,r,o){var s,c,i,a,l,u,f,d,h,k,y,C,v,m,E,q,T,_;if(n+2>r||(u=n+1,e.sCount[u]<e.blkIndent)||e.sCount[u]-e.blkIndent>=4||(i=e.bMarks[u]+e.tShift[u],i>=e.eMarks[u])||(T=e.src.charCodeAt(i++),T!==124&&T!==45&&T!==58)||i>=e.eMarks[u]||(_=e.src.charCodeAt(i++),_!==124&&_!==45&&_!==58&&!ht(_))||T===45&&ht(_))return!1;for(;i<e.eMarks[u];){if(s=e.src.charCodeAt(i),s!==124&&s!==45&&s!==58&&!ht(s))return!1;i++}for(c=dt(e,n+1),f=c.split("|"),k=[],a=0;a<f.length;a++){if(y=f[a].trim(),!y){if(a===0||a===f.length-1)continue;return!1}if(!/^:?-+:?$/.test(y))return!1;y.charCodeAt(y.length-1)===58?k.push(y.charCodeAt(0)===58?"center":"right"):y.charCodeAt(0)===58?k.push("left"):k.push("")}if(c=dt(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(f=gn(c),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),d=f.length,d===0||d!==k.length))return!1;if(o)return!0;for(m=e.parentType,e.parentType="table",q=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=C=[n,0],h=e.push("thead_open","thead",1),h.map=[n,n+1],h=e.push("tr_open","tr",1),h.map=[n,n+1],a=0;a<f.length;a++)h=e.push("th_open","th",1),k[a]&&(h.attrs=[["style","text-align:"+k[a]]]),h=e.push("inline","",0),h.content=f[a].trim(),h.children=[],h=e.push("th_close","th",-1);for(h=e.push("tr_close","tr",-1),h=e.push("thead_close","thead",-1),u=n+2;u<r&&!(e.sCount[u]<e.blkIndent);u++){for(E=!1,a=0,l=q.length;a<l;a++)if(q[a](e,u,r,!0)){E=!0;break}if(E||(c=dt(e,u).trim(),!c)||e.sCount[u]-e.blkIndent>=4)break;for(f=gn(c),f.length&&f[0]===""&&f.shift(),f.length&&f[f.length-1]===""&&f.pop(),u===n+2&&(h=e.push("tbody_open","tbody",1),h.map=v=[n+2,0]),h=e.push("tr_open","tr",1),h.map=[u,u+1],a=0;a<d;a++)h=e.push("td_open","td",1),k[a]&&(h.attrs=[["style","text-align:"+k[a]]]),h=e.push("inline","",0),h.content=f[a]?f[a].trim():"",h.children=[],h=e.push("td_close","td",-1);h=e.push("tr_close","tr",-1)}return v&&(h=e.push("tbody_close","tbody",-1),v[1]=u),h=e.push("table_close","table",-1),C[1]=u,e.parentType=m,e.line=u,!0},Ho=function(e,n,r){var o,s,c;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,c=e.push("code_block","code",0),c.content=e.getLines(n,s,4+e.blkIndent,!1)+`
|
|
17
|
+
`,c.map=[n,e.line],!0},jo=function(e,n,r,o){var s,c,i,a,l,u,f,d=!1,h=e.bMarks[n]+e.tShift[n],k=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||h+3>k||(s=e.src.charCodeAt(h),s!==126&&s!==96)||(l=h,h=e.skipChars(h,s),c=h-l,c<3)||(f=e.src.slice(l,h),i=e.src.slice(h,k),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(h=l=e.bMarks[a]+e.tShift[a],k=e.eMarks[a],h<k&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(h)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(h=e.skipChars(h,s),!(h-l<c)&&(h=e.skipSpaces(h),!(h<k)))){d=!0;break}return c=e.sCount[n],e.line=a+(d?1:0),u=e.push("fence","code",0),u.info=i,u.content=e.getLines(n+1,a,c,!0),u.markup=f,u.map=[n,e.line],!0},mn=I.isSpace,Zo=function(e,n,r,o){var s,c,i,a,l,u,f,d,h,k,y,C,v,m,E,q,T,_,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=h=e.sCount[n]+1,e.src.charCodeAt(N)===32?(N++,a++,h++,s=!1,q=!0):e.src.charCodeAt(N)===9?(q=!0,(e.bsCount[n]+h)%4===3?(N++,a++,h++,s=!1):s=!0):q=!1,k=[e.bMarks[n]],e.bMarks[n]=N;N<P&&(c=e.src.charCodeAt(N),mn(c));){c===9?h+=4-(h+e.bsCount[n]+(s?1:0))%4:h++;N++}for(y=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(q?1:0),u=N>=P,m=[e.sCount[n]],e.sCount[n]=h-a,E=[e.tShift[n]],e.tShift[n]=N-e.bMarks[n],_=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",d=n+1;d<r&&(U=e.sCount[d]<e.blkIndent,N=e.bMarks[d]+e.tShift[d],P=e.eMarks[d],!(N>=P));d++){if(e.src.charCodeAt(N++)===62&&!U){for(a=h=e.sCount[d]+1,e.src.charCodeAt(N)===32?(N++,a++,h++,s=!1,q=!0):e.src.charCodeAt(N)===9?(q=!0,(e.bsCount[d]+h)%4===3?(N++,a++,h++,s=!1):s=!0):q=!1,k.push(e.bMarks[d]),e.bMarks[d]=N;N<P&&(c=e.src.charCodeAt(N),mn(c));){c===9?h+=4-(h+e.bsCount[d]+(s?1:0))%4:h++;N++}u=N>=P,y.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(q?1:0),m.push(e.sCount[d]),e.sCount[d]=h-a,E.push(e.tShift[d]),e.tShift[d]=N-e.bMarks[d];continue}if(u)break;for(T=!1,i=0,l=_.length;i<l;i++)if(_[i](e,d,r,!0)){T=!0;break}if(T){e.lineMax=d,e.blkIndent!==0&&(k.push(e.bMarks[d]),y.push(e.bsCount[d]),E.push(e.tShift[d]),m.push(e.sCount[d]),e.sCount[d]-=e.blkIndent);break}k.push(e.bMarks[d]),y.push(e.bsCount[d]),E.push(e.tShift[d]),m.push(e.sCount[d]),e.sCount[d]=-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,d),B=e.push("blockquote_close","blockquote",-1),B.markup=">",e.lineMax=G,e.parentType=v,f[1]=e.line,i=0;i<E.length;i++)e.bMarks[i+n]=k[i],e.tShift[i+n]=E[i],e.sCount[i+n]=m[i],e.bsCount[i+n]=y[i];return e.blkIndent=C,!0},Wo=I.isSpace,Ko=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l++),s!==42&&s!==45&&s!==95))return!1;for(c=1;l<u;){if(i=e.src.charCodeAt(l++),i!==s&&!Wo(i))return!1;i===s&&c++}return c<3?!1:(o||(e.line=n+1,a=e.push("hr","hr",0),a.map=[n,e.line],a.markup=Array(c+1).join(String.fromCharCode(s))),!0)},bn=I.isSpace;function _n(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),!bn(s))?-1:r}function kn(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),!bn(n))?-1:o}function Jo(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 Yo=function(e,n,r,o){var s,c,i,a,l,u,f,d,h,k,y,C,v,m,E,q,T,_,B,U,G,N,P,ce,re,b,F,L,g=!1,w=!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=kn(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=_n(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(y=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=k=[n,0],L.markup=String.fromCharCode(C),E=n,ce=!1,F=e.md.block.ruler.getRules("list"),_=e.parentType,e.parentType="list";E<r;){for(N=P,m=e.eMarks[E],u=q=e.sCount[E]+P-(e.bMarks[n]+e.tShift[n]);N<m;){if(s=e.src.charCodeAt(N),s===9)q+=4-(q+e.bsCount[E])%4;else if(s===32)q++;else break;N++}if(c=N,c>=m?l=1:l=q-u,l>4&&(l=1),a=u+l,L=e.push("list_item_open","li",1),L.markup=String.fromCharCode(C),L.map=d=[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]=c-e.bMarks[n],e.sCount[n]=q,c>=m&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||ce)&&(w=!1),ce=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,d[1]=E,c=e.bMarks[n],E>=r||e.sCount[E]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(b=!1,i=0,h=F.length;i<h;i++)if(F[i](e,E,r,!0)){b=!0;break}if(b)break;if(f){if(P=kn(e,E),P<0)break;re=e.bMarks[E]+e.tShift[E]}else if(P=_n(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),k[1]=E,e.line=E,e.parentType=_,w&&Jo(e,y),!0},Xo=I.normalizeReference,Pe=I.isSpace,Qo=function(e,n,r,o){var s,c,i,a,l,u,f,d,h,k,y,C,v,m,E,q,T=0,_=e.bMarks[n]+e.tShift[n],B=e.eMarks[n],U=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(_)!==91)return!1;for(;++_<B;)if(e.src.charCodeAt(_)===93&&e.src.charCodeAt(_-1)!==92){if(_+1===B||e.src.charCodeAt(_+1)!==58)return!1;break}for(a=e.lineMax,E=e.md.block.ruler.getRules("reference"),k=e.parentType,e.parentType="reference";U<a&&!e.isEmpty(U);U++)if(!(e.sCount[U]-e.blkIndent>3)&&!(e.sCount[U]<0)){for(m=!1,u=0,f=E.length;u<f;u++)if(E[u](e,U,a,!0)){m=!0;break}if(m)break}for(v=e.getLines(n,U,e.blkIndent,!1).trim(),B=v.length,_=1;_<B;_++){if(s=v.charCodeAt(_),s===91)return!1;if(s===93){h=_;break}else s===10?T++:s===92&&(_++,_<B&&v.charCodeAt(_)===10&&T++)}if(h<0||v.charCodeAt(h+1)!==58)return!1;for(_=h+2;_<B;_++)if(s=v.charCodeAt(_),s===10)T++;else if(!Pe(s))break;if(y=e.md.helpers.parseLinkDestination(v,_,B),!y.ok||(l=e.md.normalizeLink(y.str),!e.md.validateLink(l)))return!1;for(_=y.pos,T+=y.lines,c=_,i=T,C=_;_<B;_++)if(s=v.charCodeAt(_),s===10)T++;else if(!Pe(s))break;for(y=e.md.helpers.parseLinkTitle(v,_,B),_<B&&C!==_&&y.ok?(q=y.str,_=y.pos,T+=y.lines):(q="",_=c,T=i);_<B&&(s=v.charCodeAt(_),!!Pe(s));)_++;if(_<B&&v.charCodeAt(_)!==10&&q)for(q="",_=c,T=i;_<B&&(s=v.charCodeAt(_),!!Pe(s));)_++;return _<B&&v.charCodeAt(_)!==10||(d=Xo(v.slice(1,h)),!d)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[d]>"u"&&(e.env.references[d]={title:q,href:l}),e.parentType=k,e.line=n+T+1),!0)},es=["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"],ze={},ts="[a-zA-Z_:][a-zA-Z0-9:._-]*",ns="[^\"'=<>`\\x00-\\x20]+",rs="'[^']*'",os='"[^"]*"',ss="(?:"+ns+"|"+rs+"|"+os+")",cs="(?:\\s+"+ts+"(?:\\s*=\\s*"+ss+")?)",xn="<[A-Za-z][A-Za-z0-9\\-]*"+cs+"*\\s*\\/?>",yn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",is="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",as="<[?][\\s\\S]*?[?]>",ls="<![A-Z]+\\s+[^>]*>",us="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",ps=new RegExp("^(?:"+xn+"|"+yn+"|"+is+"|"+as+"|"+ls+"|"+us+")"),fs=new RegExp("^(?:"+xn+"|"+yn+")");ze.HTML_TAG_RE=ps,ze.HTML_OPEN_CLOSE_TAG_RE=fs;var hs=es,ds=ze.HTML_OPEN_CLOSE_TAG_RE,ye=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+hs.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(ds.source+"\\s*$"),/^$/,!1]],gs=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],u=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,u),s=0;s<ye.length&&!ye[s][0].test(a);s++);if(s===ye.length)return!1;if(o)return ye[s][2];if(c=n+1,!ye[s][1].test(a)){for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],u=e.eMarks[c],a=e.src.slice(l,u),ye[s][1].test(a)){a.length!==0&&c++;break}}return e.line=c,i=e.push("html_block","",0),i.map=[n,c],i.content=e.getLines(n,c,e.blkIndent,!0),!0},wn=I.isSpace,ms=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],u=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=u))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<u&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<u&&!wn(s)?!1:(o||(u=e.skipSpacesBack(u,l),i=e.skipCharsBack(u,35,l),i>l&&wn(e.src.charCodeAt(i-1))&&(u=i),e.line=n+1,a=e.push("heading_open","h"+String(c),1),a.markup="########".slice(0,c),a.map=[n,e.line],a=e.push("inline","",0),a.content=e.src.slice(l,u).trim(),a.map=[n,e.line],a.children=[],a=e.push("heading_close","h"+String(c),-1),a.markup="########".slice(0,c)),!0)},bs=function(e,n,r){var o,s,c,i,a,l,u,f,d,h=n+1,k,y=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(k=e.parentType,e.parentType="paragraph";h<r&&!e.isEmpty(h);h++)if(!(e.sCount[h]-e.blkIndent>3)){if(e.sCount[h]>=e.blkIndent&&(l=e.bMarks[h]+e.tShift[h],u=e.eMarks[h],l<u&&(d=e.src.charCodeAt(l),(d===45||d===61)&&(l=e.skipChars(l,d),l=e.skipSpaces(l),l>=u)))){f=d===61?1:2;break}if(!(e.sCount[h]<0)){for(s=!1,c=0,i=y.length;c<i;c++)if(y[c](e,h,r,!0)){s=!0;break}if(s)break}}return f?(o=e.getLines(n,h,e.blkIndent,!1).trim(),e.line=h+1,a=e.push("heading_open","h"+String(f),1),a.markup=String.fromCharCode(d),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(d),e.parentType=k,!0):!1},_s=function(e,n){var r,o,s,c,i,a,l=n+1,u=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,c=u.length;s<c;s++)if(u[s](e,l,f,!0)){o=!0;break}if(o)break}return r=e.getLines(n,l,e.blkIndent,!1).trim(),e.line=l,i=e.push("paragraph_open","p",1),i.map=[n,e.line],i=e.push("inline","",0),i.content=r,i.map=[n,e.line],i.children=[],i=e.push("paragraph_close","p",-1),e.parentType=a,!0},vn=ut,Ue=I.isSpace;function ee(t,e,n,r){var o,s,c,i,a,l,u,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,c=i=l=u=0,a=s.length;i<a;i++){if(o=s.charCodeAt(i),!f)if(Ue(o)){l++,o===9?u+=4-u%4:u++;continue}else f=!0;(o===10||i===a-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),f=!1,l=0,u=0,c=i+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ee.prototype.push=function(t,e,n){var r=new vn(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),!!Ue(n));e++);return e},ee.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!Ue(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,c,i,a,l,u,f,d=e;if(e>=n)return"";for(u=new Array(n-e),s=0;d<n;d++,s++){for(c=0,f=a=this.bMarks[d],d+1<n||o?l=this.eMarks[d]+1:l=this.eMarks[d];a<l&&c<r;){if(i=this.src.charCodeAt(a),Ue(i))i===9?c+=4-(c+this.bsCount[d])%4:c++;else if(a-f<this.tShift[d])c++;else break;a++}c>r?u[s]=new Array(c-r+1).join(" ")+this.src.slice(a,l):u[s]=this.src.slice(a,l)}return u.join("")},ee.prototype.Token=vn;var ks=ee,xs=lt,Ve=[["table",Go,["paragraph","reference"]],["code",Ho],["fence",jo,["paragraph","reference","blockquote","list"]],["blockquote",Zo,["paragraph","reference","blockquote","list"]],["hr",Ko,["paragraph","reference","blockquote","list"]],["list",Yo,["paragraph","reference","blockquote"]],["reference",Qo],["html_block",gs,["paragraph","reference","blockquote"]],["heading",ms,["paragraph","reference","blockquote"]],["lheading",bs],["paragraph",_s]];function $e(){this.ruler=new xs;for(var t=0;t<Ve.length;t++)this.ruler.push(Ve[t][0],Ve[t][1],{alt:(Ve[t][2]||[]).slice()})}$e.prototype.tokenize=function(t,e,n){for(var r,o,s=this.ruler.getRules(""),c=s.length,i=e,a=!1,l=t.md.options.maxNesting;i<n&&(t.line=i=t.skipEmptyLines(i),!(i>=n||t.sCount[i]<t.blkIndent));){if(t.level>=l){t.line=n;break}for(o=0;o<c&&(r=s[o](t,i,n,!1),!r);o++);t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),i=t.line,i<n&&t.isEmpty(i)&&(a=!0,i++,t.line=i)}},$e.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))},$e.prototype.State=ks;var ys=$e;function ws(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 vs=function(e,n){for(var r=e.pos;r<e.posMax&&!ws(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},Es=I.isSpace,As=function(e,n){var r,o,s,c=e.pos;if(e.src.charCodeAt(c)!==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(c++;c<o&&Es(e.src.charCodeAt(c));)c++;return e.pos=c,!0},Cs=I.isSpace,gt=[],En=0;En<256;En++)gt.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){gt[t.charCodeAt(0)]=1});var qs=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&>[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),!!Cs(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},Ss=function(e,n){var r,o,s,c,i,a,l,u,f=e.pos,d=e.src.charCodeAt(f);if(d!==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(i=a=f;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(u=a-i,u===l)return n||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(f,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[u]=i}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=l,!0},Ge={};Ge.tokenize=function(e,n){var r,o,s,c,i,a=e.pos,l=e.src.charCodeAt(a);if(n||l!==126||(o=e.scanDelims(e.pos,!0),c=o.length,i=String.fromCharCode(l),c<2))return!1;for(c%2&&(s=e.push("text","",0),s.content=i,c--),r=0;r<c;r+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:l,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function An(t,e){var n,r,o,s,c,i=[],a=e.length;for(n=0;n<a;n++)o=e[n],o.marker===126&&o.end!==-1&&(s=e[o.end],c=t.tokens[o.token],c.type="s_open",c.tag="s",c.nesting=1,c.markup="~~",c.content="",c=t.tokens[s.token],c.type="s_close",c.tag="s",c.nesting=-1,c.markup="~~",c.content="",t.tokens[s.token-1].type==="text"&&t.tokens[s.token-1].content==="~"&&i.push(s.token-1));for(;i.length;){for(n=i.pop(),r=n+1;r<t.tokens.length&&t.tokens[r].type==="s_close";)r++;r--,n!==r&&(c=t.tokens[r],t.tokens[r]=t.tokens[n],t.tokens[n]=c)}}Ge.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(An(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&An(e,r[n].delimiters)};var He={};He.tokenize=function(e,n){var r,o,s,c=e.pos,i=e.src.charCodeAt(c);if(n||i!==95&&i!==42)return!1;for(o=e.scanDelims(e.pos,i===42),r=0;r<o.length;r++)s=e.push("text","",0),s.content=String.fromCharCode(i),e.delimiters.push({marker:i,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0};function Cn(t,e){var n,r,o,s,c,i,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],i=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,c=String.fromCharCode(r.marker),s=t.tokens[r.token],s.type=i?"strong_open":"em_open",s.tag=i?"strong":"em",s.nesting=1,s.markup=i?c+c:c,s.content="",s=t.tokens[o.token],s.type=i?"strong_close":"em_close",s.tag=i?"strong":"em",s.nesting=-1,s.markup=i?c+c:c,s.content="",i&&(t.tokens[e[n-1].token].content="",t.tokens[e[r.end+1].token].content="",n--))}He.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Cn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Cn(e,r[n].delimiters)};var Ds=I.normalizeReference,mt=I.isSpace,Ts=function(e,n){var r,o,s,c,i,a,l,u,f,d="",h="",k=e.pos,y=e.posMax,C=e.pos,v=!0;if(e.src.charCodeAt(e.pos)!==91||(i=e.pos+1,c=e.md.helpers.parseLinkLabel(e,e.pos,!0),c<0))return!1;if(a=c+1,a<y&&e.src.charCodeAt(a)===40){for(v=!1,a++;a<y&&(o=e.src.charCodeAt(a),!(!mt(o)&&o!==10));a++);if(a>=y)return!1;if(C=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?a=l.pos:d="",C=a;a<y&&(o=e.src.charCodeAt(a),!(!mt(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<y&&C!==a&&l.ok)for(h=l.str,a=l.pos;a<y&&(o=e.src.charCodeAt(a),!(!mt(o)&&o!==10));a++);}(a>=y||e.src.charCodeAt(a)!==41)&&(v=!0),a++}if(v){if(typeof e.env.references>"u")return!1;if(a<y&&e.src.charCodeAt(a)===91?(C=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(C,a++):a=c+1):a=c+1,s||(s=e.src.slice(i,c)),u=e.env.references[Ds(s)],!u)return e.pos=k,!1;d=u.href,h=u.title}return n||(e.pos=i,e.posMax=c,f=e.push("link_open","a",1),f.attrs=r=[["href",d]],h&&r.push(["title",h]),e.md.inline.tokenize(e),f=e.push("link_close","a",-1)),e.pos=a,e.posMax=y,!0},Rs=I.normalizeReference,bt=I.isSpace,Ns=function(e,n){var r,o,s,c,i,a,l,u,f,d,h,k,y,C="",v=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,i=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),i<0))return!1;if(l=i+1,l<m&&e.src.charCodeAt(l)===40){for(l++;l<m&&(o=e.src.charCodeAt(l),!(!bt(o)&&o!==10));l++);if(l>=m)return!1;for(y=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=""),y=l;l<m&&(o=e.src.charCodeAt(l),!(!bt(o)&&o!==10));l++);if(f=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<m&&y!==l&&f.ok)for(d=f.str,l=f.pos;l<m&&(o=e.src.charCodeAt(l),!(!bt(o)&&o!==10));l++);else d="";if(l>=m||e.src.charCodeAt(l)!==41)return e.pos=v,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<m&&e.src.charCodeAt(l)===91?(y=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(y,l++):l=i+1):l=i+1,c||(c=e.src.slice(a,i)),u=e.env.references[Rs(c)],!u)return e.pos=v,!1;C=u.href,d=u.title}return n||(s=e.src.slice(a,i),e.md.inline.parse(s,e.md,e.env,k=[]),h=e.push("image","img",0),h.attrs=r=[["src",C],["alt",""]],h.children=k,h.content=s,d&&r.push(["title",d])),e.pos=l,e.posMax=m,!0},Ls=/^([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])?)*)$/,Bs=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,Ms=function(e,n){var r,o,s,c,i,a,l=e.pos;if(e.src.charCodeAt(l)!==60)return!1;for(i=e.pos,a=e.posMax;;){if(++l>=a||(c=e.src.charCodeAt(l),c===60))return!1;if(c===62)break}return r=e.src.slice(i+1,l),Bs.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):Ls.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},Is=ze.HTML_TAG_RE;function Fs(t){var e=t|32;return e>=97&&e<=122}var Os=function(e,n){var r,o,s,c,i=e.pos;return!e.md.options.html||(s=e.posMax,e.src.charCodeAt(i)!==60||i+2>=s)||(r=e.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!Fs(r))||(o=e.src.slice(i).match(Is),!o)?!1:(n||(c=e.push("html_inline","",0),c.content=e.src.slice(i,i+o[0].length)),e.pos+=o[0].length,!0)},qn=Gt,Ps=I.has,zs=I.isValidEntityCode,Sn=I.fromCodePoint,Us=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Vs=/^&([a-z][a-z0-9]{1,31});/i,$s=function(e,n){var r,o,s,c=e.pos,i=e.posMax;if(e.src.charCodeAt(c)!==38)return!1;if(c+1<i){if(r=e.src.charCodeAt(c+1),r===35){if(s=e.src.slice(c).match(Us),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=zs(o)?Sn(o):Sn(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(Vs),s&&Ps(qn,s[1]))return n||(e.pending+=qn[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function Dn(t,e){var n,r,o,s,c,i,a,l,u={},f=e.length;if(f){var d=0,h=-2,k=[];for(n=0;n<f;n++)if(o=e[n],k.push(0),(e[d].marker!==o.marker||h!==o.token-1)&&(d=n),h=o.token,o.length=o.length||0,!!o.close){for(u.hasOwnProperty(o.marker)||(u[o.marker]=[-1,-1,-1,-1,-1,-1]),c=u[o.marker][(o.open?3:0)+o.length%3],r=d-k[d]-1,i=r;r>c;r-=k[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?k[r-1]+1:0,k[n]=n-r+l,k[r]=l,o.open=!1,s.end=n,s.close=!1,i=-1,h=-2;break}i!==-1&&(u[o.marker][(o.open?3:0)+(o.length||0)%3]=i)}}}var Gs=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(Dn(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&Dn(e,r[n].delimiters)},Hs=function(e){var n,r,o=0,s=e.tokens,c=e.tokens.length;for(n=r=0;n<c;n++)s[n].nesting<0&&o--,s[n].level=o,s[n].nesting>0&&o++,s[n].type==="text"&&n+1<c&&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)},_t=ut,Tn=I.isWhiteSpace,Rn=I.isPunctChar,Nn=I.isMdAsciiPunct;function Ce(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}Ce.prototype.pushPending=function(){var t=new _t("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},Ce.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new _t(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},Ce.prototype.scanDelims=function(t,e){var n=t,r,o,s,c,i,a,l,u,f,d=!0,h=!0,k=this.posMax,y=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<k&&this.src.charCodeAt(n)===y;)n++;return s=n-t,o=n<k?this.src.charCodeAt(n):32,l=Nn(r)||Rn(String.fromCharCode(r)),f=Nn(o)||Rn(String.fromCharCode(o)),a=Tn(r),u=Tn(o),u?d=!1:f&&(a||l||(d=!1)),a?h=!1:l&&(u||f||(h=!1)),e?(c=d,i=h):(c=d&&(!h||l),i=h&&(!d||f)),{can_open:c,can_close:i,length:s}},Ce.prototype.Token=_t;var js=Ce,Ln=lt,kt=[["text",vs],["newline",As],["escape",qs],["backticks",Ss],["strikethrough",Ge.tokenize],["emphasis",He.tokenize],["link",Ts],["image",Ns],["autolink",Ms],["html_inline",Os],["entity",$s]],xt=[["balance_pairs",Gs],["strikethrough",Ge.postProcess],["emphasis",He.postProcess],["text_collapse",Hs]];function qe(){var t;for(this.ruler=new Ln,t=0;t<kt.length;t++)this.ruler.push(kt[t][0],kt[t][1]);for(this.ruler2=new Ln,t=0;t<xt.length;t++)this.ruler2.push(xt[t][0],xt[t][1])}qe.prototype.skipToken=function(t){var e,n,r=t.pos,o=this.ruler.getRules(""),s=o.length,c=t.md.options.maxNesting,i=t.cache;if(typeof i[r]<"u"){t.pos=i[r];return}if(t.level<c)for(n=0;n<s&&(t.level++,e=o[n](t,!0),t.level--,!e);n++);else t.pos=t.posMax;e||t.pos++,i[r]=t.pos},qe.prototype.tokenize=function(t){for(var e,n,r=this.ruler.getRules(""),o=r.length,s=t.posMax,c=t.md.options.maxNesting;t.pos<s;){if(t.level<c)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()},qe.prototype.parse=function(t,e,n,r){var o,s,c,i=new this.State(t,e,n,r);for(this.tokenize(i),s=this.ruler2.getRules(""),c=s.length,o=0;o<c;o++)s[o](i)},qe.prototype.State=js;var Zs=qe,yt,Bn;function Ws(){return Bn||(Bn=1,yt=function(t){var e={};e.src_Any=Qt().source,e.src_Cc=tn().source,e.src_Z=on().source,e.src_P=ot.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}),yt}function wt(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 je(t){return Object.prototype.toString.call(t)}function Ks(t){return je(t)==="[object String]"}function Js(t){return je(t)==="[object Object]"}function Ys(t){return je(t)==="[object RegExp]"}function Mn(t){return je(t)==="[object Function]"}function Xs(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var In={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Qs(t){return Object.keys(t||{}).reduce(function(e,n){return e||In.hasOwnProperty(n)},!1)}var ec={"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}}},tc="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]",nc="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function rc(t){t.__index__=-1,t.__text_cache__=""}function oc(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Fn(){return function(t,e){e.normalize(t)}}function Ze(t){var e=t.re=Ws()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(tc),n.push(e.src_xn),e.src_tlds=n.join("|");function r(i){return i.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(i,a){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+a)}Object.keys(t.__schemas__).forEach(function(i){var a=t.__schemas__[i];if(a!==null){var l={validate:null,link:null};if(t.__compiled__[i]=l,Js(a)){Ys(a.validate)?l.validate=oc(a.validate):Mn(a.validate)?l.validate=a.validate:s(i,a),Mn(a.normalize)?l.normalize=a.normalize:a.normalize?s(i,a):l.normalize=Fn();return}if(Ks(a)){o.push(i);return}s(i,a)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Fn()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(Xs).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+e.src_ZPCc+"))("+c+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),rc(t)}function sc(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 On(t,e){var n=new sc(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||Qs(t)&&(e=t,t={}),this.__opts__=wt({},In,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=wt({},ec,t),this.__compiled__={},this.__tlds__=nc,this.__tlds_replaced__=!1,this.re={},Ze(this)}K.prototype.add=function(e,n){return this.__schemas__[e]=n,Ze(this),this},K.prototype.set=function(e){return this.__opts__=wt(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,c,i,a,l,u;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&&(c=r.index+r[1].length,(this.__index__<0||c<this.__index__)&&(this.__schema__="",this.__index__=c,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(u=e.indexOf("@"),u>=0&&(o=e.match(this.re.email_fuzzy))!==null&&(c=o.index+o[1].length,i=o.index+o[0].length,(this.__index__<0||c<this.__index__||c===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=c,this.__last_index__=i))),this.__index__>=0},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(On(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(On(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(),Ze(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Ze(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 cc=K;const we=2147483647,te=36,vt=1,Se=26,ic=38,ac=700,Pn=72,zn=128,Un="-",lc=/^xn--/,uc=/[^\0-\x7E]/,pc=/[\x2E\u3002\uFF0E\uFF61]/g,fc={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Et=te-vt,ne=Math.floor,At=String.fromCharCode;function he(t){throw new RangeError(fc[t])}function hc(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Vn(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(pc,".");const o=t.split("."),s=hc(o,e).join(".");return r+s}function Ct(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 $n=t=>String.fromCodePoint(...t),dc=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:te},Gn=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Hn=function(t,e,n){let r=0;for(t=n?ne(t/ac):t>>1,t+=ne(t/e);t>Et*Se>>1;r+=te)t=ne(t/Et);return ne(r+(Et+1)*t/(t+ic))},qt=function(t){const e=[],n=t.length;let r=0,o=zn,s=Pn,c=t.lastIndexOf(Un);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&he("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<n;){let a=r;for(let u=1,f=te;;f+=te){i>=n&&he("invalid-input");const d=dc(t.charCodeAt(i++));(d>=te||d>ne((we-r)/u))&&he("overflow"),r+=d*u;const h=f<=s?vt:f>=s+Se?Se:f-s;if(d<h)break;const k=te-h;u>ne(we/k)&&he("overflow"),u*=k}const l=e.length+1;s=Hn(r-a,l,a==0),ne(r/l)>we-o&&he("overflow"),o+=ne(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},St=function(t){const e=[];t=Ct(t);let n=t.length,r=zn,o=0,s=Pn;for(const a of t)a<128&&e.push(At(a));let c=e.length,i=c;for(c&&e.push(Un);i<n;){let a=we;for(const u of t)u>=r&&u<a&&(a=u);const l=i+1;a-r>ne((we-o)/l)&&he("overflow"),o+=(a-r)*l,r=a;for(const u of t)if(u<r&&++o>we&&he("overflow"),u===r){let f=o;for(let d=te;;d+=te){const h=d<=s?vt:d>=s+Se?Se:d-s;if(f<h)break;const k=f-h,y=te-h;e.push(At(Gn(h+k%y,0))),f=ne(k/y)}e.push(At(Gn(f,0))),s=Hn(o,l,i===c),o=0,++i}++o,++r}return e.join("")},jn=function(t){return Vn(t,function(e){return lc.test(e)?qt(e.slice(4).toLowerCase()):e})},Zn=function(t){return Vn(t,function(e){return uc.test(e)?"xn--"+St(e):e})},gc=Kr(Object.freeze(Object.defineProperty({__proto__:null,decode:qt,default:{version:"2.1.0",ucs2:{decode:Ct,encode:$n},decode:qt,encode:St,toASCII:Zn,toUnicode:jn},encode:St,toASCII:Zn,toUnicode:jn,ucs2decode:Ct,ucs2encode:$n},Symbol.toStringTag,{value:"Module"})));var mc={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},bc={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"]}}},_c={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"]}}},De=I,kc=Fe,xc=xo,yc=$o,wc=ys,vc=Zs,Ec=cc,de=_e,Wn=gc,Ac={default:mc,zero:bc,commonmark:_c},Cc=/^(vbscript|javascript|file|data):/,qc=/^data:image\/(gif|png|jpeg|webp);/;function Sc(t){var e=t.trim().toLowerCase();return Cc.test(e)?!!qc.test(e):!0}var Kn=["http:","https:","mailto:"];function Dc(t){var e=de.parse(t,!0);if(e.hostname&&(!e.protocol||Kn.indexOf(e.protocol)>=0))try{e.hostname=Wn.toASCII(e.hostname)}catch{}return de.encode(de.format(e))}function Tc(t){var e=de.parse(t,!0);if(e.hostname&&(!e.protocol||Kn.indexOf(e.protocol)>=0))try{e.hostname=Wn.toUnicode(e.hostname)}catch{}return de.decode(de.format(e),de.decode.defaultChars+"%")}function J(t,e){if(!(this instanceof J))return new J(t,e);e||De.isString(t)||(e=t||{},t="default"),this.inline=new vc,this.block=new wc,this.core=new yc,this.renderer=new xc,this.linkify=new Ec,this.validateLink=Sc,this.normalizeLink=Dc,this.normalizeLinkText=Tc,this.utils=De,this.helpers=De.assign({},kc),this.options={},this.configure(t),e&&this.set(e)}J.prototype.set=function(t){return De.assign(this.options,t),this},J.prototype.configure=function(t){var e=this,n;if(De.isString(t)&&(n=t,t=Ac[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 Rc=J,Nc=Rc;const Lc=$t(Nc);var Bc=p.defineComponent({name:"VueMarkdown",props:{source:{type:String,required:!0},options:{type:Object,required:!1}},data:function(){return{md:null}},computed:{content:function(){var t,e=this.source;return(t=this.md)===null||t===void 0?void 0:t.render(e)}},created:function(){var t;this.md=new Lc((t=this.options)!==null&&t!==void 0?t:{})},render:function(){return p.h("div",{innerHTML:this.content})}});const Mc=Bc;function Jn(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)&&Jn(n)}),t}class Yn{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Xn(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ae(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 Ic="</span>",Qn=t=>!!t.scope,Fc=(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 Oc{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Xn(e)}openNode(e){if(!Qn(e))return;const n=Fc(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){Qn(e)&&(this.buffer+=Ic)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const er=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class Dt{constructor(){this.rootNode=er(),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=er({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=>{Dt._collapse(n)}))}}class Pc extends Dt{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 Oc(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Te(t){return t?typeof t=="string"?t:t.source:null}function tr(t){return ge("(?=",t,")")}function zc(t){return ge("(?:",t,")*")}function Uc(t){return ge("(?:",t,")?")}function ge(...t){return t.map(n=>Te(n)).join("")}function Vc(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function Tt(...t){return"("+(Vc(t).capture?"":"?:")+t.map(r=>Te(r)).join("|")+")"}function nr(t){return new RegExp(t.toString()+"|").exec("").length-1}function $c(t,e){const n=t&&t.exec(e);return n&&n.index===0}const Gc=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rt(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=Te(r),c="";for(;s.length>0;){const i=Gc.exec(s);if(!i){c+=s;break}c+=s.substring(0,i.index),s=s.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?c+="\\"+String(Number(i[1])+o):(c+=i[0],i[0]==="("&&n++)}return c}).map(r=>`(${r})`).join(e)}const Hc=/\b\B/,rr="[a-zA-Z]\\w*",Nt="[a-zA-Z_]\\w*",or="\\b\\d+(\\.\\d+)?",sr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",cr="\\b(0b[01]+)",jc="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Zc=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=ge(e,/.*\b/,t.binary,/\b.*/)),ae({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Re={begin:"\\\\[\\s\\S]",relevance:0},Wc={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Re]},Kc={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Re]},Jc={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/},We=function(t,e,n={}){const r=ae({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=Tt("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:ge(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Yc=We("//","$"),Xc=We("/\\*","\\*/"),Qc=We("#","$"),ei={scope:"number",begin:or,relevance:0},ti={scope:"number",begin:sr,relevance:0},ni={scope:"number",begin:cr,relevance:0},ri={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Re,{begin:/\[/,end:/\]/,relevance:0,contains:[Re]}]},oi={scope:"title",begin:rr,relevance:0},si={scope:"title",begin:Nt,relevance:0},ci={begin:"\\.\\s*"+Nt,relevance:0};var Ke=Object.freeze({__proto__:null,APOS_STRING_MODE:Wc,BACKSLASH_ESCAPE:Re,BINARY_NUMBER_MODE:ni,BINARY_NUMBER_RE:cr,COMMENT:We,C_BLOCK_COMMENT_MODE:Xc,C_LINE_COMMENT_MODE:Yc,C_NUMBER_MODE:ti,C_NUMBER_RE:sr,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:Qc,IDENT_RE:rr,MATCH_NOTHING_RE:Hc,METHOD_GUARD:ci,NUMBER_MODE:ei,NUMBER_RE:or,PHRASAL_WORDS_MODE:Jc,QUOTE_STRING_MODE:Kc,REGEXP_MODE:ri,RE_STARTERS_RE:jc,SHEBANG:Zc,TITLE_MODE:oi,UNDERSCORE_IDENT_RE:Nt,UNDERSCORE_TITLE_MODE:si});function ii(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function ai(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function li(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=ii,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function ui(t,e){Array.isArray(t.illegal)&&(t.illegal=Tt(...t.illegal))}function pi(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 fi(t,e){t.relevance===void 0&&(t.relevance=1)}const hi=(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=ge(n.beforeMatch,tr(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},di=["of","and","for","in","not","or","if","then","parent","list","value"],gi="keyword";function ir(t,e,n=gi){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,ir(t[s],e,s))}),r;function o(s,c){e&&(c=c.map(i=>i.toLowerCase())),c.forEach(function(i){const a=i.split("|");r[a[0]]=[s,mi(a[0],a[1])]})}}function mi(t,e){return e?Number(e):bi(t)?0:1}function bi(t){return di.includes(t.toLowerCase())}const ar={},me=t=>{console.error(t)},lr=(t,...e)=>{console.log(`WARN: ${t}`,...e)},ve=(t,e)=>{ar[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),ar[`${t}/${e}`]=!0)},Je=new Error;function ur(t,e,{key:n}){let r=0;const o=t[n],s={},c={};for(let i=1;i<=e.length;i++)c[i+r]=o[i],s[i+r]=!0,r+=nr(e[i-1]);t[n]=c,t[n]._emit=s,t[n]._multi=!0}function _i(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw me("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Je;if(typeof t.beginScope!="object"||t.beginScope===null)throw me("beginScope must be object"),Je;ur(t,t.begin,{key:"beginScope"}),t.begin=Rt(t.begin,{joinWith:""})}}function ki(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw me("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Je;if(typeof t.endScope!="object"||t.endScope===null)throw me("endScope must be object"),Je;ur(t,t.end,{key:"endScope"}),t.end=Rt(t.end,{joinWith:""})}}function xi(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function yi(t){xi(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),_i(t),ki(t)}function wi(t){function e(c,i){return new RegExp(Te(c),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(i?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,a){a.position=this.position++,this.matchIndexes[this.matchAt]=a,this.regexes.push([a,i]),this.matchAt+=nr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(a=>a[1]);this.matcherRe=e(Rt(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;const a=this.matcherRe.exec(i);if(!a)return null;const l=a.findIndex((f,d)=>d>0&&f!==void 0),u=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];const a=new n;return this.rules.slice(i).forEach(([l,u])=>a.addRule(l,u)),a.compile(),this.multiRegexes[i]=a,a}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,a){this.rules.push([i,a]),a.type==="begin"&&this.count++}exec(i){const a=this.getMatcher(this.regexIndex);a.lastIndex=this.lastIndex;let l=a.exec(i);if(this.resumingScanAtSamePosition()&&!(l&&l.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,l=u.exec(i)}return l&&(this.regexIndex+=l.position+1,this.regexIndex===this.count&&this.considerAll()),l}}function o(c){const i=new r;return c.contains.forEach(a=>i.addRule(a.begin,{rule:a,type:"begin"})),c.terminatorEnd&&i.addRule(c.terminatorEnd,{type:"end"}),c.illegal&&i.addRule(c.illegal,{type:"illegal"}),i}function s(c,i){const a=c;if(c.isCompiled)return a;[ai,pi,yi,hi].forEach(u=>u(c,i)),t.compilerExtensions.forEach(u=>u(c,i)),c.__beforeBegin=null,[li,ui,fi].forEach(u=>u(c,i)),c.isCompiled=!0;let l=null;return typeof c.keywords=="object"&&c.keywords.$pattern&&(c.keywords=Object.assign({},c.keywords),l=c.keywords.$pattern,delete c.keywords.$pattern),l=l||/\w+/,c.keywords&&(c.keywords=ir(c.keywords,t.case_insensitive)),a.keywordPatternRe=e(l,!0),i&&(c.begin||(c.begin=/\B|\b/),a.beginRe=e(a.begin),!c.end&&!c.endsWithParent&&(c.end=/\B|\b/),c.end&&(a.endRe=e(a.end)),a.terminatorEnd=Te(a.end)||"",c.endsWithParent&&i.terminatorEnd&&(a.terminatorEnd+=(c.end?"|":"")+i.terminatorEnd)),c.illegal&&(a.illegalRe=e(c.illegal)),c.contains||(c.contains=[]),c.contains=[].concat(...c.contains.map(function(u){return vi(u==="self"?c:u)})),c.contains.forEach(function(u){s(u,a)}),c.starts&&s(c.starts,i),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=ae(t.classNameAliases||{}),s(t)}function pr(t){return t?t.endsWithParent||pr(t.starts):!1}function vi(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ae(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:pr(t)?ae(t,{starts:t.starts?ae(t.starts):null}):Object.isFrozen(t)?ae(t):t}var Ei="11.9.0";class Ai extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const Lt=Xn,fr=ae,hr=Symbol("nomatch"),Ci=7,dr=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?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Pc};function a(g){return i.noHighlightRe.test(g)}function l(g){let w=g.className+" ";w+=g.parentNode?g.parentNode.className:"";const D=i.languageDetectRe.exec(w);if(D){const M=G(D[1]);return M||(lr(s.replace("{}",D[1])),lr("Falling back to no-highlight mode for this block.",g)),M?D[1]:"no-highlight"}return w.split(/\s+/).find(M=>a(M)||G(M))}function u(g,w,D){let M="",V="";typeof w=="object"?(M=g,D=w.ignoreIllegals,V=w.language):(ve("10.7.0","highlight(lang, code, ...args) has been deprecated."),ve("10.7.0",`Please use highlight(code, options) instead.
|
|
18
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),V=g,M=w),D===void 0&&(D=!0);const Z={code:M,language:V};F("before:highlight",Z);const X=Z.result?Z.result:f(Z.language,Z.code,D);return X.code=Z.code,F("after:highlight",X),X}function f(g,w,D,M){const V=Object.create(null);function Z(x,A){return x.keywords[A]}function X(){if(!S.keywords){H.addText(z);return}let x=0;S.keywordPatternRe.lastIndex=0;let A=S.keywordPatternRe.exec(z),R="";for(;A;){R+=z.substring(x,A.index);const O=se.case_insensitive?A[0].toLowerCase():A[0],j=Z(S,O);if(j){const[ie,ka]=j;if(H.addText(R),R="",V[O]=(V[O]||0)+1,V[O]<=Ci&&(tt+=ka),ie.startsWith("_"))R+=A[0];else{const xa=se.classNameAliases[ie]||ie;oe(A[0],xa)}}else R+=A[0];x=S.keywordPatternRe.lastIndex,A=S.keywordPatternRe.exec(z)}R+=z.substring(x),H.addText(R)}function Qe(){if(z==="")return;let x=null;if(typeof S.subLanguage=="string"){if(!e[S.subLanguage]){H.addText(z);return}x=f(S.subLanguage,z,!0,qr[S.subLanguage]),qr[S.subLanguage]=x._top}else x=h(z,S.subLanguage.length?S.subLanguage:null);S.relevance>0&&(tt+=x.relevance),H.__addSublanguage(x._emitter,x.language)}function W(){S.subLanguage!=null?Qe():X(),z=""}function oe(x,A){x!==""&&(H.startScope(A),H.addText(x),H.endScope())}function vr(x,A){let R=1;const O=A.length-1;for(;R<=O;){if(!x._emit[R]){R++;continue}const j=se.classNameAliases[x[R]]||x[R],ie=A[R];j?oe(ie,j):(z=ie,X(),z=""),R++}}function Er(x,A){return x.scope&&typeof x.scope=="string"&&H.openNode(se.classNameAliases[x.scope]||x.scope),x.beginScope&&(x.beginScope._wrap?(oe(z,se.classNameAliases[x.beginScope._wrap]||x.beginScope._wrap),z=""):x.beginScope._multi&&(vr(x.beginScope,A),z="")),S=Object.create(x,{parent:{value:S}}),S}function Ar(x,A,R){let O=$c(x.endRe,R);if(O){if(x["on:end"]){const j=new Yn(x);x["on:end"](A,j),j.isMatchIgnored&&(O=!1)}if(O){for(;x.endsParent&&x.parent;)x=x.parent;return x}}if(x.endsWithParent)return Ar(x.parent,A,R)}function da(x){return S.matcher.regexIndex===0?(z+=x[0],1):(Ot=!0,0)}function ga(x){const A=x[0],R=x.rule,O=new Yn(R),j=[R.__beforeBegin,R["on:begin"]];for(const ie of j)if(ie&&(ie(x,O),O.isMatchIgnored))return da(A);return R.skip?z+=A:(R.excludeBegin&&(z+=A),W(),!R.returnBegin&&!R.excludeBegin&&(z=A)),Er(R,x),R.returnBegin?0:A.length}function ma(x){const A=x[0],R=w.substring(x.index),O=Ar(S,x,R);if(!O)return hr;const j=S;S.endScope&&S.endScope._wrap?(W(),oe(A,S.endScope._wrap)):S.endScope&&S.endScope._multi?(W(),vr(S.endScope,x)):j.skip?z+=A:(j.returnEnd||j.excludeEnd||(z+=A),W(),j.excludeEnd&&(z=A));do S.scope&&H.closeNode(),!S.skip&&!S.subLanguage&&(tt+=S.relevance),S=S.parent;while(S!==O.parent);return O.starts&&Er(O.starts,x),j.returnEnd?0:A.length}function ba(){const x=[];for(let A=S;A!==se;A=A.parent)A.scope&&x.unshift(A.scope);x.forEach(A=>H.openNode(A))}let et={};function Cr(x,A){const R=A&&A[0];if(z+=x,R==null)return W(),0;if(et.type==="begin"&&A.type==="end"&&et.index===A.index&&R===""){if(z+=w.slice(A.index,A.index+1),!o){const O=new Error(`0 width match regex (${g})`);throw O.languageName=g,O.badRule=et.rule,O}return 1}if(et=A,A.type==="begin")return ga(A);if(A.type==="illegal"&&!D){const O=new Error('Illegal lexeme "'+R+'" for mode "'+(S.scope||"<unnamed>")+'"');throw O.mode=S,O}else if(A.type==="end"){const O=ma(A);if(O!==hr)return O}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 me(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const _a=wi(se);let It="",S=M||_a;const qr={},H=new i.__emitter(i);ba();let z="",tt=0,be=0,Ft=0,Ot=!1;try{if(se.__emitTokens)se.__emitTokens(w,H);else{for(S.matcher.considerAll();;){Ft++,Ot?Ot=!1:S.matcher.considerAll(),S.matcher.lastIndex=be;const x=S.matcher.exec(w);if(!x)break;const A=w.substring(be,x.index),R=Cr(A,x);be=x.index+R}Cr(w.substring(be))}return H.finalize(),It=H.toHTML(),{language:g,value:It,relevance:tt,illegal:!1,_emitter:H,_top:S}}catch(x){if(x.message&&x.message.includes("Illegal"))return{language:g,value:Lt(w),illegal:!0,relevance:0,_illegalBy:{message:x.message,index:be,context:w.slice(be-100,be+100),mode:x.mode,resultSoFar:It},_emitter:H};if(o)return{language:g,value:Lt(w),illegal:!1,relevance:0,errorRaised:x,_emitter:H,_top:S};throw x}}function d(g){const w={value:Lt(g),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return w._emitter.addText(g),w}function h(g,w){w=w||i.languages||Object.keys(e);const D=d(g),M=w.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,Qe=Z;return Qe.secondBest=X,Qe}function k(g,w,D){const M=w&&n[w]||D;g.classList.add("hljs"),g.classList.add(`language-${M}`)}function y(g){let w=null;const D=l(g);if(a(D))return;if(F("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&&(i.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)),i.throwUnescapedHTML))throw new Ai("One of your code blocks includes unescaped HTML.",g.innerHTML);w=g;const M=w.textContent,V=D?u(M,{language:D,ignoreIllegals:!0}):h(M);g.innerHTML=V.value,g.dataset.highlighted="yes",k(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}),F("after:highlightElement",{el:g,result:V,text:M})}function C(g){i=fr(i,g)}const v=()=>{q(),ve("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function m(){q(),ve("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let E=!1;function q(){if(document.readyState==="loading"){E=!0;return}document.querySelectorAll(i.cssSelector).forEach(y)}function T(){E&&q()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",T,!1);function _(g,w){let D=null;try{D=w(t)}catch(M){if(me("Language definition for '{}' could not be registered.".replace("{}",g)),o)me(M);else throw M;D=c}D.name||(D.name=g),e[g]=D,D.rawDefinition=w.bind(null,t),D.aliases&&N(D.aliases,{languageName:g})}function B(g){delete e[g];for(const w of Object.keys(n))n[w]===g&&delete n[w]}function U(){return Object.keys(e)}function G(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function N(g,{languageName:w}){typeof g=="string"&&(g=[g]),g.forEach(D=>{n[D.toLowerCase()]=w})}function P(g){const w=G(g);return w&&!w.disableAutodetect}function ce(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=w=>{g["before:highlightBlock"](Object.assign({block:w.el},w))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=w=>{g["after:highlightBlock"](Object.assign({block:w.el},w))})}function re(g){ce(g),r.push(g)}function b(g){const w=r.indexOf(g);w!==-1&&r.splice(w,1)}function F(g,w){const D=g;r.forEach(function(M){M[D]&&M[D](w)})}function L(g){return ve("10.7.0","highlightBlock will be removed entirely in v12.0"),ve("10.7.0","Please use highlightElement now."),y(g)}Object.assign(t,{highlight:u,highlightAuto:h,highlightAll:q,highlightElement:y,highlightBlock:L,configure:C,initHighlighting:v,initHighlightingOnLoad:m,registerLanguage:_,unregisterLanguage:B,listLanguages:U,getLanguage:G,registerAliases:N,autoDetection:P,inherit:fr,addPlugin:re,removePlugin:b}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=Ei,t.regex={concat:ge,lookahead:tr,either:Tt,optional:Uc,anyNumberOfTimes:zc};for(const g in Ke)typeof Ke[g]=="object"&&Jn(Ke[g]);return Object.assign(t,Ke),t},Ee=dr({});Ee.newInstance=()=>dr({});var qi=Ee;Ee.HighlightJS=Ee,Ee.default=Ee;const Ye=$t(qi),Bt=p.defineComponent({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=p.toRefs(e),r=p.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&Ye.getLanguage(c))try{return Ye.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["chat-message",r.value])},[p.renderSlot(s.$slots,"default",{},()=>[p.createVNode(p.unref(Mc),{class:"chat-message-markdown",source:p.unref(n).text,options:o},null,8,["source"])])],2))}}),J$="",Si=p.createElementVNode("div",{class:"chat-message-typing-body"},[p.createElementVNode("span",{class:"chat-message-typing-circle"}),p.createElementVNode("span",{class:"chat-message-typing-circle"}),p.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),Di=p.defineComponent({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=p.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(p.openBlock(),p.createBlock(p.unref(Bt),{class:p.normalizeClass(r.value),message:n},{default:p.withCtx(()=>[Si]),_:1},8,["class"]))}}),Y$="",Ti={class:"chat-messages-list"},Ri=p.defineComponent({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=nt(),{initialMessages:n,waitingForResponse:r}=e;return(o,s)=>(p.openBlock(),p.createElementBlock("div",Ti,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(n),c=>(p.openBlock(),p.createBlock(Bt,{key:c.id,message:c},null,8,["message"]))),128)),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.messages,c=>(p.openBlock(),p.createBlock(Bt,{key:c.id,message:c},null,8,["message"]))),128)),p.unref(r)?(p.openBlock(),p.createBlock(Di,{key:0})):p.createCommentVNode("",!0)]))}}),X$="",Ni={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Li=[p.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function Bi(t,e){return p.openBlock(),p.createElementBlock("svg",Ni,Li)}const Mi={name:"mdi-send",render:Bi},Ii={class:"chat-input"},Fi=["placeholder","onKeydown"],Oi=["disabled"],Pi=p.defineComponent({__name:"Input",setup(t){const e=nt(),{waitingForResponse:n}=e,{t:r}=Le(),o=p.ref(""),s=p.computed(()=>o.value===""||n.value);async function c(a){if(a.preventDefault(),s.value)return;const l=o.value;o.value="",await e.sendMessage(l)}async function i(a){a.shiftKey||await c(a)}return(a,l)=>(p.openBlock(),p.createElementBlock("div",Ii,[p.withDirectives(p.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=u=>o.value=u),rows:"1",placeholder:p.unref(r)("inputPlaceholder"),onKeydown:p.withKeys(i,["enter"])},null,40,Fi),[[p.vModelText,o.value]]),p.createElementVNode("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[p.createVNode(p.unref(Mi),{height:"32",width:"32"})],8,Oi)]))}}),eG="",gr=p.defineComponent({__name:"Chat",setup(t){const{t:e}=Le(),n=nt(),{messages:r,currentSessionId:o}=n,{options:s}=rt();async function c(){n.startNewSession(),p.nextTick(()=>{ue.emit("scrollToBottom")})}async function i(){await n.loadPreviousSession(),p.nextTick(()=>{ue.emit("scrollToBottom")})}return p.onMounted(async()=>{await i(),!s.showWelcomeScreen&&!o.value&&await c()}),(a,l)=>(p.openBlock(),p.createBlock(Fr,{class:"chat-wrapper"},{header:p.withCtx(()=>[p.createElementVNode("h1",null,p.toDisplayString(p.unref(e)("title")),1),p.createElementVNode("p",null,p.toDisplayString(p.unref(e)("subtitle")),1)]),footer:p.withCtx(()=>[p.unref(o)?(p.openBlock(),p.createBlock(Pi,{key:0})):(p.openBlock(),p.createBlock(Wr,{key:1}))]),default:p.withCtx(()=>[!p.unref(o)&&p.unref(s).showWelcomeScreen?(p.openBlock(),p.createBlock(zr,{key:0,"onClick:button":c})):(p.openBlock(),p.createBlock(Ri,{key:1,messages:p.unref(r)},null,8,["messages"]))]),_:1}))}}),zi={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Ui=[p.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-8Z"},null,-1)];function Vi(t,e){return p.openBlock(),p.createElementBlock("svg",zi,Ui)}const $i={name:"mdi-chat",render:Vi},Gi={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},Hi=[p.createElementVNode("path",{fill:"currentColor",d:"M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6l1.41-1.42Z"},null,-1)];function ji(t,e){return p.openBlock(),p.createElementBlock("svg",Gi,Hi)}const Zi={name:"mdi-chevron-down",render:ji},Wi={class:"chat-window-wrapper"},Ki={class:"chat-window"},Ji=p.defineComponent({__name:"ChatWindow",setup(t){const e=p.ref(!1);function n(){e.value=!e.value,e.value&&p.nextTick(()=>{ue.emit("scrollToBottom")})}return(r,o)=>(p.openBlock(),p.createElementBlock("div",Wi,[p.createVNode(p.Transition,{name:"chat-window-transition"},{default:p.withCtx(()=>[p.withDirectives(p.createElementVNode("div",Ki,[p.createVNode(gr)],512),[[p.vShow,e.value]])]),_:1}),p.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[p.createVNode(p.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:p.withCtx(()=>[e.value?(p.openBlock(),p.createBlock(p.unref(Zi),{key:1,height:"32",width:"32"})):(p.openBlock(),p.createBlock(p.unref($i),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),rG="";function Yi(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/}]},c=t.inherit(s,{begin:/\(/,end:/\)/}),i=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,i,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,c,a,i]}]}]},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 mr="[A-Za-z$_][0-9A-Za-z$_]*",Xi=["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"],Qi=["true","false","null","undefined","NaN","Infinity"],br=["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"],_r=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],kr=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],ea=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],ta=[].concat(kr,br,_r);function na(t){const e=t.regex,n=(w,{after:D})=>{const M="</"+w[0].slice(1);return w.input.indexOf(M,D)!==-1},r=mr,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(w,D)=>{const M=w[0].length+w.index,V=w.input[M];if(V==="<"||V===","){D.ignoreMatch();return}V===">"&&(n(w,{after:M})||D.ignoreMatch());let Z;const X=w.input.substring(M);if(Z=X.match(/^\s*=/)){D.ignoreMatch();return}if((Z=X.match(/^\s+extends\s+/))&&Z.index===0){D.ignoreMatch();return}}},i={$pattern:mr,keyword:Xi,literal:Qi,built_in:ta,"variable.language":ea},a="[0-9](_?[0-9])*",l=`\\.(${a})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",f={className:"number",variants:[{begin:`(\\b(${u})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${u})\\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},d={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},h={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"xml"}},k={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"css"}},y={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,d],subLanguage:"graphql"}},C={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,d]},m={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,h,k,y,C,{match:/\$\d+/},f];d.contains=E.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(E)});const q=[].concat(m,d.contains),T=q.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(q)}]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,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:{_:[...br,..._r]}},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:[_],illegal:/%/},P={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function ce(w){return e.concat("(?!",w.join("|"),")")}const re={match:e.concat(/\b/,ce([...kr,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},b={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},F={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},_]},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:[_]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,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,h,k,y,C,m,{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:[m,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:i,contains:T}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:o.begin,end:o.end},{match:s},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.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:[_,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},b,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[_]},re,P,B,F,{match:/\$[(.]/}]}}const ra=p.defineComponent({__name:"App",props:{},setup(t){const{options:e}=rt(),n=p.computed(()=>e.mode==="fullscreen");return p.onMounted(()=>{Ye.registerLanguage("xml",Yi),Ye.registerLanguage("javascript",na)}),(r,o)=>n.value?(p.openBlock(),p.createBlock(p.unref(gr),{key:0,class:"n8n-chat"})):(p.openBlock(),p.createBlock(p.unref(Ji),{key:1,class:"n8n-chat"}))}});var Xe,oa=new Uint8Array(16);function sa(){if(!Xe&&(Xe=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Xe))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Xe(oa)}const ca=/^(?:[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 ia(t){return typeof t=="string"&&ca.test(t)}for(var $=[],Mt=0;Mt<256;++Mt)$.push((Mt+256).toString(16).substr(1));function aa(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(!ia(n))throw TypeError("Stringified UUID is invalid");return n}function Ne(t,e,n){t=t||{};var r=t.random||(t.rng||sa)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return aa(r)}async function la(){return""}async function xr(...t){var r;const e=await la();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()}`),xr(r,{...n,method:"GET"})}async function wr(t,e={},n={}){return xr(t,{...n,method:"POST",body:JSON.stringify(e)})}async function ua(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?wr:yr)(`${e.webhookUrl}`,{action:"loadPreviousSession",[e.chatHistoryKey]:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function pa(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?wr:yr)(`${n.webhookUrl}`,{action:"sendMessage",[n.chatHistoryKey]:e,[n.chatInputKey]:t,...n.metadata?{metadata:n.metadata}:{}},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const fa={install(t,e){t.provide(Vt,e);const n=p.ref([]),r=p.ref(null),o=p.ref(!1),s=p.computed(()=>(e.initialMessages??[]).map(u=>({id:Ne(),text:u,sender:"bot",createdAt:new Date().toISOString()})));async function c(u){const f={id:Ne(),text:u,sender:"user",createdAt:new Date().toISOString()};n.value.push(f),o.value=!0,p.nextTick(()=>{ue.emit("scrollToBottom")});const d=await pa(u,r.value,e),h={id:Ne(),text:d.output,sender:"bot",createdAt:new Date().toISOString()};n.value.push(h),o.value=!1,p.nextTick(()=>{ue.emit("scrollToBottom")})}async function i(){const u=localStorage.getItem(zt)??Ne(),f=await ua(u,e),d=new Date().toISOString();return n.value=((f==null?void 0:f.data)||[]).map((h,k)=>({id:`${k}`,text:h.kwargs.content,sender:h.id.includes("HumanMessage")?"user":"bot",createdAt:d})),n.value.length&&(r.value=u),u}async function a(){r.value=Ne(),localStorage.setItem(zt,r.value)}const l={initialMessages:s,messages:n,currentSessionId:r,waitingForResponse:o,loadPreviousSession:i,startNewSession:a,sendMessage:c};t.provide(Ut,l),t.config.globalProperties.$chat=l}};function ha(t){var o,s;const e={...Ae,...t,webhookConfig:{...Ae.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Ae.i18n,...t==null?void 0:t.i18n,en:{...(o=Ae.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Ae.theme,...t==null?void 0:t.theme}},n=e.target??Or;typeof n=="string"&&Lr(n);const r=p.createApp(ra);return r.use(fa,e),r.mount(n),r}le.createChat=ha,Object.defineProperty(le,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n8n/chat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "./chat.umd.cjs",
|
|
5
5
|
"module": "./chat.es.js",
|
|
6
6
|
"types": "./types/index.d.ts",
|
|
@@ -14,10 +14,70 @@
|
|
|
14
14
|
"require": "./style.css"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"highlight.js": "^11.8.0",
|
|
19
|
+
"uuid": "^8.3.2",
|
|
20
|
+
"vue": "^3.3.4",
|
|
21
|
+
"vue-markdown-render": "^2.0.1"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@iconify-json/mdi": "^1.1.54",
|
|
25
|
+
"@rushstack/eslint-patch": "^1.3.2",
|
|
26
|
+
"@storybook/addon-essentials": "^7.4.0",
|
|
27
|
+
"@storybook/addon-interactions": "^7.4.0",
|
|
28
|
+
"@storybook/addon-links": "^7.4.0",
|
|
29
|
+
"@storybook/blocks": "^7.4.0",
|
|
30
|
+
"@storybook/testing-library": "^0.2.0",
|
|
31
|
+
"@storybook/vue3": "^7.4.0",
|
|
32
|
+
"@storybook/vue3-vite": "^7.4.0",
|
|
33
|
+
"@testing-library/jest-dom": "^5.17.0",
|
|
34
|
+
"@testing-library/vue": "^7.0.0",
|
|
35
|
+
"@tsconfig/node18": "^18.2.0",
|
|
36
|
+
"@types/jsdom": "^21.1.1",
|
|
37
|
+
"@types/markdown-it": "^12.2.3",
|
|
38
|
+
"@types/node": "^18.17.0",
|
|
39
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
40
|
+
"@vue/eslint-config-prettier": "^8.0.0",
|
|
41
|
+
"@vue/eslint-config-typescript": "^11.0.3",
|
|
42
|
+
"@vue/test-utils": "^2.4.1",
|
|
43
|
+
"@vue/tsconfig": "^0.4.0",
|
|
44
|
+
"eslint": "^8.45.0",
|
|
45
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
46
|
+
"jsdom": "^22.1.0",
|
|
47
|
+
"npm-run-all": "^4.1.5",
|
|
48
|
+
"prettier": "^3.0.0",
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"react-dom": "^18.2.0",
|
|
51
|
+
"shelljs": "^0.8.5",
|
|
52
|
+
"storybook": "^7.4.0",
|
|
53
|
+
"typescript": "~5.1.6",
|
|
54
|
+
"unplugin-icons": "^0.17.0",
|
|
55
|
+
"vite": "^4.4.6",
|
|
56
|
+
"vite-plugin-dts": "^3.6.0",
|
|
57
|
+
"vitest": "^0.33.0",
|
|
58
|
+
"vue-tsc": "^1.8.6"
|
|
59
|
+
},
|
|
17
60
|
"repository": {
|
|
18
61
|
"type": "git",
|
|
19
62
|
"url": "git+https://github.com/n8n-io/n8n.git"
|
|
20
63
|
},
|
|
21
64
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
22
|
-
"homepage": "https://n8n.io"
|
|
65
|
+
"homepage": "https://n8n.io",
|
|
66
|
+
"scripts": {
|
|
67
|
+
"dev": "pnpm run storybook",
|
|
68
|
+
"build": "run-p type-check build:vite && npm run build:prepare",
|
|
69
|
+
"build:vite": "vite build && npm run build:vite:full",
|
|
70
|
+
"build:vite:full": "INCLUDE_VUE=true vite build",
|
|
71
|
+
"build:prepare": "node scripts/postbuild.js",
|
|
72
|
+
"build:pack": "node scripts/pack.js",
|
|
73
|
+
"preview": "vite preview",
|
|
74
|
+
"test:dev": "vitest",
|
|
75
|
+
"test": "vitest run --coverage",
|
|
76
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
77
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --ignore-path .eslintignore",
|
|
78
|
+
"format": "prettier --write src/",
|
|
79
|
+
"storybook": "storybook dev -p 6006 --no-open",
|
|
80
|
+
"build:storybook": "storybook build",
|
|
81
|
+
"release": "pnpm run build && cd dist && pnpm publish"
|
|
82
|
+
}
|
|
23
83
|
}
|
package/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.n8n-chat pre code.hljs{display:block;overflow-x:auto;padding:1em}.n8n-chat code.hljs{padding:3px 5px}.n8n-chat .hljs{color:#24292e;background:#ffffff}.n8n-chat .hljs-doctag,.n8n-chat .hljs-keyword,.n8n-chat .hljs-meta .hljs-keyword,.n8n-chat .hljs-template-tag,.n8n-chat .hljs-template-variable,.n8n-chat .hljs-type,.n8n-chat .hljs-variable.language_{color:#d73a49}.n8n-chat .hljs-title,.n8n-chat .hljs-title.class_,.n8n-chat .hljs-title.class_.inherited__,.n8n-chat .hljs-title.function_{color:#6f42c1}.n8n-chat .hljs-attr,.n8n-chat .hljs-attribute,.n8n-chat .hljs-literal,.n8n-chat .hljs-meta,.n8n-chat .hljs-number,.n8n-chat .hljs-operator,.n8n-chat .hljs-variable,.n8n-chat .hljs-selector-attr,.n8n-chat .hljs-selector-class,.n8n-chat .hljs-selector-id{color:#005cc5}.n8n-chat .hljs-regexp,.n8n-chat .hljs-string,.n8n-chat .hljs-meta .hljs-string{color:#032f62}.n8n-chat .hljs-built_in,.n8n-chat .hljs-symbol{color:#e36209}.n8n-chat .hljs-comment,.n8n-chat .hljs-code,.n8n-chat .hljs-formula{color:#6a737d}.n8n-chat .hljs-name,.n8n-chat .hljs-quote,.n8n-chat .hljs-selector-tag,.n8n-chat .hljs-selector-pseudo{color:#22863a}.n8n-chat .hljs-subst{color:#24292e}.n8n-chat .hljs-section{color:#005cc5;font-weight:700}.n8n-chat .hljs-bullet{color:#735c0f}.n8n-chat .hljs-emphasis{color:#24292e;font-style:italic}.n8n-chat .hljs-strong{color:#24292e;font-weight:700}.n8n-chat .hljs-addition{color:#22863a;background-color:#f0fff4}.n8n-chat .hljs-deletion{color:#b31d28;background-color:#ffeef0}:root{--chat--color-primary: #e74266;--chat--color-primary-shade-50: #db4061;--chat--color-primary-shade-100: #cf3c5c;--chat--color-secondary: #20b69e;--chat--color-secondary-shade-50: #1ca08a;--chat--color-white: #ffffff;--chat--color-light: #f2f4f8;--chat--color-light-shade-50: #e6e9f1;--chat--color-light-shade-100: #c2c5cc;--chat--color-medium: #d2d4d9;--chat--color-dark: #101330;--chat--color-disabled: #777980;--chat--color-typing: #404040;--chat--spacing: 1rem;--chat--border-radius: .25rem;--chat--transition-duration: .15s;--chat--window--width: 400px;--chat--window--height: 600px;--chat--textarea--height: 50px;--chat--message--bot--background: var(--chat--color-white);--chat--message--bot--color: var(--chat--color-dark);--chat--message--user--background: var(--chat--color-secondary);--chat--message--user--color: var(--chat--color-white);--chat--message--pre--background: rgba(0, 0, 0, .05);--chat--toggle--background: var(--chat--color-primary);--chat--toggle--hover--background: var(--chat--color-primary-shade-50);--chat--toggle--active--background: var(--chat--color-primary-shade-100);--chat--toggle--color: var(--chat--color-white);--chat--toggle--size: 64px}.chat-button{display:inline-flex;text-align:center;vertical-align:middle;-webkit-user-select:none;user-select:none;color:var(--chat--button--color, var(--chat--color-light));background-color:var(--chat--button--background, var(--chat--color-primary));border:1px solid transparent;padding:var(--chat--button--padding, calc(var(--chat--spacing) * 1 / 2) var(--chat--spacing));font-size:1rem;line-height:1.5;border-radius:var(--chat--button--border-radius, var(--chat--border-radius));transition:color var(--chat--transition-duration) ease-in-out,background-color var(--chat--transition-duration) ease-in-out,border-color var(--chat--transition-duration) ease-in-out,box-shadow var(--chat--transition-duration) ease-in-out;cursor:pointer}.chat-button:hover{color:var(--chat--button--hover--color, var(--chat--color-light));background-color:var(--chat--button--hover--background, var(--chat--color-primary-shade-50));text-decoration:none}.chat-button:focus{outline:0;box-shadow:0 0 0 .2rem #007bff40}.chat-button:disabled{opacity:.65}.chat-layout{width:100%;height:100%;display:flex;overflow-y:auto;flex-direction:column;font-family:var(--chat--font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif)}.chat-layout .chat-header{padding:var(--chat--header--padding, var(--chat--spacing));background:var(--chat--header--background, var(--chat--color-dark));color:var(--chat--header--color, var(--chat--color-light))}.chat-layout .chat-body{background:var(--chat--body--background, var(--chat--color-light));flex:1;display:flex;flex-direction:column;overflow-y:auto;position:relative;min-height:100px}.chat-layout .chat-footer{border-top:1px solid var(--chat--color-light-shade-100);background:var(--chat--footer--background, var(--chat--color-light));color:var(--chat--footer--color, var(--chat--color-dark))}.chat-get-started{padding-top:var(--chat--spacing);padding-bottom:var(--chat--spacing);display:flex;justify-content:center;align-items:center;height:100%}.chat-powered-by{text-align:center}.chat-powered-by a{color:var(--chat--color-primary);text-decoration:none}.chat-get-started-footer{padding:var(--chat--spacing)}.chat-message{display:block;max-width:80%;padding:var(--chat--message--padding, var(--chat--spacing));border-radius:var(--chat--message--border-radius, var(--chat--border-radius))}.chat-message+.chat-message{margin-top:var(--chat--message--margin-bottom, calc(var(--chat--spacing) * .5))}.chat-message.chat-message-from-bot{background-color:var(--chat--message--bot--background);color:var(--chat--message--bot--color);border-bottom-left-radius:0}.chat-message.chat-message-from-user{background-color:var(--chat--message--user--background);color:var(--chat--message--user--color);margin-left:auto;border-bottom-right-radius:0}.chat-message>.chat-message-markdown{display:block;box-sizing:border-box}.chat-message>.chat-message-markdown>*:first-child{margin-top:0}.chat-message>.chat-message-markdown>*:last-child{margin-bottom:0}.chat-message>.chat-message-markdown pre{font-family:inherit;font-size:inherit;margin:0;white-space:pre-wrap;box-sizing:border-box;padding:var(--chat--spacing);background:var(--chat--message--pre--background);border-radius:var(--chat--border-radius)}.chat-message-typing{max-width:80px}.chat-message-typing.chat-message-typing-animation-scaling .chat-message-typing-circle{animation:chat-message-typing-animation-scaling .8s ease-in-out infinite;animation-delay:3.6s}.chat-message-typing.chat-message-typing-animation-bouncing .chat-message-typing-circle{animation:chat-message-typing-animation-bouncing .8s ease-in-out infinite;animation-delay:3.6s}.chat-message-typing .chat-message-typing-body{display:flex;justify-content:center;align-items:center}.chat-message-typing .chat-message-typing-circle{display:block;height:10px;width:10px;border-radius:50%;background-color:var(--chat--color-typing);margin:3px}.chat-message-typing .chat-message-typing-circle:nth-child(1){animation-delay:0ms}.chat-message-typing .chat-message-typing-circle:nth-child(2){animation-delay:333ms}.chat-message-typing .chat-message-typing-circle:nth-child(3){animation-delay:666ms}@keyframes chat-message-typing-animation-scaling{0%{transform:scale(1)}33%{transform:scale(1)}50%{transform:scale(1.4)}to{transform:scale(1)}}@keyframes chat-message-typing-animation-bouncing{0%{transform:translateY(0)}33%{transform:translateY(0)}50%{transform:translateY(-10px)}to{transform:translateY(0)}}.chat-messages-list{margin-top:auto;display:block;padding:var(--chat--messages-list--padding, var(--chat--spacing))}.chat-input{display:flex;justify-content:center;align-items:center;width:100%}.chat-input textarea{font-family:inherit;font-size:inherit;width:100%;border:0;padding:var(--chat--spacing);max-height:var(--chat--textarea--height);resize:none}.chat-input .chat-input-send-button{height:var(--chat--textarea--height);width:var(--chat--textarea--height);background:white;cursor:pointer;color:var(--chat--color-secondary);border:0;font-size:24px;display:inline-flex;align-items:center;justify-content:center;transition:color var(--chat--transition-duration) ease}.chat-input .chat-input-send-button:hover,.chat-input .chat-input-send-button:focus{color:var(--chat--color-secondary-shade-50)}.chat-input .chat-input-send-button[disabled]{cursor:default;color:var(--chat--color-disabled)}.chat-window-wrapper{position:fixed;display:flex;flex-direction:column;bottom:var(--chat--window--bottom, var(--chat--spacing));right:var(--chat--window--right, var(--chat--spacing));z-index:var(--chat--window--z-index, 9999);max-width:calc(100% - var(--chat--window--right, var(--chat--spacing)) * 2);max-height:calc(100% - var(--chat--window--bottom, var(--chat--spacing)) * 2)}.chat-window-wrapper .chat-window{display:flex;width:var(--chat--window--width);height:var(--chat--window--height);max-width:100%;max-height:100%;border:var(--chat--window--border, 1px solid var(--chat--color-light-shade-100));border-radius:var(--chat--window--border-radius, var(--chat--border-radius));margin-bottom:var(--chat--window--margin-bottom, var(--chat--spacing));overflow:hidden;transform-origin:bottom right}.chat-window-wrapper .chat-window .chat-layout{width:auto;height:auto;flex:1}.chat-window-wrapper .chat-window-toggle{flex:0 0 auto;background:var(--chat--toggle--background);color:var(--chat--toggle--color);cursor:pointer;width:var(--chat--toggle--width, var(--chat--toggle--size));height:var(--chat--toggle--height, var(--chat--toggle--size));border-radius:var(--chat--toggle--border-radius, 50%);display:inline-flex;align-items:center;justify-content:center;margin-left:auto;transition:transform var(--chat--transition-duration) ease,background var(--chat--transition-duration) ease}.chat-window-wrapper .chat-window-toggle:hover,.chat-window-wrapper .chat-window-toggle:focus{transform:scale(1.05);background:var(--chat--toggle--hover--background)}.chat-window-wrapper .chat-window-toggle:active{transform:scale(.95);background:var(--chat--toggle--active--background)}.chat-window-transition-enter-active,.chat-window-transition-leave-active{transition:transform var(--chat--transition-duration) ease,opacity var(--chat--transition-duration) ease}.chat-window-transition-enter-from,.chat-window-transition-leave-to{transform:scale(0);opacity:0}.chat-window-toggle-transition-enter-active,.chat-window-toggle-transition-leave-active{transition:opacity var(--chat--transition-duration) ease}.chat-window-toggle-transition-enter-from,.chat-window-toggle-transition-leave-to{opacity:0}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
2
|
+
[x: string]: unknown;
|
|
3
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
4
|
+
[x: string]: unknown;
|
|
5
|
+
}>>>>, {
|
|
6
|
+
readonly [x: number]: string;
|
|
7
|
+
} | {}, {}>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/vue3';
|
|
2
|
+
import type { ChatOptions } from '../types';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
render: (args: Partial<ChatOptions>) => {
|
|
6
|
+
setup(): {};
|
|
7
|
+
template: string;
|
|
8
|
+
};
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
tags: string[];
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
export declare const Fullscreen: Story;
|
|
17
|
+
export declare const Windowed: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { LoadPreviousSessionResponse, SendMessageResponse } from '../../types';
|
|
2
|
+
export declare function createFetchResponse<T>(data: T): () => Promise<Response>;
|
|
3
|
+
export declare const createGetLatestMessagesResponse: (data?: LoadPreviousSessionResponse['data']) => LoadPreviousSessionResponse;
|
|
4
|
+
export declare const createSendMessageResponse: (output: SendMessageResponse['output']) => SendMessageResponse;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare function getMountingTarget(target?: string): Element | null;
|
|
2
|
+
export declare function getChatWindowWrapper(): Element | null;
|
|
3
|
+
export declare function getChatWindowToggle(): Element | null;
|
|
4
|
+
export declare function getChatWrapper(): Element | null;
|
|
5
|
+
export declare function getChatMessages(): NodeListOf<Element>;
|
|
6
|
+
export declare function getChatMessage(index: number): Element;
|
|
7
|
+
export declare function getChatMessageByText(text: string): HTMLElement | null;
|
|
8
|
+
export declare function getChatMessageTyping(): Element | null;
|
|
9
|
+
export declare function getGetStartedButton(): Element | null;
|
|
10
|
+
export declare function getChatInput(): Element | null;
|
|
11
|
+
export declare function getChatInputTextarea(): Element | null;
|
|
12
|
+
export declare function getChatInputSendButton(): Element | null;
|