@n8n/chat 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +85 -0
- package/chat.js +7830 -0
- package/chat.umd.js +29 -0
- package/favicon.ico +0 -0
- package/package.json +74 -0
- package/style.css +10 -0
- package/types/App.vue.d.ts +8 -0
- package/types/__stories__/App.stories.d.ts +17 -0
- package/types/api/generic.d.ts +6 -0
- package/types/api/index.d.ts +2 -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/components/index.d.ts +10 -0
- package/types/composables/index.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/index.d.ts +3 -0
- package/types/constants/localStorage.d.ts +2 -0
- package/types/constants/symbols.d.ts +3 -0
- package/types/event-buses/chatEventBus.d.ts +1 -0
- package/types/event-buses/index.d.ts +1 -0
- package/types/index.d.ts +2 -0
- package/types/stores/chat.d.ts +41 -0
- package/types/types/index.d.ts +3 -0
- package/types/types/messages.d.ts +6 -0
- package/types/types/options.d.ts +21 -0
- package/types/types/webhook.d.ts +15 -0
- package/types/utils/event-bus.d.ts +8 -0
- package/types/utils/index.d.ts +2 -0
- package/types/utils/mount.d.ts +1 -0
package/chat.umd.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(function(me,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(me=typeof globalThis<"u"?globalThis:me||self,u(me.N8nChat={},me.Vue))})(this,function(me,u){"use strict";const $l="";var dn=!1;function Je(t,e,n){return Array.isArray(t)?(t.length=Math.max(t.length,e),t.splice(e,1,n),n):(t[e]=n,n)}function vt(t,e){if(Array.isArray(t)){t.splice(e,1);return}delete t[e]}function xo(){return gn().__VUE_DEVTOOLS_GLOBAL_HOOK__}function gn(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const Eo=typeof Proxy=="function",vo="devtools-plugin:setup",Ao="plugin:settings:set";let Se,At;function Co(){var t;return Se!==void 0||(typeof window<"u"&&window.performance?(Se=!0,At=window.performance):typeof global<"u"&&(!((t=global.perf_hooks)===null||t===void 0)&&t.performance)?(Se=!0,At=global.perf_hooks.performance):Se=!1),Se}function So(){return Co()?At.now():Date.now()}class Do{constructor(e,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=n;const r={};if(e.settings)for(const c in e.settings){const i=e.settings[c];r[c]=i.defaultValue}const o=`__vue-devtools-plugin-settings__${e.id}`;let s=Object.assign({},r);try{const c=localStorage.getItem(o),i=JSON.parse(c);Object.assign(s,i)}catch{}this.fallbacks={getSettings(){return s},setSettings(c){try{localStorage.setItem(o,JSON.stringify(c))}catch{}s=c},now(){return So()}},n&&n.on(Ao,(c,i)=>{c===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(c,i)=>this.target?this.target.on[i]:(...a)=>{this.onQueue.push({method:i,args:a})}}),this.proxiedTarget=new Proxy({},{get:(c,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(...a)=>(this.targetQueue.push({method:i,args:a,resolve:()=>{}}),this.fallbacks[i](...a)):(...a)=>new Promise(l=>{this.targetQueue.push({method:i,args:a,resolve:l})})})}async setRealTarget(e){this.target=e;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function mn(t,e){const n=t,r=gn(),o=xo(),s=Eo&&n.enableEarlyProxy;if(o&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!s))o.emit(vo,t,e);else{const c=s?new Do(n,o):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:e,proxy:c}),c&&e(c.proxiedTarget)}}/*!
|
|
2
|
+
* pinia v2.1.6
|
|
3
|
+
* (c) 2023 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/let Be;const Fe=t=>Be=t,bn=process.env.NODE_ENV!=="production"?Symbol("pinia"):Symbol();function be(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var se;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(se||(se={}));const Ke=typeof window<"u",Pe=(process.env.NODE_ENV!=="production"||!1)&&process.env.NODE_ENV!=="test"&&Ke,_n=(()=>typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:typeof globalThis=="object"?globalThis:{HTMLElement:null})();function qo(t,{autoBom:e=!1}={}){return e&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function Ct(t,e,n){const r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){wn(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function kn(t){const e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch{}return e.status>=200&&e.status<=299}function Ye(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{const n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}const Qe=typeof navigator=="object"?navigator:{userAgent:""},yn=(()=>/Macintosh/.test(Qe.userAgent)&&/AppleWebKit/.test(Qe.userAgent)&&!/Safari/.test(Qe.userAgent))(),wn=Ke?typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype&&!yn?To:"msSaveOrOpenBlob"in Qe?Ro:No:()=>{};function To(t,e="download",n){const r=document.createElement("a");r.download=e,r.rel="noopener",typeof t=="string"?(r.href=t,r.origin!==location.origin?kn(r.href)?Ct(t,e,n):(r.target="_blank",Ye(r)):Ye(r)):(r.href=URL.createObjectURL(t),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Ye(r)},0))}function Ro(t,e="download",n){if(typeof t=="string")if(kn(t))Ct(t,e,n);else{const r=document.createElement("a");r.href=t,r.target="_blank",setTimeout(function(){Ye(r)})}else navigator.msSaveOrOpenBlob(qo(t,n),e)}function No(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),typeof t=="string")return Ct(t,e,n);const o=t.type==="application/octet-stream",s=/constructor/i.test(String(_n.HTMLElement))||"safari"in _n,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&s||yn)&&typeof FileReader<"u"){const i=new FileReader;i.onloadend=function(){let a=i.result;if(typeof a!="string")throw r=null,new Error("Wrong reader.result type");a=c?a:a.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=a:location.assign(a),r=null},i.readAsDataURL(t)}else{const i=URL.createObjectURL(t);r?r.location.assign(i):location.href=i,r=null,setTimeout(function(){URL.revokeObjectURL(i)},4e4)}}function j(t,e){const n="๐ "+t;typeof __VUE_DEVTOOLS_TOAST__=="function"?__VUE_DEVTOOLS_TOAST__(n,e):e==="error"?console.error(n):e==="warn"?console.warn(n):console.log(n)}function St(t){return"_a"in t&&"install"in t}function xn(){if(!("clipboard"in navigator))return j("Your browser doesn't support the Clipboard API","error"),!0}function En(t){return t instanceof Error&&t.message.toLowerCase().includes("document is not focused")?(j('You need to activate the "Emulate a focused page" setting in the "Rendering" panel of devtools.',"warn"),!0):!1}async function Lo(t){if(!xn())try{await navigator.clipboard.writeText(JSON.stringify(t.state.value)),j("Global state copied to clipboard.")}catch(e){if(En(e))return;j("Failed to serialize the state. Check the console for more details.","error"),console.error(e)}}async function Oo(t){if(!xn())try{vn(t,JSON.parse(await navigator.clipboard.readText())),j("Global state pasted from clipboard.")}catch(e){if(En(e))return;j("Failed to deserialize the state from clipboard. Check the console for more details.","error"),console.error(e)}}async function Io(t){try{wn(new Blob([JSON.stringify(t.state.value)],{type:"text/plain;charset=utf-8"}),"pinia-state.json")}catch(e){j("Failed to export the state as JSON. Check the console for more details.","error"),console.error(e)}}let pe;function Mo(){pe||(pe=document.createElement("input"),pe.type="file",pe.accept=".json");function t(){return new Promise((e,n)=>{pe.onchange=async()=>{const r=pe.files;if(!r)return e(null);const o=r.item(0);return e(o?{text:await o.text(),file:o}:null)},pe.oncancel=()=>e(null),pe.onerror=n,pe.click()})}return t}async function Bo(t){try{const n=await Mo()();if(!n)return;const{text:r,file:o}=n;vn(t,JSON.parse(r)),j(`Global state imported from "${o.name}".`)}catch(e){j("Failed to import the state from JSON. Check the console for more details.","error"),console.error(e)}}function vn(t,e){for(const n in e){const r=t.state.value[n];r&&Object.assign(r,e[n])}}function ne(t){return{_custom:{display:t}}}const An="๐ Pinia (root)",Dt="_root";function Fo(t){return St(t)?{id:Dt,label:An}:{id:t.$id,label:t.$id}}function Po(t){if(St(t)){const n=Array.from(t._s.keys()),r=t._s;return{state:n.map(s=>({editable:!0,key:s,value:t.state.value[s]})),getters:n.filter(s=>r.get(s)._getters).map(s=>{const c=r.get(s);return{editable:!1,key:s,value:c._getters.reduce((i,a)=>(i[a]=c[a],i),{})}})}}const e={state:Object.keys(t.$state).map(n=>({editable:!0,key:n,value:t.$state[n]}))};return t._getters&&t._getters.length&&(e.getters=t._getters.map(n=>({editable:!1,key:n,value:t[n]}))),t._customProperties.size&&(e.customProperties=Array.from(t._customProperties).map(n=>({editable:!0,key:n,value:t[n]}))),e}function Uo(t){return t?Array.isArray(t)?t.reduce((e,n)=>(e.keys.push(n.key),e.operations.push(n.type),e.oldValue[n.key]=n.oldValue,e.newValue[n.key]=n.newValue,e),{oldValue:{},keys:[],operations:[],newValue:{}}):{operation:ne(t.type),key:ne(t.key),oldValue:t.oldValue,newValue:t.newValue}:{}}function Vo(t){switch(t){case se.direct:return"mutation";case se.patchFunction:return"$patch";case se.patchObject:return"$patch";default:return"unknown"}}let De=!0;const Xe=[],_e="pinia:mutations",J="pinia",{assign:$o}=Object,et=t=>"๐ "+t;function zo(t,e){mn({id:"dev.esm.pinia",label:"Pinia ๐",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Xe,app:t},n=>{typeof n.now!="function"&&j("You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."),n.addTimelineLayer({id:_e,label:"Pinia ๐",color:15064968}),n.addInspector({id:J,label:"Pinia ๐",icon:"storage",treeFilterPlaceholder:"Search stores",actions:[{icon:"content_copy",action:()=>{Lo(e)},tooltip:"Serialize and copy the state"},{icon:"content_paste",action:async()=>{await Oo(e),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Replace the state with the content of your clipboard"},{icon:"save",action:()=>{Io(e)},tooltip:"Save the state as a JSON file"},{icon:"folder_open",action:async()=>{await Bo(e),n.sendInspectorTree(J),n.sendInspectorState(J)},tooltip:"Import the state from a JSON file"}],nodeActions:[{icon:"restore",tooltip:'Reset the state (with "$reset")',action:r=>{const o=e._s.get(r);o?typeof o.$reset!="function"?j(`Cannot reset "${r}" store because it doesn't have a "$reset" method implemented.`,"warn"):(o.$reset(),j(`Store "${r}" reset.`)):j(`Cannot reset "${r}" store because it wasn't found.`,"warn")}}]}),n.on.inspectComponent((r,o)=>{const s=r.componentInstance&&r.componentInstance.proxy;if(s&&s._pStores){const c=r.componentInstance.proxy._pStores;Object.values(c).forEach(i=>{r.instanceData.state.push({type:et(i.$id),key:"state",editable:!0,value:i._isOptionsAPI?{_custom:{value:u.toRaw(i.$state),actions:[{icon:"restore",tooltip:"Reset the state of this store",action:()=>i.$reset()}]}}:Object.keys(i.$state).reduce((a,l)=>(a[l]=i.$state[l],a),{})}),i._getters&&i._getters.length&&r.instanceData.state.push({type:et(i.$id),key:"getters",editable:!1,value:i._getters.reduce((a,l)=>{try{a[l]=i[l]}catch(f){a[l]=f}return a},{})})})}}),n.on.getInspectorTree(r=>{if(r.app===t&&r.inspectorId===J){let o=[e];o=o.concat(Array.from(e._s.values())),r.rootNodes=(r.filter?o.filter(s=>"$id"in s?s.$id.toLowerCase().includes(r.filter.toLowerCase()):An.toLowerCase().includes(r.filter.toLowerCase())):o).map(Fo)}}),n.on.getInspectorState(r=>{if(r.app===t&&r.inspectorId===J){const o=r.nodeId===Dt?e:e._s.get(r.nodeId);if(!o)return;o&&(r.state=Po(o))}}),n.on.editInspectorState((r,o)=>{if(r.app===t&&r.inspectorId===J){const s=r.nodeId===Dt?e:e._s.get(r.nodeId);if(!s)return j(`store "${r.nodeId}" not found`,"error");const{path:c}=r;St(s)?c.unshift("state"):(c.length!==1||!s._customProperties.has(c[0])||c[0]in s.$state)&&c.unshift("$state"),De=!1,r.set(s,c,r.state.value),De=!0}}),n.on.editComponentState(r=>{if(r.type.startsWith("๐")){const o=r.type.replace(/^๐\s*/,""),s=e._s.get(o);if(!s)return j(`store "${o}" not found`,"error");const{path:c}=r;if(c[0]!=="state")return j(`Invalid path for store "${o}":
|
|
6
|
+
${c}
|
|
7
|
+
Only state can be modified.`);c[0]="$state",De=!1,r.set(s,c,r.state.value),De=!0}})})}function Go(t,e){Xe.includes(et(e.$id))||Xe.push(et(e.$id)),mn({id:"dev.esm.pinia",label:"Pinia ๐",logo:"https://pinia.vuejs.org/logo.svg",packageName:"pinia",homepage:"https://pinia.vuejs.org",componentStateTypes:Xe,app:t,settings:{logStoreChanges:{label:"Notify about new/deleted stores",type:"boolean",defaultValue:!0}}},n=>{const r=typeof n.now=="function"?n.now.bind(n):Date.now;e.$onAction(({after:c,onError:i,name:a,args:l})=>{const f=Cn++;n.addTimelineEvent({layerId:_e,event:{time:r(),title:"๐ซ "+a,subtitle:"start",data:{store:ne(e.$id),action:ne(a),args:l},groupId:f}}),c(p=>{de=void 0,n.addTimelineEvent({layerId:_e,event:{time:r(),title:"๐ฌ "+a,subtitle:"end",data:{store:ne(e.$id),action:ne(a),args:l,result:p},groupId:f}})}),i(p=>{de=void 0,n.addTimelineEvent({layerId:_e,event:{time:r(),logType:"error",title:"๐ฅ "+a,subtitle:"end",data:{store:ne(e.$id),action:ne(a),args:l,error:p},groupId:f}})})},!0),e._customProperties.forEach(c=>{u.watch(()=>u.unref(e[c]),(i,a)=>{n.notifyComponentUpdate(),n.sendInspectorState(J),De&&n.addTimelineEvent({layerId:_e,event:{time:r(),title:"Change",subtitle:c,data:{newValue:i,oldValue:a},groupId:de}})},{deep:!0})}),e.$subscribe(({events:c,type:i},a)=>{if(n.notifyComponentUpdate(),n.sendInspectorState(J),!De)return;const l={time:r(),title:Vo(i),data:$o({store:ne(e.$id)},Uo(c)),groupId:de};i===se.patchFunction?l.subtitle="โคต๏ธ":i===se.patchObject?l.subtitle="๐งฉ":c&&!Array.isArray(c)&&(l.subtitle=c.type),c&&(l.data["rawEvent(s)"]={_custom:{display:"DebuggerEvent",type:"object",tooltip:"raw DebuggerEvent[]",value:c}}),n.addTimelineEvent({layerId:_e,event:l})},{detached:!0,flush:"sync"});const o=e._hotUpdate;e._hotUpdate=u.markRaw(c=>{o(c),n.addTimelineEvent({layerId:_e,event:{time:r(),title:"๐ฅ "+e.$id,subtitle:"HMR update",data:{store:ne(e.$id),info:ne("HMR update")}}}),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J)});const{$dispose:s}=e;e.$dispose=()=>{s(),n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&j(`Disposed "${e.$id}" store ๐`)},n.notifyComponentUpdate(),n.sendInspectorTree(J),n.sendInspectorState(J),n.getSettings().logStoreChanges&&j(`"${e.$id}" store installed ๐`)})}let Cn=0,de;function Sn(t,e,n){const r=e.reduce((o,s)=>(o[s]=u.toRaw(t)[s],o),{});for(const o in r)t[o]=function(){const s=Cn,c=n?new Proxy(t,{get(...a){return de=s,Reflect.get(...a)},set(...a){return de=s,Reflect.set(...a)}}):t;de=s;const i=r[o].apply(c,arguments);return de=void 0,i}}function Ho({app:t,store:e,options:n}){if(e.$id.startsWith("__hot:"))return;e._isOptionsAPI=!!n.state,Sn(e,Object.keys(n.actions),e._isOptionsAPI);const r=e._hotUpdate;u.toRaw(e)._hotUpdate=function(o){r.apply(this,arguments),Sn(e,Object.keys(o._hmrPayload.actions),!!e._isOptionsAPI)},Go(t,e)}function jo(){const t=u.effectScope(!0),e=t.run(()=>u.ref({}));let n=[],r=[];const o=u.markRaw({install(s){Fe(o),o._a=s,s.provide(bn,o),s.config.globalProperties.$pinia=o,Pe&&zo(s,o),r.forEach(c=>n.push(c)),r=[]},use(s){return!this._a&&!dn?r.push(s):n.push(s),this},_p:n,_a:null,_e:t,_s:new Map,state:e});return Pe&&typeof Proxy<"u"&&o.use(Ho),o}function Dn(t,e){for(const n in e){const r=e[n];if(!(n in t))continue;const o=t[n];be(o)&&be(r)&&!u.isRef(r)&&!u.isReactive(r)?t[n]=Dn(o,r):t[n]=r}return t}const qn=()=>{};function Tn(t,e,n,r=qn){t.push(e);const o=()=>{const s=t.indexOf(e);s>-1&&(t.splice(s,1),r())};return!n&&u.getCurrentScope()&&u.onScopeDispose(o),o}function qe(t,...e){t.slice().forEach(n=>{n(...e)})}const Zo=t=>t();function qt(t,e){t instanceof Map&&e instanceof Map&&e.forEach((n,r)=>t.set(r,n)),t instanceof Set&&e instanceof Set&&e.forEach(t.add,t);for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n],o=t[n];be(o)&&be(r)&&t.hasOwnProperty(n)&&!u.isRef(r)&&!u.isReactive(r)?t[n]=qt(o,r):t[n]=r}return t}const Wo=process.env.NODE_ENV!=="production"?Symbol("pinia:skipHydration"):Symbol();function Jo(t){return!be(t)||!t.hasOwnProperty(Wo)}const{assign:X}=Object;function Rn(t){return!!(u.isRef(t)&&t.effect)}function Nn(t,e,n,r){const{state:o,actions:s,getters:c}=e,i=n.state.value[t];let a;function l(){!i&&(process.env.NODE_ENV==="production"||!r)&&(n.state.value[t]=o?o():{});const f=process.env.NODE_ENV!=="production"&&r?u.toRefs(u.ref(o?o():{}).value):u.toRefs(n.state.value[t]);return X(f,s,Object.keys(c||{}).reduce((p,h)=>(process.env.NODE_ENV!=="production"&&h in f&&console.warn(`[๐]: A getter cannot have the same name as another state property. Rename one of them. Found with "${h}" in store "${t}".`),p[h]=u.markRaw(u.computed(()=>{Fe(n);const d=n._s.get(t);return c[h].call(d,d)})),p),{}))}return a=Tt(t,l,e,n,r,!0),a}function Tt(t,e,n={},r,o,s){let c;const i=X({actions:{}},n);if(process.env.NODE_ENV!=="production"&&!r._e.active)throw new Error("Pinia destroyed");const a={deep:!0};process.env.NODE_ENV!=="production"&&!dn&&(a.onTrigger=m=>{l?d=m:l==!1&&!v._hotUpdating&&(Array.isArray(d)?d.push(m):console.error("๐ debuggerEvents should be an array. This is most likely an internal Pinia bug."))});let l,f,p=[],h=[],d;const y=r.state.value[t];!s&&!y&&(process.env.NODE_ENV==="production"||!o)&&(r.state.value[t]={});const E=u.ref({});let D;function C(m){let b;l=f=!1,process.env.NODE_ENV!=="production"&&(d=[]),typeof m=="function"?(m(r.state.value[t]),b={type:se.patchFunction,storeId:t,events:d}):(qt(r.state.value[t],m),b={type:se.patchObject,payload:m,storeId:t,events:d});const M=D=Symbol();u.nextTick().then(()=>{D===M&&(l=!0)}),f=!0,qe(p,b,r.state.value[t])}const w=s?function(){const{state:b}=n,M=b?b():{};this.$patch(G=>{X(G,M)})}:process.env.NODE_ENV!=="production"?()=>{throw new Error(`๐: Store "${t}" is built using the setup syntax and does not implement $reset().`)}:qn;function S(){c.stop(),p=[],h=[],r._s.delete(t)}function T(m,b){return function(){Fe(r);const M=Array.from(arguments),G=[],_=[];function P(k){G.push(k)}function I(k){_.push(k)}qe(h,{args:M,name:m,store:v,after:P,onError:I});let g;try{g=b.apply(this&&this.$id===t?this:v,M)}catch(k){throw qe(_,k),k}return g instanceof Promise?g.then(k=>(qe(G,k),k)).catch(k=>(qe(_,k),Promise.reject(k))):(qe(G,g),g)}}const R=u.markRaw({actions:{},getters:{},state:[],hotState:E}),x={_p:r,$id:t,$onAction:Tn.bind(null,h),$patch:C,$reset:w,$subscribe(m,b={}){const M=Tn(p,m,b.detached,()=>G()),G=c.run(()=>u.watch(()=>r.state.value[t],_=>{(b.flush==="sync"?f:l)&&m({storeId:t,type:se.direct,events:d},_)},X({},a,b)));return M},$dispose:S},v=u.reactive(process.env.NODE_ENV!=="production"||Pe?X({_hmrPayload:R,_customProperties:u.markRaw(new Set)},x):x);r._s.set(t,v);const V=r._a&&r._a.runWithContext||Zo,$=r._e.run(()=>(c=u.effectScope(),V(()=>c.run(e))));for(const m in $){const b=$[m];if(u.isRef(b)&&!Rn(b)||u.isReactive(b))process.env.NODE_ENV!=="production"&&o?Je(E.value,m,u.toRef($,m)):s||(y&&Jo(b)&&(u.isRef(b)?b.value=y[m]:qt(b,y[m])),r.state.value[t][m]=b),process.env.NODE_ENV!=="production"&&R.state.push(m);else if(typeof b=="function"){const M=process.env.NODE_ENV!=="production"&&o?b:T(m,b);$[m]=M,process.env.NODE_ENV!=="production"&&(R.actions[m]=b),i.actions[m]=b}else process.env.NODE_ENV!=="production"&&Rn(b)&&(R.getters[m]=s?n.getters[m]:b,Ke&&($._getters||($._getters=u.markRaw([]))).push(m))}if(X(v,$),X(u.toRaw(v),$),Object.defineProperty(v,"$state",{get:()=>process.env.NODE_ENV!=="production"&&o?E.value:r.state.value[t],set:m=>{if(process.env.NODE_ENV!=="production"&&o)throw new Error("cannot set hotState");C(b=>{X(b,m)})}}),process.env.NODE_ENV!=="production"&&(v._hotUpdate=u.markRaw(m=>{v._hotUpdating=!0,m._hmrPayload.state.forEach(b=>{if(b in v.$state){const M=m.$state[b],G=v.$state[b];typeof M=="object"&&be(M)&&be(G)?Dn(M,G):m.$state[b]=G}Je(v,b,u.toRef(m.$state,b))}),Object.keys(v.$state).forEach(b=>{b in m.$state||vt(v,b)}),l=!1,f=!1,r.state.value[t]=u.toRef(m._hmrPayload,"hotState"),f=!0,u.nextTick().then(()=>{l=!0});for(const b in m._hmrPayload.actions){const M=m[b];Je(v,b,T(b,M))}for(const b in m._hmrPayload.getters){const M=m._hmrPayload.getters[b],G=s?u.computed(()=>(Fe(r),M.call(v,v))):M;Je(v,b,G)}Object.keys(v._hmrPayload.getters).forEach(b=>{b in m._hmrPayload.getters||vt(v,b)}),Object.keys(v._hmrPayload.actions).forEach(b=>{b in m._hmrPayload.actions||vt(v,b)}),v._hmrPayload=m._hmrPayload,v._getters=m._getters,v._hotUpdating=!1})),Pe){const m={writable:!0,configurable:!0,enumerable:!1};["_p","_hmrPayload","_getters","_customProperties"].forEach(b=>{Object.defineProperty(v,b,X({value:v[b]},m))})}return r._p.forEach(m=>{if(Pe){const b=c.run(()=>m({store:v,app:r._a,pinia:r,options:i}));Object.keys(b||{}).forEach(M=>v._customProperties.add(M)),X(v,b)}else X(v,c.run(()=>m({store:v,app:r._a,pinia:r,options:i})))}),process.env.NODE_ENV!=="production"&&v.$state&&typeof v.$state=="object"&&typeof v.$state.constructor=="function"&&!v.$state.constructor.toString().includes("[native code]")&&console.warn(`[๐]: The "state" must be a plain object. It cannot be
|
|
8
|
+
state: () => new MyClass()
|
|
9
|
+
Found in store "${v.$id}".`),y&&s&&n.hydrate&&n.hydrate(v.$state,y),l=!0,f=!0,v}function Ko(t,e,n){let r,o;const s=typeof e=="function";if(typeof t=="string")r=t,o=s?n:e;else if(o=t,r=t.id,process.env.NODE_ENV!=="production"&&typeof r!="string")throw new Error('[๐]: "defineStore()" must be passed a store id as its first argument.');function c(i,a){const l=u.hasInjectionContext();if(i=(process.env.NODE_ENV==="test"&&Be&&Be._testing?null:i)||(l?u.inject(bn,null):null),i&&Fe(i),process.env.NODE_ENV!=="production"&&!Be)throw new Error(`[๐]: "getActivePinia()" was called but there was no active Pinia. Did you forget to install pinia?
|
|
10
|
+
const pinia = createPinia()
|
|
11
|
+
app.use(pinia)
|
|
12
|
+
This will fail in production.`);i=Be,i._s.has(r)||(s?Tt(r,e,o,i):Nn(r,o,i),process.env.NODE_ENV!=="production"&&(c._pinia=i));const f=i._s.get(r);if(process.env.NODE_ENV!=="production"&&a){const p="__hot:"+r,h=s?Tt(p,e,o,i,!0):Nn(p,X({},o),i,!0);a._hotUpdate(h),delete i.state.value[p],i._s.delete(p)}if(process.env.NODE_ENV!=="production"&&Ke){const p=u.getCurrentInstance();if(p&&p.proxy&&!a){const h=p.proxy,d="_pStores"in h?h._pStores:h._pStores={};d[r]=f}}return f}return c.$id=r,c}function Ln(t){{t=u.toRaw(t);const e={};for(const n in t){const r=t[n];(u.isRef(r)||u.isReactive(r))&&(e[n]=u.toRef(t,n))}return e}}const zl="",On=(t,e)=>{const n=t.__vccOpts||t;for(const[r,o]of e)n[r]=o;return n},Yo={},Qo={class:"chat-button"};function Xo(t,e){return u.openBlock(),u.createElementBlock("button",Qo,[u.renderSlot(t.$slots,"default")])}const es=On(Yo,[["render",Xo]]);function ts(){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 ns(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 ke=ts(),rs={class:"chat-layout"},os={key:0,class:"chat-header"},ss={key:2,class:"chat-footer"},cs=u.defineComponent({__name:"Layout",setup(t){const e=u.ref(null);function n(){const r=e.value;r&&(r.scrollTop=r.scrollHeight)}return u.onMounted(()=>{ke.on("scrollToBottom",n),window.addEventListener("resize",n)}),u.onBeforeUnmount(()=>{ke.off("scrollToBottom",n),window.removeEventListener("resize",n)}),(r,o)=>(u.openBlock(),u.createElementBlock("main",rs,[r.$slots.header?(u.openBlock(),u.createElementBlock("div",os,[u.renderSlot(r.$slots,"header")])):u.createCommentVNode("",!0),r.$slots.default?(u.openBlock(),u.createElementBlock("div",{key:1,class:"chat-body",ref_key:"chatBodyRef",ref:e},[u.renderSlot(r.$slots,"default")],512)):u.createCommentVNode("",!0),r.$slots.footer?(u.openBlock(),u.createElementBlock("div",ss,[u.renderSlot(r.$slots,"footer")])):u.createCommentVNode("",!0)]))}}),Gl="",Ue={webhookUrl:"http://localhost:5678",webhookConfig:{method:"GET",headers:{}},target:"#n8n-chat",mode:"window",defaultLanguage:"en",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:{},poweredBy:!0},is="#n8n-chat",In="n8n-chat/sessionId",Mn=Symbol("ChatOptions");function Ve(){return{options:u.inject(Mn)}}function tt(){const{options:t}=Ve(),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 as={class:"chat-get-started"},ls=u.defineComponent({__name:"GetStarted",setup(t){const{t:e}=tt();return(n,r)=>(u.openBlock(),u.createElementBlock("div",as,[u.createVNode(es,{onClick:r[0]||(r[0]=o=>n.$emit("click:button"))},{default:u.withCtx(()=>[u.createTextVNode(u.toDisplayString(u.unref(e)("getStarted")),1)]),_:1})]))}}),jl="",Zl="",us={},fs={class:"chat-powered-by"},ps=u.createElementVNode("a",{href:"https://n8n.io"},"n8n",-1);function hs(t,e){return u.openBlock(),u.createElementBlock("div",fs,[u.createTextVNode("Powered by "),ps])}const ds=On(us,[["render",hs]]),gs={class:"chat-get-started-footer"},ms={key:0},bs=u.defineComponent({__name:"GetStartedFooter",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt();return(o,s)=>(u.openBlock(),u.createElementBlock("div",gs,[u.unref(r)("footer")?(u.openBlock(),u.createElementBlock("div",ms,u.toDisplayString(u.unref(n)("footer")),1)):u.createCommentVNode("",!0),u.unref(e).poweredBy?(u.openBlock(),u.createBlock(ds,{key:1})):u.createCommentVNode("",!0)]))}}),Wl="";function Bn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _s(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 F={},Fn={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:"๏ฌ",fflig:"๏ฌ",ffllig:"๏ฌ",Ffr:"๐",ffr:"๐ฃ",filig:"๏ฌ",FilledSmallSquare:"โผ",FilledVerySmallSquare:"โช",fjlig:"fj",flat:"โญ",fllig:"๏ฌ",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:"ฤฒ",ijlig:"ฤณ",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:"ล",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:`
|
|
13
|
+
`,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:"โ"},Rt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,Te={},Pn={};function ks(t){var e,n,r=Pn[t];if(r)return r;for(r=Pn[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 nt(t,e,n){var r,o,s,c,i,a="";for(typeof e!="string"&&(n=e,e=nt.defaultChars),typeof n>"u"&&(n=!0),i=ks(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}nt.defaultChars=";/?:@&=+$,-_.!~*'()#",nt.componentChars="-_.!~*'()";var ys=nt,Un={};function ws(t){var e,n,r=Un[t];if(r)return r;for(r=Un[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 rt(t,e){var n;return typeof e!="string"&&(e=rt.defaultChars),n=ws(e),t.replace(/(%[a-f0-9]{2})+/gi,function(r){var o,s,c,i,a,l,f,p="";for(o=0,s=r.length;o<s;o+=3){if(c=parseInt(r.slice(o+1,o+3),16),c<128){p+=n[c];continue}if((c&224)===192&&o+3<s&&(i=parseInt(r.slice(o+4,o+6),16),(i&192)===128)){f=c<<6&1984|i&63,f<128?p+="๏ฟฝ๏ฟฝ":p+=String.fromCharCode(f),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)){f=c<<12&61440|i<<6&4032|a&63,f<2048||f>=55296&&f<=57343?p+="๏ฟฝ๏ฟฝ๏ฟฝ":p+=String.fromCharCode(f),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)){f=c<<18&1835008|i<<12&258048|a<<6&4032|l&63,f<65536||f>1114111?p+="๏ฟฝ๏ฟฝ๏ฟฝ๏ฟฝ":(f-=65536,p+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),o+=9;continue}p+="๏ฟฝ"}return p})}rt.defaultChars=";/?:@&=+$,#",rt.componentChars="";var xs=rt,Es=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 ot(){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 vs=/^([a-z0-9.+-]+:)/i,As=/:[0-9]*$/,Cs=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ss=["<",">",'"',"`"," ","\r",`
|
|
14
|
+
`," "],Ds=["{","}","|","\\","^","`"].concat(Ss),qs=["'"].concat(Ds),Vn=["%","/","?",";","#"].concat(qs),$n=["/","?","#"],Ts=255,zn=/^[+a-z0-9A-Z_-]{0,63}$/,Rs=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Gn={javascript:!0,"javascript:":!0},Hn={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Ns(t,e){if(t&&t instanceof ot)return t;var n=new ot;return n.parse(t,e),n}ot.prototype.parse=function(t,e){var n,r,o,s,c,i=t;if(i=i.trim(),!e&&t.split("#").length===1){var a=Cs.exec(i);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}var l=vs.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&&Gn[l])&&(i=i.substr(2),this.slashes=!0)),!Gn[l]&&(c||l&&!Hn[l])){var f=-1;for(n=0;n<$n.length;n++)s=i.indexOf($n[n]),s!==-1&&(f===-1||s<f)&&(f=s);var p,h;for(f===-1?h=i.lastIndexOf("@"):h=i.lastIndexOf("@",f),h!==-1&&(p=i.slice(0,h),i=i.slice(h+1),this.auth=p),f=-1,n=0;n<Vn.length;n++)s=i.indexOf(Vn[n]),s!==-1&&(f===-1||s<f)&&(f=s);f===-1&&(f=i.length),i[f-1]===":"&&f--;var d=i.slice(0,f);i=i.slice(f),this.parseHost(d),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var E=this.hostname.split(/\./);for(n=0,r=E.length;n<r;n++){var D=E[n];if(D&&!D.match(zn)){for(var C="",w=0,S=D.length;w<S;w++)D.charCodeAt(w)>127?C+="x":C+=D[w];if(!C.match(zn)){var T=E.slice(0,n),R=E.slice(n+1),x=D.match(Rs);x&&(T.push(x[1]),R.unshift(x[2])),R.length&&(i=R.join(".")+i),this.hostname=T.join(".");break}}}}this.hostname.length>Ts&&(this.hostname=""),y&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var v=i.indexOf("#");v!==-1&&(this.hash=i.substr(v),i=i.slice(0,v));var V=i.indexOf("?");return V!==-1&&(this.search=i.substr(V),i=i.slice(0,V)),i&&(this.pathname=i),Hn[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},ot.prototype.parseHost=function(t){var e=As.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 Ls=Ns;Te.encode=ys,Te.decode=xs,Te.format=Es,Te.parse=Ls;var ye={},Nt,jn;function Zn(){return jn||(jn=1,Nt=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),Nt}var Lt,Wn;function Jn(){return Wn||(Wn=1,Lt=/[\0-\x1F\x7F-\x9F]/),Lt}var Ot,Kn;function Os(){return Kn||(Kn=1,Ot=/[\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]/),Ot}var It,Yn;function Qn(){return Yn||(Yn=1,It=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),It}var Xn;function Is(){return Xn||(Xn=1,ye.Any=Zn(),ye.Cc=Jn(),ye.Cf=Os(),ye.P=Rt,ye.Z=Qn()),ye}(function(t){function e(_){return Object.prototype.toString.call(_)}function n(_){return e(_)==="[object String]"}var r=Object.prototype.hasOwnProperty;function o(_,P){return r.call(_,P)}function s(_){var P=Array.prototype.slice.call(arguments,1);return P.forEach(function(I){if(I){if(typeof I!="object")throw new TypeError(I+"must be object");Object.keys(I).forEach(function(g){_[g]=I[g]})}}),_}function c(_,P,I){return[].concat(_.slice(0,P),I,_.slice(P+1))}function i(_){return!(_>=55296&&_<=57343||_>=64976&&_<=65007||(_&65535)===65535||(_&65535)===65534||_>=0&&_<=8||_===11||_>=14&&_<=31||_>=127&&_<=159||_>1114111)}function a(_){if(_>65535){_-=65536;var P=55296+(_>>10),I=56320+(_&1023);return String.fromCharCode(P,I)}return String.fromCharCode(_)}var l=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,f=/&([a-z#][a-z0-9]{1,31});/gi,p=new RegExp(l.source+"|"+f.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,d=Fn;function y(_,P){var I=0;return o(d,P)?d[P]:P.charCodeAt(0)===35&&h.test(P)&&(I=P[1].toLowerCase()==="x"?parseInt(P.slice(2),16):parseInt(P.slice(1),10),i(I))?a(I):_}function E(_){return _.indexOf("\\")<0?_:_.replace(l,"$1")}function D(_){return _.indexOf("\\")<0&&_.indexOf("&")<0?_:_.replace(p,function(P,I,g){return I||y(P,g)})}var C=/[&<>"]/,w=/[&<>"]/g,S={"&":"&","<":"<",">":">",'"':"""};function T(_){return S[_]}function R(_){return C.test(_)?_.replace(w,T):_}var x=/[.?*+^$[\]\\(){}|-]/g;function v(_){return _.replace(x,"\\$&")}function V(_){switch(_){case 9:case 32:return!0}return!1}function $(_){if(_>=8192&&_<=8202)return!0;switch(_){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var m=Rt;function b(_){return m.test(_)}function M(_){switch(_){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G(_){return _=_.trim().replace(/\s+/g," "),"แบ".toLowerCase()==="แนพ"&&(_=_.replace(/แบ/g,"ร")),_.toLowerCase().toUpperCase()}t.lib={},t.lib.mdurl=Te,t.lib.ucmicro=Is(),t.assign=s,t.isString=n,t.has=o,t.unescapeMd=E,t.unescapeAll=D,t.isValidEntityCode=i,t.fromCodePoint=a,t.escapeHtml=R,t.arrayReplaceAt=c,t.isSpace=V,t.isWhiteSpace=$,t.isMdAsciiPunct=M,t.isPunctChar=b,t.escapeRE=v,t.normalizeReference=G})(F);var st={},Ms=function(e,n,r){var o,s,c,i,a=-1,l=e.posMax,f=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=f,-1}}return s&&(a=e.pos),e.pos=f,a},er=F.unescapeAll,Bs=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=er(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=er(e.slice(i,n)),a.lines=c,a.pos=n,a.ok=!0),a},Fs=F.unescapeAll,Ps=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=Fs(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};st.parseLinkLabel=Ms,st.parseLinkDestination=Bs,st.parseLinkTitle=Ps;var Us=F.assign,Vs=F.unescapeAll,we=F.escapeHtml,ce={};ce.code_inline=function(t,e,n,r,o){var s=t[e];return"<code"+o.renderAttrs(s)+">"+we(t[e].content)+"</code>"},ce.code_block=function(t,e,n,r,o){var s=t[e];return"<pre"+o.renderAttrs(s)+"><code>"+we(t[e].content)+`</code></pre>
|
|
15
|
+
`},ce.fence=function(t,e,n,r,o){var s=t[e],c=s.info?Vs(s.info).trim():"",i="",a="",l,f,p,h,d;return c&&(p=c.split(/(\s+)/g),i=p[0],a=p.slice(2).join("")),n.highlight?l=n.highlight(s.content,i,a)||we(s.content):l=we(s.content),l.indexOf("<pre")===0?l+`
|
|
16
|
+
`:c?(f=s.attrIndex("class"),h=s.attrs?s.attrs.slice():[],f<0?h.push(["class",n.langPrefix+i]):(h[f]=h[f].slice(),h[f][1]+=" "+n.langPrefix+i),d={attrs:h},"<pre><code"+o.renderAttrs(d)+">"+l+`</code></pre>
|
|
17
|
+
`):"<pre><code"+o.renderAttrs(s)+">"+l+`</code></pre>
|
|
18
|
+
`},ce.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)},ce.hardbreak=function(t,e,n){return n.xhtmlOut?`<br />
|
|
19
|
+
`:`<br>
|
|
20
|
+
`},ce.softbreak=function(t,e,n){return n.breaks?n.xhtmlOut?`<br />
|
|
21
|
+
`:`<br>
|
|
22
|
+
`:`
|
|
23
|
+
`},ce.text=function(t,e){return we(t[e].content)},ce.html_block=function(t,e){return t[e].content},ce.html_inline=function(t,e){return t[e].content};function Re(){this.rules=Us({},ce)}Re.prototype.renderAttrs=function(e){var n,r,o;if(!e.attrs)return"";for(o="",n=0,r=e.attrs.length;n<r;n++)o+=" "+we(e.attrs[n][0])+'="'+we(e.attrs[n][1])+'"';return o},Re.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+=`
|
|
24
|
+
`),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?`>
|
|
25
|
+
`:">",s)},Re.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},Re.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+=`
|
|
26
|
+
`);return r},Re.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 $s=Re;function re(){this.__rules__=[],this.__cache__=null}re.prototype.__find__=function(t){for(var e=0;e<this.__rules__.length;e++)if(this.__rules__[e].name===t)return e;return-1},re.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))})})},re.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},re.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},re.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},re.prototype.push=function(t,e,n){var r=n||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:r.alt||[]}),this.__cache__=null},re.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},re.prototype.enableOnly=function(t,e){Array.isArray(t)||(t=[t]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(t,e)},re.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},re.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};var Mt=re,zs=/\r\n?|\n/g,Gs=/\0/g,Hs=function(e){var n;n=e.src.replace(zs,`
|
|
27
|
+
`),n=n.replace(Gs,"๏ฟฝ"),e.src=n},js=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)},Zs=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)},Ws=F.arrayReplaceAt;function Js(t){return/^<a[>\s]/i.test(t)}function Ks(t){return/^<\/a\s*>/i.test(t)}var Ys=function(e){var n,r,o,s,c,i,a,l,f,p,h,d,y,E,D,C,w=e.tokens,S;if(e.md.options.linkify){for(r=0,o=w.length;r<o;r++)if(!(w[r].type!=="inline"||!e.md.linkify.pretest(w[r].content)))for(s=w[r].children,y=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"&&(Js(i.content)&&y>0&&y--,Ks(i.content)&&y++),!(y>0)&&i.type==="text"&&e.md.linkify.test(i.content)){for(f=i.content,S=e.md.linkify.match(f),a=[],d=i.level,h=0,l=0;l<S.length;l++)E=S[l].url,D=e.md.normalizeLink(E),e.md.validateLink(D)&&(C=S[l].text,S[l].schema?S[l].schema==="mailto:"&&!/^mailto:/i.test(C)?C=e.md.normalizeLinkText("mailto:"+C).replace(/^mailto:/,""):C=e.md.normalizeLinkText(C):C=e.md.normalizeLinkText("http://"+C).replace(/^http:\/\//,""),p=S[l].index,p>h&&(c=new e.Token("text","",0),c.content=f.slice(h,p),c.level=d,a.push(c)),c=new e.Token("link_open","a",1),c.attrs=[["href",D]],c.level=d++,c.markup="linkify",c.info="auto",a.push(c),c=new e.Token("text","",0),c.content=C,c.level=d,a.push(c),c=new e.Token("link_close","a",-1),c.level=--d,c.markup="linkify",c.info="auto",a.push(c),h=S[l].lastIndex);h<f.length&&(c=new e.Token("text","",0),c.content=f.slice(h),c.level=d,a.push(c)),w[r].children=s=Ws(s,n,a)}}}},tr=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Qs=/\((c|tm|r|p)\)/i,Xs=/\((c|tm|r|p)\)/ig,ec={c:"ยฉ",r:"ยฎ",p:"ยง",tm:"โข"};function tc(t,e){return ec[e.toLowerCase()]}function nc(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(Xs,tc)),n.type==="link_open"&&n.info==="auto"&&r--,n.type==="link_close"&&n.info==="auto"&&r++}function rc(t){var e,n,r=0;for(e=t.length-1;e>=0;e--)n=t[e],n.type==="text"&&!r&&tr.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 oc=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type==="inline"&&(Qs.test(e.tokens[n].content)&&nc(e.tokens[n].children),tr.test(e.tokens[n].content)&&rc(e.tokens[n].children))},nr=F.isWhiteSpace,rr=F.isPunctChar,or=F.isMdAsciiPunct,sc=/['"]/,sr=/['"]/g,cr="โ";function ct(t,e,n){return t.substr(0,e)+n+t.substr(e+1)}function cc(t,e){var n,r,o,s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x;for(T=[],n=0;n<t.length;n++){for(r=t[n],a=t[n].level,w=T.length-1;w>=0&&!(T[w].level<=a);w--);if(T.length=w+1,r.type==="text"){o=r.content,c=0,i=o.length;e:for(;c<i&&(sr.lastIndex=c,s=sr.exec(o),!!s);){if(D=C=!0,c=s.index+1,S=s[0]==="'",f=32,s.index-1>=0)f=o.charCodeAt(s.index-1);else for(w=n-1;w>=0&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w--)if(t[w].content){f=t[w].content.charCodeAt(t[w].content.length-1);break}if(p=32,c<i)p=o.charCodeAt(c);else for(w=n+1;w<t.length&&!(t[w].type==="softbreak"||t[w].type==="hardbreak");w++)if(t[w].content){p=t[w].content.charCodeAt(0);break}if(h=or(f)||rr(String.fromCharCode(f)),d=or(p)||rr(String.fromCharCode(p)),y=nr(f),E=nr(p),E?D=!1:d&&(y||h||(D=!1)),y?C=!1:h&&(E||d||(C=!1)),p===34&&s[0]==='"'&&f>=48&&f<=57&&(C=D=!1),D&&C&&(D=h,C=d),!D&&!C){S&&(r.content=ct(r.content,s.index,cr));continue}if(C){for(w=T.length-1;w>=0&&(l=T[w],!(T[w].level<a));w--)if(l.single===S&&T[w].level===a){l=T[w],S?(R=e.md.options.quotes[2],x=e.md.options.quotes[3]):(R=e.md.options.quotes[0],x=e.md.options.quotes[1]),r.content=ct(r.content,s.index,x),t[l.token].content=ct(t[l.token].content,l.pos,R),c+=x.length-1,l.token===n&&(c+=R.length-1),o=r.content,i=o.length,T.length=w;continue e}}D?T.push({token:n,pos:s.index,single:S,level:a}):C&&S&&(r.content=ct(r.content,s.index,cr))}}}}var ic=function(e){var n;if(e.md.options.typographer)for(n=e.tokens.length-1;n>=0;n--)e.tokens[n].type!=="inline"||!sc.test(e.tokens[n].content)||cc(e.tokens[n].children,e)};function Ne(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}Ne.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},Ne.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Ne.prototype.attrSet=function(e,n){var r=this.attrIndex(e),o=[e,n];r<0?this.attrPush(o):this.attrs[r]=o},Ne.prototype.attrGet=function(e){var n=this.attrIndex(e),r=null;return n>=0&&(r=this.attrs[n][1]),r},Ne.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 Bt=Ne,ac=Bt;function ir(t,e,n){this.src=t,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=e}ir.prototype.Token=ac;var lc=ir,uc=Mt,Ft=[["normalize",Hs],["block",js],["inline",Zs],["linkify",Ys],["replacements",oc],["smartquotes",ic]];function Pt(){this.ruler=new uc;for(var t=0;t<Ft.length;t++)this.ruler.push(Ft[t][0],Ft[t][1])}Pt.prototype.process=function(t){var e,n,r;for(r=this.ruler.getRules(""),e=0,n=r.length;e<n;e++)r[e](t)},Pt.prototype.State=lc;var fc=Pt,Ut=F.isSpace;function Vt(t,e){var n=t.bMarks[e]+t.tShift[e],r=t.eMarks[e];return t.src.substr(n,r-n)}function ar(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 pc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x;if(n+2>r||(f=n+1,e.sCount[f]<e.blkIndent)||e.sCount[f]-e.blkIndent>=4||(i=e.bMarks[f]+e.tShift[f],i>=e.eMarks[f])||(R=e.src.charCodeAt(i++),R!==124&&R!==45&&R!==58)||i>=e.eMarks[f]||(x=e.src.charCodeAt(i++),x!==124&&x!==45&&x!==58&&!Ut(x))||R===45&&Ut(x))return!1;for(;i<e.eMarks[f];){if(s=e.src.charCodeAt(i),s!==124&&s!==45&&s!==58&&!Ut(s))return!1;i++}for(c=Vt(e,n+1),p=c.split("|"),y=[],a=0;a<p.length;a++){if(E=p[a].trim(),!E){if(a===0||a===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(E))return!1;E.charCodeAt(E.length-1)===58?y.push(E.charCodeAt(0)===58?"center":"right"):E.charCodeAt(0)===58?y.push("left"):y.push("")}if(c=Vt(e,n).trim(),c.indexOf("|")===-1||e.sCount[n]-e.blkIndent>=4||(p=ar(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),h=p.length,h===0||h!==y.length))return!1;if(o)return!0;for(w=e.parentType,e.parentType="table",T=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=D=[n,0],d=e.push("thead_open","thead",1),d.map=[n,n+1],d=e.push("tr_open","tr",1),d.map=[n,n+1],a=0;a<p.length;a++)d=e.push("th_open","th",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=p[a].trim(),d.children=[],d=e.push("th_close","th",-1);for(d=e.push("tr_close","tr",-1),d=e.push("thead_close","thead",-1),f=n+2;f<r&&!(e.sCount[f]<e.blkIndent);f++){for(S=!1,a=0,l=T.length;a<l;a++)if(T[a](e,f,r,!0)){S=!0;break}if(S||(c=Vt(e,f).trim(),!c)||e.sCount[f]-e.blkIndent>=4)break;for(p=ar(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f===n+2&&(d=e.push("tbody_open","tbody",1),d.map=C=[n+2,0]),d=e.push("tr_open","tr",1),d.map=[f,f+1],a=0;a<h;a++)d=e.push("td_open","td",1),y[a]&&(d.attrs=[["style","text-align:"+y[a]]]),d=e.push("inline","",0),d.content=p[a]?p[a].trim():"",d.children=[],d=e.push("td_close","td",-1);d=e.push("tr_close","tr",-1)}return C&&(d=e.push("tbody_close","tbody",-1),C[1]=f),d=e.push("table_close","table",-1),D[1]=f,e.parentType=w,e.line=f,!0},hc=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)+`
|
|
28
|
+
`,c.map=[n,e.line],!0},dc=function(e,n,r,o){var s,c,i,a,l,f,p,h=!1,d=e.bMarks[n]+e.tShift[n],y=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||d+3>y||(s=e.src.charCodeAt(d),s!==126&&s!==96)||(l=d,d=e.skipChars(d,s),c=d-l,c<3)||(p=e.src.slice(l,d),i=e.src.slice(d,y),s===96&&i.indexOf(String.fromCharCode(s))>=0))return!1;if(o)return!0;for(a=n;a++,!(a>=r||(d=l=e.bMarks[a]+e.tShift[a],y=e.eMarks[a],d<y&&e.sCount[a]<e.blkIndent));)if(e.src.charCodeAt(d)===s&&!(e.sCount[a]-e.blkIndent>=4)&&(d=e.skipChars(d,s),!(d-l<c)&&(d=e.skipSpaces(d),!(d<y)))){h=!0;break}return c=e.sCount[n],e.line=a+(h?1:0),f=e.push("fence","code",0),f.info=i,f.content=e.getLines(n+1,a,c,!0),f.markup=p,f.map=[n,e.line],!0},lr=F.isSpace,gc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x,v,V,$=e.lineMax,m=e.bMarks[n]+e.tShift[n],b=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(m++)!==62)return!1;if(o)return!0;for(a=d=e.sCount[n]+1,e.src.charCodeAt(m)===32?(m++,a++,d++,s=!1,T=!0):e.src.charCodeAt(m)===9?(T=!0,(e.bsCount[n]+d)%4===3?(m++,a++,d++,s=!1):s=!0):T=!1,y=[e.bMarks[n]],e.bMarks[n]=m;m<b&&(c=e.src.charCodeAt(m),lr(c));){c===9?d+=4-(d+e.bsCount[n]+(s?1:0))%4:d++;m++}for(E=[e.bsCount[n]],e.bsCount[n]=e.sCount[n]+1+(T?1:0),f=m>=b,w=[e.sCount[n]],e.sCount[n]=d-a,S=[e.tShift[n]],e.tShift[n]=m-e.bMarks[n],x=e.md.block.ruler.getRules("blockquote"),C=e.parentType,e.parentType="blockquote",h=n+1;h<r&&(V=e.sCount[h]<e.blkIndent,m=e.bMarks[h]+e.tShift[h],b=e.eMarks[h],!(m>=b));h++){if(e.src.charCodeAt(m++)===62&&!V){for(a=d=e.sCount[h]+1,e.src.charCodeAt(m)===32?(m++,a++,d++,s=!1,T=!0):e.src.charCodeAt(m)===9?(T=!0,(e.bsCount[h]+d)%4===3?(m++,a++,d++,s=!1):s=!0):T=!1,y.push(e.bMarks[h]),e.bMarks[h]=m;m<b&&(c=e.src.charCodeAt(m),lr(c));){c===9?d+=4-(d+e.bsCount[h]+(s?1:0))%4:d++;m++}f=m>=b,E.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(T?1:0),w.push(e.sCount[h]),e.sCount[h]=d-a,S.push(e.tShift[h]),e.tShift[h]=m-e.bMarks[h];continue}if(f)break;for(R=!1,i=0,l=x.length;i<l;i++)if(x[i](e,h,r,!0)){R=!0;break}if(R){e.lineMax=h,e.blkIndent!==0&&(y.push(e.bMarks[h]),E.push(e.bsCount[h]),S.push(e.tShift[h]),w.push(e.sCount[h]),e.sCount[h]-=e.blkIndent);break}y.push(e.bMarks[h]),E.push(e.bsCount[h]),S.push(e.tShift[h]),w.push(e.sCount[h]),e.sCount[h]=-1}for(D=e.blkIndent,e.blkIndent=0,v=e.push("blockquote_open","blockquote",1),v.markup=">",v.map=p=[n,0],e.md.block.tokenize(e,n,h),v=e.push("blockquote_close","blockquote",-1),v.markup=">",e.lineMax=$,e.parentType=C,p[1]=e.line,i=0;i<S.length;i++)e.bMarks[i+n]=y[i],e.tShift[i+n]=S[i],e.sCount[i+n]=w[i],e.bsCount[i+n]=E[i];return e.blkIndent=D,!0},mc=F.isSpace,bc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=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<f;){if(i=e.src.charCodeAt(l++),i!==s&&!mc(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)},ur=F.isSpace;function fr(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),!ur(s))?-1:r}function pr(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),!ur(n))?-1:o}function _c(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 kc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R,x,v,V,$,m,b,M,G,_,P,I,g=!1,k=!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),(b=pr(e,n))>=0){if(p=!0,G=e.bMarks[n]+e.tShift[n],C=Number(e.src.slice(G,b-1)),g&&C!==1)return!1}else if((b=fr(e,n))>=0)p=!1;else return!1;if(g&&e.skipSpaces(b)>=e.eMarks[n])return!1;if(D=e.src.charCodeAt(b-1),o)return!0;for(E=e.tokens.length,p?(I=e.push("ordered_list_open","ol",1),C!==1&&(I.attrs=[["start",C]])):I=e.push("bullet_list_open","ul",1),I.map=y=[n,0],I.markup=String.fromCharCode(D),S=n,M=!1,P=e.md.block.ruler.getRules("list"),x=e.parentType,e.parentType="list";S<r;){for(m=b,w=e.eMarks[S],f=T=e.sCount[S]+b-(e.bMarks[n]+e.tShift[n]);m<w;){if(s=e.src.charCodeAt(m),s===9)T+=4-(T+e.bsCount[S])%4;else if(s===32)T++;else break;m++}if(c=m,c>=w?l=1:l=T-f,l>4&&(l=1),a=f+l,I=e.push("list_item_open","li",1),I.markup=String.fromCharCode(D),I.map=h=[n,0],p&&(I.info=e.src.slice(G,b-1)),$=e.tight,V=e.tShift[n],v=e.sCount[n],R=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[n]=c-e.bMarks[n],e.sCount[n]=T,c>=w&&e.isEmpty(n+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,n,r,!0),(!e.tight||M)&&(k=!1),M=e.line-n>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[n]=V,e.sCount[n]=v,e.tight=$,I=e.push("list_item_close","li",-1),I.markup=String.fromCharCode(D),S=n=e.line,h[1]=S,c=e.bMarks[n],S>=r||e.sCount[S]<e.blkIndent||e.sCount[n]-e.blkIndent>=4)break;for(_=!1,i=0,d=P.length;i<d;i++)if(P[i](e,S,r,!0)){_=!0;break}if(_)break;if(p){if(b=pr(e,S),b<0)break;G=e.bMarks[S]+e.tShift[S]}else if(b=fr(e,S),b<0)break;if(D!==e.src.charCodeAt(b-1))break}return p?I=e.push("ordered_list_close","ol",-1):I=e.push("bullet_list_close","ul",-1),I.markup=String.fromCharCode(D),y[1]=S,e.line=S,e.parentType=x,k&&_c(e,E),!0},yc=F.normalizeReference,it=F.isSpace,wc=function(e,n,r,o){var s,c,i,a,l,f,p,h,d,y,E,D,C,w,S,T,R=0,x=e.bMarks[n]+e.tShift[n],v=e.eMarks[n],V=n+1;if(e.sCount[n]-e.blkIndent>=4||e.src.charCodeAt(x)!==91)return!1;for(;++x<v;)if(e.src.charCodeAt(x)===93&&e.src.charCodeAt(x-1)!==92){if(x+1===v||e.src.charCodeAt(x+1)!==58)return!1;break}for(a=e.lineMax,S=e.md.block.ruler.getRules("reference"),y=e.parentType,e.parentType="reference";V<a&&!e.isEmpty(V);V++)if(!(e.sCount[V]-e.blkIndent>3)&&!(e.sCount[V]<0)){for(w=!1,f=0,p=S.length;f<p;f++)if(S[f](e,V,a,!0)){w=!0;break}if(w)break}for(C=e.getLines(n,V,e.blkIndent,!1).trim(),v=C.length,x=1;x<v;x++){if(s=C.charCodeAt(x),s===91)return!1;if(s===93){d=x;break}else s===10?R++:s===92&&(x++,x<v&&C.charCodeAt(x)===10&&R++)}if(d<0||C.charCodeAt(d+1)!==58)return!1;for(x=d+2;x<v;x++)if(s=C.charCodeAt(x),s===10)R++;else if(!it(s))break;if(E=e.md.helpers.parseLinkDestination(C,x,v),!E.ok||(l=e.md.normalizeLink(E.str),!e.md.validateLink(l)))return!1;for(x=E.pos,R+=E.lines,c=x,i=R,D=x;x<v;x++)if(s=C.charCodeAt(x),s===10)R++;else if(!it(s))break;for(E=e.md.helpers.parseLinkTitle(C,x,v),x<v&&D!==x&&E.ok?(T=E.str,x=E.pos,R+=E.lines):(T="",x=c,R=i);x<v&&(s=C.charCodeAt(x),!!it(s));)x++;if(x<v&&C.charCodeAt(x)!==10&&T)for(T="",x=c,R=i;x<v&&(s=C.charCodeAt(x),!!it(s));)x++;return x<v&&C.charCodeAt(x)!==10||(h=yc(C.slice(1,d)),!h)?!1:(o||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:T,href:l}),e.parentType=y,e.line=n+R+1),!0)},xc=["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"],at={},Ec="[a-zA-Z_:][a-zA-Z0-9:._-]*",vc="[^\"'=<>`\\x00-\\x20]+",Ac="'[^']*'",Cc='"[^"]*"',Sc="(?:"+vc+"|"+Ac+"|"+Cc+")",Dc="(?:\\s+"+Ec+"(?:\\s*=\\s*"+Sc+")?)",hr="<[A-Za-z][A-Za-z0-9\\-]*"+Dc+"*\\s*\\/?>",dr="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qc="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",Tc="<[?][\\s\\S]*?[?]>",Rc="<![A-Z]+\\s+[^>]*>",Nc="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Lc=new RegExp("^(?:"+hr+"|"+dr+"|"+qc+"|"+Tc+"|"+Rc+"|"+Nc+")"),Oc=new RegExp("^(?:"+hr+"|"+dr+")");at.HTML_TAG_RE=Lc,at.HTML_OPEN_CLOSE_TAG_RE=Oc;var Ic=xc,Mc=at.HTML_OPEN_CLOSE_TAG_RE,Le=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Ic.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Mc.source+"\\s*$"),/^$/,!1]],Bc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=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,f),s=0;s<Le.length&&!Le[s][0].test(a);s++);if(s===Le.length)return!1;if(o)return Le[s][2];if(c=n+1,!Le[s][1].test(a)){for(;c<r&&!(e.sCount[c]<e.blkIndent);c++)if(l=e.bMarks[c]+e.tShift[c],f=e.eMarks[c],a=e.src.slice(l,f),Le[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},gr=F.isSpace,Fc=function(e,n,r,o){var s,c,i,a,l=e.bMarks[n]+e.tShift[n],f=e.eMarks[n];if(e.sCount[n]-e.blkIndent>=4||(s=e.src.charCodeAt(l),s!==35||l>=f))return!1;for(c=1,s=e.src.charCodeAt(++l);s===35&&l<f&&c<=6;)c++,s=e.src.charCodeAt(++l);return c>6||l<f&&!gr(s)?!1:(o||(f=e.skipSpacesBack(f,l),i=e.skipCharsBack(f,35,l),i>l&&gr(e.src.charCodeAt(i-1))&&(f=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,f).trim(),a.map=[n,e.line],a.children=[],a=e.push("heading_close","h"+String(c),-1),a.markup="########".slice(0,c)),!0)},Pc=function(e,n,r){var o,s,c,i,a,l,f,p,h,d=n+1,y,E=e.md.block.ruler.getRules("paragraph");if(e.sCount[n]-e.blkIndent>=4)return!1;for(y=e.parentType,e.parentType="paragraph";d<r&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(l=e.bMarks[d]+e.tShift[d],f=e.eMarks[d],l<f&&(h=e.src.charCodeAt(l),(h===45||h===61)&&(l=e.skipChars(l,h),l=e.skipSpaces(l),l>=f)))){p=h===61?1:2;break}if(!(e.sCount[d]<0)){for(s=!1,c=0,i=E.length;c<i;c++)if(E[c](e,d,r,!0)){s=!0;break}if(s)break}}return p?(o=e.getLines(n,d,e.blkIndent,!1).trim(),e.line=d+1,a=e.push("heading_open","h"+String(p),1),a.markup=String.fromCharCode(h),a.map=[n,e.line],a=e.push("inline","",0),a.content=o,a.map=[n,e.line-1],a.children=[],a=e.push("heading_close","h"+String(p),-1),a.markup=String.fromCharCode(h),e.parentType=y,!0):!1},Uc=function(e,n){var r,o,s,c,i,a,l=n+1,f=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(a=e.parentType,e.parentType="paragraph";l<p&&!e.isEmpty(l);l++)if(!(e.sCount[l]-e.blkIndent>3)&&!(e.sCount[l]<0)){for(o=!1,s=0,c=f.length;s<c;s++)if(f[s](e,l,p,!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},mr=Bt,lt=F.isSpace;function ie(t,e,n,r){var o,s,c,i,a,l,f,p;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,p=!1,c=i=l=f=0,a=s.length;i<a;i++){if(o=s.charCodeAt(i),!p)if(lt(o)){l++,o===9?f+=4-f%4:f++;continue}else p=!0;(o===10||i===a-1)&&(o!==10&&i++,this.bMarks.push(c),this.eMarks.push(i),this.tShift.push(l),this.sCount.push(f),this.bsCount.push(0),p=!1,l=0,f=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}ie.prototype.push=function(t,e,n){var r=new mr(t,e,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},ie.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},ie.prototype.skipEmptyLines=function(e){for(var n=this.lineMax;e<n&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},ie.prototype.skipSpaces=function(e){for(var n,r=this.src.length;e<r&&(n=this.src.charCodeAt(e),!!lt(n));e++);return e},ie.prototype.skipSpacesBack=function(e,n){if(e<=n)return e;for(;e>n;)if(!lt(this.src.charCodeAt(--e)))return e+1;return e},ie.prototype.skipChars=function(e,n){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===n;e++);return e},ie.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},ie.prototype.getLines=function(e,n,r,o){var s,c,i,a,l,f,p,h=e;if(e>=n)return"";for(f=new Array(n-e),s=0;h<n;h++,s++){for(c=0,p=a=this.bMarks[h],h+1<n||o?l=this.eMarks[h]+1:l=this.eMarks[h];a<l&&c<r;){if(i=this.src.charCodeAt(a),lt(i))i===9?c+=4-(c+this.bsCount[h])%4:c++;else if(a-p<this.tShift[h])c++;else break;a++}c>r?f[s]=new Array(c-r+1).join(" ")+this.src.slice(a,l):f[s]=this.src.slice(a,l)}return f.join("")},ie.prototype.Token=mr;var Vc=ie,$c=Mt,ut=[["table",pc,["paragraph","reference"]],["code",hc],["fence",dc,["paragraph","reference","blockquote","list"]],["blockquote",gc,["paragraph","reference","blockquote","list"]],["hr",bc,["paragraph","reference","blockquote","list"]],["list",kc,["paragraph","reference","blockquote"]],["reference",wc],["html_block",Bc,["paragraph","reference","blockquote"]],["heading",Fc,["paragraph","reference","blockquote"]],["lheading",Pc],["paragraph",Uc]];function ft(){this.ruler=new $c;for(var t=0;t<ut.length;t++)this.ruler.push(ut[t][0],ut[t][1],{alt:(ut[t][2]||[]).slice()})}ft.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)}},ft.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))},ft.prototype.State=Vc;var zc=ft;function Gc(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 Hc=function(e,n){for(var r=e.pos;r<e.posMax&&!Gc(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(n||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)},jc=F.isSpace,Zc=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&&jc(e.src.charCodeAt(c));)c++;return e.pos=c,!0},Wc=F.isSpace,$t=[],br=0;br<256;br++)$t.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){$t[t.charCodeAt(0)]=1});var Jc=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&&$t[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),!!Wc(r));)o++;return e.pos=o,!0}}return n||(e.pending+="\\"),e.pos++,!0},Kc=function(e,n){var r,o,s,c,i,a,l,f,p=e.pos,h=e.src.charCodeAt(p);if(h!==96)return!1;for(r=p,p++,o=e.posMax;p<o&&e.src.charCodeAt(p)===96;)p++;if(s=e.src.slice(r,p),l=s.length,e.backticksScanned&&(e.backticks[l]||0)<=r)return n||(e.pending+=s),e.pos+=l,!0;for(i=a=p;(i=e.src.indexOf("`",a))!==-1;){for(a=i+1;a<o&&e.src.charCodeAt(a)===96;)a++;if(f=a-i,f===l)return n||(c=e.push("code_inline","code",0),c.markup=s,c.content=e.src.slice(p,i).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=a,!0;e.backticks[f]=i}return e.backticksScanned=!0,n||(e.pending+=s),e.pos+=l,!0},pt={};pt.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 _r(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)}}pt.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(_r(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&_r(e,r[n].delimiters)};var ht={};ht.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 kr(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--))}ht.postProcess=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(kr(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&kr(e,r[n].delimiters)};var Yc=F.normalizeReference,zt=F.isSpace,Qc=function(e,n){var r,o,s,c,i,a,l,f,p,h="",d="",y=e.pos,E=e.posMax,D=e.pos,C=!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<E&&e.src.charCodeAt(a)===40){for(C=!1,a++;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);if(a>=E)return!1;if(D=a,l=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),l.ok){for(h=e.md.normalizeLink(l.str),e.md.validateLink(h)?a=l.pos:h="",D=a;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);if(l=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<E&&D!==a&&l.ok)for(d=l.str,a=l.pos;a<E&&(o=e.src.charCodeAt(a),!(!zt(o)&&o!==10));a++);}(a>=E||e.src.charCodeAt(a)!==41)&&(C=!0),a++}if(C){if(typeof e.env.references>"u")return!1;if(a<E&&e.src.charCodeAt(a)===91?(D=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?s=e.src.slice(D,a++):a=c+1):a=c+1,s||(s=e.src.slice(i,c)),f=e.env.references[Yc(s)],!f)return e.pos=y,!1;h=f.href,d=f.title}return n||(e.pos=i,e.posMax=c,p=e.push("link_open","a",1),p.attrs=r=[["href",h]],d&&r.push(["title",d]),e.md.inline.tokenize(e),p=e.push("link_close","a",-1)),e.pos=a,e.posMax=E,!0},Xc=F.normalizeReference,Gt=F.isSpace,ei=function(e,n){var r,o,s,c,i,a,l,f,p,h,d,y,E,D="",C=e.pos,w=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<w&&e.src.charCodeAt(l)===40){for(l++;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);if(l>=w)return!1;for(E=l,p=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),p.ok&&(D=e.md.normalizeLink(p.str),e.md.validateLink(D)?l=p.pos:D=""),E=l;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);if(p=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<w&&E!==l&&p.ok)for(h=p.str,l=p.pos;l<w&&(o=e.src.charCodeAt(l),!(!Gt(o)&&o!==10));l++);else h="";if(l>=w||e.src.charCodeAt(l)!==41)return e.pos=C,!1;l++}else{if(typeof e.env.references>"u")return!1;if(l<w&&e.src.charCodeAt(l)===91?(E=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?c=e.src.slice(E,l++):l=i+1):l=i+1,c||(c=e.src.slice(a,i)),f=e.env.references[Xc(c)],!f)return e.pos=C,!1;D=f.href,h=f.title}return n||(s=e.src.slice(a,i),e.md.inline.parse(s,e.md,e.env,y=[]),d=e.push("image","img",0),d.attrs=r=[["src",D],["alt",""]],d.children=y,d.content=s,h&&r.push(["title",h])),e.pos=l,e.posMax=w,!0},ti=/^([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])?)*)$/,ni=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,ri=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),ni.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):ti.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},oi=at.HTML_TAG_RE;function si(t){var e=t|32;return e>=97&&e<=122}var ci=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&&!si(r))||(o=e.src.slice(i).match(oi),!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)},yr=Fn,ii=F.has,ai=F.isValidEntityCode,wr=F.fromCodePoint,li=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,ui=/^&([a-z][a-z0-9]{1,31});/i,fi=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(li),s)return n||(o=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),e.pending+=ai(o)?wr(o):wr(65533)),e.pos+=s[0].length,!0}else if(s=e.src.slice(c).match(ui),s&&ii(yr,s[1]))return n||(e.pending+=yr[s[1]]),e.pos+=s[0].length,!0}return n||(e.pending+="&"),e.pos++,!0};function xr(t,e){var n,r,o,s,c,i,a,l,f={},p=e.length;if(p){var h=0,d=-2,y=[];for(n=0;n<p;n++)if(o=e[n],y.push(0),(e[h].marker!==o.marker||d!==o.token-1)&&(h=n),d=o.token,o.length=o.length||0,!!o.close){for(f.hasOwnProperty(o.marker)||(f[o.marker]=[-1,-1,-1,-1,-1,-1]),c=f[o.marker][(o.open?3:0)+o.length%3],r=h-y[h]-1,i=r;r>c;r-=y[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?y[r-1]+1:0,y[n]=n-r+l,y[r]=l,o.open=!1,s.end=n,s.close=!1,i=-1,d=-2;break}i!==-1&&(f[o.marker][(o.open?3:0)+(o.length||0)%3]=i)}}}var pi=function(e){var n,r=e.tokens_meta,o=e.tokens_meta.length;for(xr(e,e.delimiters),n=0;n<o;n++)r[n]&&r[n].delimiters&&xr(e,r[n].delimiters)},hi=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)},Ht=Bt,Er=F.isWhiteSpace,vr=F.isPunctChar,Ar=F.isMdAsciiPunct;function $e(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}$e.prototype.pushPending=function(){var t=new Ht("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t},$e.prototype.push=function(t,e,n){this.pending&&this.pushPending();var r=new Ht(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},$e.prototype.scanDelims=function(t,e){var n=t,r,o,s,c,i,a,l,f,p,h=!0,d=!0,y=this.posMax,E=this.src.charCodeAt(t);for(r=t>0?this.src.charCodeAt(t-1):32;n<y&&this.src.charCodeAt(n)===E;)n++;return s=n-t,o=n<y?this.src.charCodeAt(n):32,l=Ar(r)||vr(String.fromCharCode(r)),p=Ar(o)||vr(String.fromCharCode(o)),a=Er(r),f=Er(o),f?h=!1:p&&(a||l||(h=!1)),a?d=!1:l&&(f||p||(d=!1)),e?(c=h,i=d):(c=h&&(!d||l),i=d&&(!h||p)),{can_open:c,can_close:i,length:s}},$e.prototype.Token=Ht;var di=$e,Cr=Mt,jt=[["text",Hc],["newline",Zc],["escape",Jc],["backticks",Kc],["strikethrough",pt.tokenize],["emphasis",ht.tokenize],["link",Qc],["image",ei],["autolink",ri],["html_inline",ci],["entity",fi]],Zt=[["balance_pairs",pi],["strikethrough",pt.postProcess],["emphasis",ht.postProcess],["text_collapse",hi]];function ze(){var t;for(this.ruler=new Cr,t=0;t<jt.length;t++)this.ruler.push(jt[t][0],jt[t][1]);for(this.ruler2=new Cr,t=0;t<Zt.length;t++)this.ruler2.push(Zt[t][0],Zt[t][1])}ze.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},ze.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()},ze.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)},ze.prototype.State=di;var gi=ze,Wt,Sr;function mi(){return Sr||(Sr=1,Wt=function(t){var e={};e.src_Any=Zn().source,e.src_Cc=Jn().source,e.src_Z=Qn().source,e.src_P=Rt.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}),Wt}function Jt(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 dt(t){return Object.prototype.toString.call(t)}function bi(t){return dt(t)==="[object String]"}function _i(t){return dt(t)==="[object Object]"}function ki(t){return dt(t)==="[object RegExp]"}function Dr(t){return dt(t)==="[object Function]"}function yi(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var qr={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function wi(t){return Object.keys(t||{}).reduce(function(e,n){return e||qr.hasOwnProperty(n)},!1)}var xi={"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}}},Ei="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]",vi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|ัั".split("|");function Ai(t){t.__index__=-1,t.__text_cache__=""}function Ci(t){return function(e,n){var r=e.slice(n);return t.test(r)?r.match(t)[0].length:0}}function Tr(){return function(t,e){e.normalize(t)}}function gt(t){var e=t.re=mi()(t.__opts__),n=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||n.push(Ei),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,_i(a)){ki(a.validate)?l.validate=Ci(a.validate):Dr(a.validate)?l.validate=a.validate:s(i,a),Dr(a.normalize)?l.normalize=a.normalize:a.normalize?s(i,a):l.normalize=Tr();return}if(bi(a)){o.push(i);return}s(i,a)}}),o.forEach(function(i){t.__compiled__[t.__schemas__[i]]&&(t.__compiled__[i].validate=t.__compiled__[t.__schemas__[i]].validate,t.__compiled__[i].normalize=t.__compiled__[t.__schemas__[i]].normalize)}),t.__compiled__[""]={validate:null,normalize:Tr()};var c=Object.keys(t.__compiled__).filter(function(i){return i.length>0&&t.__compiled__[i]}).map(yi).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"),Ai(t)}function Si(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 Rr(t,e){var n=new Si(t,e);return t.__compiled__[n.schema].normalize(n,t),n}function ee(t,e){if(!(this instanceof ee))return new ee(t,e);e||wi(t)&&(e=t,t={}),this.__opts__=Jt({},qr,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Jt({},xi,t),this.__compiled__={},this.__tlds__=vi,this.__tlds_replaced__=!1,this.re={},gt(this)}ee.prototype.add=function(e,n){return this.__schemas__[e]=n,gt(this),this},ee.prototype.set=function(e){return this.__opts__=Jt(this.__opts__,e),this},ee.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,f;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:"]&&(f=e.indexOf("@"),f>=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},ee.prototype.pretest=function(e){return this.re.pretest.test(e)},ee.prototype.testSchemaAt=function(e,n,r){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(e,r,this):0},ee.prototype.match=function(e){var n=0,r=[];this.__index__>=0&&this.__text_cache__===e&&(r.push(Rr(this,n)),n=this.__last_index__);for(var o=n?e.slice(n):e;this.test(o);)r.push(Rr(this,n)),o=o.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},ee.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(),gt(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,gt(this),this)},ee.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},ee.prototype.onCompile=function(){};var Di=ee;const Oe=2147483647,ae=36,Kt=1,Ge=26,qi=38,Ti=700,Nr=72,Lr=128,Or="-",Ri=/^xn--/,Ni=/[^\0-\x7E]/,Li=/[\x2E\u3002\uFF0E\uFF61]/g,Oi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Yt=ae-Kt,le=Math.floor,Qt=String.fromCharCode;function xe(t){throw new RangeError(Oi[t])}function Ii(t,e){const n=[];let r=t.length;for(;r--;)n[r]=e(t[r]);return n}function Ir(t,e){const n=t.split("@");let r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(Li,".");const o=t.split("."),s=Ii(o,e).join(".");return r+s}function Xt(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 Mr=t=>String.fromCodePoint(...t),Mi=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:ae},Br=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},Fr=function(t,e,n){let r=0;for(t=n?le(t/Ti):t>>1,t+=le(t/e);t>Yt*Ge>>1;r+=ae)t=le(t/Yt);return le(r+(Yt+1)*t/(t+qi))},en=function(t){const e=[],n=t.length;let r=0,o=Lr,s=Nr,c=t.lastIndexOf(Or);c<0&&(c=0);for(let i=0;i<c;++i)t.charCodeAt(i)>=128&&xe("not-basic"),e.push(t.charCodeAt(i));for(let i=c>0?c+1:0;i<n;){let a=r;for(let f=1,p=ae;;p+=ae){i>=n&&xe("invalid-input");const h=Mi(t.charCodeAt(i++));(h>=ae||h>le((Oe-r)/f))&&xe("overflow"),r+=h*f;const d=p<=s?Kt:p>=s+Ge?Ge:p-s;if(h<d)break;const y=ae-d;f>le(Oe/y)&&xe("overflow"),f*=y}const l=e.length+1;s=Fr(r-a,l,a==0),le(r/l)>Oe-o&&xe("overflow"),o+=le(r/l),r%=l,e.splice(r++,0,o)}return String.fromCodePoint(...e)},tn=function(t){const e=[];t=Xt(t);let n=t.length,r=Lr,o=0,s=Nr;for(const a of t)a<128&&e.push(Qt(a));let c=e.length,i=c;for(c&&e.push(Or);i<n;){let a=Oe;for(const f of t)f>=r&&f<a&&(a=f);const l=i+1;a-r>le((Oe-o)/l)&&xe("overflow"),o+=(a-r)*l,r=a;for(const f of t)if(f<r&&++o>Oe&&xe("overflow"),f===r){let p=o;for(let h=ae;;h+=ae){const d=h<=s?Kt:h>=s+Ge?Ge:h-s;if(p<d)break;const y=p-d,E=ae-d;e.push(Qt(Br(d+y%E,0))),p=le(y/E)}e.push(Qt(Br(p,0))),s=Fr(o,l,i===c),o=0,++i}++o,++r}return e.join("")},Pr=function(t){return Ir(t,function(e){return Ri.test(e)?en(e.slice(4).toLowerCase()):e})},Ur=function(t){return Ir(t,function(e){return Ni.test(e)?"xn--"+tn(e):e})},Bi=_s(Object.freeze(Object.defineProperty({__proto__:null,decode:en,default:{version:"2.1.0",ucs2:{decode:Xt,encode:Mr},decode:en,encode:tn,toASCII:Ur,toUnicode:Pr},encode:tn,toASCII:Ur,toUnicode:Pr,ucs2decode:Xt,ucs2encode:Mr},Symbol.toStringTag,{value:"Module"})));var Fi={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"โโโโ",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},Pi={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"]}}},Ui={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"]}}},He=F,Vi=st,$i=$s,zi=fc,Gi=zc,Hi=gi,ji=Di,Ee=Te,Vr=Bi,Zi={default:Fi,zero:Pi,commonmark:Ui},Wi=/^(vbscript|javascript|file|data):/,Ji=/^data:image\/(gif|png|jpeg|webp);/;function Ki(t){var e=t.trim().toLowerCase();return Wi.test(e)?!!Ji.test(e):!0}var $r=["http:","https:","mailto:"];function Yi(t){var e=Ee.parse(t,!0);if(e.hostname&&(!e.protocol||$r.indexOf(e.protocol)>=0))try{e.hostname=Vr.toASCII(e.hostname)}catch{}return Ee.encode(Ee.format(e))}function Qi(t){var e=Ee.parse(t,!0);if(e.hostname&&(!e.protocol||$r.indexOf(e.protocol)>=0))try{e.hostname=Vr.toUnicode(e.hostname)}catch{}return Ee.decode(Ee.format(e),Ee.decode.defaultChars+"%")}function te(t,e){if(!(this instanceof te))return new te(t,e);e||He.isString(t)||(e=t||{},t="default"),this.inline=new Hi,this.block=new Gi,this.core=new zi,this.renderer=new $i,this.linkify=new ji,this.validateLink=Ki,this.normalizeLink=Yi,this.normalizeLinkText=Qi,this.utils=He,this.helpers=He.assign({},Vi),this.options={},this.configure(t),e&&this.set(e)}te.prototype.set=function(t){return He.assign(this.options,t),this},te.prototype.configure=function(t){var e=this,n;if(He.isString(t)&&(n=t,t=Zi[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},te.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},te.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},te.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this},te.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},te.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)},te.prototype.parseInline=function(t,e){var n=new this.core.State(t,this,e);return n.inlineMode=!0,this.core.process(n),n.tokens},te.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var Xi=te,ea=Xi;const ta=Bn(ea);var na=u.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 ta((t=this.options)!==null&&t!==void 0?t:{})},render:function(){return u.h("div",{innerHTML:this.content})}});const ra=na;function zr(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)&&zr(n)}),t}class Gr{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function Hr(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ge(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 oa="</span>",jr=t=>!!t.scope,sa=(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 ca{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=Hr(e)}openNode(e){if(!jr(e))return;const n=sa(e.scope,{prefix:this.classPrefix});this.span(n)}closeNode(e){jr(e)&&(this.buffer+=oa)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const Zr=(t={})=>{const e={children:[]};return Object.assign(e,t),e};class nn{constructor(){this.rootNode=Zr(),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=Zr({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=>{nn._collapse(n)}))}}class ia extends nn{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 ca(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function je(t){return t?typeof t=="string"?t:t.source:null}function Wr(t){return ve("(?=",t,")")}function aa(t){return ve("(?:",t,")*")}function la(t){return ve("(?:",t,")?")}function ve(...t){return t.map(n=>je(n)).join("")}function ua(t){const e=t[t.length-1];return typeof e=="object"&&e.constructor===Object?(t.splice(t.length-1,1),e):{}}function rn(...t){return"("+(ua(t).capture?"":"?:")+t.map(r=>je(r)).join("|")+")"}function Jr(t){return new RegExp(t.toString()+"|").exec("").length-1}function fa(t,e){const n=t&&t.exec(e);return n&&n.index===0}const pa=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function on(t,{joinWith:e}){let n=0;return t.map(r=>{n+=1;const o=n;let s=je(r),c="";for(;s.length>0;){const i=pa.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 ha=/\b\B/,Kr="[a-zA-Z]\\w*",sn="[a-zA-Z_]\\w*",Yr="\\b\\d+(\\.\\d+)?",Qr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Xr="\\b(0b[01]+)",da="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",ga=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=ve(e,/.*\b/,t.binary,/\b.*/)),ge({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(n,r)=>{n.index!==0&&r.ignoreMatch()}},t)},Ze={begin:"\\\\[\\s\\S]",relevance:0},ma={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Ze]},ba={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Ze]},_a={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/},mt=function(t,e,n={}){const r=ge({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=rn("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:ve(/[ ]+/,"(",o,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},ka=mt("//","$"),ya=mt("/\\*","\\*/"),wa=mt("#","$"),xa={scope:"number",begin:Yr,relevance:0},Ea={scope:"number",begin:Qr,relevance:0},va={scope:"number",begin:Xr,relevance:0},Aa={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Ze,{begin:/\[/,end:/\]/,relevance:0,contains:[Ze]}]}]},Ca={scope:"title",begin:Kr,relevance:0},Sa={scope:"title",begin:sn,relevance:0},Da={begin:"\\.\\s*"+sn,relevance:0};var bt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:ha,IDENT_RE:Kr,UNDERSCORE_IDENT_RE:sn,NUMBER_RE:Yr,C_NUMBER_RE:Qr,BINARY_NUMBER_RE:Xr,RE_STARTERS_RE:da,SHEBANG:ga,BACKSLASH_ESCAPE:Ze,APOS_STRING_MODE:ma,QUOTE_STRING_MODE:ba,PHRASAL_WORDS_MODE:_a,COMMENT:mt,C_LINE_COMMENT_MODE:ka,C_BLOCK_COMMENT_MODE:ya,HASH_COMMENT_MODE:wa,NUMBER_MODE:xa,C_NUMBER_MODE:Ea,BINARY_NUMBER_MODE:va,REGEXP_MODE:Aa,TITLE_MODE:Ca,UNDERSCORE_TITLE_MODE:Sa,METHOD_GUARD:Da,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()}})}});function qa(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function Ta(t,e){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Ra(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=qa,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Na(t,e){Array.isArray(t.illegal)&&(t.illegal=rn(...t.illegal))}function La(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 Oa(t,e){t.relevance===void 0&&(t.relevance=1)}const Ia=(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=ve(n.beforeMatch,Wr(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},Ma=["of","and","for","in","not","or","if","then","parent","list","value"],Ba="keyword";function eo(t,e,n=Ba){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,eo(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,Fa(a[0],a[1])]})}}function Fa(t,e){return e?Number(e):Pa(t)?0:1}function Pa(t){return Ma.includes(t.toLowerCase())}const to={},Ae=t=>{console.error(t)},no=(t,...e)=>{console.log(`WARN: ${t}`,...e)},Ie=(t,e)=>{to[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),to[`${t}/${e}`]=!0)},_t=new Error;function ro(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+=Jr(e[i-1]);t[n]=c,t[n]._emit=s,t[n]._multi=!0}function Ua(t){if(Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw Ae("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),_t;if(typeof t.beginScope!="object"||t.beginScope===null)throw Ae("beginScope must be object"),_t;ro(t,t.begin,{key:"beginScope"}),t.begin=on(t.begin,{joinWith:""})}}function Va(t){if(Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw Ae("skip, excludeEnd, returnEnd not compatible with endScope: {}"),_t;if(typeof t.endScope!="object"||t.endScope===null)throw Ae("endScope must be object"),_t;ro(t,t.end,{key:"endScope"}),t.end=on(t.end,{joinWith:""})}}function $a(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function za(t){$a(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),Ua(t),Va(t)}function Ga(t){function e(c,i){return new RegExp(je(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+=Jr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const i=this.regexes.map(a=>a[1]);this.matcherRe=e(on(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((p,h)=>h>0&&p!==void 0),f=this.matchIndexes[l];return a.splice(0,l),Object.assign(a,f)}}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,f])=>a.addRule(l,f)),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 f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,l=f.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;[Ta,La,za,Ia].forEach(f=>f(c,i)),t.compilerExtensions.forEach(f=>f(c,i)),c.__beforeBegin=null,[Ra,Na,Oa].forEach(f=>f(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=eo(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=je(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(f){return Ha(f==="self"?c:f)})),c.contains.forEach(function(f){s(f,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=ge(t.classNameAliases||{}),s(t)}function oo(t){return t?t.endsWithParent||oo(t.starts):!1}function Ha(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return ge(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:oo(t)?ge(t,{starts:t.starts?ge(t.starts):null}):Object.isFrozen(t)?ge(t):t}var ja="11.8.0";class Za extends Error{constructor(e,n){super(e),this.name="HTMLInjectionError",this.html=n}}const cn=Hr,so=ge,co=Symbol("nomatch"),Wa=7,io=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:ia};function a(g){return i.noHighlightRe.test(g)}function l(g){let k=g.className+" ";k+=g.parentNode?g.parentNode.className:"";const L=i.languageDetectRe.exec(k);if(L){const B=$(L[1]);return B||(no(s.replace("{}",L[1])),no("Falling back to no-highlight mode for this block.",g)),B?L[1]:"no-highlight"}return k.split(/\s+/).find(B=>a(B)||$(B))}function f(g,k,L){let B="",H="";typeof k=="object"?(B=g,L=k.ignoreIllegals,H=k.language):(Ie("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ie("10.7.0",`Please use highlight(code, options) instead.
|
|
29
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),H=g,B=k),L===void 0&&(L=!0);const Y={code:B,language:H};P("before:highlight",Y);const oe=Y.result?Y.result:p(Y.language,Y.code,L);return oe.code=Y.code,P("after:highlight",oe),oe}function p(g,k,L,B){const H=Object.create(null);function Y(A,q){return A.keywords[q]}function oe(){if(!N.keywords){W.addText(z);return}let A=0;N.keywordPatternRe.lastIndex=0;let q=N.keywordPatternRe.exec(z),O="";for(;q;){O+=z.substring(A,q.index);const U=fe.case_insensitive?q[0].toLowerCase():q[0],K=Y(N,U);if(K){const[he,Ul]=K;if(W.addText(O),O="",H[U]=(H[U]||0)+1,H[U]<=Wa&&(Et+=Ul),he.startsWith("_"))O+=q[0];else{const Vl=fe.classNameAliases[he]||he;ue(q[0],Vl)}}else O+=q[0];A=N.keywordPatternRe.lastIndex,q=N.keywordPatternRe.exec(z)}O+=z.substring(A),W.addText(O)}function wt(){if(z==="")return;let A=null;if(typeof N.subLanguage=="string"){if(!e[N.subLanguage]){W.addText(z);return}A=p(N.subLanguage,z,!0,wo[N.subLanguage]),wo[N.subLanguage]=A._top}else A=d(z,N.subLanguage.length?N.subLanguage:null);N.relevance>0&&(Et+=A.relevance),W.__addSublanguage(A._emitter,A.language)}function Q(){N.subLanguage!=null?wt():oe(),z=""}function ue(A,q){A!==""&&(W.startScope(q),W.addText(A),W.endScope())}function bo(A,q){let O=1;const U=q.length-1;for(;O<=U;){if(!A._emit[O]){O++;continue}const K=fe.classNameAliases[A[O]]||A[O],he=q[O];K?ue(he,K):(z=he,oe(),z=""),O++}}function _o(A,q){return A.scope&&typeof A.scope=="string"&&W.openNode(fe.classNameAliases[A.scope]||A.scope),A.beginScope&&(A.beginScope._wrap?(ue(z,fe.classNameAliases[A.beginScope._wrap]||A.beginScope._wrap),z=""):A.beginScope._multi&&(bo(A.beginScope,q),z="")),N=Object.create(A,{parent:{value:N}}),N}function ko(A,q,O){let U=fa(A.endRe,O);if(U){if(A["on:end"]){const K=new Gr(A);A["on:end"](q,K),K.isMatchIgnored&&(U=!1)}if(U){for(;A.endsParent&&A.parent;)A=A.parent;return A}}if(A.endsWithParent)return ko(A.parent,q,O)}function Il(A){return N.matcher.regexIndex===0?(z+=A[0],1):(hn=!0,0)}function Ml(A){const q=A[0],O=A.rule,U=new Gr(O),K=[O.__beforeBegin,O["on:begin"]];for(const he of K)if(he&&(he(A,U),U.isMatchIgnored))return Il(q);return O.skip?z+=q:(O.excludeBegin&&(z+=q),Q(),!O.returnBegin&&!O.excludeBegin&&(z=q)),_o(O,A),O.returnBegin?0:q.length}function Bl(A){const q=A[0],O=k.substring(A.index),U=ko(N,A,O);if(!U)return co;const K=N;N.endScope&&N.endScope._wrap?(Q(),ue(q,N.endScope._wrap)):N.endScope&&N.endScope._multi?(Q(),bo(N.endScope,A)):K.skip?z+=q:(K.returnEnd||K.excludeEnd||(z+=q),Q(),K.excludeEnd&&(z=q));do N.scope&&W.closeNode(),!N.skip&&!N.subLanguage&&(Et+=N.relevance),N=N.parent;while(N!==U.parent);return U.starts&&_o(U.starts,A),K.returnEnd?0:q.length}function Fl(){const A=[];for(let q=N;q!==fe;q=q.parent)q.scope&&A.unshift(q.scope);A.forEach(q=>W.openNode(q))}let xt={};function yo(A,q){const O=q&&q[0];if(z+=A,O==null)return Q(),0;if(xt.type==="begin"&&q.type==="end"&&xt.index===q.index&&O===""){if(z+=k.slice(q.index,q.index+1),!o){const U=new Error(`0 width match regex (${g})`);throw U.languageName=g,U.badRule=xt.rule,U}return 1}if(xt=q,q.type==="begin")return Ml(q);if(q.type==="illegal"&&!L){const U=new Error('Illegal lexeme "'+O+'" for mode "'+(N.scope||"<unnamed>")+'"');throw U.mode=N,U}else if(q.type==="end"){const U=Bl(q);if(U!==co)return U}if(q.type==="illegal"&&O==="")return 1;if(pn>1e5&&pn>q.index*3)throw new Error("potential infinite loop, way more iterations than matches");return z+=O,O.length}const fe=$(g);if(!fe)throw Ae(s.replace("{}",g)),new Error('Unknown language: "'+g+'"');const Pl=Ga(fe);let fn="",N=B||Pl;const wo={},W=new i.__emitter(i);Fl();let z="",Et=0,Ce=0,pn=0,hn=!1;try{if(fe.__emitTokens)fe.__emitTokens(k,W);else{for(N.matcher.considerAll();;){pn++,hn?hn=!1:N.matcher.considerAll(),N.matcher.lastIndex=Ce;const A=N.matcher.exec(k);if(!A)break;const q=k.substring(Ce,A.index),O=yo(q,A);Ce=A.index+O}yo(k.substring(Ce))}return W.finalize(),fn=W.toHTML(),{language:g,value:fn,relevance:Et,illegal:!1,_emitter:W,_top:N}}catch(A){if(A.message&&A.message.includes("Illegal"))return{language:g,value:cn(k),illegal:!0,relevance:0,_illegalBy:{message:A.message,index:Ce,context:k.slice(Ce-100,Ce+100),mode:A.mode,resultSoFar:fn},_emitter:W};if(o)return{language:g,value:cn(k),illegal:!1,relevance:0,errorRaised:A,_emitter:W,_top:N};throw A}}function h(g){const k={value:cn(g),illegal:!1,relevance:0,_top:c,_emitter:new i.__emitter(i)};return k._emitter.addText(g),k}function d(g,k){k=k||i.languages||Object.keys(e);const L=h(g),B=k.filter($).filter(b).map(Q=>p(Q,g,!1));B.unshift(L);const H=B.sort((Q,ue)=>{if(Q.relevance!==ue.relevance)return ue.relevance-Q.relevance;if(Q.language&&ue.language){if($(Q.language).supersetOf===ue.language)return 1;if($(ue.language).supersetOf===Q.language)return-1}return 0}),[Y,oe]=H,wt=Y;return wt.secondBest=oe,wt}function y(g,k,L){const B=k&&n[k]||L;g.classList.add("hljs"),g.classList.add(`language-${B}`)}function E(g){let k=null;const L=l(g);if(a(L))return;if(P("before:highlightElement",{el:g,language:L}),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 Za("One of your code blocks includes unescaped HTML.",g.innerHTML);k=g;const B=k.textContent,H=L?f(B,{language:L,ignoreIllegals:!0}):d(B);g.innerHTML=H.value,y(g,L,H.language),g.result={language:H.language,re:H.relevance,relevance:H.relevance},H.secondBest&&(g.secondBest={language:H.secondBest.language,relevance:H.secondBest.relevance}),P("after:highlightElement",{el:g,result:H,text:B})}function D(g){i=so(i,g)}const C=()=>{T(),Ie("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function w(){T(),Ie("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let S=!1;function T(){if(document.readyState==="loading"){S=!0;return}document.querySelectorAll(i.cssSelector).forEach(E)}function R(){S&&T()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function x(g,k){let L=null;try{L=k(t)}catch(B){if(Ae("Language definition for '{}' could not be registered.".replace("{}",g)),o)Ae(B);else throw B;L=c}L.name||(L.name=g),e[g]=L,L.rawDefinition=k.bind(null,t),L.aliases&&m(L.aliases,{languageName:g})}function v(g){delete e[g];for(const k of Object.keys(n))n[k]===g&&delete n[k]}function V(){return Object.keys(e)}function $(g){return g=(g||"").toLowerCase(),e[g]||e[n[g]]}function m(g,{languageName:k}){typeof g=="string"&&(g=[g]),g.forEach(L=>{n[L.toLowerCase()]=k})}function b(g){const k=$(g);return k&&!k.disableAutodetect}function M(g){g["before:highlightBlock"]&&!g["before:highlightElement"]&&(g["before:highlightElement"]=k=>{g["before:highlightBlock"](Object.assign({block:k.el},k))}),g["after:highlightBlock"]&&!g["after:highlightElement"]&&(g["after:highlightElement"]=k=>{g["after:highlightBlock"](Object.assign({block:k.el},k))})}function G(g){M(g),r.push(g)}function _(g){const k=r.indexOf(g);k!==-1&&r.splice(k,1)}function P(g,k){const L=g;r.forEach(function(B){B[L]&&B[L](k)})}function I(g){return Ie("10.7.0","highlightBlock will be removed entirely in v12.0"),Ie("10.7.0","Please use highlightElement now."),E(g)}Object.assign(t,{highlight:f,highlightAuto:d,highlightAll:T,highlightElement:E,highlightBlock:I,configure:D,initHighlighting:C,initHighlightingOnLoad:w,registerLanguage:x,unregisterLanguage:v,listLanguages:V,getLanguage:$,registerAliases:m,autoDetection:b,inherit:so,addPlugin:G,removePlugin:_}),t.debugMode=function(){o=!1},t.safeMode=function(){o=!0},t.versionString=ja,t.regex={concat:ve,lookahead:Wr,either:rn,optional:la,anyNumberOfTimes:aa};for(const g in bt)typeof bt[g]=="object"&&zr(bt[g]);return Object.assign(t,bt),t},Me=io({});Me.newInstance=()=>io({});var Ja=Me;Me.HighlightJS=Me,Me.default=Me;const kt=Bn(Ja),an=u.defineComponent({__name:"Message",props:{message:{type:Object,required:!0}},setup(t){const e=t,{message:n}=u.toRefs(e),r=u.computed(()=>({"chat-message-from-user":n.value.sender==="user","chat-message-from-bot":n.value.sender==="bot"})),o={highlight(s,c){if(c&&kt.getLanguage(c))try{return kt.highlight(s,{language:c}).value}catch{}return""}};return(s,c)=>(u.openBlock(),u.createElementBlock("div",{class:u.normalizeClass(["chat-message",r.value])},[u.renderSlot(s.$slots,"default",{},()=>[u.createVNode(u.unref(ra),{class:"chat-message-markdown",source:u.unref(n).text,options:o},null,8,["source"])])],2))}}),bH="",Ka=u.createElementVNode("div",{class:"chat-message-typing-body"},[u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"}),u.createElementVNode("span",{class:"chat-message-typing-circle"})],-1),Ya=u.defineComponent({__name:"MessageTyping",props:{animation:{type:String,default:"bouncing"}},setup(t){const e=t,n={id:"typing",text:"",sender:"bot",createdAt:""},r=u.computed(()=>({"chat-message-typing":!0,[`chat-message-typing-animation-${e.animation}`]:!0}));return(o,s)=>(u.openBlock(),u.createBlock(u.unref(an),{class:u.normalizeClass(r.value),message:n},{default:u.withCtx(()=>[Ka]),_:1},8,["class"]))}}),_H="";var yt,Qa=new Uint8Array(16);function Xa(){if(!yt&&(yt=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!yt))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return yt(Qa)}const el=/^(?:[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 tl(t){return typeof t=="string"&&el.test(t)}for(var Z=[],ln=0;ln<256;++ln)Z.push((ln+256).toString(16).substr(1));function nl(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Z[t[e+0]]+Z[t[e+1]]+Z[t[e+2]]+Z[t[e+3]]+"-"+Z[t[e+4]]+Z[t[e+5]]+"-"+Z[t[e+6]]+Z[t[e+7]]+"-"+Z[t[e+8]]+Z[t[e+9]]+"-"+Z[t[e+10]]+Z[t[e+11]]+Z[t[e+12]]+Z[t[e+13]]+Z[t[e+14]]+Z[t[e+15]]).toLowerCase();if(!tl(n))throw TypeError("Stringified UUID is invalid");return n}function We(t,e,n){t=t||{};var r=t.random||(t.rng||Xa)();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 nl(r)}async function rl(){return""}async function ao(...t){var r;const e=await rl();return await(await fetch(t[0],{...t[1],mode:"cors",cache:"no-cache",headers:{...e?{authorization:`Bearer ${e}`}:{},...(r=t[1])==null?void 0:r.headers}})).json()}async function lo(t,e={},n={}){let r=t;return Object.keys(e).length>0&&(r=`${r}?${new URLSearchParams(e).toString()}`),ao(r,{...n,method:"GET"})}async function uo(t,e={},n={}){return ao(t,{...n,method:"POST",body:JSON.stringify(e)})}async function ol(t,e){var r,o;return(((r=e.webhookConfig)==null?void 0:r.method)==="POST"?uo:lo)(`${e.webhookUrl}`,{action:"loadPreviousSession",sessionId:t},{headers:(o=e.webhookConfig)==null?void 0:o.headers})}async function sl(t,e,n){var o,s;return(((o=n.webhookConfig)==null?void 0:o.method)==="POST"?uo:lo)(`${n.webhookUrl}`,{action:"sendMessage",sessionId:e,message:t},{headers:(s=n.webhookConfig)==null?void 0:s.headers})}const un=Ko("chat",()=>{const{options:t}=Ve(),e=u.ref([]),n=u.ref(null),r=u.ref(!1),o=u.computed(()=>(t.initialMessages??[]).map(a=>({id:We(),text:a,sender:"bot",createdAt:new Date().toISOString()})));async function s(a){const l={id:We(),text:a,sender:"user",createdAt:new Date().toISOString()};e.value.push(l),r.value=!0,u.nextTick(()=>{ke.emit("scrollToBottom")});const f=await sl(a,n.value,t),p={id:We(),text:f.output,sender:"bot",createdAt:new Date().toISOString()};e.value.push(p),r.value=!1,u.nextTick(()=>{ke.emit("scrollToBottom")})}async function c(){const a=localStorage.getItem(In)??We(),l=await ol(a,t),f=new Date().toISOString();return e.value=((l==null?void 0:l.data)||[]).map((p,h)=>({id:`${h}`,text:p.kwargs.content,sender:p.id.includes("HumanMessage")?"user":"bot",createdAt:f})),e.value.length&&(n.value=a),a}async function i(){n.value=We(),localStorage.setItem(In,n.value)}return{initialMessages:o,messages:e,currentSessionId:n,waitingForResponse:r,loadPreviousSession:c,startNewSession:i,sendMessage:s}}),cl={class:"chat-messages-list"},il=u.defineComponent({__name:"MessagesList",props:{messages:{type:Array,required:!0}},setup(t){const e=un(),{initialMessages:n,waitingForResponse:r}=Ln(e);return(o,s)=>(u.openBlock(),u.createElementBlock("div",cl,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(u.unref(n),c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(t.messages,c=>(u.openBlock(),u.createBlock(an,{key:c.id,message:c},null,8,["message"]))),128)),u.unref(r)?(u.openBlock(),u.createBlock(Ya,{key:0})):u.createCommentVNode("",!0)]))}}),kH="",al={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},ll=[u.createElementVNode("path",{fill:"currentColor",d:"m2 21l21-9L2 3v7l15 2l-15 2v7Z"},null,-1)];function ul(t,e){return u.openBlock(),u.createElementBlock("svg",al,ll)}const fl={name:"mdi-send",render:ul},pl={class:"chat-input"},hl=["placeholder","onKeydown"],dl=["disabled"],gl=u.defineComponent({__name:"Input",setup(t){const e=un(),{waitingForResponse:n}=Ln(e),{t:r}=tt(),o=u.ref(""),s=u.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)=>(u.openBlock(),u.createElementBlock("div",pl,[u.withDirectives(u.createElementVNode("textarea",{"onUpdate:modelValue":l[0]||(l[0]=f=>o.value=f),rows:"1",placeholder:u.unref(r)("inputPlaceholder"),onKeydown:u.withKeys(i,["enter"])},null,40,hl),[[u.vModelText,o.value]]),u.createElementVNode("button",{disabled:s.value,class:"chat-input-send-button",onClick:c},[u.createVNode(u.unref(fl),{height:"32",width:"32"})],8,dl)]))}}),wH="",fo=u.defineComponent({__name:"Chat",setup(t){const{options:e}=Ve(),{t:n,te:r}=tt(),o=un(),{messages:s,currentSessionId:c}=u.toRefs(o),i=u.computed(()=>!!e.poweredBy||r("footer")||!!c.value);async function a(){await o.loadPreviousSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}async function l(){o.startNewSession(),u.nextTick(()=>{ke.emit("scrollToBottom")})}return u.onMounted(()=>{a()}),(f,p)=>(u.openBlock(),u.createBlock(cs,{class:"chat-wrapper"},u.createSlots({default:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(il,{key:1,messages:u.unref(s)},null,8,["messages"])):(u.openBlock(),u.createBlock(ls,{key:0,"onClick:button":l}))]),_:2},[u.unref(c)?void 0:{name:"header",fn:u.withCtx(()=>[u.createElementVNode("h1",null,u.toDisplayString(u.unref(n)("title")),1),u.createElementVNode("p",null,u.toDisplayString(u.unref(n)("subtitle")),1)]),key:"0"},i.value?{name:"footer",fn:u.withCtx(()=>[u.unref(c)?(u.openBlock(),u.createBlock(gl,{key:0})):(u.openBlock(),u.createBlock(bs,{key:1}))]),key:"1"}:void 0]),1024))}}),ml={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},bl=[u.createElementVNode("path",{fill:"currentColor",d:"M12 3c5.5 0 10 3.58 10 8s-4.5 8-10 8c-1.24 0-2.43-.18-3.53-.5C5.55 21 2 21 2 21c2.33-2.33 2.7-3.9 2.75-4.5C3.05 15.07 2 13.13 2 11c0-4.42 4.5-8 10-8Z"},null,-1)];function _l(t,e){return u.openBlock(),u.createElementBlock("svg",ml,bl)}const kl={name:"mdi-chat",render:_l},yl={viewBox:"0 0 24 24",width:"1.2em",height:"1.2em"},wl=[u.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 xl(t,e){return u.openBlock(),u.createElementBlock("svg",yl,wl)}const El={name:"mdi-chevron-down",render:xl},vl={class:"chat-window-wrapper"},Al={class:"chat-window"},Cl=u.defineComponent({__name:"ChatWindow",setup(t){const e=u.ref(!1);function n(){e.value=!e.value,e.value&&u.nextTick(()=>{ke.emit("scrollToBottom")})}return(r,o)=>(u.openBlock(),u.createElementBlock("div",vl,[u.createVNode(u.Transition,{name:"chat-window-transition"},{default:u.withCtx(()=>[u.withDirectives(u.createElementVNode("div",Al,[u.createVNode(fo)],512),[[u.vShow,e.value]])]),_:1}),u.createElementVNode("div",{class:"chat-window-toggle",onClick:n},[u.createVNode(u.Transition,{name:"chat-window-toggle-transition",mode:"out-in"},{default:u.withCtx(()=>[e.value?(u.openBlock(),u.createBlock(u.unref(El),{key:1,height:"32",width:"32"})):(u.openBlock(),u.createBlock(u.unref(kl),{key:0,height:"32",width:"32"}))]),_:1})])]))}}),vH="";function Sl(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 po="[A-Za-z$_][0-9A-Za-z$_]*",Dl=["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"],ql=["true","false","null","undefined","NaN","Infinity"],ho=["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"],go=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],mo=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Tl=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Rl=[].concat(mo,ho,go);function Nl(t){const e=t.regex,n=(k,{after:L})=>{const B="</"+k[0].slice(1);return k.input.indexOf(B,L)!==-1},r=po,o={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,L)=>{const B=k[0].length+k.index,H=k.input[B];if(H==="<"||H===","){L.ignoreMatch();return}H===">"&&(n(k,{after:B})||L.ignoreMatch());let Y;const oe=k.input.substring(B);if(Y=oe.match(/^\s*=/)){L.ignoreMatch();return}if((Y=oe.match(/^\s+extends\s+/))&&Y.index===0){L.ignoreMatch();return}}},i={$pattern:po,keyword:Dl,literal:ql,built_in:Rl,"variable.language":Tl},a="[0-9](_?[0-9])*",l=`\\.(${a})`,f="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",p={className:"number",variants:[{begin:`(\\b(${f})((${l})|\\.)?|(${l}))[eE][+-]?(${a})\\b`},{begin:`\\b(${f})\\b((${l})\\b|\\.)?|(${l})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},h={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"xml"}},y={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"css"}},E={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,h],subLanguage:"graphql"}},D={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,h]},w={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]},S=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,{match:/\$\d+/},p];h.contains=S.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(S)});const T=[].concat(w,h.contains),R=T.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(T)}]),x={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:R},v={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"}}]},V={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:{_:[...ho,...go]}},$={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[x],illegal:/%/},b={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function M(k){return e.concat("(?!",k.join("|"),")")}const G={match:e.concat(/\b/,M([...mo,"super","import"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},_={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},P={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},x]},I="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",g={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(I)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[x]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:R,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),$,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,y,E,D,w,{match:/\$\d+/},p,V,{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:[w,t.REGEXP_MODE,{className:"function",begin:I,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:R}]}]},{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"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[x,t.inherit(t.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},_,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[x]},G,b,v,P,{match:/\$[(.]/}]}}const Ll=u.defineComponent({__name:"App",props:{},setup(t){const{options:e}=Ve(),n=u.computed(()=>e.mode==="fullscreen");return u.onMounted(()=>{kt.registerLanguage("xml",Sl),kt.registerLanguage("javascript",Nl)}),(r,o)=>n.value?(u.openBlock(),u.createBlock(u.unref(fo),{key:0})):(u.openBlock(),u.createBlock(u.unref(Cl),{key:1}))}});function Ol(t){var o,s;const e={...Ue,...t,webhookConfig:{...Ue.webhookConfig,...t==null?void 0:t.webhookConfig},i18n:{...Ue.i18n,...t==null?void 0:t.i18n,en:{...(o=Ue.i18n)==null?void 0:o.en,...(s=t==null?void 0:t.i18n)==null?void 0:s.en}},theme:{...Ue.theme,...t==null?void 0:t.theme}},n=e.target??is;typeof n=="string"&&ns(n);const r=u.createApp(Ll);return r.use(jo()),r.provide(Mn,e),r.mount(n),r}me.createChat=Ol,Object.defineProperty(me,Symbol.toStringTag,{value:"Module"})});
|
package/favicon.ico
ADDED
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@n8n/chat",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "./chat.umd.cjs",
|
|
5
|
+
"module": "./chat.js",
|
|
6
|
+
"types": "./types/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"import": "./chat.js",
|
|
10
|
+
"require": "./chat.umd.cjs"
|
|
11
|
+
},
|
|
12
|
+
"./style.css": {
|
|
13
|
+
"import": "./style.css",
|
|
14
|
+
"require": "./style.css"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"highlight.js": "^11.8.0",
|
|
19
|
+
"pinia": "^2.1.4",
|
|
20
|
+
"uuid": "^8.3.2",
|
|
21
|
+
"vue": "^3.3.4",
|
|
22
|
+
"vue-markdown-render": "^2.0.1"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@iconify-json/mdi": "^1.1.54",
|
|
26
|
+
"@rushstack/eslint-patch": "^1.3.2",
|
|
27
|
+
"@storybook/addon-essentials": "^7.4.0",
|
|
28
|
+
"@storybook/addon-interactions": "^7.4.0",
|
|
29
|
+
"@storybook/addon-links": "^7.4.0",
|
|
30
|
+
"@storybook/blocks": "^7.4.0",
|
|
31
|
+
"@storybook/testing-library": "^0.2.0",
|
|
32
|
+
"@storybook/vue3": "^7.4.0",
|
|
33
|
+
"@storybook/vue3-vite": "^7.4.0",
|
|
34
|
+
"@tsconfig/node18": "^18.2.0",
|
|
35
|
+
"@types/jsdom": "^21.1.1",
|
|
36
|
+
"@types/markdown-it": "^12.2.3",
|
|
37
|
+
"@types/node": "^18.17.0",
|
|
38
|
+
"@vitejs/plugin-vue": "^4.2.3",
|
|
39
|
+
"@vue/eslint-config-prettier": "^8.0.0",
|
|
40
|
+
"@vue/eslint-config-typescript": "^11.0.3",
|
|
41
|
+
"@vue/test-utils": "^2.4.1",
|
|
42
|
+
"@vue/tsconfig": "^0.4.0",
|
|
43
|
+
"eslint": "^8.45.0",
|
|
44
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
45
|
+
"jsdom": "^22.1.0",
|
|
46
|
+
"npm-run-all": "^4.1.5",
|
|
47
|
+
"prettier": "^3.0.0",
|
|
48
|
+
"react": "^18.2.0",
|
|
49
|
+
"react-dom": "^18.2.0",
|
|
50
|
+
"shelljs": "^0.8.5",
|
|
51
|
+
"storybook": "^7.4.0",
|
|
52
|
+
"typescript": "~5.1.6",
|
|
53
|
+
"unplugin-icons": "^0.17.0",
|
|
54
|
+
"vite": "^4.4.6",
|
|
55
|
+
"vite-plugin-dts": "^3.6.0",
|
|
56
|
+
"vitest": "^0.33.0",
|
|
57
|
+
"vue-tsc": "^1.8.6"
|
|
58
|
+
},
|
|
59
|
+
"scripts": {
|
|
60
|
+
"dev": "npm run storybook",
|
|
61
|
+
"build": "run-p type-check build:vite && npm run build:prepare",
|
|
62
|
+
"build:vite": "vite build",
|
|
63
|
+
"build:prepare": "node scripts/postbuild.js",
|
|
64
|
+
"build:pack": "node scripts/pack.js",
|
|
65
|
+
"preview": "vite preview",
|
|
66
|
+
"test:unit": "vitest",
|
|
67
|
+
"type-check": "vue-tsc --noEmit -p tsconfig.json --composite false",
|
|
68
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore --ignore-path .eslintignore",
|
|
69
|
+
"format": "prettier --write src/",
|
|
70
|
+
"storybook": "storybook dev -p 6006",
|
|
71
|
+
"build:storybook": "storybook build",
|
|
72
|
+
"release": "npm run build && cd dist && npm publish"
|
|
73
|
+
}
|
|
74
|
+
}
|