diff --git a/package.json b/package.json index 40c66a5..4fd97c4 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "@editorjs/code": "^2.4.0", "@editorjs/delimiter": "^1.1.0", "@editorjs/editorjs": "^2.12.3", - "@editorjs/header": "^2.2.2", + "@editorjs/header": "^2.2.3", "@editorjs/image": "^2.1.2", "@editorjs/inline-code": "^1.3.0", "@editorjs/list": "^1.3.2", diff --git a/public/dist/editor.bundle.js b/public/dist/editor.bundle.js index f19a5bd..aa028ad 100644 --- a/public/dist/editor.bundle.js +++ b/public/dist/editor.bundle.js @@ -1,269 +1,104 @@ -(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["editor"],{ - -/***/ "./node_modules/@editorjs/code/dist/bundle.js": -/*!****************************************************!*\ - !*** ./node_modules/@editorjs/code/dist/bundle.js ***! - \****************************************************/ -/*! no static exports found */ -/***/ (function(module, exports, __webpack_require__) { - -eval("!function(e,t){ true?module.exports=t():undefined}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,\"a\",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=\"/\",n(n.s=0)}([function(e,t,n){function r(e,t){for(var n=0;n ',title:\"Code\"}}},{key:\"DEFAULT_PLACEHOLDER\",get:function(){return\"Enter code\"}},{key:\"pasteConfig\",get:function(){return{tags:[\"pre\"]}}}]),e}();e.exports=i},function(e,t,n){var r=n(2);\"string\"==typeof r&&(r=[[e.i,r,\"\"]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(4)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,\".ce-code__textarea {\\n min-height: 200px;\\n font-size: 13px;\\n resize: vertical;\\n white-space: pre;\\n overflow-x: auto;\\n word-wrap: normal;\\n font-family: Menlo, Monaco, Consolas, Courier New, monospace;\\n}\\n\",\"\"])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||\"\",r=e[3];if(!r)return n;if(t&&\"function\"==typeof btoa){var o=(a=r,\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+\" */\"),i=r.sources.map(function(e){return\"/*# sourceURL=\"+r.sourceRoot+e+\" */\"});return[n].concat(i).concat([o]).join(\"\\n\")}var a;return[n].join(\"\\n\")}(t,e);return t[2]?\"@media \"+t[2]+\"{\"+n+\"}\":n}).join(\"\")},t.i=function(e,n){\"string\"==typeof e&&(e=[[null,e,\"\"]]);for(var r={},o=0;o=0&&f.splice(t,1)}function y(e){var t=document.createElement(\"style\");return void 0===e.attrs.type&&(e.attrs.type=\"text/css\"),b(t,e.attrs),h(e,t),t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function m(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=c||(c=y(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=function(e){var t=document.createElement(\"link\");return void 0===e.attrs.type&&(e.attrs.type=\"text/css\"),e.attrs.rel=\"stylesheet\",b(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=l(r));o&&(r+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+\" */\");var a=new Blob([r],{type:\"text/css\"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=y(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute(\"media\",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");(t=t||{}).attrs=\"object\"==typeof t.attrs?t.attrs:{},t.singleton||\"boolean\"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto=\"head\"),t.insertAt||(t.insertAt=\"bottom\");var n=p(e,t);return d(n,t),function(e){for(var r=[],o=0;o',title:\"Delimiter\"}}}]),e}();e.exports=i},function(e,t,n){var r=n(2);\"string\"==typeof r&&(r=[[e.i,r,\"\"]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(4)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(3)(!1)).push([e.i,'.ce-delimiter {\\n line-height: 1.6em;\\n width: 100%;\\n text-align: center;\\n}\\n\\n.ce-delimiter:before {\\n display: inline-block;\\n content: \"***\";\\n font-size: 30px;\\n line-height: 65px;\\n height: 30px;\\n letter-spacing: 0.2em;\\n}',\"\"])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||\"\",r=e[3];if(!r)return n;if(t&&\"function\"==typeof btoa){var o=(a=r,\"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+\" */\"),i=r.sources.map(function(e){return\"/*# sourceURL=\"+r.sourceRoot+e+\" */\"});return[n].concat(i).concat([o]).join(\"\\n\")}var a;return[n].join(\"\\n\")}(t,e);return t[2]?\"@media \"+t[2]+\"{\"+n+\"}\":n}).join(\"\")},t.i=function(e,n){\"string\"==typeof e&&(e=[[null,e,\"\"]]);for(var r={},o=0;o=0&&f.splice(t,1)}function b(e){var t=document.createElement(\"style\");return void 0===e.attrs.type&&(e.attrs.type=\"text/css\"),m(t,e.attrs),h(e,t),t}function m(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=c++;n=u||(u=b(t)),r=x.bind(null,n,a,!1),o=x.bind(null,n,a,!0)}else e.sourceMap&&\"function\"==typeof URL&&\"function\"==typeof URL.createObjectURL&&\"function\"==typeof URL.revokeObjectURL&&\"function\"==typeof Blob&&\"function\"==typeof btoa?(n=function(e){var t=document.createElement(\"link\");return void 0===e.attrs.type&&(e.attrs.type=\"text/css\"),e.attrs.rel=\"stylesheet\",m(t,e.attrs),h(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=l(r));o&&(r+=\"\\n/*# sourceMappingURL=data:application/json;base64,\"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+\" */\");var a=new Blob([r],{type:\"text/css\"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),o=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute(\"media\",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){v(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if(\"undefined\"!=typeof DEBUG&&DEBUG&&\"object\"!=typeof document)throw new Error(\"The style-loader cannot be used in a non-browser environment\");(t=t||{}).attrs=\"object\"==typeof t.attrs?t.attrs:{},t.singleton||\"boolean\"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto=\"head\"),t.insertAt||(t.insertAt=\"bottom\");var n=d(e,t);return p(n,t),function(e){for(var r=[],o=0;o\n * \n * @uses html-janitor\n * @licence Apache-2.0 (https://github.com/guardian/html-janitor/blob/master/LICENSE)\n */\n!function(t,e){ true?module.exports=e():undefined}(window,function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,\"a\",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=\"\",n(n.s=159)}([function(t,e,n){var o=n(9),r=n(16),i=n(22),a=n(19),s=n(31),c=function(t,e,n){var u,l,f,d,p=t&c.F,h=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,b=h?o:v?o[e]||(o[e]={}):(o[e]||{}).prototype,m=h?r:r[e]||(r[e]={}),k=m.prototype||(m.prototype={});for(u in h&&(n=e),n)f=((l=!p&&b&&void 0!==b[u])?b:n)[u],d=y&&l?s(f,o):g&&\"function\"==typeof f?s(Function.call,f):f,b&&a(b,u,f,t&c.U),m[u]!=f&&i(m,u,d),g&&k[u]!=f&&(k[u]=f)};o.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}},function(t,e){function n(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement(t);for(var a in Array.isArray(n)?(e=r.classList).add.apply(e,(0,i.default)(n)):n&&r.classList.add(n),o)o.hasOwnProperty(a)&&(r[a]=o[a]);return r}},{key:\"text\",value:function(t){return document.createTextNode(t)}},{key:\"svg\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:14,o=document.createElementNS(\"http://www.w3.org/2000/svg\",\"svg\");return o.classList.add(\"icon\",\"icon--\"+t),o.setAttribute(\"width\",e+\"px\"),o.setAttribute(\"height\",n+\"px\"),o.innerHTML=''),o}},{key:\"append\",value:function(t,e){Array.isArray(e)?e.forEach(function(e){return t.appendChild(e)}):t.appendChild(e)}},{key:\"prepend\",value:function(t,e){Array.isArray(e)?(e=e.reverse()).forEach(function(e){return t.prepend(e)}):t.prepend(e)}},{key:\"swap\",value:function(t,e){var n=document.createElement(\"div\"),o=t.parentNode;o.insertBefore(n,t),o.insertBefore(t,e),o.insertBefore(e,n),o.removeChild(n)}},{key:\"find\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=arguments.length>1?arguments[1]:void 0;return t.querySelector(e)}},{key:\"get\",value:function(t){return document.getElementById(t)}},{key:\"findAll\",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,e=arguments.length>1?arguments[1]:void 0;return t.querySelectorAll(e)}},{key:\"getDeepestNode\",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n?\"lastChild\":\"firstChild\",r=n?\"previousSibling\":\"nextSibling\";if(e&&e.nodeType===Node.ELEMENT_NODE&&e[o]){var i=e[o];if(t.isSingleTag(i)&&!t.isNativeInput(i)&&!t.isLineBreakTag(i))if(i[r])i=i[r];else{if(!i.parentNode[r])return i.parentNode;i=i.parentNode[r]}return this.getDeepestNode(i,n)}return e}},{key:\"isElement\",value:function(t){return t&&\"object\"===(0,r.default)(t)&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE}},{key:\"isFragment\",value:function(t){return t&&\"object\"===(0,r.default)(t)&&t.nodeType&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE}},{key:\"isContentEditable\",value:function(t){return\"true\"===t.contentEditable}},{key:\"isNativeInput\",value:function(t){return!(!t||!t.tagName)&&[\"INPUT\",\"TEXTAREA\"].includes(t.tagName)}},{key:\"canSetCaret\",value:function(e){var n=!0;if(t.isNativeInput(e)){var o=e;switch(o.type){case\"file\":case\"checkbox\":case\"radio\":case\"hidden\":case\"submit\":case\"button\":case\"image\":case\"reset\":n=!1}}else n=t.isContentEditable(e);return n}},{key:\"isNodeEmpty\",value:function(t){return!(this.isSingleTag(t)&&!this.isLineBreakTag(t))&&0===(this.isElement(t)&&this.isNativeInput(t)?t.value:t.textContent.replace(\"​\",\"\")).trim().length}},{key:\"isLeaf\",value:function(t){return!!t&&0===t.childNodes.length}},{key:\"isEmpty\",value:function(t){var e=this,n=[],o=[];if(!t)return!0;if(!t.childNodes.length)return this.isNodeEmpty(t);for(n.push(t.firstChild);n.length>0;)if(t=n.shift()){for(this.isLeaf(t)?o.push(t):n.push(t.firstChild);t&&t.nextSibling;)(t=t.nextSibling)&&n.push(t);if(t&&!this.isNodeEmpty(t))return!1}return o.every(function(t){return e.isNodeEmpty(t)})}},{key:\"isHTMLString\",value:function(e){var n=t.make(\"div\");return n.innerHTML=e,n.childElementCount>0}},{key:\"getContentLength\",value:function(e){return t.isNativeInput(e)?e.value.length:e.nodeType===Node.TEXT_NODE?e.length:e.textContent.length}},{key:\"containsOnlyInlineElements\",value:function(e){var n;return\"string\"==typeof e?(n=document.createElement(\"div\")).innerHTML=e:n=e,Array.from(n.children).every(function e(n){return!t.blockElements.includes(n.tagName.toLowerCase())&&Array.from(n.children).every(e)})}},{key:\"getDeepestBlockElements\",value:function(e){return t.containsOnlyInlineElements(e)?[e]:Array.from(e.children).reduce(function(e,n){return[].concat((0,i.default)(e),(0,i.default)(t.getDeepestBlockElements(n)))},[])}},{key:\"blockElements\",get:function(){return[\"address\",\"article\",\"aside\",\"blockquote\",\"canvas\",\"div\",\"dl\",\"dt\",\"fieldset\",\"figcaption\",\"figure\",\"footer\",\"form\",\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\",\"header\",\"hgroup\",\"hr\",\"li\",\"main\",\"nav\",\"noscript\",\"ol\",\"output\",\"p\",\"pre\",\"ruby\",\"section\",\"table\",\"tr\",\"tfoot\",\"ul\",\"video\"]}}]),t}();o.default=u,u.displayName=\"Dom\",t.exports=e.default})?o.apply(e,r):o)||(t.exports=i)},function(t,e,n){var o=n(11),r=n(99),i=n(38),a=Object.defineProperty;e.f=n(15)?Object.defineProperty:function(t,e,n){if(o(t),e=i(e,!0),o(n),r)try{return a(t,e,n)}catch(t){}if(\"get\"in n||\"set\"in n)throw TypeError(\"Accessors not supported!\");return\"value\"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(8)(function(){return 7!=Object.defineProperty({},\"a\",{get:function(){return 7}}).a})},function(t,e){var n=t.exports={version:\"2.5.7\"};\"number\"==typeof __e&&(__e=n)},function(t,e,n){var o=n(35),r=Math.min;t.exports=function(t){return t>0?r(o(t),9007199254740991):0}},function(t,e,n){var o,r,i;r=[e,n(338),n(48),n(29),n(30),n(1),n(2),n(13)],void 0===(i=\"function\"==typeof(o=function(o,r,i,a,s,c,u,l){\"use strict\";var f=n(3);Object.defineProperty(o,\"__esModule\",{value:!0}),o.default=void 0,r=f(r),i=f(i),a=f(a),s=f(s),c=f(c),u=f(u),l=f(l);var d=function(){function t(){(0,c.default)(this,t)}var e;return(0,u.default)(t,null,[{key:\"log\",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:\"log\",n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:\"color: inherit\";if(\"console\"in window&&window.console[e]){var r=\"Editor.js \".concat(\"2.12.3\"),i=\"line-height: 1em;\\n color: #006FEA;\\n display: inline-block;\\n font-size: 11px;\\n line-height: 1em;\\n background-color: #fff;\\n padding: 4px 9px;\\n border-radius: 30px;\\n border: 1px solid rgba(56, 138, 229, 0.16);\\n margin: 4px 5px 4px 0;\";try{[\"time\",\"timeEnd\"].includes(e)?console[e](\"( \".concat(r,\" ) \").concat(t)):n?console[e](\"%c\".concat(r,\"%c \").concat(t,\" %o\"),i,o,n):console[e](\"%c\".concat(r,\"%c \").concat(t),i,o)}catch(t){}}}},{key:\"sequence\",value:(e=(0,s.default)(a.default.mark(function t(e){var n,o,r,i,c=arguments;return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=function(){return(i=(0,s.default)(a.default.mark(function t(e,n,o){return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.function(e.data);case 3:return t.next=5,n(void 0!==e.data?e.data:{});case 5:t.next=10;break;case 7:t.prev=7,t.t0=t.catch(0),o(void 0!==e.data?e.data:{});case 10:case\"end\":return t.stop()}},t,null,[[0,7]])}))).apply(this,arguments)},r=function(t,e,n){return i.apply(this,arguments)},n=c.length>1&&void 0!==c[1]?c[1]:function(){},o=c.length>2&&void 0!==c[2]?c[2]:function(){},t.next=6,e.reduce(function(){var t=(0,s.default)(a.default.mark(function t(e,i){return a.default.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return t.abrupt(\"return\",r(i,n,o));case 3:case\"end\":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}(),Promise.resolve());case 6:return t.abrupt(\"return\",t.sent);case 7:case\"end\":return t.stop()}},t)})),function(t){return e.apply(this,arguments)})},{key:\"array\",value:function(t){return Array.prototype.slice.call(t)}},{key:\"isFunction\",value:function(t){return\"function\"==typeof t}},{key:\"isClass\",value:function(t){return\"function\"==typeof t&&/^\\s*class\\s+/.test(t.toString())}},{key:\"isEmpty\",value:function(t){return!t||0===Object.keys(t).length&&t.constructor===Object}},{key:\"isPromise\",value:function(t){return Promise.resolve(t)===t}},{key:\"delay\",value:function(t,e){return function(){var n=this,o=arguments;window.setTimeout(function(){return t.apply(n,o)},e)}}},{key:\"getFileExtension\",value:function(t){return t.name.split(\".\").pop()}},{key:\"isValidMimeType\",value:function(t){return/^[-\\w]+\\/([-+\\w]+|\\*)$/.test(t)}},{key:\"debounce\",value:function(t,e,n){var o,r=this,i=arguments;return function(){var a=r,s=i,c=n&&!o;window.clearTimeout(o),o=window.setTimeout(function(){o=null,n||t.apply(a,s)},e),c&&t.apply(a,s)}}},{key:\"copyTextToClipboard\",value:function(t){var e=l.default.make(\"div\",\"codex-editor-clipboard\",{innerHTML:t});document.body.appendChild(e);var n=window.getSelection(),o=document.createRange();o.selectNode(e),window.getSelection().removeAllRanges(),n.addRange(o),document.execCommand(\"copy\"),document.body.removeChild(e)}},{key:\"getUserOS\",value:function(){var t={win:!1,mac:!1,x11:!1,linux:!1},e=Object.keys(t).find(function(t){return-1!==navigator.appVersion.toLowerCase().indexOf(t)});return e?(t[e]=!0,t):t}},{key:\"capitalize\",value:function(t){return t[0].toUpperCase()+t.slice(1)}},{key:\"deepMerge\",value:function(e){for(var n=function(t){return t&&\"object\"===(0,i.default)(t)&&!Array.isArray(t)},o=arguments.length,a=new Array(o>1?o-1:0),s=1;s\"+r+\"\"};t.exports=function(t,e){var n={};n[t]=e(s),o(o.P+o.F*r(function(){var e=\"\"[t]('\"');return e!==e.toLowerCase()||e.split('\"').length>3}),\"String\",n)}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var o=n(14),r=n(40);t.exports=n(15)?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var o=n(56),r=n(34);t.exports=function(t){return o(r(t))}},function(t,e,n){var o=n(34);t.exports=function(t){return Object(o(t))}},function(t,e,n){\"use strict\";var o=n(8);t.exports=function(t,e){return!!t&&o(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var o=n(57),r=n(40),i=n(23),a=n(38),s=n(21),c=n(99),u=Object.getOwnPropertyDescriptor;e.f=n(15)?u:function(t,e){if(t=i(t),e=a(e,!0),c)try{return u(t,e)}catch(t){}if(s(t,e))return r(!o.f.call(t,e),t[e])}},function(t,e,n){var o=n(0),r=n(16),i=n(8);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),o(o.S+o.F*i(function(){n(1)}),\"Object\",a)}},function(t,e,n){var o=n(31),r=n(56),i=n(24),a=n(17),s=n(254);t.exports=function(t,e){var n=1==t,c=2==t,u=3==t,l=4==t,f=6==t,d=5==t||f,p=e||s;return function(e,s,h){for(var v,g,y=i(e),b=r(y),m=o(s,h,3),k=a(b.length),x=0,w=n?p(e,k):c?p(e,0):void 0;k>x;x++)if((d||x in b)&&(g=m(v=b[x],x,y),t))if(n)w[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:w.push(v)}else if(l)return!1;return f?-1:u||l?l:w}}},function(t,e,n){t.exports=n(334)},function(t,e){function n(t,e,n,o,r,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(o,r)}t.exports=function(t){return function(){var e=this,o=arguments;return new Promise(function(r,i){var a=t.apply(e,o);function s(t){n(a,r,i,s,c,\"next\",t)}function c(t){n(a,r,i,s,c,\"throw\",t)}s(void 0)})}}},function(t,e,n){var o=n(32);t.exports=function(t,e,n){if(o(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,o){return t.call(e,n,o)};case 3:return function(n,o,r){return t.call(e,n,o,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if(\"function\"!=typeof t)throw TypeError(t+\" is not a function!\");return t}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError(\"Can't call method on \"+t);return t}},function(t,e){var n=Math.ceil,o=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?o:n)(t)}},function(t,e,n){\"use strict\";if(n(15)){var o=n(42),r=n(9),i=n(8),a=n(0),s=n(69),c=n(96),u=n(31),l=n(53),f=n(40),d=n(22),p=n(54),h=n(35),v=n(17),g=n(124),y=n(44),b=n(38),m=n(21),k=n(61),x=n(10),w=n(24),S=n(89),E=n(45),T=n(47),_=n(46).f,B=n(91),C=n(41),O=n(12),I=n(28),N=n(59),M=n(66),A=n(93),L=n(50),P=n(63),R=n(52),j=n(92),F=n(116),D=n(14),U=n(26),H=D.f,z=U.f,W=r.RangeError,G=r.TypeError,V=r.Uint8Array,X=Array.prototype,Y=c.ArrayBuffer,K=c.DataView,Z=I(0),q=I(2),J=I(3),$=I(4),Q=I(5),tt=I(6),et=N(!0),nt=N(!1),ot=A.values,rt=A.keys,it=A.entries,at=X.lastIndexOf,st=X.reduce,ct=X.reduceRight,ut=X.join,lt=X.sort,ft=X.slice,dt=X.toString,pt=X.toLocaleString,ht=O(\"iterator\"),vt=O(\"toStringTag\"),gt=C(\"typed_constructor\"),yt=C(\"def_constructor\"),bt=s.CONSTR,mt=s.TYPED,kt=s.VIEW,xt=I(1,function(t,e){return _t(M(t,t[yt]),e)}),wt=i(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),St=!!V&&!!V.prototype.set&&i(function(){new V(1).set({})}),Et=function(t,e){var n=h(t);if(n<0||n%e)throw W(\"Wrong offset!\");return n},Tt=function(t){if(x(t)&&mt in t)return t;throw G(t+\" is not a typed array!\")},_t=function(t,e){if(!(x(t)&> in t))throw G(\"It is not a typed array constructor!\");return new t(e)},Bt=function(t,e){return Ct(M(t,t[yt]),e)},Ct=function(t,e){for(var n=0,o=e.length,r=_t(t,o);o>n;)r[n]=e[n++];return r},Ot=function(t,e,n){H(t,e,{get:function(){return this._d[n]}})},It=function(t){var e,n,o,r,i,a,s=w(t),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,d=B(s);if(null!=d&&!S(d)){for(a=d.call(s),o=[],e=0;!(i=a.next()).done;e++)o.push(i.value);s=o}for(f&&c>2&&(l=u(l,arguments[2],2)),e=0,n=v(s.length),r=_t(this,n);n>e;e++)r[e]=f?l(s[e],e):s[e];return r},Nt=function(){for(var t=0,e=arguments.length,n=_t(this,e);e>t;)n[t]=arguments[t++];return n},Mt=!!V&&i(function(){pt.call(new V(1))}),At=function(){return pt.apply(Mt?ft.call(Tt(this)):Tt(this),arguments)},Lt={copyWithin:function(t,e){return F.call(Tt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return $(Tt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return j.apply(Tt(this),arguments)},filter:function(t){return Bt(this,q(Tt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Tt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Z(Tt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Tt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ut.apply(Tt(this),arguments)},lastIndexOf:function(t){return at.apply(Tt(this),arguments)},map:function(t){return xt(Tt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(Tt(this),arguments)},reduceRight:function(t){return ct.apply(Tt(this),arguments)},reverse:function(){for(var t,e=Tt(this).length,n=Math.floor(e/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return lt.call(Tt(this),t)},subarray:function(t,e){var n=Tt(this),o=n.length,r=y(t,o);return new(M(n,n[yt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,v((void 0===e?o:y(e,o))-r))}},Pt=function(t,e){return Bt(this,ft.call(Tt(this),t,e))},Rt=function(t){Tt(this);var e=Et(arguments[1],1),n=this.length,o=w(t),r=v(o.length),i=0;if(r+e>n)throw W(\"Wrong length!\");for(;i255?255:255&o),r.v[p](n*e+r.o,o,wt)}(this,n,t)},enumerable:!0})};m?(h=n(function(t,n,o,r){l(t,h,u,\"_d\");var i,a,s,c,f=0,p=0;if(x(n)){if(!(n instanceof Y||\"ArrayBuffer\"==(c=k(n))||\"SharedArrayBuffer\"==c))return mt in n?Ct(h,n):It.call(h,n);i=n,p=Et(o,e);var y=n.byteLength;if(void 0===r){if(y%e)throw W(\"Wrong length!\");if((a=y-p)<0)throw W(\"Wrong length!\")}else if((a=v(r)*e)+p>y)throw W(\"Wrong length!\");s=a/e}else s=g(n),i=new Y(a=s*e);for(d(t,\"_d\",{b:i,o:p,l:a,e:s,v:new K(i)});f2&&void 0!==arguments[2]?arguments[2]:10,o=window.getSelection(),r=null;if(!o||!o.anchorNode||!o.focusNode)return null;var i=[o.anchorNode,o.focusNode];return i.forEach(function(o){for(var i=n;i>0&&o.parentNode&&(o.tagName!==t||(r=o,e&&o.classList&&!o.classList.contains(e)&&(r=null),!r));)o=o.parentNode,i--}),r}},{key:\"expandToTag\",value:function(t){var e=window.getSelection();e.removeAllRanges();var n=document.createRange();n.selectNodeContents(t),e.addRange(n)}}],[{key:\"get\",value:function(){return window.getSelection()}},{key:\"CSS\",get:function(){return{editorWrapper:\"codex-editor\",editorZone:\"codex-editor__redactor\"}}},{key:\"anchorNode\",get:function(){var t=window.getSelection();return t?t.anchorNode:null}},{key:\"anchorOffset\",get:function(){var t=window.getSelection();return t?t.anchorOffset:null}},{key:\"isCollapsed\",get:function(){var t=window.getSelection();return t?t.isCollapsed:null}},{key:\"isAtEditor\",get:function(){var e=t.get(),n=e.anchorNode||e.focusNode;n&&n.nodeType===Node.TEXT_NODE&&(n=n.parentNode);var o=null;return n&&(o=n.closest(\".\".concat(t.CSS.editorZone))),o&&o.nodeType===Node.ELEMENT_NODE}},{key:\"range\",get:function(){var t=window.getSelection();return t&&t.rangeCount?t.getRangeAt(0):null}},{key:\"rect\",get:function(){var t,e=document.selection,n={x:0,y:0,width:0,height:0};if(e&&\"Control\"!==e.type)return t=(e=e).createRange(),n.x=t.boundingLeft,n.y=t.boundingTop,n.width=t.boundingWidth,n.height=t.boundingHeight,n;if(!window.getSelection)return a.default.log(\"Method window.getSelection is not supported\",\"warn\"),n;if(null===(e=window.getSelection()).rangeCount||isNaN(e.rangeCount))return a.default.log(\"Method SelectionUtils.rangeCount is not supported\",\"warn\"),n;if((t=e.getRangeAt(0).cloneRange()).getBoundingClientRect&&(n=t.getBoundingClientRect()),0===n.x&&0===n.y){var o=document.createElement(\"span\");if(o.getBoundingClientRect){o.appendChild(document.createTextNode(\"​\")),t.insertNode(o),n=o.getBoundingClientRect();var r=o.parentNode;r.removeChild(o),r.normalize()}}return n}},{key:\"text\",get:function(){return window.getSelection?window.getSelection().toString():\"\"}}]),t}();o.default=c,c.displayName=\"SelectionUtils\",t.exports=e.default})?o.apply(e,r):o)||(t.exports=i)},function(t,e,n){var o=n(10);t.exports=function(t,e){if(!o(t))return t;var n,r;if(e&&\"function\"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;if(\"function\"==typeof(n=t.valueOf)&&!o(r=n.call(t)))return r;if(!e&&\"function\"==typeof(n=t.toString)&&!o(r=n.call(t)))return r;throw TypeError(\"Can't convert object to primitive value\")}},function(t,e,n){var o=n(41)(\"meta\"),r=n(10),i=n(21),a=n(14).f,s=0,c=Object.isExtensible||function(){return!0},u=!n(8)(function(){return c(Object.preventExtensions({}))}),l=function(t){a(t,o,{value:{i:\"O\"+ ++s,w:{}}})},f=t.exports={KEY:o,NEED:!1,fastKey:function(t,e){if(!r(t))return\"symbol\"==typeof t?t:(\"string\"==typeof t?\"S\":\"P\")+t;if(!i(t,o)){if(!c(t))return\"F\";if(!e)return\"E\";l(t)}return t[o].i},getWeak:function(t,e){if(!i(t,o)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[o].w},onFreeze:function(t){return u&&f.NEED&&c(t)&&!i(t,o)&&l(t),t}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,o=Math.random();t.exports=function(t){return\"Symbol(\".concat(void 0===t?\"\":t,\")_\",(++n+o).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var o=n(101),r=n(76);t.exports=Object.keys||function(t){return o(t,r)}},function(t,e,n){var o=n(35),r=Math.max,i=Math.min;t.exports=function(t,e){return(t=o(t))<0?r(t+e,0):i(t,e)}},function(t,e,n){var o=n(11),r=n(102),i=n(76),a=n(75)(\"IE_PROTO\"),s=function(){},c=function(){var t,e=n(72)(\"iframe\"),o=i.length;for(e.style.display=\"none\",n(78).appendChild(e),e.src=\"javascript:\",(t=e.contentWindow.document).open(),t.write(\"