@otjs/monaco
Version:
Plain Text Editor Adapter for Monaco Editor.
2 lines • 20.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("monaco-editor"),require("@otjs/plaintext"),require("@otjs/plaintext-editor"),require("mitt")):"function"==typeof define&&define.amd?define(["monaco-editor","@otjs/plaintext","@otjs/plaintext-editor","mitt"],e):"object"==typeof exports?exports["@otjs/monaco"]=e(require("monaco-editor"),require("@otjs/plaintext"),require("@otjs/plaintext-editor"),require("mitt")):t["@otjs/monaco"]=e(t["monaco-editor"],t["@otjs/plaintext"],t["@otjs/plaintext-editor"],t.mitt)}(this,(function(t,e,n,o){return function(){"use strict";var i={929:function(t){t.exports=e},25:function(t){t.exports=n},56:function(t){t.exports=o},643:function(e){e.exports=t}},r={};function s(t){var e=r[t];if(void 0!==e)return e.exports;var n=r[t]={exports:{}};return i[t](n,n.exports,s),n.exports}s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var a={};return function(){s.r(a),s.d(a,{MonacoAdapter:function(){return P}});var t,e=s(643),n=s(929),o=s(25);!function(t){t.create=function(t){return{dispose:function(){t.apply(null)}}}}(t||(t={}));var i,r,u=function(){function t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._disposables=[],this.push.apply(this,t)}return Object.defineProperty(t.prototype,"disposed",{get:function(){return 0===this._disposables.length},enumerable:!1,configurable:!0}),t.prototype.push=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];(t=this._disposables).push.apply(t,e)},t.prototype.dispose=function(){this.disposed||(this._disposables.forEach((function(t){return t.dispose()})),this._disposables=[])},t}(),l=(i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="Assertion Failed",e}return l(e,t),e}(Error),p=(r=Error,l((function(){var t=null!==r&&r.apply(this,arguments)||this;return t.name="No-op Encountered",t.message="This method should not have been called!",t}),r),function(t){l((function(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="Invalid Operation Encountered",e.message="The Operation recieved was either Invalid or Corrupted, please retry!",e}),t)}(Error),function(t){l((function(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="Transaction Failure",e.message="Failed to update in the Database",e}),t)}(Error),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="DOM Operation Failure",e.message="Failed to Query or Mutate some DOM Node",e}return l(e,t),e}(Error));function d(t,e){if(null==t||!1===t)throw"string"==typeof e?new c(e):e}var h,f=function(t,e,n,o){return new(n||(n=Promise))((function(i,r){function s(t){try{u(o.next(t))}catch(t){r(t)}}function a(t){try{u(o.throw(t))}catch(t){r(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((o=o.apply(t,e||[])).next())}))},g=function(t,e){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,a[0]&&(s=0)),s;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}},_=new Set,y=new Map;function v(t){var e,n=t.className,o=t.cursorColor;return f(this,void 0,void 0,(function(){var t,i,r,s;return g(this,(function(a){if(d(null!=document,"This package must run on browser!"),_.has(n))return[2];if((t=null!==(e=y.get(n))&&void 0!==e?e:0)>3)throw y.delete(n),new p("Failed to inject styles for class ".concat(n,"."));i=function(t){var e=t.className,n=t.cursorColor;return"\n /**\n * Copyright © 2021 Progyan Bhattacharya\n * Licensed under the MIT License.\n * See LICENSE in the project root for license information.\n */\n\n .".concat(e,"-cursor {\n position: absolute;\n background-color: transparent;\n border-left: 2px solid ").concat(n,";\n }\n\n .").concat(e,"-selection {\n position: absolute;\n opacity: 0.5;\n background-color: ").concat(n,";\n border-left: 2px solid ").concat(n,";\n }\n\n .").concat(e,"-tooltip {\n opacity: 1;\n padding: 2px 8px;\n font-size: 12px;\n white-space: nowrap;\n border-radius: 2px;\n color: ").concat(function(t){var e=function(t){if(t.startsWith("#"))return function(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);if(!e)return[0,0,0];var n=e[1],o=e[2],i=e[3];return[parseInt(n,16),parseInt(o,16),parseInt(i,16)]}(t);var e=t.replace(/[^\d,]/g,"").split(","),n=e[0],o=e[1],i=e[2];return[parseInt(n,10),parseInt(o,10),parseInt(i,10)]}(t),n=e[0],o=e[1],i=e[2];return Math.round((299*n+587*o+114*i)/1e3)>=125?"#000000":"#ffffff"}(n),";\n border-color: ").concat(n,";\n background-color: ").concat(n,";\n }\n\n .").concat(e,"-widget {\n height: 20px;\n padding-bottom: 0 !important;\n position: absolute;\n transition: all 0.1s linear;\n z-index: 10000;\n }\n ")}({className:n,cursorColor:o});try{r=document.createTextNode(i),(s=document.createElement("style")).appendChild(r),document.head.appendChild(s),y.delete(n),_.add(n)}catch(e){return console.error("Error occured while adding CSS into DOM:",e),y.set(n,t+1),[2,v({className:n,cursorColor:o})]}return[2]}))}))}function m(t){var e,n=t.className,o=t.textContent;return f(this,void 0,void 0,(function(){var t,i;return g(this,(function(r){if(d(null!=document,"This package must run on browser!"),(t=null!==(e=y.get(n))&&void 0!==e?e:0)>3)throw y.delete(n),new p("Failed to create tooltip with class ".concat(n,"."));try{return(i=document.createElement("div")).className=n,i.textContent=o,i.setAttribute("role","tooltip"),y.delete(n),_.add(n),[2,i]}catch(e){return console.error("Error occured while adding Tooltip into DOM:",e),y.set(n,t+1),[2,m({className:n,textContent:o})]}return[2]}))}))}function b(t){var e,n=t.className,o=t.childElement;return f(this,void 0,void 0,(function(){var t,i;return g(this,(function(r){if(d(null!=document,"This package must run on browser!"),(t=null!==(e=y.get(n))&&void 0!==e?e:0)>3)throw y.delete(n),new p("Failed to create widget with class ".concat(n,"."));try{return(i=document.createElement("div")).className=n,i.appendChild(o),y.delete(n),_.add(n),[2,i]}catch(e){return console.error("Error occured while adding Widget into DOM:",e),y.set(n,t+1),[2,b({className:n,childElement:o})]}return[2]}))}))}!function(t){t.LF="\n",t.CRLF="\r\n"}(h||(h={}));var C=s(56),w=s.n(C),E=function(){function t(){this._emitter=w()()}return t.prototype.on=function(t,e){this._emitter.on(t,e)},t.prototype.off=function(t,e){this._emitter.off(t,e)},t.prototype._trigger=function(t,e){this._emitter.emit(t,e)},t}(),x=new u,N=new Map,O=function(){function t(t){var e=t.clientId,n=t.className,o=t.duration,i=t.editor,r=t.range,s=t.userName;this._toDispose=new u,this._disposed=!1,this._position=null,this._timer=null,this._id=e,this._range=r,this._editor=i,this._content=null!=s?s:e,this._duration=o,this._tooltipClass="".concat(n,"-tooltip"),this._widgetClass="monaco-editor-overlaymessage ".concat(n,"-widget"),this._init()}return t.prototype._init=function(){return t=this,e=void 0,o=function(){var t,e,n=this;return function(t,e){var n,o,i,r,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return r={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function a(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;r&&(r=0,a[0]&&(s=0)),s;)try{if(n=1,o&&(i=2&a[0]?o.return:a[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;switch(o=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,o=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!((i=(i=s.trys).length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],o=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}(this,(function(o){switch(o.label){case 0:return t=this,[4,m({className:this._tooltipClass,textContent:this._content})];case 1:return t._tooltipNode=o.sent(),e=this,[4,b({className:this._widgetClass,childElement:this._tooltipNode})];case 2:return e._widgetNode=o.sent(),this._toDispose.push(this._editor.onDidScrollChange((function(){n._updateTooltipPosition()}))),this._updateWidgetPosition(),this._editor.addContentWidget(this),[2]}}))},new((n=void 0)||(n=Promise))((function(i,r){function s(t){try{u(o.next(t))}catch(t){r(t)}}function a(t){try{u(o.throw(t))}catch(t){r(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,a)}u((o=o.apply(t,e||[])).next())}));var t,e,n,o},t.prototype.dispose=function(){!0!==this._disposed&&(this._cleanupTimer(),this._editor.removeContentWidget(this),this._toDispose.dispose(),this._tooltipNode=null,this._widgetNode=null,this._editor=null,this._position=null,this._disposed=!0)},t.prototype.getId=function(){return this._id},t.prototype.getDomNode=function(){return this._widgetNode},t.prototype.getPosition=function(){return this._position},t.prototype.updateRange=function(t){this._range.equalsRange(t)||(this._range=t,this._updateWidgetPosition())},t.prototype.updateUserName=function(t){this._content!==t&&(this._tooltipNode.textContent=t,this._content=t)},t.prototype._cleanupTimer=function(){null!=this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._setupTimer=function(){var t=this;Number.isFinite(this._duration)&&(this._timer=setTimeout((function(){t._hideTooltip(),t._timer=null}),this._duration))},t.prototype._showTooltip=function(){this._tooltipNode.style.display="block"},t.prototype._hideTooltip=function(){this._tooltipNode.style.display="none"},t.prototype._updateTooltipPosition=function(){var t=this._widgetNode.offsetTop-this._editor.getScrollTop();this._tooltipNode.style.top=t-this._tooltipNode.offsetHeight<5?"".concat(this._tooltipNode.offsetHeight,"px"):"-".concat(this._tooltipNode.offsetHeight,"px"),this._tooltipNode.style.left="0"},t.prototype._updateWidgetPosition=function(){this._position={position:this._range.getEndPosition(),preference:[e.editor.ContentWidgetPositionPreference.ABOVE,e.editor.ContentWidgetPositionPreference.BELOW]},this._editor.layoutContentWidget(this),this._showTooltip(),this._setupTimer()},t}(),M=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),P=function(i){function r(e){var n=e.editor,o=e.announcementDuration,r=void 0===o?1e3:o,s=e.bindEvents,a=void 0!==s&&s,l=i.call(this)||this;return l._toDispose=new u,l._initiated=!1,l._ignoreChanges=!1,l._undoCallback=null,l._redoCallback=null,l._originalUndo=null,l._originalRedo=null,l._lastDocLines=[],l._lastCursorRange=null,l._monaco=n,l._announcementDuration=r,l._bindEvents=a,l._init(),l._toDispose.push(t.create((function(){N.clear(),x.dispose()}))),l}return M(r,i),Object.defineProperty(r.prototype,"events",{get:function(){return this._bindEvents},set:function(t){if(d("boolean"==typeof t,"events property takes only boolean value"),this._bindEvents!==t)return!0===t?(this._bindEvents=!0,void this._init()):void this._teardown()},enumerable:!1,configurable:!0}),r.prototype._init=function(){var t=this;!1!==this._bindEvents&&this._toDispose.push(this._monaco.onDidBlurEditorWidget((function(){t._onBlur()})),this._monaco.onDidFocusEditorWidget((function(){t._onFocus()})),this._monaco.onDidChangeModel((function(e){t._onModelChange(e)})),this._monaco.onDidChangeModelContent((function(e){t._onChange(e)})),this._monaco.onDidChangeCursorPosition((function(e){t._onCursorActivity(e)})))},r.prototype._teardown=function(){!1!==this._bindEvents&&(this._toDispose.dispose(),this._bindEvents=!1)},r.prototype.registerUndo=function(t){var e=this._getModel();e&&(this._originalUndo=e.undo,e.undo=this._undoCallback=t)},r.prototype.registerRedo=function(t){var e=this._getModel();e&&(this._originalRedo=e.redo,e.redo=this._redoCallback=t)},r.prototype.deregisterUndo=function(t){if(null==t||this._undoCallback===t){var e=this._getModel();e&&(e.undo!==this._originalUndo&&(e.undo=this._originalUndo),this._originalUndo=null)}},r.prototype.deregisterRedo=function(t){if(null==t||this._redoCallback===t){var e=this._getModel();e&&(e.redo!==this._originalRedo&&(e.redo=this._originalRedo),this._originalRedo=null)}},r.prototype.getCursor=function(){var t,e=this._getModel();if(!e)return null;var n=null!==(t=this._monaco.getSelection())&&void 0!==t?t:this._lastCursorRange;if(null==n)return null;var i=n.getStartPosition(),r=n.getEndPosition(),s=e.getOffsetAt(i),a=e.getOffsetAt(r);return new o.Cursor(s,a)},r.prototype.setCursor=function(t){var n=t.toJSON(),o=n.position,i=n.selectionEnd,r=this._getModel();if(r){var s=r.getPositionAt(o),a=r.getPositionAt(i);this._monaco.setSelection(new e.Selection(s.lineNumber,s.column,a.lineNumber,a.column))}},r.prototype.setOtherCursor=function(n){var o=this,i=n.clientId,r=n.cursor,s=n.userName,a=n.userColor;d("object"==typeof r&&"function"==typeof r.toJSON,"Cursor must be an implementation of ICursor"),d("string"==typeof i&&"string"==typeof a&&(null==s||"string"==typeof s),"Client Id, User Name and User Color must be strings.");var u=this._getModel();if(!u)return t.create((function(){}));var l=a.replace(/,/g,"_").replace(/\W+/g,""),c="remote-client-".concat(l);v({className:c,cursorColor:a});var p=r.toJSON(),h=p.position,f=p.selectionEnd,g=u.getPositionAt(h),_=u.getPositionAt(f),y=new e.Range(g.lineNumber,g.column,_.lineNumber,_.column),m="".concat(c,h===f?"-cursor":"-selection"),b=this._monaco.deltaDecorations([],[{range:y,options:{className:m,isWholeLine:!1,stickiness:e.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges}}]);return function(t){var e=t.clientId,n=t.range,o=t.userName,i=N.get(e);if(null!=i)return i.updateRange(n),void i.updateUserName(null!=o?o:e);var r=new O(t);x.push(r),N.set(e,r)}({className:c,clientId:i,range:y,userName:s,duration:this._announcementDuration,editor:this._monaco}),t.create((function(){o._monaco&&o._monaco.deltaDecorations(b,[])}))},r.prototype.getText=function(){var t=this._getModel();return t?t.getValue():""},r.prototype.setText=function(t){var e=this._getModel();e&&this._applyEdits([{range:e.getFullModelRange(),text:t}])},r.prototype.setInitiated=function(){this.setText(""),this._initiated=!0},r.prototype.applyOperation=function(t){if(!t.isNoop()){this._ignoreChanges=!0;var e=this._getModel();if(e){var n=this._transformOpsIntoMonacoChanges(t.entries(),e);n.length&&this._applyChangesToMonaco(n),e&&(this._lastDocLines=e.getLinesContent()),this._ignoreChanges=!1}}},r.prototype.invertOperation=function(t){return t.invert(this.getText())},r.prototype.dispose=function(){this._teardown(),this.deregisterRedo(),this.deregisterUndo(),this._emitter&&(this._emitter.all.clear(),this._emitter=null),this._monaco=null,this._initiated=!1},r.prototype._getModel=function(){if(this._monaco)return this._monaco.getModel()},r.prototype._applyEdits=function(t){var e=this._getModel();e&&e.applyEdits(t)},r.prototype._onBlur=function(){var t=this._monaco.getSelection();t&&!t.isEmpty()||this._trigger(o.EditorAdapterEvent.Blur,void 0)},r.prototype._onFocus=function(){this._trigger(o.EditorAdapterEvent.Focus,void 0)},r.prototype._onModelChange=function(t){var n=this._getModel();if(n){this._undoCallback&&(this._originalUndo=n.undo,n.undo=this._undoCallback),this._redoCallback&&(this._originalRedo=n.redo,n.redo=this._redoCallback);var o=this._lastDocLines.length,i=this._lastDocLines[o-1].length,r=new e.Range(1,1,o,i+1),s=this._getPreviousContentInRange();this._onChange({changes:[{range:r,rangeOffset:0,rangeLength:s.length,text:n.getValue()}]})}},r.prototype._onChange=function(t){if(!this._ignoreChanges&&this._initiated){var e=this._getModel(),i=this._getPreviousContentInRange().length;if(t.changes&&0!==t.changes.length){var r=this._operationFromMonacoChange(t.changes,i),s=r[0],a=r[1];this._lastDocLines=e.getLinesContent(),this._trigger(o.EditorAdapterEvent.Change,{operation:s,inverse:a})}else{var u=(new n.PlainTextOperation).retain(i);this._trigger(o.EditorAdapterEvent.Change,{operation:u,inverse:u})}}},r.prototype._onCursorActivity=function(t){t.reason!==e.editor.CursorChangeReason.RecoverFromMarkers&&this._trigger(o.EditorAdapterEvent.Cursor,void 0)},r.prototype._getPreviousContentInRange=function(t){var e=this._getModel(),n=e?e.getEOL():h.LF;if(!t)return this._lastDocLines.join(n);for(var o="",i=t.startLineNumber,r=t.startColumn,s=t.endLineNumber,a=t.endColumn,u=i;u<=s;u++){var l=this._lastDocLines[u-1];if(u===i){if(u===s)return l.slice(r-1,a-1);o+=l.slice(r-1)+n}else o+=u===s?l.slice(0,a-1):l+n}return o},r.prototype._operationFromMonacoChange=function(t,e){var i=new n.PlainTextOperation,r=new n.PlainTextOperation;if(t.length>1){var s=t[0],a=t[t.length-1];s.rangeOffset>a.rangeOffset&&(t=t.reverse())}for(var u=0,l=0,c=t;l<c.length;l++){var p=c[l],d=p.range,h=p.text,f=p.rangeOffset,g=p.rangeLength,_=f-u;try{i=i.retain(_),r=r.retain(_)}catch(t){throw this._trigger(o.EditorAdapterEvent.Error,{err:t,operation:i.toString(),retain:_}),t}h||d.isEmpty()?h&&!d.isEmpty()?(i=i.delete(g).insert(h),r=r.insert(this._getPreviousContentInRange(d)).delete(h)):(i=i.insert(h),r=r.delete(h)):(i=i.delete(g),r=r.insert(this._getPreviousContentInRange(d))),u=u+_+g}try{i=i.retain(e-u),r=r.retain(e-u)}catch(t){throw this._trigger(o.EditorAdapterEvent.Error,{err:t,operation:i.toString(),contentLength:e,skippedChars:u}),t}return[i,r]},r.prototype._transformOpsIntoMonacoChanges=function(t,n){for(var o,i=0,r=[];!(o=t.next()).done;){var s=o.value[1];switch(!0){case s.isRetain():i+=s.characterCount();break;case s.isInsert():var a=n.getPositionAt(i);r.push({range:new e.Range(a.lineNumber,a.column,a.lineNumber,a.column),text:s.textContent(),forceMoveMarkers:!0});break;case s.isDelete():var u=n.getPositionAt(i),l=n.getPositionAt(i+s.characterCount());r.push({range:new e.Range(u.lineNumber,u.column,l.lineNumber,l.column),text:"",forceMoveMarkers:!0}),i+=s.characterCount()}}return r},r.prototype._applyChangesToMonaco=function(t){var n=this._monaco.getOption(e.editor.EditorOption.readOnly);n&&this._monaco.updateOptions({readOnly:!1}),this._applyEdits(t),n&&this._monaco.updateOptions({readOnly:n})},r}(E)}(),a}()}));
//# sourceMappingURL=index.js.map