UNPKG

@excellens/markdown-notepad

Version:

A simple but extensible markdown editor based on @excellens/elementary.

4 lines (3 loc) 22.6 kB
/*! @excellens/markdown-notepad 1.0.0 https://github.com/excellens/markdown-notepad#readme @license MIT */ var MarkdownNotepad=function(t,e,n){"use strict";function i(t,e){let n=t.querySelector(e);if(null===n)throw"ERR_FIND_ONE";return n}var s=Object.freeze({__proto__:null,FindOne:i,FindAll:function(t,e){let n=t.querySelectorAll(e);if(!1==!!n.length)throw"ERR_FIND_ALL";return n}});function r(){const t=new e.Component.ComponentState;return this.start=0,this.getStart=function(){return this.start},this.setStart=function(t){return this.start=t,this},this.end=0,this.getEnd=function(){return this.end},this.setEnd=function(t){return this.end=t,this},this.direction="none",this.getDirection=function(){return this.direction},this.setDirection=function(t){return this.direction=t,this},e.Base.Merge(this,t)}var o=Object.freeze({__proto__:null,SelectionState:r});function a(t,n,i){const s=function(t,n,i){const s=new c(i);return new e.Component.Component(s,t,"textarea",n)}(t,n,i||new h),r={initialize:s.initialize,destroy:s.destroy};let o=null,a=null,u=null;const l=function(){const t=s.selectionStart,e=s.selectionEnd,n=s.selectionDirection;s.presenter.changeSelection(t,e,n)};return this.initialize=function(){return r.initialize(),s.addEventListener("change",o=function(t){l(),s.presenter.changeValue(s.value)}),s.addEventListener("keyup",a=function(t){l(),s.presenter.changeValue(s.value)}),t.addEventListener("selectionchange",u=function(e){t.activeElement===s&&l()}),this},this.setValue=function(t){return s.value=t,this},this.setSelection=function(t,e,n){return s.selectionStart=t,s.selectionEnd=e,s.selectionDirection=n,this},this.destroy=function(){return r.destroy(),s.removeEventListener("change",o),o=null,s.removeEventListener("keyup",a),a=null,t.removeEventListener("selectionchange",u),u=null,this},e.Base.Merge(this,s)}function c(t){const n=new e.Component.ComponentPresenter(t),i={initialize:n.initialize,destroy:n.destroy};return this.update=function(t,e){if(n.component.setValue(t.getValue()),t.hasSelection()){const e=t.getSelection(),i=e.getStart(),s=e.getEnd(),r=e.getDirection();n.component.setSelection(i,s,r)}},this.initialize=function(t){return this.initializeState(),i.initialize(t),this},this.initializeState=function(){if(!n.state.hasSelection()){const t=new r;n.state.setSelection(t)}return this},this.changeValue=function(t){return n.state.getValue()!==t&&(n.state.setValue(t),n.state.notify()),this},this.changeSelection=function(t,e,i){if(n.state.hasSelection()){const s=n.state.getSelection();s.setStart(t),s.setEnd(e),s.setDirection(i),s.notify()}return this},e.Base.Merge(this,n)}function h(){const t=new e.Component.ComponentState;return this.value="",this.getValue=function(){return this.value},this.setValue=function(t){return this.value=t,this},this.selection=null,this.getSelection=function(){return this.selection},this.setSelection=function(t){return this.selection=t,this},this.hasSelection=function(){return!!this.selection},e.Base.Merge(this,t)}function u(t,n,i){const s=function(t,n,i){const s=new l(i);return new e.Component.Component(s,t,"div",n)}(t,n,i||new f),r={initialize:s.initialize,destroy:s.destroy};let o=null;return this.initialize=function(){return r.initialize(),s.addEventListener("click",o=function(t){s.presenter.changeActive(!0)}),this},this.setActive=function(t){return s.classList.toggle("active",t),this},this.destroy=function(){return r.destroy(),s.removeEventListener("click",o),o=null,this},e.Base.Merge(this,s)}function l(t){const n=new e.Component.ComponentPresenter(t);return this.update=function(t,e){if(n.component.setActive(t.isActive()),t.hasPane()){let e=t.getPane();e.setActive(t.isActive()),e.notify()}},this.changeActive=function(t){return n.state.setActive(t),n.state.notify(),this},e.Base.Merge(this,n)}function f(){const t=new e.Component.ComponentState;return this.name="tab",this.getName=function(){return this.name},this.setName=function(t){return this.name=t,this},this.active=!1,this.isActive=function(){return this.active},this.setActive=function(t){return this.active=t,this},this.pane=null,this.getPane=function(){return this.pane},this.setPane=function(t){return this.pane=t,this},this.hasPane=function(){return!!this.pane},e.Base.Merge(this,t)}var d=Object.freeze({__proto__:null,Textarea:a,TextareaPresenter:c,TextareaState:h,Tab:u,TabPresenter:l,TabState:f});function g(t,n){return this.id=n,this.template=null,this.initialize=function(t){this.initializeTemplate(),t.innerHTML=this.template;const e=this.id;return t.classList.add(`theme-${e}`),this},this.initializeTemplate=function(){const e=this.id,n=i(t,`script[type="theme/markdown-notepad"]#${e}`);return this.template=n.innerHTML,this},this.destroy=function(){return this.template=null,this},e.Base.Merge(this,{})}var w=Object.freeze({__proto__:null,Theme:g});function m(t,n,i){const s=function(t,n,i){const s=new p(i);return new e.Component.Component(s,t,"div",n)}(t,n,i||new v);return this.setActive=function(t){return s.classList.toggle("active",t),this},e.Base.Merge(this,s)}function p(t){const n=new e.Component.ComponentPresenter(t);return this.update=function(t,e){n.component.setActive(t.isActive())},e.Base.Merge(this,n)}function v(){const t=new e.Component.ComponentState;return this.name="tab-pane",this.getName=function(){return this.name},this.setName=function(t){return this.name=t,this},this.active=!1,this.isActive=function(){return this.active},this.setActive=function(t){return this.active=t,this},e.Base.Merge(this,t)}function b(t,n,i){const s=function(t,n,i){const s=new C(i);return new e.Component.Component(s,t,"button",n)}(t,n,i||new x),r={initialize:s.initialize,destroy:s.destroy};let o=null,a=null;return this.initialize=function(){return r.initialize(),s.addEventListener("mousedown",o=function(t){s.presenter.changeClick(!0)}),s.addEventListener("mouseup",a=function(t){s.presenter.changeClick(!1)}),this},this.setActive=function(t){return s.classList.toggle("active",t),this},this.destroy=function(){return r.destroy(),s.removeEventListener("mousedown",o),o=null,s.removeEventListener("mouseup",a),a=null,this},e.Base.Merge(this,s)}function C(t){const n=new e.Component.ComponentPresenter(t);return this.update=function(t,e){n.component.setActive(t.isActive())},this.changeClick=function(t){return this},e.Base.Merge(this,n)}function x(){const t=new e.Component.ComponentState;return this.name="button",this.getName=function(){return this.name},this.setName=function(t){return this.name=t,this},this.active=!1,this.isActive=function(){return this.active},this.setActive=function(t){return this.active=t,this},e.Base.Merge(this,t)}function y(t,n,i){const s=function(t,n,i){const s=new T(i);return new e.Component.Component(s,t,"div",n)}(t,n,i||new _);return this.setValue=function(t){return s.innerHTML=t,this},e.Base.Merge(this,s)}function T(t){const n=new e.Component.ComponentPresenter(t);return this.update=function(t,e){n.component.setValue(t.getValue())},e.Base.Merge(this,n)}function _(){const t=new e.Component.ComponentState;return this.value="",this.getValue=function(){return this.value},this.setValue=function(t){return this.value=t,this},e.Base.Merge(this,t)}function z(){return this.process=function(t){throw"ERR_ENGINE_PROCESS"},e.Base.Merge(this,{})}function A(){const t=new z;return this.md=new n.Instance,this.process=function(t){return this.md.render(t)},e.Base.Merge(this,t)}var M=Object.freeze({__proto__:null,Engine:z,EngineMd:A});function S(){return this.commit=function(t,e){throw"ERR_TRANSACTION_COMMIT"},this.rollback=function(t,e){throw"ERR_TRANSACTION_ROLLBACK"},e.Base.Merge(this,{})}function E(){const t=new S;return this.commit=function(t,e){return e.setValue(t.getValue()),e.hasSelection()&&this.commitSelection(t,e.getSelection()),e.notify(),this},this.commitSelection=function(t,e){return e.setStart(t.start),e.setEnd(t.end),e.notify(),this},this.rollback=function(t,e){const n=e.getValue();return e.hasSelection()?this.rollbackSelection(t,e.getSelection()):(t.start=n.length,t.end=n.length),t.before=n.substring(void 0,t.start),t.inside=n.substring(t.start,t.end),t.after=n.substring(t.end,void 0),this},this.rollbackSelection=function(t,e){return t.start=e.getStart(),t.end=e.getEnd(),this},e.Base.Merge(this,t)}var k=Object.freeze({__proto__:null,Transaction:S,TextareaTransaction:E});function B(){return this.state=null,this.initialize=function(){if(!1==!!this.state)throw"ERR_SNAPSHOT_INITIALIZE";return this.rollback(),this},this.attach=function(t){return this.state=t,this},this.detach=function(){return this.state=null,this},this.rollback=function(){throw"ERR_SNAPSHOT_ROLLBACK"},this.commit=function(){throw"ERR_SNAPSHOT_COMMIT"},this.destroy=function(){if(!0==!!this.state)throw"ERR_SNAPSHOT_DESTROY";return this},e.Base.Merge(this,{})}function L(t){const n=new B,i={initialize:n.initialize,destroy:n.destroy};return this.transaction=t,this.start=0,this.end=0,this.before=null,this.inside=null,this.after=null,this.getValue=function(){return this.before+this.inside+this.after},this.initialize=function(t){return n.attach(t),i.initialize()},this.commit=function(){return this.transaction.commit(this,n.state),this},this.rollback=function(){return this.transaction.rollback(this,n.state),this},this.destroy=function(){return n.detach(),this.start=0,this.end=0,this.before=null,this.inside=null,this.after=null,i.destroy()},e.Base.Merge(this,n)}var P=Object.freeze({__proto__:null,Snapshot:B,TextSnapshot:L,Transaction:k});function N(t){return this.handle=!0==!!t?t:function(t){throw"ERR_ACTION_HANDLE"},e.Base.Merge(this,{})}function R(t){const n=new N(null);return this.name=t,this.handle=function(t){if(t.tab.has(this.name)){const e=t.tab.get(this.name);e.setActive(!0),e.notify()}return this},e.Base.Merge(this,n)}function O(){const t=new R("write");return e.Base.Merge(this,t)}function I(){const t=new R("preview");return e.Base.Merge(this,t)}function V(){const t=new N(null);return this.handle=function(t){return this.change(t.history),this.update(t.history,t)},this.change=function(t){throw"ERR_ACTION_HISTORY_CHANGE"},this.update=function(t,e){if(t.hasCurrent()&&e.hasTextarea()){const n=t.getCurrent();n.attach(e.getTextarea()),n.commit(),n.detach()}return this},e.Base.Merge(this,t)}function H(){const t=new V;return this.change=function(t){return t.moveForward(),this},e.Base.Merge(this,t)}function j(){const t=new V;return this.change=function(t){return t.moveBackward(),this},e.Base.Merge(this,t)}function D(){const t=new N(null),n=new L(new E);return this.handle=function(t){return t.hasTextarea()&&(n.initialize(t.getTextarea()),this.check(t,n)?this.delete(t,n):this.insert(t,n),n.commit(),n.destroy()),this},this.check=function(t,e){throw"ERR_ACTION_TEXT_CHECK"},this.insert=function(t,e){throw"ERR_ACTION_TEXT_INSERT"},this.delete=function(t,e){throw"ERR_ACTION_TEXT_DELETE"},e.Base.Merge(this,t)}function F(t,n){const i=new D;return this.prefix=t,this.suffix=n,this.check=function(t,e){return e.before.endsWith(i.prefix)&&e.after.startsWith(i.suffix)},this.insert=function(t,e){return e.before=e.before+this.prefix,e.after=this.suffix+e.after,e.start=e.start+this.prefix.length,e.end=e.end+this.prefix.length,this},this.delete=function(t,e){return e.before=e.before.substring(void 0,e.before.length-this.prefix.length),e.after=e.after.substring(void 0,e.after.length-this.suffix.length),e.start=e.start-this.prefix.length,e.end=e.end-this.prefix.length,this},e.Base.Merge(this,i)}function K(t){const n=new F(t,"");return e.Base.Merge(this,n)}function $(t){const n=new K(t),i={insert:n.insert,delete:n.delete};return this.insert=function(t,e){const n="\n";return 0<e.before.length&&!e.before.endsWith(n)&&(e.before=e.before+n,e.start=e.start+n.length,e.end=e.end+n.length),i.insert(t,e)},e.Base.Merge(this,n)}function q(){const t=new K("### ");return e.Base.Merge(this,t)}function W(){const t=new F("**","**");return e.Base.Merge(this,t)}function X(){const t=new F("_","_");return e.Base.Merge(this,t)}function G(){const t=new $("> ");return e.Base.Merge(this,t)}function Y(){const t=new F("`","`");return e.Base.Merge(this,t)}function Q(){const t=new F("[","]"),n={insert:t.insert,delete:t.delete};return this.check=function(t,e){return!1},this.insert=function(e,i){return i.after="(url)"+i.after,0<i.inside.length&&(i.start=i.end+t.suffix.length+"(".length,i.end=i.end+t.suffix.length+"(".length+"url".length),n.insert(e,i)},this.delete=function(t,e){return n.delete(t,e)},e.Base.Merge(this,t)}function U(){const t=new $("- ");return e.Base.Merge(this,t)}function Z(){const t=new $("1. ");return e.Base.Merge(this,t)}N.registry=new e.Collection.CollectionMap,N.registry.add("tab-write",new O),N.registry.add("tab-preview",new I),N.registry.add("history-forward",new H),N.registry.add("history-backward",new j),N.registry.add("text-headline",new q),N.registry.add("text-bold",new W),N.registry.add("text-italic",new X),N.registry.add("text-quote",new G),N.registry.add("text-code",new Y),N.registry.add("text-link",new Q),N.registry.add("text-ul",new U),N.registry.add("text-ol",new Z);var J=Object.freeze({__proto__:null,Action:N,ActionTab:R,ActionTabWrite:O,ActionTabPreview:I,ActionHistory:V,ActionHistoryForward:H,ActionHistoryBackward:j,ActionText:D,ActionTextWrap:F,ActionTextPrefix:K,ActionTextPrefixLine:$,ActionTextHeadline:q,ActionTextBold:W,ActionTextItalic:X,ActionTextQuote:G,ActionTextCode:Y,ActionTextLink:Q,ActionTextUl:U,ActionTextOl:Z,Snapshot:P});function tt(){const t=new e.Collection.Collection,n={add:t.add};return this.index=0,this.getIndex=function(){return this.index},this.setIndex=function(e){0>e&&(e=0);const n=t.size();return e>=n&&(e=n-1),this.index=e,this},this.modifyIndex=function(t){return this.setIndex(this.getIndex()+t),this},this.moveForward=function(){return this.modifyIndex(1)},this.moveBackward=function(){return this.modifyIndex(-1)},this.getCurrent=function(){return t.get(this.getIndex())},this.hasCurrent=function(){return t.has(this.getIndex())},this.add=function(e,i){for(;this.getIndex()<t.size()-1;)t.pop();return n.add(e,i)},e.Base.Merge(this,t)}var et=Object.freeze({__proto__:null,History:tt});function nt(){return this.theme="default",this.getTheme=function(){return this.theme},this.setTheme=function(t){return this.theme=t,this},this.tab=new e.Collection.Collection,this.button=new e.Collection.CollectionMap,this.key=new e.Collection.CollectionMap,e.Base.Merge(this,{})}var it=Object.freeze({__proto__:null,Configuration:nt});function st(t){const n=new e.Component.ComponentPresenter(t),i={initialize:n.initialize,destroy:n.destroy};this.update=function(t,e){},this.engine=null;let s=null,r=null,o=null,a=null;return this.action=new e.Collection.CollectionMap,this.configuration=null,this.getConfiguration=function(){return this.configuration},this.setConfiguration=function(t){return this.configuration=t,this},this.hasConfiguration=function(){return!!this.configuration},this.fresh=!1,this.initialize=function(t){return this.engine=new A,r=new e.Observe.Callback("TabChange",(function(t,e){t.isActive()&&n.state.tab.each((function(e,n){t.getName()!==e.getName()&&(e.setActive(!1),e.notify())}))})),o=new e.Observe.Callback("Mirror",(function(t,e){if(n.state.hasPreview()){let e=t.getValue();e=n.engine.process(e);let i=n.state.getPreview();i.setValue(e),i.notify()}})),a=new e.Observe.Callback("History",(function(t,e){const i=function(t){!0==!!s&&clearTimeout(s),s=setTimeout((function(){const e=new L(new E);e.attach(t.getTextarea()),e.rollback(),t.history.add(e),t.history.moveForward(),e.detach()}),1e3)};if(n.state.history.hasCurrent()){const e=n.state.history.getCurrent();t.getValue()!==e.getValue()&&i(n.state)}else i(n.state)})),i.initialize(t),this.initializeState(),this},this.initializeState=function(){this.fresh=n.state.isFresh(),n.state.setFresh(!1);const t=this.getConfiguration();t.tab.each((function(t,e){const i=!1==!!e;n.initializeTab(t,i)})),t.button.each((function(t,e){n.initializeButton(e,t)})),t.key.each((function(t,e){n.initializeAction(e,t,!0)})),this.initializeTextarea(),this.initializePreview()},this.initializeTab=function(t,e){const i=`tab-${t}`;let s;if(n.state.tab.has(i))s=n.state.tab.get(i);else{const o=function(t,e){const n=`tab-pane-${t}`,i=new v;return i.setName(n),i.setActive(e),i}(t,e);s=new f,s.setName(i),s.setActive(e),s.setPane(o),n.state.tab.add(i,s),s.attachCallback(r)}return n.component.initializeTab(s),this},this.initializeTextarea=function(){let t;return n.state.hasTextarea()?t=n.state.getTextarea():(t=new h,t.setValue(""),t.setSelection(null),t.attachCallback(o),t.attachCallback(a),n.state.setTextarea(t)),n.component.initializeTextarea(t),this},this.initializePreview=function(){let t;return n.state.hasPreview()?t=n.state.getPreview():(t=new _,t.setValue(""),n.state.setPreview(t)),n.component.initializePreview(t),this},this.initializeButton=function(t,e){const i=`button-${t}`;let s;return n.state.button.has(i)?s=n.state.button.get(i):(s=new x,s.setName(i),n.state.button.add(i,s)),this.initializeAction(i,e,!0),n.component.initializeButton(s),this},this.initializeAction=function(t,e,n){if(void 0===n&&(n=!0),N.registry.has(e)){const n=N.registry.get(e);this.action.add(t,n)}else if(n)throw"ERR_ACTION";return this},this.triggerAction=function(t,e){if(void 0===e&&(e=!0),this.action.has(t)){this.action.get(t).handle(n.state)}else if(e)throw"ERR_ACTION";return this},this.destroy=function(){if(i.destroy(),this.fresh&&(n.state.tab.each((function(t,e){t.detachCallback(r)})),n.state.tab.clear()),s=null,r=null,this.fresh&&n.state.hasTextarea()){let t=n.state.getTextarea();t.detachCallback(o),t.detachCallback(a),n.state.setTextarea(null)}o=null,a=null,this.fresh&&n.state.hasPreview()&&n.state.setPreview(null),this.action.clear(),this.fresh&&n.state.button.clear(),this.engine=null,this.configuration=null,this.fresh=!1},e.Base.Merge(this,n)}function rt(){const t=new e.Component.ComponentState;return this.fresh=!0,this.isFresh=function(){return this.fresh},this.setFresh=function(t){return this.fresh=t,this},this.tab=new e.Collection.CollectionMap,this.textarea=null,this.getTextarea=function(){return this.textarea},this.setTextarea=function(t){return this.textarea=t,this},this.hasTextarea=function(){return!!this.textarea},this.preview=null,this.getPreview=function(){return this.preview},this.setPreview=function(t){return this.preview=t,this},this.hasPreview=function(){return!!this.preview},this.button=new e.Collection.CollectionMap,this.history=new tt,e.Base.Merge(this,t)}var ot=Object.freeze({__proto__:null,MarkdownNotepad:function(t,n,s){const r=function(t,n,i){const s=new st(i);return new e.Component.Component(s,t,"div",n)}(t,n,s||new rt),o={initialize:r.initialize,destroy:r.destroy};this.theme=null,this.tab=new e.Collection.CollectionMap,this.tabPane=new e.Collection.CollectionMap;let c=null,h=null,l=null;this.textarea=null,this.preview=null;let f=new e.Collection.CollectionMap,d=new e.Collection.CollectionMap;return this.button=new e.Collection.CollectionMap,this.getConfigurationDefault=function(){const t=new nt;return t.tab.add("write"),t.tab.add("preview"),t.button.add("text-headline","text-headline"),t.button.add("text-bold","text-bold"),t.button.add("text-italic","text-italic"),t.button.add("text-quote","text-quote"),t.button.add("text-code","text-code"),t.button.add("text-link","text-link"),t.button.add("text-ul","text-ul"),t.button.add("text-ol","text-ol"),t.button.add("history-forward","history-forward"),t.button.add("history-backward","history-backward"),t.key.add("ctrl+shift+z","history-forward"),t.key.add("ctrl+z","history-backward"),t},this.initialize=function(e){return!1==!!e&&(e=this.getConfigurationDefault()),r.setAttribute("data-component","markdown-notepad"),r.classList.add("markdown-notepad"),this.theme=new g(t,e.getTheme()),!1==!!n&&this.theme.initialize(this),r.presenter.setConfiguration(e),o.initialize(),this},this.initializeTab=function(e){let n=e.getName(),s=new u(t,i(r,`div[data-component="markdown-notepad.tab.${n}"]`),e);return s.initialize(),s.classList.add("tab",n),r.tab.add(n,s),this.initializeTabPane(e.getPane()),this},this.initializeTabPane=function(e){let n=e.getName(),s=new m(t,i(r,`div[data-component="markdown-notepad.tab-pane.${n}"]`),e);return s.initialize(),s.classList.add("tab-pane",n),r.tabPane.add(n,s),this},this.initializeTextarea=function(e){let n=new a(t,i(r,'textarea[data-component="markdown-notepad.textarea"]'),e);return n.initialize(),n.classList.add("markdown-textarea"),n.addEventListener("keydown",c=function(t){if(t.ctrlKey||t.altKey){const e=[t.ctrlKey?"ctrl":"",t.altKey?"alt":"",t.shiftKey?"shift":"",t.key.toLowerCase()].filter((function(t,e,n){return 0!==t.length})).join("+");try{r.presenter.triggerAction(e,!0),t.preventDefault()}catch(t){if("ERR_ACTION"!==t)throw t}}}),n.addEventListener("contextmenu",l=function(t){t.preventDefault()}),this.textarea=n,this},this.initializePreview=function(e){const n=new y(t,i(r,'div[data-component="markdown-notepad.preview"]'),e);return n.initialize(),n.classList.add("markdown-preview"),this.preview=n,this},this.initializeButton=function(e){let n=e.getName();const s=new b(t,i(r,`button[data-component="markdown-notepad.button.${n}"]`),e);s.initialize(),s.classList.add("button",n);const o=function(t){r.presenter.triggerAction(n,!0)};f.add(n,o),s.addEventListener("mousedown",o);const a=function(t){r.focusTextarea()};return d.add(n,a),s.addEventListener("mouseup",a),r.button.add(n,s),this},this.focusTextarea=function(){return null!==this.textarea&&this.textarea.focus(),this},this.destroy=function(){return o.destroy(),this.theme.destroy(),this.theme=null,this.tab.each((function(t,e){t.destroy()})),this.tab.clear(),this.tabPane.each((function(t,e){t.destroy()})),this.tabPane.clear(),this.textarea.removeEventListener("keydown",c),c=null,this.textarea.removeEventListener("keyup",h),h=null,this.textarea.removeEventListener("contextmenu",l),l=null,this.textarea.destroy(),this.textarea=null,this.preview.destroy(),this.preview=null,this.button.each((function(t,e){t.destroy();const n=f.get(e);t.removeEventListener("mousedown",n);const i=d.get(e);t.removeEventListener("mouseup",i)})),this.button.clear(),f.clear(),d.clear(),this},e.Base.Merge(this,r)},MarkdownNotepadPresenter:st,MarkdownNotepadState:rt}),at=Object.freeze({__proto__:null,MarkdownNotepad:ot}),ct=Object.freeze({__proto__:null,Action:J,Engine:M,Collection:et});const ht={version:"1.0.0"};return t.Base=s,t.Component=d,t.Configuration=it,t.Control=at,t.Service=ct,t.State=o,t.Theme=w,t.metadata=ht,Object.defineProperty(t,"__esModule",{value:!0}),t}({},Elementary,MarkdownNotepadPack); //# sourceMappingURL=markdown-notepad.min.js.map