From 5c0560a2ed7a08c2fe31919c692da449e6d7e959 Mon Sep 17 00:00:00 2001 From: Peter Savchenko Date: Wed, 3 Oct 2018 12:26:41 +0300 Subject: [PATCH] Code splitting now works through awaited import (#6) --- package-lock.json | 132 +++++-- package.json | 4 +- ...odex-editor.bundle.js => editor.bundle.js} | 78 ++-- public/dist/main.bundle.js | 335 +----------------- public/dist/{bundle.css => main.css} | 2 +- src/frontend/js/app.js | 3 +- src/frontend/js/classes/editor.js | 7 + src/frontend/js/modules/writing.js | 19 +- src/views/layout.twig | 2 +- webpack.config.js | 33 +- yarn.lock | 99 +----- 11 files changed, 214 insertions(+), 500 deletions(-) rename public/dist/{vendors~codex-editor.bundle.js => editor.bundle.js} (95%) rename public/dist/{bundle.css => main.css} (99%) create mode 100644 src/frontend/js/classes/editor.js diff --git a/package-lock.json b/package-lock.json index 080edc8..843a542 100644 --- a/package-lock.json +++ b/package-lock.json @@ -346,6 +346,15 @@ "@babel/helper-plugin-utils": "^7.0.0" } }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.0.0.tgz", + "integrity": "sha512-Gt9xNyRrCHCiyX/ZxDGOcBnlJl0I3IWicpZRC4CdC0P5a/I07Ya2OAMEBU+J7GmRFVmIetqEYRko6QYRuKOESw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0" + } + }, "@babel/plugin-syntax-json-strings": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.0.0.tgz", @@ -1398,6 +1407,37 @@ "util.promisify": "^1.0.0" } }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0" + } + }, + "babel-plugin-transform-es2015-modules-commonjs": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz", + "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", + "dev": true, + "requires": { + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" + } + }, + "babel-plugin-transform-strict-mode": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz", + "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", + "dev": true, + "requires": { + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" + } + }, "babel-runtime": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", @@ -1408,6 +1448,70 @@ "regenerator-runtime": "^0.11.0" } }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "dev": true, + "requires": { + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" + }, + "dependencies": { + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==", + "dev": true + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "dev": true, + "requires": { + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" + }, + "dependencies": { + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=", + "dev": true + } + } + }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==", + "dev": true + }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", @@ -2024,6 +2128,11 @@ "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, + "codex.editor": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/codex.editor/-/codex.editor-2.1.1.tgz", + "integrity": "sha512-0NphLL0zaysq4Qy0m7vbRaWYdjwtzY7aZBpRNsZvg7TYDmhxj586JJP7c20jd+h7OBiHVpcbVUn+j7kclP/o0g==" + }, "collection-visit": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", @@ -3603,29 +3712,6 @@ } } }, - "extract-text-webpack-plugin": { - "version": "4.0.0-beta.0", - "resolved": "https://registry.npmjs.org/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.0-beta.0.tgz", - "integrity": "sha512-Hypkn9jUTnFr0DpekNam53X47tXn3ucY08BQumv7kdGgeVUBLq3DJHJTi6HNxv4jl9W+Skxjz9+RnK0sJyqqjA==", - "dev": true, - "requires": { - "async": "^2.4.1", - "loader-utils": "^1.1.0", - "schema-utils": "^0.4.5", - "webpack-sources": "^1.1.0" - }, - "dependencies": { - "async": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/async/-/async-2.6.1.tgz", - "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", - "dev": true, - "requires": { - "lodash": "^4.17.10" - } - } - } - }, "fast-deep-equal": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", diff --git a/package.json b/package.json index a3f3519..71a6b57 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "precommit": "yarn lint && yarn test --exit" }, "dependencies": { + "@babel/polyfill": "^7.0.0", "body-parser": "latest", "codex.editor": "^2.0.11", "cookie-parser": "~1.4.3", @@ -32,7 +33,6 @@ "autoprefixer": "^9.1.3", "babel": "^6.23.0", "babel-loader": "^8.0.2", - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", "chai": "^4.1.2", "chai-http": "^4.0.0", "css-loader": "^1.0.0", @@ -40,8 +40,8 @@ "eslint": "^5.3.0", "eslint-config-codex": "github:codex-team/eslint-config", "eslint-plugin-chai-friendly": "^0.4.1", - "extract-text-webpack-plugin": "^4.0.0-beta.0", "husky": "^0.14.3", + "mini-css-extract-plugin": "^0.4.3", "mocha": "^5.2.0", "nyc": "^12.0.2", "postcss": "^7.0.2", diff --git a/public/dist/vendors~codex-editor.bundle.js b/public/dist/editor.bundle.js similarity index 95% rename from public/dist/vendors~codex-editor.bundle.js rename to public/dist/editor.bundle.js index f448ef6..a3e6ecb 100644 --- a/public/dist/vendors~codex-editor.bundle.js +++ b/public/dist/editor.bundle.js @@ -1,8 +1,4 @@ -(window["webpackJsonpDocs"] = window["webpackJsonpDocs"] || []).push([[1],[ -/* 0 */ -/***/ (function(module, exports, __webpack_require__) { - -!function(e,o){ true?module.exports=o():undefined}(window,function(){return function(e){var o={};function t(s){if(o[s])return o[s].exports;var n=o[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=o,t.d=function(e,o,s){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:s})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(s,n,function(o){return e[o]}.bind(null,n));return s},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=0)}({"./build/sprite.svg": +(window.webpackJsonpDocs=window.webpackJsonpDocs||[]).push([[1],{51:function(e,o,t){window,e.exports=function(e){var o={};function t(s){if(o[s])return o[s].exports;var n=o[s]={i:s,l:!1,exports:{}};return e[s].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=e,t.c=o,t.d=function(e,o,s){t.o(e,o)||Object.defineProperty(e,o,{enumerable:!0,get:s})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,o){if(1&o&&(e=t(e)),8&o)return e;if(4&o&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&o&&"string"!=typeof e)for(var n in e)t.d(s,n,function(o){return e[o]}.bind(null,n));return s},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,o){return Object.prototype.hasOwnProperty.call(e,o)},t.p="",t(t.s=0)}({"./build/sprite.svg": /*!**************************!*\ !*** ./build/sprite.svg ***! \**************************/ @@ -30,7 +26,7 @@ /*!*********************************************************************************!*\ !*** ./node_modules/babel-polyfill/node_modules/regenerator-runtime/runtime.js ***! \*********************************************************************************/ -/*! no static exports found */function(e,o,t){(function(o){!function(o){"use strict";var t,s=Object.prototype,n=s.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",u=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag",d="object"==typeof e,c=o.regeneratorRuntime;if(c)d&&(e.exports=c);else{(c=o.regeneratorRuntime=d?e.exports:{}).wrap=v;var a="suspendedStart",m="suspendedYield",f="executing",j="completed",_={},p={};p[l]=function(){return this};var h=Object.getPrototypeOf,b=h&&h(h(N([])));b&&b!==s&&n.call(b,l)&&(p=b);var y=w.prototype=k.prototype=Object.create(p);x.prototype=y.constructor=w,w.constructor=x,w[i]=x.displayName="GeneratorFunction",c.isGeneratorFunction=function(e){var o="function"==typeof e&&e.constructor;return!!o&&(o===x||"GeneratorFunction"===(o.displayName||o.name))},c.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(y),e},c.awrap=function(e){return{__await:e}},S(E.prototype),E.prototype[u]=function(){return this},c.AsyncIterator=E,c.async=function(e,o,t,s){var n=new E(v(e,o,t,s));return c.isGeneratorFunction(o)?n:n.next().then(function(e){return e.done?e.value:n.next()})},S(y),y[i]="Generator",y[l]=function(){return this},y.toString=function(){return"[object Generator]"},c.keys=function(e){var o=[];for(var t in e)o.push(t);return o.reverse(),function t(){for(;o.length;){var s=o.pop();if(s in e)return t.value=s,t.done=!1,t}return t.done=!0,t}},c.values=N,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!e)for(var o in this)"t"===o.charAt(0)&&n.call(this,o)&&!isNaN(+o.slice(1))&&(this[o]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var o=this;function s(s,n){return u.type="throw",u.arg=e,o.next=s,n&&(o.method="next",o.arg=t),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var l=this.tryEntries[r],u=l.completion;if("root"===l.tryLoc)return s("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),d=n.call(l,"finallyLoc");if(i&&d){if(this.prev=0;--t){var s=this.tryEntries[t];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--o){var t=this.tryEntries[o];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),M(t),_}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var t=this.tryEntries[o];if(t.tryLoc===e){var s=t.completion;if("throw"===s.type){var n=s.arg;M(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,s){return this.delegate={iterator:N(e),resultName:o,nextLoc:s},"next"===this.method&&(this.arg=t),_}}}function v(e,o,t,s){var n=o&&o.prototype instanceof k?o:k,r=Object.create(n.prototype),l=new O(s||[]);return r._invoke=function(e,o,t){var s=a;return function(n,r){if(s===f)throw new Error("Generator is already running");if(s===j){if("throw"===n)throw r;return B()}for(t.method=n,t.arg=r;;){var l=t.delegate;if(l){var u=C(l,t);if(u){if(u===_)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(s===a)throw s=j,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);s=f;var i=g(e,o,t);if("normal"===i.type){if(s=t.done?j:m,i.arg===_)continue;return{value:i.arg,done:t.done}}"throw"===i.type&&(s=j,t.method="throw",t.arg=i.arg)}}}(e,t,l),r}function g(e,o,t){try{return{type:"normal",arg:e.call(o,t)}}catch(e){return{type:"throw",arg:e}}}function k(){}function x(){}function w(){}function S(e){["next","throw","return"].forEach(function(o){e[o]=function(e){return this._invoke(o,e)}})}function E(e){function t(o,s,r,l){var u=g(e[o],e,s);if("throw"!==u.type){var i=u.arg,d=i.value;return d&&"object"==typeof d&&n.call(d,"__await")?Promise.resolve(d.__await).then(function(e){t("next",e,r,l)},function(e){t("throw",e,r,l)}):Promise.resolve(d).then(function(e){i.value=e,r(i)},l)}l(u.arg)}var s;"object"==typeof o.process&&o.process.domain&&(t=o.process.domain.bind(t)),this._invoke=function(e,o){function n(){return new Promise(function(s,n){t(e,o,s,n)})}return s=s?s.then(n,n):n()}}function C(e,o){var s=e.iterator[o.method];if(s===t){if(o.delegate=null,"throw"===o.method){if(e.iterator.return&&(o.method="return",o.arg=t,C(e,o),"throw"===o.method))return _;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var n=g(s,e.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,_;var r=n.arg;return r?r.done?(o[e.resultName]=r.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,_):r:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,_)}function T(e){var o={tryLoc:e[0]};1 in e&&(o.catchLoc=e[1]),2 in e&&(o.finallyLoc=e[2],o.afterLoc=e[3]),this.tryEntries.push(o)}function M(e){var o=e.completion||{};o.type="normal",delete o.arg,e.completion=o}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function o(){for(;++s=0;--r){var l=this.tryEntries[r],u=l.completion;if("root"===l.tryLoc)return s("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),d=n.call(l,"finallyLoc");if(i&&d){if(this.prev=0;--t){var s=this.tryEntries[t];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--o){var t=this.tryEntries[o];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),M(t),_}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var t=this.tryEntries[o];if(t.tryLoc===e){var s=t.completion;if("throw"===s.type){var n=s.arg;M(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,s){return this.delegate={iterator:N(e),resultName:o,nextLoc:s},"next"===this.method&&(this.arg=t),_}}}function y(e,o,t,s){var n=o&&o.prototype instanceof k?o:k,r=Object.create(n.prototype),l=new O(s||[]);return r._invoke=function(e,o,t){var s=a;return function(n,r){if(s===f)throw new Error("Generator is already running");if(s===j){if("throw"===n)throw r;return B()}for(t.method=n,t.arg=r;;){var l=t.delegate;if(l){var u=C(l,t);if(u){if(u===_)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(s===a)throw s=j,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);s=f;var i=g(e,o,t);if("normal"===i.type){if(s=t.done?j:m,i.arg===_)continue;return{value:i.arg,done:t.done}}"throw"===i.type&&(s=j,t.method="throw",t.arg=i.arg)}}}(e,t,l),r}function g(e,o,t){try{return{type:"normal",arg:e.call(o,t)}}catch(e){return{type:"throw",arg:e}}}function k(){}function x(){}function w(){}function S(e){["next","throw","return"].forEach(function(o){e[o]=function(e){return this._invoke(o,e)}})}function E(e){function t(o,s,r,l){var u=g(e[o],e,s);if("throw"!==u.type){var i=u.arg,d=i.value;return d&&"object"==typeof d&&n.call(d,"__await")?Promise.resolve(d.__await).then(function(e){t("next",e,r,l)},function(e){t("throw",e,r,l)}):Promise.resolve(d).then(function(e){i.value=e,r(i)},l)}l(u.arg)}var s;"object"==typeof o.process&&o.process.domain&&(t=o.process.domain.bind(t)),this._invoke=function(e,o){function n(){return new Promise(function(s,n){t(e,o,s,n)})}return s=s?s.then(n,n):n()}}function C(e,o){var s=e.iterator[o.method];if(s===t){if(o.delegate=null,"throw"===o.method){if(e.iterator.return&&(o.method="return",o.arg=t,C(e,o),"throw"===o.method))return _;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var n=g(s,e.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,_;var r=n.arg;return r?r.done?(o[e.resultName]=r.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,_):r:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,_)}function T(e){var o={tryLoc:e[0]};1 in e&&(o.catchLoc=e[1]),2 in e&&(o.finallyLoc=e[2],o.afterLoc=e[3]),this.tryEntries.push(o)}function M(e){var o=e.completion||{};o.type="normal",delete o.arg,e.completion=o}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function o(){for(;++sg;g++)if((m||g in b)&&(p=y(_=b[g],g,h),e))if(t)k[g]=p;else if(p)switch(e){case 3:return!0;case 5:return _;case 6:return g;case 2:k.push(_)}else if(c)return!1;return a?-1:d||c?c:k}}},"./node_modules/core-js/library/modules/_array-species-constructor.js": +/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),n=t(/*! ./_iobject */"./node_modules/core-js/library/modules/_iobject.js"),r=t(/*! ./_to-object */"./node_modules/core-js/library/modules/_to-object.js"),l=t(/*! ./_to-length */"./node_modules/core-js/library/modules/_to-length.js"),u=t(/*! ./_array-species-create */"./node_modules/core-js/library/modules/_array-species-create.js");e.exports=function(e,o){var t=1==e,i=2==e,d=3==e,c=4==e,a=6==e,m=5==e||a,f=o||u;return function(o,u,j){for(var _,p,h=r(o),b=n(h),v=s(u,j,3),y=l(b.length),g=0,k=t?f(o,y):i?f(o,0):void 0;y>g;g++)if((m||g in b)&&(p=v(_=b[g],g,h),e))if(t)k[g]=p;else if(p)switch(e){case 3:return!0;case 5:return _;case 6:return g;case 2:k.push(_)}else if(c)return!1;return a?-1:d||c?c:k}}},"./node_modules/core-js/library/modules/_array-species-constructor.js": /*!****************************************************************************!*\ !*** ./node_modules/core-js/library/modules/_array-species-constructor.js ***! \****************************************************************************/ @@ -242,7 +238,7 @@ /*!*************************************************************!*\ !*** ./node_modules/core-js/library/modules/_collection.js ***! \*************************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),n=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),r=t(/*! ./_meta */"./node_modules/core-js/library/modules/_meta.js"),l=t(/*! ./_fails */"./node_modules/core-js/library/modules/_fails.js"),u=t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js"),i=t(/*! ./_redefine-all */"./node_modules/core-js/library/modules/_redefine-all.js"),d=t(/*! ./_for-of */"./node_modules/core-js/library/modules/_for-of.js"),c=t(/*! ./_an-instance */"./node_modules/core-js/library/modules/_an-instance.js"),a=t(/*! ./_is-object */"./node_modules/core-js/library/modules/_is-object.js"),m=t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js"),f=t(/*! ./_object-dp */"./node_modules/core-js/library/modules/_object-dp.js").f,j=t(/*! ./_array-methods */"./node_modules/core-js/library/modules/_array-methods.js")(0),_=t(/*! ./_descriptors */"./node_modules/core-js/library/modules/_descriptors.js");e.exports=function(e,o,t,p,h,b){var y=s[e],v=y,g=h?"set":"add",k=v&&v.prototype,x={};return _&&"function"==typeof v&&(b||k.forEach&&!l(function(){(new v).entries().next()}))?(v=o(function(o,t){c(o,v,e,"_c"),o._c=new y,void 0!=t&&d(t,h,o[g],o)}),j("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var o="add"==e||"set"==e;e in k&&(!b||"clear"!=e)&&u(v.prototype,e,function(t,s){if(c(this,v,e),!o&&b&&!a(t))return"get"==e&&void 0;var n=this._c[e](0===t?0:t,s);return o?this:n})}),b||f(v.prototype,"size",{get:function(){return this._c.size}})):(v=p.getConstructor(o,e,h,g),i(v.prototype,t),r.NEED=!0),m(v,e),x[e]=v,n(n.G+n.W+n.F,x),b||p.setStrong(v,e,h),v}},"./node_modules/core-js/library/modules/_core.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),n=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),r=t(/*! ./_meta */"./node_modules/core-js/library/modules/_meta.js"),l=t(/*! ./_fails */"./node_modules/core-js/library/modules/_fails.js"),u=t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js"),i=t(/*! ./_redefine-all */"./node_modules/core-js/library/modules/_redefine-all.js"),d=t(/*! ./_for-of */"./node_modules/core-js/library/modules/_for-of.js"),c=t(/*! ./_an-instance */"./node_modules/core-js/library/modules/_an-instance.js"),a=t(/*! ./_is-object */"./node_modules/core-js/library/modules/_is-object.js"),m=t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js"),f=t(/*! ./_object-dp */"./node_modules/core-js/library/modules/_object-dp.js").f,j=t(/*! ./_array-methods */"./node_modules/core-js/library/modules/_array-methods.js")(0),_=t(/*! ./_descriptors */"./node_modules/core-js/library/modules/_descriptors.js");e.exports=function(e,o,t,p,h,b){var v=s[e],y=v,g=h?"set":"add",k=y&&y.prototype,x={};return _&&"function"==typeof y&&(b||k.forEach&&!l(function(){(new y).entries().next()}))?(y=o(function(o,t){c(o,y,e,"_c"),o._c=new v,void 0!=t&&d(t,h,o[g],o)}),j("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var o="add"==e||"set"==e;e in k&&(!b||"clear"!=e)&&u(y.prototype,e,function(t,s){if(c(this,y,e),!o&&b&&!a(t))return"get"==e&&void 0;var n=this._c[e](0===t?0:t,s);return o?this:n})}),b||f(y.prototype,"size",{get:function(){return this._c.size}})):(y=p.getConstructor(o,e,h,g),i(y.prototype,t),r.NEED=!0),m(y,e),x[e]=y,n(n.G+n.W+n.F,x),b||p.setStrong(y,e,h),y}},"./node_modules/core-js/library/modules/_core.js": /*!*******************************************************!*\ !*** ./node_modules/core-js/library/modules/_core.js ***! \*******************************************************/ @@ -278,7 +274,7 @@ /*!*********************************************************!*\ !*** ./node_modules/core-js/library/modules/_export.js ***! \*********************************************************/ -/*! no static exports found */function(e,o,t){var s=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),n=t(/*! ./_core */"./node_modules/core-js/library/modules/_core.js"),r=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),l=t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js"),u=t(/*! ./_has */"./node_modules/core-js/library/modules/_has.js"),i=function(e,o,t){var d,c,a,m=e&i.F,f=e&i.G,j=e&i.S,_=e&i.P,p=e&i.B,h=e&i.W,b=f?n:n[o]||(n[o]={}),y=b.prototype,v=f?s:j?s[o]:(s[o]||{}).prototype;for(d in f&&(t=o),t)(c=!m&&v&&void 0!==v[d])&&u(b,d)||(a=c?v[d]:t[d],b[d]=f&&"function"!=typeof v[d]?t[d]:p&&c?r(a,s):h&&v[d]==a?function(e){var o=function(o,t,s){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(o);case 2:return new e(o,t)}return new e(o,t,s)}return e.apply(this,arguments)};return o.prototype=e.prototype,o}(a):_&&"function"==typeof a?r(Function.call,a):a,_&&((b.virtual||(b.virtual={}))[d]=a,e&i.R&&y&&!y[d]&&l(y,d,a)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"./node_modules/core-js/library/modules/_fails.js": +/*! no static exports found */function(e,o,t){var s=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),n=t(/*! ./_core */"./node_modules/core-js/library/modules/_core.js"),r=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),l=t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js"),u=t(/*! ./_has */"./node_modules/core-js/library/modules/_has.js"),i=function(e,o,t){var d,c,a,m=e&i.F,f=e&i.G,j=e&i.S,_=e&i.P,p=e&i.B,h=e&i.W,b=f?n:n[o]||(n[o]={}),v=b.prototype,y=f?s:j?s[o]:(s[o]||{}).prototype;for(d in f&&(t=o),t)(c=!m&&y&&void 0!==y[d])&&u(b,d)||(a=c?y[d]:t[d],b[d]=f&&"function"!=typeof y[d]?t[d]:p&&c?r(a,s):h&&y[d]==a?function(e){var o=function(o,t,s){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(o);case 2:return new e(o,t)}return new e(o,t,s)}return e.apply(this,arguments)};return o.prototype=e.prototype,o}(a):_&&"function"==typeof a?r(Function.call,a):a,_&&((b.virtual||(b.virtual={}))[d]=a,e&i.R&&v&&!v[d]&&l(v,d,a)))};i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"./node_modules/core-js/library/modules/_fails.js": /*!********************************************************!*\ !*** ./node_modules/core-js/library/modules/_fails.js ***! \********************************************************/ @@ -286,7 +282,7 @@ /*!*********************************************************!*\ !*** ./node_modules/core-js/library/modules/_for-of.js ***! \*********************************************************/ -/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),n=t(/*! ./_iter-call */"./node_modules/core-js/library/modules/_iter-call.js"),r=t(/*! ./_is-array-iter */"./node_modules/core-js/library/modules/_is-array-iter.js"),l=t(/*! ./_an-object */"./node_modules/core-js/library/modules/_an-object.js"),u=t(/*! ./_to-length */"./node_modules/core-js/library/modules/_to-length.js"),i=t(/*! ./core.get-iterator-method */"./node_modules/core-js/library/modules/core.get-iterator-method.js"),d={},c={};(o=e.exports=function(e,o,t,a,m){var f,j,_,p,h=m?function(){return e}:i(e),b=s(t,a,o?2:1),y=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(r(h)){for(f=u(e.length);f>y;y++)if((p=o?b(l(j=e[y])[0],j[1]):b(e[y]))===d||p===c)return p}else for(_=h.call(e);!(j=_.next()).done;)if((p=n(_,b,j.value,o))===d||p===c)return p}).BREAK=d,o.RETURN=c},"./node_modules/core-js/library/modules/_global.js": +/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),n=t(/*! ./_iter-call */"./node_modules/core-js/library/modules/_iter-call.js"),r=t(/*! ./_is-array-iter */"./node_modules/core-js/library/modules/_is-array-iter.js"),l=t(/*! ./_an-object */"./node_modules/core-js/library/modules/_an-object.js"),u=t(/*! ./_to-length */"./node_modules/core-js/library/modules/_to-length.js"),i=t(/*! ./core.get-iterator-method */"./node_modules/core-js/library/modules/core.get-iterator-method.js"),d={},c={};(o=e.exports=function(e,o,t,a,m){var f,j,_,p,h=m?function(){return e}:i(e),b=s(t,a,o?2:1),v=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(r(h)){for(f=u(e.length);f>v;v++)if((p=o?b(l(j=e[v])[0],j[1]):b(e[v]))===d||p===c)return p}else for(_=h.call(e);!(j=_.next()).done;)if((p=n(_,b,j.value,o))===d||p===c)return p}).BREAK=d,o.RETURN=c},"./node_modules/core-js/library/modules/_global.js": /*!*********************************************************!*\ !*** ./node_modules/core-js/library/modules/_global.js ***! \*********************************************************/ @@ -338,7 +334,7 @@ /*!**************************************************************!*\ !*** ./node_modules/core-js/library/modules/_iter-define.js ***! \**************************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_library */"./node_modules/core-js/library/modules/_library.js"),n=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),r=t(/*! ./_redefine */"./node_modules/core-js/library/modules/_redefine.js"),l=t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js"),u=t(/*! ./_iterators */"./node_modules/core-js/library/modules/_iterators.js"),i=t(/*! ./_iter-create */"./node_modules/core-js/library/modules/_iter-create.js"),d=t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js"),c=t(/*! ./_object-gpo */"./node_modules/core-js/library/modules/_object-gpo.js"),a=t(/*! ./_wks */"./node_modules/core-js/library/modules/_wks.js")("iterator"),m=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,o,t,j,_,p,h){i(t,o,j);var b,y,v,g=function(e){if(!m&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},k=o+" Iterator",x="values"==_,w=!1,S=e.prototype,E=S[a]||S["@@iterator"]||_&&S[_],C=E||g(_),T=_?x?g("entries"):C:void 0,M="Array"==o&&S.entries||E;if(M&&(v=c(M.call(new e)))!==Object.prototype&&v.next&&(d(v,k,!0),s||"function"==typeof v[a]||l(v,a,f)),x&&E&&"values"!==E.name&&(w=!0,C=function(){return E.call(this)}),s&&!h||!m&&!w&&S[a]||l(S,a,C),u[o]=C,u[k]=f,_)if(b={values:x?C:g("values"),keys:p?C:g("keys"),entries:T},h)for(y in b)y in S||r(S,y,b[y]);else n(n.P+n.F*(m||w),o,b);return b}},"./node_modules/core-js/library/modules/_iter-detect.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_library */"./node_modules/core-js/library/modules/_library.js"),n=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),r=t(/*! ./_redefine */"./node_modules/core-js/library/modules/_redefine.js"),l=t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js"),u=t(/*! ./_iterators */"./node_modules/core-js/library/modules/_iterators.js"),i=t(/*! ./_iter-create */"./node_modules/core-js/library/modules/_iter-create.js"),d=t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js"),c=t(/*! ./_object-gpo */"./node_modules/core-js/library/modules/_object-gpo.js"),a=t(/*! ./_wks */"./node_modules/core-js/library/modules/_wks.js")("iterator"),m=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,o,t,j,_,p,h){i(t,o,j);var b,v,y,g=function(e){if(!m&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},k=o+" Iterator",x="values"==_,w=!1,S=e.prototype,E=S[a]||S["@@iterator"]||_&&S[_],C=E||g(_),T=_?x?g("entries"):C:void 0,M="Array"==o&&S.entries||E;if(M&&(y=c(M.call(new e)))!==Object.prototype&&y.next&&(d(y,k,!0),s||"function"==typeof y[a]||l(y,a,f)),x&&E&&"values"!==E.name&&(w=!0,C=function(){return E.call(this)}),s&&!h||!m&&!w&&S[a]||l(S,a,C),u[o]=C,u[k]=f,_)if(b={values:x?C:g("values"),keys:p?C:g("keys"),entries:T},h)for(v in b)v in S||r(S,v,b[v]);else n(n.P+n.F*(m||w),o,b);return b}},"./node_modules/core-js/library/modules/_iter-detect.js": /*!**************************************************************!*\ !*** ./node_modules/core-js/library/modules/_iter-detect.js ***! \**************************************************************/ @@ -482,7 +478,7 @@ /*!*******************************************************!*\ !*** ./node_modules/core-js/library/modules/_task.js ***! \*******************************************************/ -/*! no static exports found */function(e,o,t){var s,n,r,l=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),u=t(/*! ./_invoke */"./node_modules/core-js/library/modules/_invoke.js"),i=t(/*! ./_html */"./node_modules/core-js/library/modules/_html.js"),d=t(/*! ./_dom-create */"./node_modules/core-js/library/modules/_dom-create.js"),c=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),a=c.process,m=c.setImmediate,f=c.clearImmediate,j=c.MessageChannel,_=c.Dispatch,p=0,h={},b=function(){var e=+this;if(h.hasOwnProperty(e)){var o=h[e];delete h[e],o()}},y=function(e){b.call(e.data)};m&&f||(m=function(e){for(var o=[],t=1;arguments.length>t;)o.push(arguments[t++]);return h[++p]=function(){u("function"==typeof e?e:Function(e),o)},s(p),p},f=function(e){delete h[e]},"process"==t(/*! ./_cof */"./node_modules/core-js/library/modules/_cof.js")(a)?s=function(e){a.nextTick(l(b,e,1))}:_&&_.now?s=function(e){_.now(l(b,e,1))}:j?(r=(n=new j).port2,n.port1.onmessage=y,s=l(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(s=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):s="onreadystatechange"in d("script")?function(e){i.appendChild(d("script")).onreadystatechange=function(){i.removeChild(this),b.call(e)}}:function(e){setTimeout(l(b,e,1),0)}),e.exports={set:m,clear:f}},"./node_modules/core-js/library/modules/_to-absolute-index.js": +/*! no static exports found */function(e,o,t){var s,n,r,l=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),u=t(/*! ./_invoke */"./node_modules/core-js/library/modules/_invoke.js"),i=t(/*! ./_html */"./node_modules/core-js/library/modules/_html.js"),d=t(/*! ./_dom-create */"./node_modules/core-js/library/modules/_dom-create.js"),c=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),a=c.process,m=c.setImmediate,f=c.clearImmediate,j=c.MessageChannel,_=c.Dispatch,p=0,h={},b=function(){var e=+this;if(h.hasOwnProperty(e)){var o=h[e];delete h[e],o()}},v=function(e){b.call(e.data)};m&&f||(m=function(e){for(var o=[],t=1;arguments.length>t;)o.push(arguments[t++]);return h[++p]=function(){u("function"==typeof e?e:Function(e),o)},s(p),p},f=function(e){delete h[e]},"process"==t(/*! ./_cof */"./node_modules/core-js/library/modules/_cof.js")(a)?s=function(e){a.nextTick(l(b,e,1))}:_&&_.now?s=function(e){_.now(l(b,e,1))}:j?(r=(n=new j).port2,n.port1.onmessage=v,s=l(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(s=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):s="onreadystatechange"in d("script")?function(e){i.appendChild(d("script")).onreadystatechange=function(){i.removeChild(this),b.call(e)}}:function(e){setTimeout(l(b,e,1),0)}),e.exports={set:m,clear:f}},"./node_modules/core-js/library/modules/_to-absolute-index.js": /*!********************************************************************!*\ !*** ./node_modules/core-js/library/modules/_to-absolute-index.js ***! \********************************************************************/ @@ -586,7 +582,7 @@ /*!*************************************************************!*\ !*** ./node_modules/core-js/library/modules/es6.promise.js ***! \*************************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s,n,r,l,u=t(/*! ./_library */"./node_modules/core-js/library/modules/_library.js"),i=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),d=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),c=t(/*! ./_classof */"./node_modules/core-js/library/modules/_classof.js"),a=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),m=t(/*! ./_is-object */"./node_modules/core-js/library/modules/_is-object.js"),f=t(/*! ./_a-function */"./node_modules/core-js/library/modules/_a-function.js"),j=t(/*! ./_an-instance */"./node_modules/core-js/library/modules/_an-instance.js"),_=t(/*! ./_for-of */"./node_modules/core-js/library/modules/_for-of.js"),p=t(/*! ./_species-constructor */"./node_modules/core-js/library/modules/_species-constructor.js"),h=t(/*! ./_task */"./node_modules/core-js/library/modules/_task.js").set,b=t(/*! ./_microtask */"./node_modules/core-js/library/modules/_microtask.js")(),y=t(/*! ./_new-promise-capability */"./node_modules/core-js/library/modules/_new-promise-capability.js"),v=t(/*! ./_perform */"./node_modules/core-js/library/modules/_perform.js"),g=t(/*! ./_user-agent */"./node_modules/core-js/library/modules/_user-agent.js"),k=t(/*! ./_promise-resolve */"./node_modules/core-js/library/modules/_promise-resolve.js"),x=i.TypeError,w=i.process,S=w&&w.versions,E=S&&S.v8||"",C=i.Promise,T="process"==c(w),M=function(){},O=n=y.f,N=!!function(){try{var e=C.resolve(1),o=(e.constructor={})[t(/*! ./_wks */"./node_modules/core-js/library/modules/_wks.js")("species")]=function(e){e(M,M)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof o&&0!==E.indexOf("6.6")&&-1===g.indexOf("Chrome/66")}catch(e){}}(),B=function(e){var o;return!(!m(e)||"function"!=typeof(o=e.then))&&o},I=function(e,o){if(!e._n){e._n=!0;var t=e._c;b(function(){for(var s=e._v,n=1==e._s,r=0,l=function(o){var t,r,l,u=n?o.ok:o.fail,i=o.resolve,d=o.reject,c=o.domain;try{u?(n||(2==e._h&&L(e),e._h=1),!0===u?t=s:(c&&c.enter(),t=u(s),c&&(c.exit(),l=!0)),t===o.promise?d(x("Promise-chain cycle")):(r=B(t))?r.call(t,i,d):i(t)):d(s)}catch(e){c&&!l&&c.exit(),d(e)}};t.length>r;)l(t[r++]);e._c=[],e._n=!1,o&&!e._h&&A(e)})}},A=function(e){h.call(i,function(){var o,t,s,n=e._v,r=P(e);if(r&&(o=v(function(){T?w.emit("unhandledRejection",n,e):(t=i.onunhandledrejection)?t({promise:e,reason:n}):(s=i.console)&&s.error&&s.error("Unhandled promise rejection",n)}),e._h=T||P(e)?2:1),e._a=void 0,r&&o.e)throw o.v})},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){h.call(i,function(){var o;T?w.emit("rejectionHandled",e):(o=i.onrejectionhandled)&&o({promise:e,reason:e._v})})},R=function(e){var o=this;o._d||(o._d=!0,(o=o._w||o)._v=e,o._s=2,o._a||(o._a=o._c.slice()),I(o,!0))},F=function(e){var o,t=this;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw x("Promise can't be resolved itself");(o=B(e))?b(function(){var s={_w:t,_d:!1};try{o.call(e,d(F,s,1),d(R,s,1))}catch(e){R.call(s,e)}}):(t._v=e,t._s=1,I(t,!1))}catch(e){R.call({_w:t,_d:!1},e)}}};N||(C=function(e){j(this,C,"Promise","_h"),f(e),s.call(this);try{e(d(F,this,1),d(R,this,1))}catch(e){R.call(this,e)}},(s=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(/*! ./_redefine-all */"./node_modules/core-js/library/modules/_redefine-all.js")(C.prototype,{then:function(e,o){var t=O(p(this,C));return t.ok="function"!=typeof e||e,t.fail="function"==typeof o&&o,t.domain=T?w.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&I(this,!1),t.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new s;this.promise=e,this.resolve=d(F,e,1),this.reject=d(R,e,1)},y.f=O=function(e){return e===C||e===l?new r(e):n(e)}),a(a.G+a.W+a.F*!N,{Promise:C}),t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js")(C,"Promise"),t(/*! ./_set-species */"./node_modules/core-js/library/modules/_set-species.js")("Promise"),l=t(/*! ./_core */"./node_modules/core-js/library/modules/_core.js").Promise,a(a.S+a.F*!N,"Promise",{reject:function(e){var o=O(this);return(0,o.reject)(e),o.promise}}),a(a.S+a.F*(u||!N),"Promise",{resolve:function(e){return k(u&&this===l?C:this,e)}}),a(a.S+a.F*!(N&&t(/*! ./_iter-detect */"./node_modules/core-js/library/modules/_iter-detect.js")(function(e){C.all(e).catch(M)})),"Promise",{all:function(e){var o=this,t=O(o),s=t.resolve,n=t.reject,r=v(function(){var t=[],r=0,l=1;_(e,!1,function(e){var u=r++,i=!1;t.push(void 0),l++,o.resolve(e).then(function(e){i||(i=!0,t[u]=e,--l||s(t))},n)}),--l||s(t)});return r.e&&n(r.v),t.promise},race:function(e){var o=this,t=O(o),s=t.reject,n=v(function(){_(e,!1,function(e){o.resolve(e).then(t.resolve,s)})});return n.e&&s(n.v),t.promise}})},"./node_modules/core-js/library/modules/es6.string.iterator.js": +/*! no static exports found */function(e,o,t){"use strict";var s,n,r,l,u=t(/*! ./_library */"./node_modules/core-js/library/modules/_library.js"),i=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),d=t(/*! ./_ctx */"./node_modules/core-js/library/modules/_ctx.js"),c=t(/*! ./_classof */"./node_modules/core-js/library/modules/_classof.js"),a=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),m=t(/*! ./_is-object */"./node_modules/core-js/library/modules/_is-object.js"),f=t(/*! ./_a-function */"./node_modules/core-js/library/modules/_a-function.js"),j=t(/*! ./_an-instance */"./node_modules/core-js/library/modules/_an-instance.js"),_=t(/*! ./_for-of */"./node_modules/core-js/library/modules/_for-of.js"),p=t(/*! ./_species-constructor */"./node_modules/core-js/library/modules/_species-constructor.js"),h=t(/*! ./_task */"./node_modules/core-js/library/modules/_task.js").set,b=t(/*! ./_microtask */"./node_modules/core-js/library/modules/_microtask.js")(),v=t(/*! ./_new-promise-capability */"./node_modules/core-js/library/modules/_new-promise-capability.js"),y=t(/*! ./_perform */"./node_modules/core-js/library/modules/_perform.js"),g=t(/*! ./_user-agent */"./node_modules/core-js/library/modules/_user-agent.js"),k=t(/*! ./_promise-resolve */"./node_modules/core-js/library/modules/_promise-resolve.js"),x=i.TypeError,w=i.process,S=w&&w.versions,E=S&&S.v8||"",C=i.Promise,T="process"==c(w),M=function(){},O=n=v.f,N=!!function(){try{var e=C.resolve(1),o=(e.constructor={})[t(/*! ./_wks */"./node_modules/core-js/library/modules/_wks.js")("species")]=function(e){e(M,M)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof o&&0!==E.indexOf("6.6")&&-1===g.indexOf("Chrome/66")}catch(e){}}(),B=function(e){var o;return!(!m(e)||"function"!=typeof(o=e.then))&&o},I=function(e,o){if(!e._n){e._n=!0;var t=e._c;b(function(){for(var s=e._v,n=1==e._s,r=0,l=function(o){var t,r,l,u=n?o.ok:o.fail,i=o.resolve,d=o.reject,c=o.domain;try{u?(n||(2==e._h&&L(e),e._h=1),!0===u?t=s:(c&&c.enter(),t=u(s),c&&(c.exit(),l=!0)),t===o.promise?d(x("Promise-chain cycle")):(r=B(t))?r.call(t,i,d):i(t)):d(s)}catch(e){c&&!l&&c.exit(),d(e)}};t.length>r;)l(t[r++]);e._c=[],e._n=!1,o&&!e._h&&A(e)})}},A=function(e){h.call(i,function(){var o,t,s,n=e._v,r=P(e);if(r&&(o=y(function(){T?w.emit("unhandledRejection",n,e):(t=i.onunhandledrejection)?t({promise:e,reason:n}):(s=i.console)&&s.error&&s.error("Unhandled promise rejection",n)}),e._h=T||P(e)?2:1),e._a=void 0,r&&o.e)throw o.v})},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){h.call(i,function(){var o;T?w.emit("rejectionHandled",e):(o=i.onrejectionhandled)&&o({promise:e,reason:e._v})})},R=function(e){var o=this;o._d||(o._d=!0,(o=o._w||o)._v=e,o._s=2,o._a||(o._a=o._c.slice()),I(o,!0))},F=function(e){var o,t=this;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw x("Promise can't be resolved itself");(o=B(e))?b(function(){var s={_w:t,_d:!1};try{o.call(e,d(F,s,1),d(R,s,1))}catch(e){R.call(s,e)}}):(t._v=e,t._s=1,I(t,!1))}catch(e){R.call({_w:t,_d:!1},e)}}};N||(C=function(e){j(this,C,"Promise","_h"),f(e),s.call(this);try{e(d(F,this,1),d(R,this,1))}catch(e){R.call(this,e)}},(s=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(/*! ./_redefine-all */"./node_modules/core-js/library/modules/_redefine-all.js")(C.prototype,{then:function(e,o){var t=O(p(this,C));return t.ok="function"!=typeof e||e,t.fail="function"==typeof o&&o,t.domain=T?w.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&I(this,!1),t.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new s;this.promise=e,this.resolve=d(F,e,1),this.reject=d(R,e,1)},v.f=O=function(e){return e===C||e===l?new r(e):n(e)}),a(a.G+a.W+a.F*!N,{Promise:C}),t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js")(C,"Promise"),t(/*! ./_set-species */"./node_modules/core-js/library/modules/_set-species.js")("Promise"),l=t(/*! ./_core */"./node_modules/core-js/library/modules/_core.js").Promise,a(a.S+a.F*!N,"Promise",{reject:function(e){var o=O(this);return(0,o.reject)(e),o.promise}}),a(a.S+a.F*(u||!N),"Promise",{resolve:function(e){return k(u&&this===l?C:this,e)}}),a(a.S+a.F*!(N&&t(/*! ./_iter-detect */"./node_modules/core-js/library/modules/_iter-detect.js")(function(e){C.all(e).catch(M)})),"Promise",{all:function(e){var o=this,t=O(o),s=t.resolve,n=t.reject,r=y(function(){var t=[],r=0,l=1;_(e,!1,function(e){var u=r++,i=!1;t.push(void 0),l++,o.resolve(e).then(function(e){i||(i=!0,t[u]=e,--l||s(t))},n)}),--l||s(t)});return r.e&&n(r.v),t.promise},race:function(e){var o=this,t=O(o),s=t.reject,n=y(function(){_(e,!1,function(e){o.resolve(e).then(t.resolve,s)})});return n.e&&s(n.v),t.promise}})},"./node_modules/core-js/library/modules/es6.string.iterator.js": /*!*********************************************************************!*\ !*** ./node_modules/core-js/library/modules/es6.string.iterator.js ***! \*********************************************************************/ @@ -594,7 +590,7 @@ /*!************************************************************!*\ !*** ./node_modules/core-js/library/modules/es6.symbol.js ***! \************************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),n=t(/*! ./_has */"./node_modules/core-js/library/modules/_has.js"),r=t(/*! ./_descriptors */"./node_modules/core-js/library/modules/_descriptors.js"),l=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),u=t(/*! ./_redefine */"./node_modules/core-js/library/modules/_redefine.js"),i=t(/*! ./_meta */"./node_modules/core-js/library/modules/_meta.js").KEY,d=t(/*! ./_fails */"./node_modules/core-js/library/modules/_fails.js"),c=t(/*! ./_shared */"./node_modules/core-js/library/modules/_shared.js"),a=t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js"),m=t(/*! ./_uid */"./node_modules/core-js/library/modules/_uid.js"),f=t(/*! ./_wks */"./node_modules/core-js/library/modules/_wks.js"),j=t(/*! ./_wks-ext */"./node_modules/core-js/library/modules/_wks-ext.js"),_=t(/*! ./_wks-define */"./node_modules/core-js/library/modules/_wks-define.js"),p=t(/*! ./_enum-keys */"./node_modules/core-js/library/modules/_enum-keys.js"),h=t(/*! ./_is-array */"./node_modules/core-js/library/modules/_is-array.js"),b=t(/*! ./_an-object */"./node_modules/core-js/library/modules/_an-object.js"),y=t(/*! ./_is-object */"./node_modules/core-js/library/modules/_is-object.js"),v=t(/*! ./_to-iobject */"./node_modules/core-js/library/modules/_to-iobject.js"),g=t(/*! ./_to-primitive */"./node_modules/core-js/library/modules/_to-primitive.js"),k=t(/*! ./_property-desc */"./node_modules/core-js/library/modules/_property-desc.js"),x=t(/*! ./_object-create */"./node_modules/core-js/library/modules/_object-create.js"),w=t(/*! ./_object-gopn-ext */"./node_modules/core-js/library/modules/_object-gopn-ext.js"),S=t(/*! ./_object-gopd */"./node_modules/core-js/library/modules/_object-gopd.js"),E=t(/*! ./_object-dp */"./node_modules/core-js/library/modules/_object-dp.js"),C=t(/*! ./_object-keys */"./node_modules/core-js/library/modules/_object-keys.js"),T=S.f,M=E.f,O=w.f,N=s.Symbol,B=s.JSON,I=B&&B.stringify,A=f("_hidden"),P=f("toPrimitive"),L={}.propertyIsEnumerable,R=c("symbol-registry"),F=c("symbols"),D=c("op-symbols"),U=Object.prototype,z="function"==typeof N,H=s.QObject,G=!H||!H.prototype||!H.prototype.findChild,W=r&&d(function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,o,t){var s=T(U,o);s&&delete U[o],M(e,o,t),s&&e!==U&&M(U,o,s)}:M,V=function(e){var o=F[e]=x(N.prototype);return o._k=e,o},K=z&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},q=function(e,o,t){return e===U&&q(D,o,t),b(e),o=g(o,!0),b(t),n(F,o)?(t.enumerable?(n(e,A)&&e[A][o]&&(e[A][o]=!1),t=x(t,{enumerable:k(0,!1)})):(n(e,A)||M(e,A,k(1,{})),e[A][o]=!0),W(e,o,t)):M(e,o,t)},Y=function(e,o){b(e);for(var t,s=p(o=v(o)),n=0,r=s.length;r>n;)q(e,t=s[n++],o[t]);return e},J=function(e){var o=L.call(this,e=g(e,!0));return!(this===U&&n(F,e)&&!n(D,e))&&(!(o||!n(this,e)||!n(F,e)||n(this,A)&&this[A][e])||o)},X=function(e,o){if(e=v(e),o=g(o,!0),e!==U||!n(F,o)||n(D,o)){var t=T(e,o);return!t||!n(F,o)||n(e,A)&&e[A][o]||(t.enumerable=!0),t}},$=function(e){for(var o,t=O(v(e)),s=[],r=0;t.length>r;)n(F,o=t[r++])||o==A||o==i||s.push(o);return s},Z=function(e){for(var o,t=e===U,s=O(t?D:v(e)),r=[],l=0;s.length>l;)!n(F,o=s[l++])||t&&!n(U,o)||r.push(F[o]);return r};z||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=m(arguments.length>0?arguments[0]:void 0),o=function(t){this===U&&o.call(D,t),n(this,A)&&n(this[A],e)&&(this[A][e]=!1),W(this,e,k(1,t))};return r&&G&&W(U,e,{configurable:!0,set:o}),V(e)}).prototype,"toString",function(){return this._k}),S.f=X,E.f=q,t(/*! ./_object-gopn */"./node_modules/core-js/library/modules/_object-gopn.js").f=w.f=$,t(/*! ./_object-pie */"./node_modules/core-js/library/modules/_object-pie.js").f=J,t(/*! ./_object-gops */"./node_modules/core-js/library/modules/_object-gops.js").f=Z,r&&!t(/*! ./_library */"./node_modules/core-js/library/modules/_library.js")&&u(U,"propertyIsEnumerable",J,!0),j.f=function(e){return V(f(e))}),l(l.G+l.W+l.F*!z,{Symbol:N});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var oe=C(f.store),te=0;oe.length>te;)_(oe[te++]);l(l.S+l.F*!z,"Symbol",{for:function(e){return n(R,e+="")?R[e]:R[e]=N(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var o in R)if(R[o]===e)return o},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!z,"Object",{create:function(e,o){return void 0===o?x(e):Y(x(e),o)},defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),B&&l(l.S+l.F*(!z||d(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var o,t,s=[e],n=1;arguments.length>n;)s.push(arguments[n++]);if(t=o=s[1],(y(o)||void 0!==e)&&!K(e))return h(o)||(o=function(e,o){if("function"==typeof t&&(o=t.call(this,e,o)),!K(o))return o}),s[1]=o,I.apply(B,s)}}),N.prototype[P]||t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js")(N.prototype,P,N.prototype.valueOf),a(N,"Symbol"),a(Math,"Math",!0),a(s.JSON,"JSON",!0)},"./node_modules/core-js/library/modules/es7.map.from.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/library/modules/_global.js"),n=t(/*! ./_has */"./node_modules/core-js/library/modules/_has.js"),r=t(/*! ./_descriptors */"./node_modules/core-js/library/modules/_descriptors.js"),l=t(/*! ./_export */"./node_modules/core-js/library/modules/_export.js"),u=t(/*! ./_redefine */"./node_modules/core-js/library/modules/_redefine.js"),i=t(/*! ./_meta */"./node_modules/core-js/library/modules/_meta.js").KEY,d=t(/*! ./_fails */"./node_modules/core-js/library/modules/_fails.js"),c=t(/*! ./_shared */"./node_modules/core-js/library/modules/_shared.js"),a=t(/*! ./_set-to-string-tag */"./node_modules/core-js/library/modules/_set-to-string-tag.js"),m=t(/*! ./_uid */"./node_modules/core-js/library/modules/_uid.js"),f=t(/*! ./_wks */"./node_modules/core-js/library/modules/_wks.js"),j=t(/*! ./_wks-ext */"./node_modules/core-js/library/modules/_wks-ext.js"),_=t(/*! ./_wks-define */"./node_modules/core-js/library/modules/_wks-define.js"),p=t(/*! ./_enum-keys */"./node_modules/core-js/library/modules/_enum-keys.js"),h=t(/*! ./_is-array */"./node_modules/core-js/library/modules/_is-array.js"),b=t(/*! ./_an-object */"./node_modules/core-js/library/modules/_an-object.js"),v=t(/*! ./_is-object */"./node_modules/core-js/library/modules/_is-object.js"),y=t(/*! ./_to-iobject */"./node_modules/core-js/library/modules/_to-iobject.js"),g=t(/*! ./_to-primitive */"./node_modules/core-js/library/modules/_to-primitive.js"),k=t(/*! ./_property-desc */"./node_modules/core-js/library/modules/_property-desc.js"),x=t(/*! ./_object-create */"./node_modules/core-js/library/modules/_object-create.js"),w=t(/*! ./_object-gopn-ext */"./node_modules/core-js/library/modules/_object-gopn-ext.js"),S=t(/*! ./_object-gopd */"./node_modules/core-js/library/modules/_object-gopd.js"),E=t(/*! ./_object-dp */"./node_modules/core-js/library/modules/_object-dp.js"),C=t(/*! ./_object-keys */"./node_modules/core-js/library/modules/_object-keys.js"),T=S.f,M=E.f,O=w.f,N=s.Symbol,B=s.JSON,I=B&&B.stringify,A=f("_hidden"),P=f("toPrimitive"),L={}.propertyIsEnumerable,R=c("symbol-registry"),F=c("symbols"),D=c("op-symbols"),U=Object.prototype,z="function"==typeof N,H=s.QObject,G=!H||!H.prototype||!H.prototype.findChild,W=r&&d(function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,o,t){var s=T(U,o);s&&delete U[o],M(e,o,t),s&&e!==U&&M(U,o,s)}:M,V=function(e){var o=F[e]=x(N.prototype);return o._k=e,o},K=z&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},q=function(e,o,t){return e===U&&q(D,o,t),b(e),o=g(o,!0),b(t),n(F,o)?(t.enumerable?(n(e,A)&&e[A][o]&&(e[A][o]=!1),t=x(t,{enumerable:k(0,!1)})):(n(e,A)||M(e,A,k(1,{})),e[A][o]=!0),W(e,o,t)):M(e,o,t)},Y=function(e,o){b(e);for(var t,s=p(o=y(o)),n=0,r=s.length;r>n;)q(e,t=s[n++],o[t]);return e},J=function(e){var o=L.call(this,e=g(e,!0));return!(this===U&&n(F,e)&&!n(D,e))&&(!(o||!n(this,e)||!n(F,e)||n(this,A)&&this[A][e])||o)},X=function(e,o){if(e=y(e),o=g(o,!0),e!==U||!n(F,o)||n(D,o)){var t=T(e,o);return!t||!n(F,o)||n(e,A)&&e[A][o]||(t.enumerable=!0),t}},$=function(e){for(var o,t=O(y(e)),s=[],r=0;t.length>r;)n(F,o=t[r++])||o==A||o==i||s.push(o);return s},Z=function(e){for(var o,t=e===U,s=O(t?D:y(e)),r=[],l=0;s.length>l;)!n(F,o=s[l++])||t&&!n(U,o)||r.push(F[o]);return r};z||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=m(arguments.length>0?arguments[0]:void 0),o=function(t){this===U&&o.call(D,t),n(this,A)&&n(this[A],e)&&(this[A][e]=!1),W(this,e,k(1,t))};return r&&G&&W(U,e,{configurable:!0,set:o}),V(e)}).prototype,"toString",function(){return this._k}),S.f=X,E.f=q,t(/*! ./_object-gopn */"./node_modules/core-js/library/modules/_object-gopn.js").f=w.f=$,t(/*! ./_object-pie */"./node_modules/core-js/library/modules/_object-pie.js").f=J,t(/*! ./_object-gops */"./node_modules/core-js/library/modules/_object-gops.js").f=Z,r&&!t(/*! ./_library */"./node_modules/core-js/library/modules/_library.js")&&u(U,"propertyIsEnumerable",J,!0),j.f=function(e){return V(f(e))}),l(l.G+l.W+l.F*!z,{Symbol:N});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var oe=C(f.store),te=0;oe.length>te;)_(oe[te++]);l(l.S+l.F*!z,"Symbol",{for:function(e){return n(R,e+="")?R[e]:R[e]=N(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var o in R)if(R[o]===e)return o},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!z,"Object",{create:function(e,o){return void 0===o?x(e):Y(x(e),o)},defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),B&&l(l.S+l.F*(!z||d(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var o,t,s=[e],n=1;arguments.length>n;)s.push(arguments[n++]);if(t=o=s[1],(v(o)||void 0!==e)&&!K(e))return h(o)||(o=function(e,o){if("function"==typeof t&&(o=t.call(this,e,o)),!K(o))return o}),s[1]=o,I.apply(B,s)}}),N.prototype[P]||t(/*! ./_hide */"./node_modules/core-js/library/modules/_hide.js")(N.prototype,P,N.prototype.valueOf),a(N,"Symbol"),a(Math,"Math",!0),a(s.JSON,"JSON",!0)},"./node_modules/core-js/library/modules/es7.map.from.js": /*!**************************************************************!*\ !*** ./node_modules/core-js/library/modules/es7.map.from.js ***! \**************************************************************/ @@ -670,7 +666,7 @@ /*!********************************************************!*\ !*** ./node_modules/core-js/modules/_array-methods.js ***! \********************************************************/ -/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),n=t(/*! ./_iobject */"./node_modules/core-js/modules/_iobject.js"),r=t(/*! ./_to-object */"./node_modules/core-js/modules/_to-object.js"),l=t(/*! ./_to-length */"./node_modules/core-js/modules/_to-length.js"),u=t(/*! ./_array-species-create */"./node_modules/core-js/modules/_array-species-create.js");e.exports=function(e,o){var t=1==e,i=2==e,d=3==e,c=4==e,a=6==e,m=5==e||a,f=o||u;return function(o,u,j){for(var _,p,h=r(o),b=n(h),y=s(u,j,3),v=l(b.length),g=0,k=t?f(o,v):i?f(o,0):void 0;v>g;g++)if((m||g in b)&&(p=y(_=b[g],g,h),e))if(t)k[g]=p;else if(p)switch(e){case 3:return!0;case 5:return _;case 6:return g;case 2:k.push(_)}else if(c)return!1;return a?-1:d||c?c:k}}},"./node_modules/core-js/modules/_array-reduce.js": +/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),n=t(/*! ./_iobject */"./node_modules/core-js/modules/_iobject.js"),r=t(/*! ./_to-object */"./node_modules/core-js/modules/_to-object.js"),l=t(/*! ./_to-length */"./node_modules/core-js/modules/_to-length.js"),u=t(/*! ./_array-species-create */"./node_modules/core-js/modules/_array-species-create.js");e.exports=function(e,o){var t=1==e,i=2==e,d=3==e,c=4==e,a=6==e,m=5==e||a,f=o||u;return function(o,u,j){for(var _,p,h=r(o),b=n(h),v=s(u,j,3),y=l(b.length),g=0,k=t?f(o,y):i?f(o,0):void 0;y>g;g++)if((m||g in b)&&(p=v(_=b[g],g,h),e))if(t)k[g]=p;else if(p)switch(e){case 3:return!0;case 5:return _;case 6:return g;case 2:k.push(_)}else if(c)return!1;return a?-1:d||c?c:k}}},"./node_modules/core-js/modules/_array-reduce.js": /*!*******************************************************!*\ !*** ./node_modules/core-js/modules/_array-reduce.js ***! \*******************************************************/ @@ -710,7 +706,7 @@ /*!*****************************************************!*\ !*** ./node_modules/core-js/modules/_collection.js ***! \*****************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),r=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),l=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js"),u=t(/*! ./_meta */"./node_modules/core-js/modules/_meta.js"),i=t(/*! ./_for-of */"./node_modules/core-js/modules/_for-of.js"),d=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),c=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),a=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),m=t(/*! ./_iter-detect */"./node_modules/core-js/modules/_iter-detect.js"),f=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),j=t(/*! ./_inherit-if-required */"./node_modules/core-js/modules/_inherit-if-required.js");e.exports=function(e,o,t,_,p,h){var b=s[e],y=b,v=p?"set":"add",g=y&&y.prototype,k={},x=function(e){var o=g[e];r(g,e,"delete"==e?function(e){return!(h&&!c(e))&&o.call(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!c(e))&&o.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!c(e)?void 0:o.call(this,0===e?0:e)}:"add"==e?function(e){return o.call(this,0===e?0:e),this}:function(e,t){return o.call(this,0===e?0:e,t),this})};if("function"==typeof y&&(h||g.forEach&&!a(function(){(new y).entries().next()}))){var w=new y,S=w[v](h?{}:-0,1)!=w,E=a(function(){w.has(1)}),C=m(function(e){new y(e)}),T=!h&&a(function(){for(var e=new y,o=5;o--;)e[v](o,o);return!e.has(-0)});C||((y=o(function(o,t){d(o,y,e);var s=j(new b,o,y);return void 0!=t&&i(t,p,s[v],s),s})).prototype=g,g.constructor=y),(E||T)&&(x("delete"),x("has"),p&&x("get")),(T||S)&&x(v),h&&g.clear&&delete g.clear}else y=_.getConstructor(o,e,p,v),l(y.prototype,t),u.NEED=!0;return f(y,e),k[e]=y,n(n.G+n.W+n.F*(y!=b),k),h||_.setStrong(y,e,p),y}},"./node_modules/core-js/modules/_core.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),r=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),l=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js"),u=t(/*! ./_meta */"./node_modules/core-js/modules/_meta.js"),i=t(/*! ./_for-of */"./node_modules/core-js/modules/_for-of.js"),d=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),c=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),a=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),m=t(/*! ./_iter-detect */"./node_modules/core-js/modules/_iter-detect.js"),f=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),j=t(/*! ./_inherit-if-required */"./node_modules/core-js/modules/_inherit-if-required.js");e.exports=function(e,o,t,_,p,h){var b=s[e],v=b,y=p?"set":"add",g=v&&v.prototype,k={},x=function(e){var o=g[e];r(g,e,"delete"==e?function(e){return!(h&&!c(e))&&o.call(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!c(e))&&o.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!c(e)?void 0:o.call(this,0===e?0:e)}:"add"==e?function(e){return o.call(this,0===e?0:e),this}:function(e,t){return o.call(this,0===e?0:e,t),this})};if("function"==typeof v&&(h||g.forEach&&!a(function(){(new v).entries().next()}))){var w=new v,S=w[y](h?{}:-0,1)!=w,E=a(function(){w.has(1)}),C=m(function(e){new v(e)}),T=!h&&a(function(){for(var e=new v,o=5;o--;)e[y](o,o);return!e.has(-0)});C||((v=o(function(o,t){d(o,v,e);var s=j(new b,o,v);return void 0!=t&&i(t,p,s[y],s),s})).prototype=g,g.constructor=v),(E||T)&&(x("delete"),x("has"),p&&x("get")),(T||S)&&x(y),h&&g.clear&&delete g.clear}else v=_.getConstructor(o,e,p,y),l(v.prototype,t),u.NEED=!0;return f(v,e),k[e]=v,n(n.G+n.W+n.F*(v!=b),k),h||_.setStrong(v,e,p),v}},"./node_modules/core-js/modules/_core.js": /*!***********************************************!*\ !*** ./node_modules/core-js/modules/_core.js ***! \***********************************************/ @@ -754,7 +750,7 @@ /*!*************************************************!*\ !*** ./node_modules/core-js/modules/_export.js ***! \*************************************************/ -/*! no static exports found */function(e,o,t){var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_core */"./node_modules/core-js/modules/_core.js"),r=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),l=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),u=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),i=function(e,o,t){var d,c,a,m,f=e&i.F,j=e&i.G,_=e&i.S,p=e&i.P,h=e&i.B,b=j?s:_?s[o]||(s[o]={}):(s[o]||{}).prototype,y=j?n:n[o]||(n[o]={}),v=y.prototype||(y.prototype={});for(d in j&&(t=o),t)a=((c=!f&&b&&void 0!==b[d])?b:t)[d],m=h&&c?u(a,s):p&&"function"==typeof a?u(Function.call,a):a,b&&l(b,d,a,e&i.U),y[d]!=a&&r(y,d,m),p&&v[d]!=a&&(v[d]=a)};s.core=n,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"./node_modules/core-js/modules/_fails-is-regexp.js": +/*! no static exports found */function(e,o,t){var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_core */"./node_modules/core-js/modules/_core.js"),r=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),l=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),u=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),i=function(e,o,t){var d,c,a,m,f=e&i.F,j=e&i.G,_=e&i.S,p=e&i.P,h=e&i.B,b=j?s:_?s[o]||(s[o]={}):(s[o]||{}).prototype,v=j?n:n[o]||(n[o]={}),y=v.prototype||(v.prototype={});for(d in j&&(t=o),t)a=((c=!f&&b&&void 0!==b[d])?b:t)[d],m=h&&c?u(a,s):p&&"function"==typeof a?u(Function.call,a):a,b&&l(b,d,a,e&i.U),v[d]!=a&&r(v,d,m),p&&y[d]!=a&&(y[d]=a)};s.core=n,i.F=1,i.G=2,i.S=4,i.P=8,i.B=16,i.W=32,i.U=64,i.R=128,e.exports=i},"./node_modules/core-js/modules/_fails-is-regexp.js": /*!**********************************************************!*\ !*** ./node_modules/core-js/modules/_fails-is-regexp.js ***! \**********************************************************/ @@ -778,7 +774,7 @@ /*!*************************************************!*\ !*** ./node_modules/core-js/modules/_for-of.js ***! \*************************************************/ -/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),n=t(/*! ./_iter-call */"./node_modules/core-js/modules/_iter-call.js"),r=t(/*! ./_is-array-iter */"./node_modules/core-js/modules/_is-array-iter.js"),l=t(/*! ./_an-object */"./node_modules/core-js/modules/_an-object.js"),u=t(/*! ./_to-length */"./node_modules/core-js/modules/_to-length.js"),i=t(/*! ./core.get-iterator-method */"./node_modules/core-js/modules/core.get-iterator-method.js"),d={},c={};(o=e.exports=function(e,o,t,a,m){var f,j,_,p,h=m?function(){return e}:i(e),b=s(t,a,o?2:1),y=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(r(h)){for(f=u(e.length);f>y;y++)if((p=o?b(l(j=e[y])[0],j[1]):b(e[y]))===d||p===c)return p}else for(_=h.call(e);!(j=_.next()).done;)if((p=n(_,b,j.value,o))===d||p===c)return p}).BREAK=d,o.RETURN=c},"./node_modules/core-js/modules/_global.js": +/*! no static exports found */function(e,o,t){var s=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),n=t(/*! ./_iter-call */"./node_modules/core-js/modules/_iter-call.js"),r=t(/*! ./_is-array-iter */"./node_modules/core-js/modules/_is-array-iter.js"),l=t(/*! ./_an-object */"./node_modules/core-js/modules/_an-object.js"),u=t(/*! ./_to-length */"./node_modules/core-js/modules/_to-length.js"),i=t(/*! ./core.get-iterator-method */"./node_modules/core-js/modules/core.get-iterator-method.js"),d={},c={};(o=e.exports=function(e,o,t,a,m){var f,j,_,p,h=m?function(){return e}:i(e),b=s(t,a,o?2:1),v=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(r(h)){for(f=u(e.length);f>v;v++)if((p=o?b(l(j=e[v])[0],j[1]):b(e[v]))===d||p===c)return p}else for(_=h.call(e);!(j=_.next()).done;)if((p=n(_,b,j.value,o))===d||p===c)return p}).BREAK=d,o.RETURN=c},"./node_modules/core-js/modules/_global.js": /*!*************************************************!*\ !*** ./node_modules/core-js/modules/_global.js ***! \*************************************************/ @@ -842,7 +838,7 @@ /*!******************************************************!*\ !*** ./node_modules/core-js/modules/_iter-define.js ***! \******************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_library */"./node_modules/core-js/modules/_library.js"),n=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),r=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),l=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),u=t(/*! ./_iterators */"./node_modules/core-js/modules/_iterators.js"),i=t(/*! ./_iter-create */"./node_modules/core-js/modules/_iter-create.js"),d=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),c=t(/*! ./_object-gpo */"./node_modules/core-js/modules/_object-gpo.js"),a=t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js")("iterator"),m=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,o,t,j,_,p,h){i(t,o,j);var b,y,v,g=function(e){if(!m&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},k=o+" Iterator",x="values"==_,w=!1,S=e.prototype,E=S[a]||S["@@iterator"]||_&&S[_],C=E||g(_),T=_?x?g("entries"):C:void 0,M="Array"==o&&S.entries||E;if(M&&(v=c(M.call(new e)))!==Object.prototype&&v.next&&(d(v,k,!0),s||"function"==typeof v[a]||l(v,a,f)),x&&E&&"values"!==E.name&&(w=!0,C=function(){return E.call(this)}),s&&!h||!m&&!w&&S[a]||l(S,a,C),u[o]=C,u[k]=f,_)if(b={values:x?C:g("values"),keys:p?C:g("keys"),entries:T},h)for(y in b)y in S||r(S,y,b[y]);else n(n.P+n.F*(m||w),o,b);return b}},"./node_modules/core-js/modules/_iter-detect.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_library */"./node_modules/core-js/modules/_library.js"),n=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),r=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),l=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),u=t(/*! ./_iterators */"./node_modules/core-js/modules/_iterators.js"),i=t(/*! ./_iter-create */"./node_modules/core-js/modules/_iter-create.js"),d=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),c=t(/*! ./_object-gpo */"./node_modules/core-js/modules/_object-gpo.js"),a=t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js")("iterator"),m=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,o,t,j,_,p,h){i(t,o,j);var b,v,y,g=function(e){if(!m&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new t(this,e)}}return function(){return new t(this,e)}},k=o+" Iterator",x="values"==_,w=!1,S=e.prototype,E=S[a]||S["@@iterator"]||_&&S[_],C=E||g(_),T=_?x?g("entries"):C:void 0,M="Array"==o&&S.entries||E;if(M&&(y=c(M.call(new e)))!==Object.prototype&&y.next&&(d(y,k,!0),s||"function"==typeof y[a]||l(y,a,f)),x&&E&&"values"!==E.name&&(w=!0,C=function(){return E.call(this)}),s&&!h||!m&&!w&&S[a]||l(S,a,C),u[o]=C,u[k]=f,_)if(b={values:x?C:g("values"),keys:p?C:g("keys"),entries:T},h)for(v in b)v in S||r(S,v,b[v]);else n(n.P+n.F*(m||w),o,b);return b}},"./node_modules/core-js/modules/_iter-detect.js": /*!******************************************************!*\ !*** ./node_modules/core-js/modules/_iter-detect.js ***! \******************************************************/ @@ -1062,7 +1058,7 @@ /*!***********************************************!*\ !*** ./node_modules/core-js/modules/_task.js ***! \***********************************************/ -/*! no static exports found */function(e,o,t){var s,n,r,l=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),u=t(/*! ./_invoke */"./node_modules/core-js/modules/_invoke.js"),i=t(/*! ./_html */"./node_modules/core-js/modules/_html.js"),d=t(/*! ./_dom-create */"./node_modules/core-js/modules/_dom-create.js"),c=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),a=c.process,m=c.setImmediate,f=c.clearImmediate,j=c.MessageChannel,_=c.Dispatch,p=0,h={},b=function(){var e=+this;if(h.hasOwnProperty(e)){var o=h[e];delete h[e],o()}},y=function(e){b.call(e.data)};m&&f||(m=function(e){for(var o=[],t=1;arguments.length>t;)o.push(arguments[t++]);return h[++p]=function(){u("function"==typeof e?e:Function(e),o)},s(p),p},f=function(e){delete h[e]},"process"==t(/*! ./_cof */"./node_modules/core-js/modules/_cof.js")(a)?s=function(e){a.nextTick(l(b,e,1))}:_&&_.now?s=function(e){_.now(l(b,e,1))}:j?(r=(n=new j).port2,n.port1.onmessage=y,s=l(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(s=function(e){c.postMessage(e+"","*")},c.addEventListener("message",y,!1)):s="onreadystatechange"in d("script")?function(e){i.appendChild(d("script")).onreadystatechange=function(){i.removeChild(this),b.call(e)}}:function(e){setTimeout(l(b,e,1),0)}),e.exports={set:m,clear:f}},"./node_modules/core-js/modules/_to-absolute-index.js": +/*! no static exports found */function(e,o,t){var s,n,r,l=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),u=t(/*! ./_invoke */"./node_modules/core-js/modules/_invoke.js"),i=t(/*! ./_html */"./node_modules/core-js/modules/_html.js"),d=t(/*! ./_dom-create */"./node_modules/core-js/modules/_dom-create.js"),c=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),a=c.process,m=c.setImmediate,f=c.clearImmediate,j=c.MessageChannel,_=c.Dispatch,p=0,h={},b=function(){var e=+this;if(h.hasOwnProperty(e)){var o=h[e];delete h[e],o()}},v=function(e){b.call(e.data)};m&&f||(m=function(e){for(var o=[],t=1;arguments.length>t;)o.push(arguments[t++]);return h[++p]=function(){u("function"==typeof e?e:Function(e),o)},s(p),p},f=function(e){delete h[e]},"process"==t(/*! ./_cof */"./node_modules/core-js/modules/_cof.js")(a)?s=function(e){a.nextTick(l(b,e,1))}:_&&_.now?s=function(e){_.now(l(b,e,1))}:j?(r=(n=new j).port2,n.port1.onmessage=v,s=l(r.postMessage,r,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(s=function(e){c.postMessage(e+"","*")},c.addEventListener("message",v,!1)):s="onreadystatechange"in d("script")?function(e){i.appendChild(d("script")).onreadystatechange=function(){i.removeChild(this),b.call(e)}}:function(e){setTimeout(l(b,e,1),0)}),e.exports={set:m,clear:f}},"./node_modules/core-js/modules/_to-absolute-index.js": /*!************************************************************!*\ !*** ./node_modules/core-js/modules/_to-absolute-index.js ***! \************************************************************/ @@ -1094,11 +1090,11 @@ /*!******************************************************!*\ !*** ./node_modules/core-js/modules/_typed-array.js ***! \******************************************************/ -/*! no static exports found */function(e,o,t){"use strict";if(t(/*! ./_descriptors */"./node_modules/core-js/modules/_descriptors.js")){var s=t(/*! ./_library */"./node_modules/core-js/modules/_library.js"),n=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),r=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),l=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),u=t(/*! ./_typed */"./node_modules/core-js/modules/_typed.js"),i=t(/*! ./_typed-buffer */"./node_modules/core-js/modules/_typed-buffer.js"),d=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),c=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),a=t(/*! ./_property-desc */"./node_modules/core-js/modules/_property-desc.js"),m=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),f=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js"),j=t(/*! ./_to-integer */"./node_modules/core-js/modules/_to-integer.js"),_=t(/*! ./_to-length */"./node_modules/core-js/modules/_to-length.js"),p=t(/*! ./_to-index */"./node_modules/core-js/modules/_to-index.js"),h=t(/*! ./_to-absolute-index */"./node_modules/core-js/modules/_to-absolute-index.js"),b=t(/*! ./_to-primitive */"./node_modules/core-js/modules/_to-primitive.js"),y=t(/*! ./_has */"./node_modules/core-js/modules/_has.js"),v=t(/*! ./_classof */"./node_modules/core-js/modules/_classof.js"),g=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),k=t(/*! ./_to-object */"./node_modules/core-js/modules/_to-object.js"),x=t(/*! ./_is-array-iter */"./node_modules/core-js/modules/_is-array-iter.js"),w=t(/*! ./_object-create */"./node_modules/core-js/modules/_object-create.js"),S=t(/*! ./_object-gpo */"./node_modules/core-js/modules/_object-gpo.js"),E=t(/*! ./_object-gopn */"./node_modules/core-js/modules/_object-gopn.js").f,C=t(/*! ./core.get-iterator-method */"./node_modules/core-js/modules/core.get-iterator-method.js"),T=t(/*! ./_uid */"./node_modules/core-js/modules/_uid.js"),M=t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js"),O=t(/*! ./_array-methods */"./node_modules/core-js/modules/_array-methods.js"),N=t(/*! ./_array-includes */"./node_modules/core-js/modules/_array-includes.js"),B=t(/*! ./_species-constructor */"./node_modules/core-js/modules/_species-constructor.js"),I=t(/*! ./es6.array.iterator */"./node_modules/core-js/modules/es6.array.iterator.js"),A=t(/*! ./_iterators */"./node_modules/core-js/modules/_iterators.js"),P=t(/*! ./_iter-detect */"./node_modules/core-js/modules/_iter-detect.js"),L=t(/*! ./_set-species */"./node_modules/core-js/modules/_set-species.js"),R=t(/*! ./_array-fill */"./node_modules/core-js/modules/_array-fill.js"),F=t(/*! ./_array-copy-within */"./node_modules/core-js/modules/_array-copy-within.js"),D=t(/*! ./_object-dp */"./node_modules/core-js/modules/_object-dp.js"),U=t(/*! ./_object-gopd */"./node_modules/core-js/modules/_object-gopd.js"),z=D.f,H=U.f,G=n.RangeError,W=n.TypeError,V=n.Uint8Array,K=Array.prototype,q=i.ArrayBuffer,Y=i.DataView,J=O(0),X=O(2),$=O(3),Z=O(4),Q=O(5),ee=O(6),oe=N(!0),te=N(!1),se=I.values,ne=I.keys,re=I.entries,le=K.lastIndexOf,ue=K.reduce,ie=K.reduceRight,de=K.join,ce=K.sort,ae=K.slice,me=K.toString,fe=K.toLocaleString,je=M("iterator"),_e=M("toStringTag"),pe=T("typed_constructor"),he=T("def_constructor"),be=u.CONSTR,ye=u.TYPED,ve=u.VIEW,ge=O(1,function(e,o){return Ee(B(e,e[he]),o)}),ke=r(function(){return 1===new V(new Uint16Array([1]).buffer)[0]}),xe=!!V&&!!V.prototype.set&&r(function(){new V(1).set({})}),we=function(e,o){var t=j(e);if(t<0||t%o)throw G("Wrong offset!");return t},Se=function(e){if(g(e)&&ye in e)return e;throw W(e+" is not a typed array!")},Ee=function(e,o){if(!(g(e)&&pe in e))throw W("It is not a typed array constructor!");return new e(o)},Ce=function(e,o){return Te(B(e,e[he]),o)},Te=function(e,o){for(var t=0,s=o.length,n=Ee(e,s);s>t;)n[t]=o[t++];return n},Me=function(e,o,t){z(e,o,{get:function(){return this._d[t]}})},Oe=function(e){var o,t,s,n,r,l,u=k(e),i=arguments.length,c=i>1?arguments[1]:void 0,a=void 0!==c,m=C(u);if(void 0!=m&&!x(m)){for(l=m.call(u),s=[],o=0;!(r=l.next()).done;o++)s.push(r.value);u=s}for(a&&i>2&&(c=d(c,arguments[2],2)),o=0,t=_(u.length),n=Ee(this,t);t>o;o++)n[o]=a?c(u[o],o):u[o];return n},Ne=function(){for(var e=0,o=arguments.length,t=Ee(this,o);o>e;)t[e]=arguments[e++];return t},Be=!!V&&r(function(){fe.call(new V(1))}),Ie=function(){return fe.apply(Be?ae.call(Se(this)):Se(this),arguments)},Ae={copyWithin:function(e,o){return F.call(Se(this),e,o,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return R.apply(Se(this),arguments)},filter:function(e){return Ce(this,X(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return te(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Se(this),arguments)},lastIndexOf:function(e){return le.apply(Se(this),arguments)},map:function(e){return ge(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ue.apply(Se(this),arguments)},reduceRight:function(e){return ie.apply(Se(this),arguments)},reverse:function(){for(var e,o=Se(this).length,t=Math.floor(o/2),s=0;s1?arguments[1]:void 0)},sort:function(e){return ce.call(Se(this),e)},subarray:function(e,o){var t=Se(this),s=t.length,n=h(e,s);return new(B(t,t[he]))(t.buffer,t.byteOffset+n*t.BYTES_PER_ELEMENT,_((void 0===o?s:h(o,s))-n))}},Pe=function(e,o){return Ce(this,ae.call(Se(this),e,o))},Le=function(e){Se(this);var o=we(arguments[1],1),t=this.length,s=k(e),n=_(s.length),r=0;if(n+o>t)throw G("Wrong length!");for(;r255?255:255&s),n.v[f](t*o+n.o,s,ke)}(this,t,e)},enumerable:!0})};y?(j=t(function(e,t,s,n){c(e,j,d,"_d");var r,l,u,i,a=0,f=0;if(g(t)){if(!(t instanceof q||"ArrayBuffer"==(i=v(t))||"SharedArrayBuffer"==i))return ye in t?Te(j,t):Oe.call(j,t);r=t,f=we(s,o);var h=t.byteLength;if(void 0===n){if(h%o)throw G("Wrong length!");if((l=h-f)<0)throw G("Wrong length!")}else if((l=_(n)*o)+f>h)throw G("Wrong length!");u=l/o}else u=p(t),r=new q(l=u*o);for(m(e,"_d",{b:r,o:f,l:l,e:u,v:new Y(r)});at;)n[t]=o[t++];return n},Me=function(e,o,t){z(e,o,{get:function(){return this._d[t]}})},Oe=function(e){var o,t,s,n,r,l,u=k(e),i=arguments.length,c=i>1?arguments[1]:void 0,a=void 0!==c,m=C(u);if(void 0!=m&&!x(m)){for(l=m.call(u),s=[],o=0;!(r=l.next()).done;o++)s.push(r.value);u=s}for(a&&i>2&&(c=d(c,arguments[2],2)),o=0,t=_(u.length),n=Ee(this,t);t>o;o++)n[o]=a?c(u[o],o):u[o];return n},Ne=function(){for(var e=0,o=arguments.length,t=Ee(this,o);o>e;)t[e]=arguments[e++];return t},Be=!!V&&r(function(){fe.call(new V(1))}),Ie=function(){return fe.apply(Be?ae.call(Se(this)):Se(this),arguments)},Ae={copyWithin:function(e,o){return F.call(Se(this),e,o,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return R.apply(Se(this),arguments)},filter:function(e){return Ce(this,X(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return te(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Se(this),arguments)},lastIndexOf:function(e){return le.apply(Se(this),arguments)},map:function(e){return ge(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ue.apply(Se(this),arguments)},reduceRight:function(e){return ie.apply(Se(this),arguments)},reverse:function(){for(var e,o=Se(this).length,t=Math.floor(o/2),s=0;s1?arguments[1]:void 0)},sort:function(e){return ce.call(Se(this),e)},subarray:function(e,o){var t=Se(this),s=t.length,n=h(e,s);return new(B(t,t[he]))(t.buffer,t.byteOffset+n*t.BYTES_PER_ELEMENT,_((void 0===o?s:h(o,s))-n))}},Pe=function(e,o){return Ce(this,ae.call(Se(this),e,o))},Le=function(e){Se(this);var o=we(arguments[1],1),t=this.length,s=k(e),n=_(s.length),r=0;if(n+o>t)throw G("Wrong length!");for(;r255?255:255&s),n.v[f](t*o+n.o,s,ke)}(this,t,e)},enumerable:!0})};v?(j=t(function(e,t,s,n){c(e,j,d,"_d");var r,l,u,i,a=0,f=0;if(g(t)){if(!(t instanceof q||"ArrayBuffer"==(i=y(t))||"SharedArrayBuffer"==i))return ve in t?Te(j,t):Oe.call(j,t);r=t,f=we(s,o);var h=t.byteLength;if(void 0===n){if(h%o)throw G("Wrong length!");if((l=h-f)<0)throw G("Wrong length!")}else if((l=_(n)*o)+f>h)throw G("Wrong length!");u=l/o}else u=p(t),r=new q(l=u*o);for(m(e,"_d",{b:r,o:f,l:l,e:u,v:new Y(r)});a>1,c=23===o?C(2,-24)-C(2,-77):0,a=0,m=e<0||0===e&&1/e<0?1:0;for((e=E(e))!=e||e===w?(n=e!=e?1:0,s=i):(s=T(M(e)/O),e*(r=C(2,-s))<1&&(s--,r*=2),(e+=s+d>=1?c/r:c*C(2,1-d))*r>=2&&(s++,r/=2),s+d>=i?(n=0,s=i):s+d>=1?(n=(e*r-1)*C(2,o),s+=d):(n=e*C(2,d-1)*C(2,o),s=0));o>=8;l[a++]=255&n,n/=256,o-=8);for(s=s<0;l[a++]=255&s,s/=256,u-=8);return l[--a]|=128*m,l}function P(e,o,t){var s,n=8*t-o-1,r=(1<>1,u=n-7,i=t-1,d=e[i--],c=127&d;for(d>>=7;u>0;c=256*c+e[i],i--,u-=8);for(s=c&(1<<-u)-1,c>>=-u,u+=o;u>0;s=256*s+e[i],i--,u-=8);if(0===c)c=1-l;else{if(c===r)return s?NaN:d?-w:w;s+=C(2,o),c-=l}return(d?-1:1)*s*C(2,c-o)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function R(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function U(e){return A(e,52,8)}function z(e){return A(e,23,4)}function H(e,o,t){_(e[b],o,{get:function(){return this[t]}})}function G(e,o,t,s){var n=f(+t);if(n+o>e[B])throw x(y);var r=e[N]._b,l=n+e[I],u=r.slice(l,l+o);return s?u:u.reverse()}function W(e,o,t,s,n,r){var l=f(+t);if(l+o>e[B])throw x(y);for(var u=e[N]._b,i=l+e[I],d=s(+n),c=0;cY;)(V=q[Y++])in v||u(v,V,S[V]);r||(K.constructor=v)}var J=new g(new v(2)),X=g[b].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||i(g[b],{setInt8:function(e,o){X.call(this,e,o<<24>>24)},setUint8:function(e,o){X.call(this,e,o<<24>>24)}},!0)}else v=function(e){c(this,v,"ArrayBuffer");var o=f(e);this._b=p.call(new Array(o),0),this[B]=o},g=function(e,o,t){c(this,g,"DataView"),c(e,v,"DataView");var s=e[B],n=a(o);if(n<0||n>s)throw x("Wrong offset!");if(n+(t=void 0===t?s-n:m(t))>s)throw x("Wrong length!");this[N]=e,this[I]=n,this[B]=t},n&&(H(v,"byteLength","_l"),H(g,"buffer","_b"),H(g,"byteLength","_l"),H(g,"byteOffset","_o")),i(g[b],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var o=G(this,2,e,arguments[1]);return(o[1]<<8|o[0])<<16>>16},getUint16:function(e){var o=G(this,2,e,arguments[1]);return o[1]<<8|o[0]},getInt32:function(e){return L(G(this,4,e,arguments[1]))},getUint32:function(e){return L(G(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return P(G(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return P(G(this,8,e,arguments[1]),52,8)},setInt8:function(e,o){W(this,1,e,R,o)},setUint8:function(e,o){W(this,1,e,R,o)},setInt16:function(e,o){W(this,2,e,F,o,arguments[2])},setUint16:function(e,o){W(this,2,e,F,o,arguments[2])},setInt32:function(e,o){W(this,4,e,D,o,arguments[2])},setUint32:function(e,o){W(this,4,e,D,o,arguments[2])},setFloat32:function(e,o){W(this,4,e,z,o,arguments[2])},setFloat64:function(e,o){W(this,8,e,U,o,arguments[2])}});h(v,"ArrayBuffer"),h(g,"DataView"),u(g[b],l.VIEW,!0),o.ArrayBuffer=v,o.DataView=g},"./node_modules/core-js/modules/_typed.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_descriptors */"./node_modules/core-js/modules/_descriptors.js"),r=t(/*! ./_library */"./node_modules/core-js/modules/_library.js"),l=t(/*! ./_typed */"./node_modules/core-js/modules/_typed.js"),u=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),i=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js"),d=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),c=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),a=t(/*! ./_to-integer */"./node_modules/core-js/modules/_to-integer.js"),m=t(/*! ./_to-length */"./node_modules/core-js/modules/_to-length.js"),f=t(/*! ./_to-index */"./node_modules/core-js/modules/_to-index.js"),j=t(/*! ./_object-gopn */"./node_modules/core-js/modules/_object-gopn.js").f,_=t(/*! ./_object-dp */"./node_modules/core-js/modules/_object-dp.js").f,p=t(/*! ./_array-fill */"./node_modules/core-js/modules/_array-fill.js"),h=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),b="prototype",v="Wrong index!",y=s.ArrayBuffer,g=s.DataView,k=s.Math,x=s.RangeError,w=s.Infinity,S=y,E=k.abs,C=k.pow,T=k.floor,M=k.log,O=k.LN2,N=n?"_b":"buffer",B=n?"_l":"byteLength",I=n?"_o":"byteOffset";function A(e,o,t){var s,n,r,l=new Array(t),u=8*t-o-1,i=(1<>1,c=23===o?C(2,-24)-C(2,-77):0,a=0,m=e<0||0===e&&1/e<0?1:0;for((e=E(e))!=e||e===w?(n=e!=e?1:0,s=i):(s=T(M(e)/O),e*(r=C(2,-s))<1&&(s--,r*=2),(e+=s+d>=1?c/r:c*C(2,1-d))*r>=2&&(s++,r/=2),s+d>=i?(n=0,s=i):s+d>=1?(n=(e*r-1)*C(2,o),s+=d):(n=e*C(2,d-1)*C(2,o),s=0));o>=8;l[a++]=255&n,n/=256,o-=8);for(s=s<0;l[a++]=255&s,s/=256,u-=8);return l[--a]|=128*m,l}function P(e,o,t){var s,n=8*t-o-1,r=(1<>1,u=n-7,i=t-1,d=e[i--],c=127&d;for(d>>=7;u>0;c=256*c+e[i],i--,u-=8);for(s=c&(1<<-u)-1,c>>=-u,u+=o;u>0;s=256*s+e[i],i--,u-=8);if(0===c)c=1-l;else{if(c===r)return s?NaN:d?-w:w;s+=C(2,o),c-=l}return(d?-1:1)*s*C(2,c-o)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function R(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function D(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function U(e){return A(e,52,8)}function z(e){return A(e,23,4)}function H(e,o,t){_(e[b],o,{get:function(){return this[t]}})}function G(e,o,t,s){var n=f(+t);if(n+o>e[B])throw x(v);var r=e[N]._b,l=n+e[I],u=r.slice(l,l+o);return s?u:u.reverse()}function W(e,o,t,s,n,r){var l=f(+t);if(l+o>e[B])throw x(v);for(var u=e[N]._b,i=l+e[I],d=s(+n),c=0;cY;)(V=q[Y++])in y||u(y,V,S[V]);r||(K.constructor=y)}var J=new g(new y(2)),X=g[b].setInt8;J.setInt8(0,2147483648),J.setInt8(1,2147483649),!J.getInt8(0)&&J.getInt8(1)||i(g[b],{setInt8:function(e,o){X.call(this,e,o<<24>>24)},setUint8:function(e,o){X.call(this,e,o<<24>>24)}},!0)}else y=function(e){c(this,y,"ArrayBuffer");var o=f(e);this._b=p.call(new Array(o),0),this[B]=o},g=function(e,o,t){c(this,g,"DataView"),c(e,y,"DataView");var s=e[B],n=a(o);if(n<0||n>s)throw x("Wrong offset!");if(n+(t=void 0===t?s-n:m(t))>s)throw x("Wrong length!");this[N]=e,this[I]=n,this[B]=t},n&&(H(y,"byteLength","_l"),H(g,"buffer","_b"),H(g,"byteLength","_l"),H(g,"byteOffset","_o")),i(g[b],{getInt8:function(e){return G(this,1,e)[0]<<24>>24},getUint8:function(e){return G(this,1,e)[0]},getInt16:function(e){var o=G(this,2,e,arguments[1]);return(o[1]<<8|o[0])<<16>>16},getUint16:function(e){var o=G(this,2,e,arguments[1]);return o[1]<<8|o[0]},getInt32:function(e){return L(G(this,4,e,arguments[1]))},getUint32:function(e){return L(G(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return P(G(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return P(G(this,8,e,arguments[1]),52,8)},setInt8:function(e,o){W(this,1,e,R,o)},setUint8:function(e,o){W(this,1,e,R,o)},setInt16:function(e,o){W(this,2,e,F,o,arguments[2])},setUint16:function(e,o){W(this,2,e,F,o,arguments[2])},setInt32:function(e,o){W(this,4,e,D,o,arguments[2])},setUint32:function(e,o){W(this,4,e,D,o,arguments[2])},setFloat32:function(e,o){W(this,4,e,z,o,arguments[2])},setFloat64:function(e,o){W(this,8,e,U,o,arguments[2])}});h(y,"ArrayBuffer"),h(g,"DataView"),u(g[b],l.VIEW,!0),o.ArrayBuffer=y,o.DataView=g},"./node_modules/core-js/modules/_typed.js": /*!************************************************!*\ !*** ./node_modules/core-js/modules/_typed.js ***! \************************************************/ @@ -1326,7 +1322,7 @@ /*!****************************************************************!*\ !*** ./node_modules/core-js/modules/es6.number.constructor.js ***! \****************************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_has */"./node_modules/core-js/modules/_has.js"),r=t(/*! ./_cof */"./node_modules/core-js/modules/_cof.js"),l=t(/*! ./_inherit-if-required */"./node_modules/core-js/modules/_inherit-if-required.js"),u=t(/*! ./_to-primitive */"./node_modules/core-js/modules/_to-primitive.js"),i=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),d=t(/*! ./_object-gopn */"./node_modules/core-js/modules/_object-gopn.js").f,c=t(/*! ./_object-gopd */"./node_modules/core-js/modules/_object-gopd.js").f,a=t(/*! ./_object-dp */"./node_modules/core-js/modules/_object-dp.js").f,m=t(/*! ./_string-trim */"./node_modules/core-js/modules/_string-trim.js").trim,f=s.Number,j=f,_=f.prototype,p="Number"==r(t(/*! ./_object-create */"./node_modules/core-js/modules/_object-create.js")(_)),h="trim"in String.prototype,b=function(e){var o=u(e,!1);if("string"==typeof o&&o.length>2){var t,s,n,r=(o=h?o.trim():m(o,3)).charCodeAt(0);if(43===r||45===r){if(88===(t=o.charCodeAt(2))||120===t)return NaN}else if(48===r){switch(o.charCodeAt(1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+o}for(var l,i=o.slice(2),d=0,c=i.length;dn)return NaN;return parseInt(i,s)}}return+o};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var o=arguments.length<1?0:e,t=this;return t instanceof f&&(p?i(function(){_.valueOf.call(t)}):"Number"!=r(t))?l(new j(b(o)),t,f):b(o)};for(var y,v=t(/*! ./_descriptors */"./node_modules/core-js/modules/_descriptors.js")?d(j):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),g=0;v.length>g;g++)n(j,y=v[g])&&!n(f,y)&&a(f,y,c(j,y));f.prototype=_,_.constructor=f,t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js")(s,"Number",f)}},"./node_modules/core-js/modules/es6.number.epsilon.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_has */"./node_modules/core-js/modules/_has.js"),r=t(/*! ./_cof */"./node_modules/core-js/modules/_cof.js"),l=t(/*! ./_inherit-if-required */"./node_modules/core-js/modules/_inherit-if-required.js"),u=t(/*! ./_to-primitive */"./node_modules/core-js/modules/_to-primitive.js"),i=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),d=t(/*! ./_object-gopn */"./node_modules/core-js/modules/_object-gopn.js").f,c=t(/*! ./_object-gopd */"./node_modules/core-js/modules/_object-gopd.js").f,a=t(/*! ./_object-dp */"./node_modules/core-js/modules/_object-dp.js").f,m=t(/*! ./_string-trim */"./node_modules/core-js/modules/_string-trim.js").trim,f=s.Number,j=f,_=f.prototype,p="Number"==r(t(/*! ./_object-create */"./node_modules/core-js/modules/_object-create.js")(_)),h="trim"in String.prototype,b=function(e){var o=u(e,!1);if("string"==typeof o&&o.length>2){var t,s,n,r=(o=h?o.trim():m(o,3)).charCodeAt(0);if(43===r||45===r){if(88===(t=o.charCodeAt(2))||120===t)return NaN}else if(48===r){switch(o.charCodeAt(1)){case 66:case 98:s=2,n=49;break;case 79:case 111:s=8,n=55;break;default:return+o}for(var l,i=o.slice(2),d=0,c=i.length;dn)return NaN;return parseInt(i,s)}}return+o};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var o=arguments.length<1?0:e,t=this;return t instanceof f&&(p?i(function(){_.valueOf.call(t)}):"Number"!=r(t))?l(new j(b(o)),t,f):b(o)};for(var v,y=t(/*! ./_descriptors */"./node_modules/core-js/modules/_descriptors.js")?d(j):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),g=0;y.length>g;g++)n(j,v=y[g])&&!n(f,v)&&a(f,v,c(j,v));f.prototype=_,_.constructor=f,t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js")(s,"Number",f)}},"./node_modules/core-js/modules/es6.number.epsilon.js": /*!************************************************************!*\ !*** ./node_modules/core-js/modules/es6.number.epsilon.js ***! \************************************************************/ @@ -1450,7 +1446,7 @@ /*!*****************************************************!*\ !*** ./node_modules/core-js/modules/es6.promise.js ***! \*****************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s,n,r,l,u=t(/*! ./_library */"./node_modules/core-js/modules/_library.js"),i=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),d=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),c=t(/*! ./_classof */"./node_modules/core-js/modules/_classof.js"),a=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),m=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),f=t(/*! ./_a-function */"./node_modules/core-js/modules/_a-function.js"),j=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),_=t(/*! ./_for-of */"./node_modules/core-js/modules/_for-of.js"),p=t(/*! ./_species-constructor */"./node_modules/core-js/modules/_species-constructor.js"),h=t(/*! ./_task */"./node_modules/core-js/modules/_task.js").set,b=t(/*! ./_microtask */"./node_modules/core-js/modules/_microtask.js")(),y=t(/*! ./_new-promise-capability */"./node_modules/core-js/modules/_new-promise-capability.js"),v=t(/*! ./_perform */"./node_modules/core-js/modules/_perform.js"),g=t(/*! ./_user-agent */"./node_modules/core-js/modules/_user-agent.js"),k=t(/*! ./_promise-resolve */"./node_modules/core-js/modules/_promise-resolve.js"),x=i.TypeError,w=i.process,S=w&&w.versions,E=S&&S.v8||"",C=i.Promise,T="process"==c(w),M=function(){},O=n=y.f,N=!!function(){try{var e=C.resolve(1),o=(e.constructor={})[t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js")("species")]=function(e){e(M,M)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof o&&0!==E.indexOf("6.6")&&-1===g.indexOf("Chrome/66")}catch(e){}}(),B=function(e){var o;return!(!m(e)||"function"!=typeof(o=e.then))&&o},I=function(e,o){if(!e._n){e._n=!0;var t=e._c;b(function(){for(var s=e._v,n=1==e._s,r=0,l=function(o){var t,r,l,u=n?o.ok:o.fail,i=o.resolve,d=o.reject,c=o.domain;try{u?(n||(2==e._h&&L(e),e._h=1),!0===u?t=s:(c&&c.enter(),t=u(s),c&&(c.exit(),l=!0)),t===o.promise?d(x("Promise-chain cycle")):(r=B(t))?r.call(t,i,d):i(t)):d(s)}catch(e){c&&!l&&c.exit(),d(e)}};t.length>r;)l(t[r++]);e._c=[],e._n=!1,o&&!e._h&&A(e)})}},A=function(e){h.call(i,function(){var o,t,s,n=e._v,r=P(e);if(r&&(o=v(function(){T?w.emit("unhandledRejection",n,e):(t=i.onunhandledrejection)?t({promise:e,reason:n}):(s=i.console)&&s.error&&s.error("Unhandled promise rejection",n)}),e._h=T||P(e)?2:1),e._a=void 0,r&&o.e)throw o.v})},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){h.call(i,function(){var o;T?w.emit("rejectionHandled",e):(o=i.onrejectionhandled)&&o({promise:e,reason:e._v})})},R=function(e){var o=this;o._d||(o._d=!0,(o=o._w||o)._v=e,o._s=2,o._a||(o._a=o._c.slice()),I(o,!0))},F=function(e){var o,t=this;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw x("Promise can't be resolved itself");(o=B(e))?b(function(){var s={_w:t,_d:!1};try{o.call(e,d(F,s,1),d(R,s,1))}catch(e){R.call(s,e)}}):(t._v=e,t._s=1,I(t,!1))}catch(e){R.call({_w:t,_d:!1},e)}}};N||(C=function(e){j(this,C,"Promise","_h"),f(e),s.call(this);try{e(d(F,this,1),d(R,this,1))}catch(e){R.call(this,e)}},(s=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js")(C.prototype,{then:function(e,o){var t=O(p(this,C));return t.ok="function"!=typeof e||e,t.fail="function"==typeof o&&o,t.domain=T?w.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&I(this,!1),t.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new s;this.promise=e,this.resolve=d(F,e,1),this.reject=d(R,e,1)},y.f=O=function(e){return e===C||e===l?new r(e):n(e)}),a(a.G+a.W+a.F*!N,{Promise:C}),t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js")(C,"Promise"),t(/*! ./_set-species */"./node_modules/core-js/modules/_set-species.js")("Promise"),l=t(/*! ./_core */"./node_modules/core-js/modules/_core.js").Promise,a(a.S+a.F*!N,"Promise",{reject:function(e){var o=O(this);return(0,o.reject)(e),o.promise}}),a(a.S+a.F*(u||!N),"Promise",{resolve:function(e){return k(u&&this===l?C:this,e)}}),a(a.S+a.F*!(N&&t(/*! ./_iter-detect */"./node_modules/core-js/modules/_iter-detect.js")(function(e){C.all(e).catch(M)})),"Promise",{all:function(e){var o=this,t=O(o),s=t.resolve,n=t.reject,r=v(function(){var t=[],r=0,l=1;_(e,!1,function(e){var u=r++,i=!1;t.push(void 0),l++,o.resolve(e).then(function(e){i||(i=!0,t[u]=e,--l||s(t))},n)}),--l||s(t)});return r.e&&n(r.v),t.promise},race:function(e){var o=this,t=O(o),s=t.reject,n=v(function(){_(e,!1,function(e){o.resolve(e).then(t.resolve,s)})});return n.e&&s(n.v),t.promise}})},"./node_modules/core-js/modules/es6.reflect.apply.js": +/*! no static exports found */function(e,o,t){"use strict";var s,n,r,l,u=t(/*! ./_library */"./node_modules/core-js/modules/_library.js"),i=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),d=t(/*! ./_ctx */"./node_modules/core-js/modules/_ctx.js"),c=t(/*! ./_classof */"./node_modules/core-js/modules/_classof.js"),a=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),m=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),f=t(/*! ./_a-function */"./node_modules/core-js/modules/_a-function.js"),j=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),_=t(/*! ./_for-of */"./node_modules/core-js/modules/_for-of.js"),p=t(/*! ./_species-constructor */"./node_modules/core-js/modules/_species-constructor.js"),h=t(/*! ./_task */"./node_modules/core-js/modules/_task.js").set,b=t(/*! ./_microtask */"./node_modules/core-js/modules/_microtask.js")(),v=t(/*! ./_new-promise-capability */"./node_modules/core-js/modules/_new-promise-capability.js"),y=t(/*! ./_perform */"./node_modules/core-js/modules/_perform.js"),g=t(/*! ./_user-agent */"./node_modules/core-js/modules/_user-agent.js"),k=t(/*! ./_promise-resolve */"./node_modules/core-js/modules/_promise-resolve.js"),x=i.TypeError,w=i.process,S=w&&w.versions,E=S&&S.v8||"",C=i.Promise,T="process"==c(w),M=function(){},O=n=v.f,N=!!function(){try{var e=C.resolve(1),o=(e.constructor={})[t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js")("species")]=function(e){e(M,M)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof o&&0!==E.indexOf("6.6")&&-1===g.indexOf("Chrome/66")}catch(e){}}(),B=function(e){var o;return!(!m(e)||"function"!=typeof(o=e.then))&&o},I=function(e,o){if(!e._n){e._n=!0;var t=e._c;b(function(){for(var s=e._v,n=1==e._s,r=0,l=function(o){var t,r,l,u=n?o.ok:o.fail,i=o.resolve,d=o.reject,c=o.domain;try{u?(n||(2==e._h&&L(e),e._h=1),!0===u?t=s:(c&&c.enter(),t=u(s),c&&(c.exit(),l=!0)),t===o.promise?d(x("Promise-chain cycle")):(r=B(t))?r.call(t,i,d):i(t)):d(s)}catch(e){c&&!l&&c.exit(),d(e)}};t.length>r;)l(t[r++]);e._c=[],e._n=!1,o&&!e._h&&A(e)})}},A=function(e){h.call(i,function(){var o,t,s,n=e._v,r=P(e);if(r&&(o=y(function(){T?w.emit("unhandledRejection",n,e):(t=i.onunhandledrejection)?t({promise:e,reason:n}):(s=i.console)&&s.error&&s.error("Unhandled promise rejection",n)}),e._h=T||P(e)?2:1),e._a=void 0,r&&o.e)throw o.v})},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},L=function(e){h.call(i,function(){var o;T?w.emit("rejectionHandled",e):(o=i.onrejectionhandled)&&o({promise:e,reason:e._v})})},R=function(e){var o=this;o._d||(o._d=!0,(o=o._w||o)._v=e,o._s=2,o._a||(o._a=o._c.slice()),I(o,!0))},F=function(e){var o,t=this;if(!t._d){t._d=!0,t=t._w||t;try{if(t===e)throw x("Promise can't be resolved itself");(o=B(e))?b(function(){var s={_w:t,_d:!1};try{o.call(e,d(F,s,1),d(R,s,1))}catch(e){R.call(s,e)}}):(t._v=e,t._s=1,I(t,!1))}catch(e){R.call({_w:t,_d:!1},e)}}};N||(C=function(e){j(this,C,"Promise","_h"),f(e),s.call(this);try{e(d(F,this,1),d(R,this,1))}catch(e){R.call(this,e)}},(s=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js")(C.prototype,{then:function(e,o){var t=O(p(this,C));return t.ok="function"!=typeof e||e,t.fail="function"==typeof o&&o,t.domain=T?w.domain:void 0,this._c.push(t),this._a&&this._a.push(t),this._s&&I(this,!1),t.promise},catch:function(e){return this.then(void 0,e)}}),r=function(){var e=new s;this.promise=e,this.resolve=d(F,e,1),this.reject=d(R,e,1)},v.f=O=function(e){return e===C||e===l?new r(e):n(e)}),a(a.G+a.W+a.F*!N,{Promise:C}),t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js")(C,"Promise"),t(/*! ./_set-species */"./node_modules/core-js/modules/_set-species.js")("Promise"),l=t(/*! ./_core */"./node_modules/core-js/modules/_core.js").Promise,a(a.S+a.F*!N,"Promise",{reject:function(e){var o=O(this);return(0,o.reject)(e),o.promise}}),a(a.S+a.F*(u||!N),"Promise",{resolve:function(e){return k(u&&this===l?C:this,e)}}),a(a.S+a.F*!(N&&t(/*! ./_iter-detect */"./node_modules/core-js/modules/_iter-detect.js")(function(e){C.all(e).catch(M)})),"Promise",{all:function(e){var o=this,t=O(o),s=t.resolve,n=t.reject,r=y(function(){var t=[],r=0,l=1;_(e,!1,function(e){var u=r++,i=!1;t.push(void 0),l++,o.resolve(e).then(function(e){i||(i=!0,t[u]=e,--l||s(t))},n)}),--l||s(t)});return r.e&&n(r.v),t.promise},race:function(e){var o=this,t=O(o),s=t.reject,n=y(function(){_(e,!1,function(e){o.resolve(e).then(t.resolve,s)})});return n.e&&s(n.v),t.promise}})},"./node_modules/core-js/modules/es6.reflect.apply.js": /*!***********************************************************!*\ !*** ./node_modules/core-js/modules/es6.reflect.apply.js ***! \***********************************************************/ @@ -1630,7 +1626,7 @@ /*!****************************************************!*\ !*** ./node_modules/core-js/modules/es6.symbol.js ***! \****************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_has */"./node_modules/core-js/modules/_has.js"),r=t(/*! ./_descriptors */"./node_modules/core-js/modules/_descriptors.js"),l=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),u=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),i=t(/*! ./_meta */"./node_modules/core-js/modules/_meta.js").KEY,d=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),c=t(/*! ./_shared */"./node_modules/core-js/modules/_shared.js"),a=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),m=t(/*! ./_uid */"./node_modules/core-js/modules/_uid.js"),f=t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js"),j=t(/*! ./_wks-ext */"./node_modules/core-js/modules/_wks-ext.js"),_=t(/*! ./_wks-define */"./node_modules/core-js/modules/_wks-define.js"),p=t(/*! ./_enum-keys */"./node_modules/core-js/modules/_enum-keys.js"),h=t(/*! ./_is-array */"./node_modules/core-js/modules/_is-array.js"),b=t(/*! ./_an-object */"./node_modules/core-js/modules/_an-object.js"),y=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),v=t(/*! ./_to-iobject */"./node_modules/core-js/modules/_to-iobject.js"),g=t(/*! ./_to-primitive */"./node_modules/core-js/modules/_to-primitive.js"),k=t(/*! ./_property-desc */"./node_modules/core-js/modules/_property-desc.js"),x=t(/*! ./_object-create */"./node_modules/core-js/modules/_object-create.js"),w=t(/*! ./_object-gopn-ext */"./node_modules/core-js/modules/_object-gopn-ext.js"),S=t(/*! ./_object-gopd */"./node_modules/core-js/modules/_object-gopd.js"),E=t(/*! ./_object-dp */"./node_modules/core-js/modules/_object-dp.js"),C=t(/*! ./_object-keys */"./node_modules/core-js/modules/_object-keys.js"),T=S.f,M=E.f,O=w.f,N=s.Symbol,B=s.JSON,I=B&&B.stringify,A=f("_hidden"),P=f("toPrimitive"),L={}.propertyIsEnumerable,R=c("symbol-registry"),F=c("symbols"),D=c("op-symbols"),U=Object.prototype,z="function"==typeof N,H=s.QObject,G=!H||!H.prototype||!H.prototype.findChild,W=r&&d(function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,o,t){var s=T(U,o);s&&delete U[o],M(e,o,t),s&&e!==U&&M(U,o,s)}:M,V=function(e){var o=F[e]=x(N.prototype);return o._k=e,o},K=z&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},q=function(e,o,t){return e===U&&q(D,o,t),b(e),o=g(o,!0),b(t),n(F,o)?(t.enumerable?(n(e,A)&&e[A][o]&&(e[A][o]=!1),t=x(t,{enumerable:k(0,!1)})):(n(e,A)||M(e,A,k(1,{})),e[A][o]=!0),W(e,o,t)):M(e,o,t)},Y=function(e,o){b(e);for(var t,s=p(o=v(o)),n=0,r=s.length;r>n;)q(e,t=s[n++],o[t]);return e},J=function(e){var o=L.call(this,e=g(e,!0));return!(this===U&&n(F,e)&&!n(D,e))&&(!(o||!n(this,e)||!n(F,e)||n(this,A)&&this[A][e])||o)},X=function(e,o){if(e=v(e),o=g(o,!0),e!==U||!n(F,o)||n(D,o)){var t=T(e,o);return!t||!n(F,o)||n(e,A)&&e[A][o]||(t.enumerable=!0),t}},$=function(e){for(var o,t=O(v(e)),s=[],r=0;t.length>r;)n(F,o=t[r++])||o==A||o==i||s.push(o);return s},Z=function(e){for(var o,t=e===U,s=O(t?D:v(e)),r=[],l=0;s.length>l;)!n(F,o=s[l++])||t&&!n(U,o)||r.push(F[o]);return r};z||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=m(arguments.length>0?arguments[0]:void 0),o=function(t){this===U&&o.call(D,t),n(this,A)&&n(this[A],e)&&(this[A][e]=!1),W(this,e,k(1,t))};return r&&G&&W(U,e,{configurable:!0,set:o}),V(e)}).prototype,"toString",function(){return this._k}),S.f=X,E.f=q,t(/*! ./_object-gopn */"./node_modules/core-js/modules/_object-gopn.js").f=w.f=$,t(/*! ./_object-pie */"./node_modules/core-js/modules/_object-pie.js").f=J,t(/*! ./_object-gops */"./node_modules/core-js/modules/_object-gops.js").f=Z,r&&!t(/*! ./_library */"./node_modules/core-js/modules/_library.js")&&u(U,"propertyIsEnumerable",J,!0),j.f=function(e){return V(f(e))}),l(l.G+l.W+l.F*!z,{Symbol:N});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var oe=C(f.store),te=0;oe.length>te;)_(oe[te++]);l(l.S+l.F*!z,"Symbol",{for:function(e){return n(R,e+="")?R[e]:R[e]=N(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var o in R)if(R[o]===e)return o},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!z,"Object",{create:function(e,o){return void 0===o?x(e):Y(x(e),o)},defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),B&&l(l.S+l.F*(!z||d(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var o,t,s=[e],n=1;arguments.length>n;)s.push(arguments[n++]);if(t=o=s[1],(y(o)||void 0!==e)&&!K(e))return h(o)||(o=function(e,o){if("function"==typeof t&&(o=t.call(this,e,o)),!K(o))return o}),s[1]=o,I.apply(B,s)}}),N.prototype[P]||t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js")(N.prototype,P,N.prototype.valueOf),a(N,"Symbol"),a(Math,"Math",!0),a(s.JSON,"JSON",!0)},"./node_modules/core-js/modules/es6.typed.array-buffer.js": +/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),n=t(/*! ./_has */"./node_modules/core-js/modules/_has.js"),r=t(/*! ./_descriptors */"./node_modules/core-js/modules/_descriptors.js"),l=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),u=t(/*! ./_redefine */"./node_modules/core-js/modules/_redefine.js"),i=t(/*! ./_meta */"./node_modules/core-js/modules/_meta.js").KEY,d=t(/*! ./_fails */"./node_modules/core-js/modules/_fails.js"),c=t(/*! ./_shared */"./node_modules/core-js/modules/_shared.js"),a=t(/*! ./_set-to-string-tag */"./node_modules/core-js/modules/_set-to-string-tag.js"),m=t(/*! ./_uid */"./node_modules/core-js/modules/_uid.js"),f=t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js"),j=t(/*! ./_wks-ext */"./node_modules/core-js/modules/_wks-ext.js"),_=t(/*! ./_wks-define */"./node_modules/core-js/modules/_wks-define.js"),p=t(/*! ./_enum-keys */"./node_modules/core-js/modules/_enum-keys.js"),h=t(/*! ./_is-array */"./node_modules/core-js/modules/_is-array.js"),b=t(/*! ./_an-object */"./node_modules/core-js/modules/_an-object.js"),v=t(/*! ./_is-object */"./node_modules/core-js/modules/_is-object.js"),y=t(/*! ./_to-iobject */"./node_modules/core-js/modules/_to-iobject.js"),g=t(/*! ./_to-primitive */"./node_modules/core-js/modules/_to-primitive.js"),k=t(/*! ./_property-desc */"./node_modules/core-js/modules/_property-desc.js"),x=t(/*! ./_object-create */"./node_modules/core-js/modules/_object-create.js"),w=t(/*! ./_object-gopn-ext */"./node_modules/core-js/modules/_object-gopn-ext.js"),S=t(/*! ./_object-gopd */"./node_modules/core-js/modules/_object-gopd.js"),E=t(/*! ./_object-dp */"./node_modules/core-js/modules/_object-dp.js"),C=t(/*! ./_object-keys */"./node_modules/core-js/modules/_object-keys.js"),T=S.f,M=E.f,O=w.f,N=s.Symbol,B=s.JSON,I=B&&B.stringify,A=f("_hidden"),P=f("toPrimitive"),L={}.propertyIsEnumerable,R=c("symbol-registry"),F=c("symbols"),D=c("op-symbols"),U=Object.prototype,z="function"==typeof N,H=s.QObject,G=!H||!H.prototype||!H.prototype.findChild,W=r&&d(function(){return 7!=x(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,o,t){var s=T(U,o);s&&delete U[o],M(e,o,t),s&&e!==U&&M(U,o,s)}:M,V=function(e){var o=F[e]=x(N.prototype);return o._k=e,o},K=z&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},q=function(e,o,t){return e===U&&q(D,o,t),b(e),o=g(o,!0),b(t),n(F,o)?(t.enumerable?(n(e,A)&&e[A][o]&&(e[A][o]=!1),t=x(t,{enumerable:k(0,!1)})):(n(e,A)||M(e,A,k(1,{})),e[A][o]=!0),W(e,o,t)):M(e,o,t)},Y=function(e,o){b(e);for(var t,s=p(o=y(o)),n=0,r=s.length;r>n;)q(e,t=s[n++],o[t]);return e},J=function(e){var o=L.call(this,e=g(e,!0));return!(this===U&&n(F,e)&&!n(D,e))&&(!(o||!n(this,e)||!n(F,e)||n(this,A)&&this[A][e])||o)},X=function(e,o){if(e=y(e),o=g(o,!0),e!==U||!n(F,o)||n(D,o)){var t=T(e,o);return!t||!n(F,o)||n(e,A)&&e[A][o]||(t.enumerable=!0),t}},$=function(e){for(var o,t=O(y(e)),s=[],r=0;t.length>r;)n(F,o=t[r++])||o==A||o==i||s.push(o);return s},Z=function(e){for(var o,t=e===U,s=O(t?D:y(e)),r=[],l=0;s.length>l;)!n(F,o=s[l++])||t&&!n(U,o)||r.push(F[o]);return r};z||(u((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=m(arguments.length>0?arguments[0]:void 0),o=function(t){this===U&&o.call(D,t),n(this,A)&&n(this[A],e)&&(this[A][e]=!1),W(this,e,k(1,t))};return r&&G&&W(U,e,{configurable:!0,set:o}),V(e)}).prototype,"toString",function(){return this._k}),S.f=X,E.f=q,t(/*! ./_object-gopn */"./node_modules/core-js/modules/_object-gopn.js").f=w.f=$,t(/*! ./_object-pie */"./node_modules/core-js/modules/_object-pie.js").f=J,t(/*! ./_object-gops */"./node_modules/core-js/modules/_object-gops.js").f=Z,r&&!t(/*! ./_library */"./node_modules/core-js/modules/_library.js")&&u(U,"propertyIsEnumerable",J,!0),j.f=function(e){return V(f(e))}),l(l.G+l.W+l.F*!z,{Symbol:N});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Q.length>ee;)f(Q[ee++]);for(var oe=C(f.store),te=0;oe.length>te;)_(oe[te++]);l(l.S+l.F*!z,"Symbol",{for:function(e){return n(R,e+="")?R[e]:R[e]=N(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var o in R)if(R[o]===e)return o},useSetter:function(){G=!0},useSimple:function(){G=!1}}),l(l.S+l.F*!z,"Object",{create:function(e,o){return void 0===o?x(e):Y(x(e),o)},defineProperty:q,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),B&&l(l.S+l.F*(!z||d(function(){var e=N();return"[null]"!=I([e])||"{}"!=I({a:e})||"{}"!=I(Object(e))})),"JSON",{stringify:function(e){for(var o,t,s=[e],n=1;arguments.length>n;)s.push(arguments[n++]);if(t=o=s[1],(v(o)||void 0!==e)&&!K(e))return h(o)||(o=function(e,o){if("function"==typeof t&&(o=t.call(this,e,o)),!K(o))return o}),s[1]=o,I.apply(B,s)}}),N.prototype[P]||t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js")(N.prototype,P,N.prototype.valueOf),a(N,"Symbol"),a(Math,"Math",!0),a(s.JSON,"JSON",!0)},"./node_modules/core-js/modules/es6.typed.array-buffer.js": /*!****************************************************************!*\ !*** ./node_modules/core-js/modules/es6.typed.array-buffer.js ***! \****************************************************************/ @@ -1798,7 +1794,7 @@ /*!********************************************************!*\ !*** ./node_modules/core-js/modules/es7.observable.js ***! \********************************************************/ -/*! no static exports found */function(e,o,t){"use strict";var s=t(/*! ./_export */"./node_modules/core-js/modules/_export.js"),n=t(/*! ./_global */"./node_modules/core-js/modules/_global.js"),r=t(/*! ./_core */"./node_modules/core-js/modules/_core.js"),l=t(/*! ./_microtask */"./node_modules/core-js/modules/_microtask.js")(),u=t(/*! ./_wks */"./node_modules/core-js/modules/_wks.js")("observable"),i=t(/*! ./_a-function */"./node_modules/core-js/modules/_a-function.js"),d=t(/*! ./_an-object */"./node_modules/core-js/modules/_an-object.js"),c=t(/*! ./_an-instance */"./node_modules/core-js/modules/_an-instance.js"),a=t(/*! ./_redefine-all */"./node_modules/core-js/modules/_redefine-all.js"),m=t(/*! ./_hide */"./node_modules/core-js/modules/_hide.js"),f=t(/*! ./_for-of */"./node_modules/core-js/modules/_for-of.js"),j=f.RETURN,_=function(e){return null==e?void 0:i(e)},p=function(e){var o=e._c;o&&(e._c=void 0,o())},h=function(e){return void 0===e._o},b=function(e){h(e)||(e._o=void 0,p(e))},y=function(e,o){d(e),this._c=void 0,this._o=e,e=new v(this);try{var t=o(e),s=t;null!=t&&("function"==typeof t.unsubscribe?t=function(){s.unsubscribe()}:i(t),this._c=t)}catch(o){return void e.error(o)}h(this)&&p(this)};y.prototype=a({},{unsubscribe:function(){b(this)}});var v=function(e){this._s=e};v.prototype=a({},{next:function(e){var o=this._s;if(!h(o)){var t=o._o;try{var s=_(t.next);if(s)return s.call(t,e)}catch(e){try{b(o)}finally{throw e}}}},error:function(e){var o=this._s;if(h(o))throw e;var t=o._o;o._o=void 0;try{var s=_(t.error);if(!s)throw e;e=s.call(t,e)}catch(e){try{p(o)}finally{throw e}}return p(o),e},complete:function(e){var o=this._s;if(!h(o)){var t=o._o;o._o=void 0;try{var s=_(t.complete);e=s?s.call(t,e):void 0}catch(e){try{p(o)}finally{throw e}}return p(o),e}}});var g=function(e){c(this,g,"Observable","_f")._f=i(e)};a(g.prototype,{subscribe:function(e){return new y(e,this._f)},forEach:function(e){var o=this;return new(r.Promise||n.Promise)(function(t,s){i(e);var n=o.subscribe({next:function(o){try{return e(o)}catch(e){s(e),n.unsubscribe()}},error:s,complete:t})})}}),a(g,{from:function(e){var o="function"==typeof this?this:g,t=_(d(e)[u]);if(t){var s=d(t.call(e));return s.constructor===o?s:new o(function(e){return s.subscribe(e)})}return new o(function(o){var t=!1;return l(function(){if(!t){try{if(f(e,!1,function(e){if(o.next(e),t)return j})===j)return}catch(e){if(t)throw e;return void o.error(e)}o.complete()}}),function(){t=!0}})},of:function(){for(var e=0,o=arguments.length,t=new Array(o);e=0;--r){var l=this.tryEntries[r],u=l.completion;if("root"===l.tryLoc)return s("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),d=n.call(l,"finallyLoc");if(i&&d){if(this.prev=0;--t){var s=this.tryEntries[t];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--o){var t=this.tryEntries[o];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),M(t),_}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var t=this.tryEntries[o];if(t.tryLoc===e){var s=t.completion;if("throw"===s.type){var n=s.arg;M(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,s){return this.delegate={iterator:N(e),resultName:o,nextLoc:s},"next"===this.method&&(this.arg=t),_}}}function v(e,o,t,s){var n=o&&o.prototype instanceof k?o:k,r=Object.create(n.prototype),l=new O(s||[]);return r._invoke=function(e,o,t){var s=a;return function(n,r){if(s===f)throw new Error("Generator is already running");if(s===j){if("throw"===n)throw r;return B()}for(t.method=n,t.arg=r;;){var l=t.delegate;if(l){var u=C(l,t);if(u){if(u===_)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(s===a)throw s=j,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);s=f;var i=g(e,o,t);if("normal"===i.type){if(s=t.done?j:m,i.arg===_)continue;return{value:i.arg,done:t.done}}"throw"===i.type&&(s=j,t.method="throw",t.arg=i.arg)}}}(e,t,l),r}function g(e,o,t){try{return{type:"normal",arg:e.call(o,t)}}catch(e){return{type:"throw",arg:e}}}function k(){}function x(){}function w(){}function S(e){["next","throw","return"].forEach(function(o){e[o]=function(e){return this._invoke(o,e)}})}function E(e){var o;this._invoke=function(t,s){function r(){return new Promise(function(o,r){!function o(t,s,r,l){var u=g(e[t],e,s);if("throw"!==u.type){var i=u.arg,d=i.value;return d&&"object"==typeof d&&n.call(d,"__await")?Promise.resolve(d.__await).then(function(e){o("next",e,r,l)},function(e){o("throw",e,r,l)}):Promise.resolve(d).then(function(e){i.value=e,r(i)},l)}l(u.arg)}(t,s,o,r)})}return o=o?o.then(r,r):r()}}function C(e,o){var s=e.iterator[o.method];if(s===t){if(o.delegate=null,"throw"===o.method){if(e.iterator.return&&(o.method="return",o.arg=t,C(e,o),"throw"===o.method))return _;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var n=g(s,e.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,_;var r=n.arg;return r?r.done?(o[e.resultName]=r.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,_):r:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,_)}function T(e){var o={tryLoc:e[0]};1 in e&&(o.catchLoc=e[1]),2 in e&&(o.finallyLoc=e[2],o.afterLoc=e[3]),this.tryEntries.push(o)}function M(e){var o=e.completion||{};o.type="normal",delete o.arg,e.completion=o}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function o(){for(;++s=0;--r){var l=this.tryEntries[r],u=l.completion;if("root"===l.tryLoc)return s("end");if(l.tryLoc<=this.prev){var i=n.call(l,"catchLoc"),d=n.call(l,"finallyLoc");if(i&&d){if(this.prev=0;--t){var s=this.tryEntries[t];if(s.tryLoc<=this.prev&&n.call(s,"finallyLoc")&&this.prev=0;--o){var t=this.tryEntries[o];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),M(t),_}},catch:function(e){for(var o=this.tryEntries.length-1;o>=0;--o){var t=this.tryEntries[o];if(t.tryLoc===e){var s=t.completion;if("throw"===s.type){var n=s.arg;M(t)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,o,s){return this.delegate={iterator:N(e),resultName:o,nextLoc:s},"next"===this.method&&(this.arg=t),_}}}function y(e,o,t,s){var n=o&&o.prototype instanceof k?o:k,r=Object.create(n.prototype),l=new O(s||[]);return r._invoke=function(e,o,t){var s=a;return function(n,r){if(s===f)throw new Error("Generator is already running");if(s===j){if("throw"===n)throw r;return B()}for(t.method=n,t.arg=r;;){var l=t.delegate;if(l){var u=C(l,t);if(u){if(u===_)continue;return u}}if("next"===t.method)t.sent=t._sent=t.arg;else if("throw"===t.method){if(s===a)throw s=j,t.arg;t.dispatchException(t.arg)}else"return"===t.method&&t.abrupt("return",t.arg);s=f;var i=g(e,o,t);if("normal"===i.type){if(s=t.done?j:m,i.arg===_)continue;return{value:i.arg,done:t.done}}"throw"===i.type&&(s=j,t.method="throw",t.arg=i.arg)}}}(e,t,l),r}function g(e,o,t){try{return{type:"normal",arg:e.call(o,t)}}catch(e){return{type:"throw",arg:e}}}function k(){}function x(){}function w(){}function S(e){["next","throw","return"].forEach(function(o){e[o]=function(e){return this._invoke(o,e)}})}function E(e){var o;this._invoke=function(t,s){function r(){return new Promise(function(o,r){!function o(t,s,r,l){var u=g(e[t],e,s);if("throw"!==u.type){var i=u.arg,d=i.value;return d&&"object"==typeof d&&n.call(d,"__await")?Promise.resolve(d.__await).then(function(e){o("next",e,r,l)},function(e){o("throw",e,r,l)}):Promise.resolve(d).then(function(e){i.value=e,r(i)},l)}l(u.arg)}(t,s,o,r)})}return o=o?o.then(r,r):r()}}function C(e,o){var s=e.iterator[o.method];if(s===t){if(o.delegate=null,"throw"===o.method){if(e.iterator.return&&(o.method="return",o.arg=t,C(e,o),"throw"===o.method))return _;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var n=g(s,e.iterator,o.arg);if("throw"===n.type)return o.method="throw",o.arg=n.arg,o.delegate=null,_;var r=n.arg;return r?r.done?(o[e.resultName]=r.value,o.next=e.nextLoc,"return"!==o.method&&(o.method="next",o.arg=t),o.delegate=null,_):r:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,_)}function T(e){var o={tryLoc:e[0]};1 in e&&(o.catchLoc=e[1]),2 in e&&(o.finallyLoc=e[2],o.afterLoc=e[3]),this.tryEntries.push(o)}function M(e){var o=e.completion||{};o.type="normal",delete o.arg,e.completion=o}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var o=e[l];if(o)return o.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var s=-1,r=function o(){for(;++s1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement(e);Array.isArray(t)?(o=r.classList).add.apply(o,(0,n.default)(t)):t&&r.classList.add(t);for(var l in s)s.hasOwnProperty(l)&&(r[l]=s[l]);return r}},{key:"text",value:function(e){return document.createTextNode(e)}},{key:"svg",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:14,s=document.createElementNS("http://www.w3.org/2000/svg","svg");return s.classList.add("icon","icon--"+e),s.setAttribute("width",o+"px"),s.setAttribute("height",t+"px"),s.innerHTML='',s}},{key:"append",value:function(e,o){Array.isArray(o)?o.forEach(function(o){return e.appendChild(o)}):e.appendChild(o)}},{key:"prepend",value:function(e,o){Array.isArray(o)?(o=o.reverse()).forEach(function(o){return e.prepend(o)}):e.prepend(o)}},{key:"swap",value:function(e,o){var t=document.createElement("div"),s=e.parentNode;s.insertBefore(t,e),s.insertBefore(e,o),s.insertBefore(o,t),s.removeChild(t)}},{key:"find",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,o=arguments[1];return e.querySelector(o)}},{key:"get",value:function(e){return document.getElementById(e)}},{key:"findAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,o=arguments[1];return e.querySelectorAll(o)}},{key:"getDeepestNode",value:function(o){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t?"lastChild":"firstChild",n=t?"previousSibling":"nextSibling";if(o&&o.nodeType===Node.ELEMENT_NODE&&o[s]){var r=o[s];if(e.isSingleTag(r)&&!e.isNativeInput(r))if(r[n])r=r[n];else{if(!r.parentNode[n])return r.parentNode;r=r.parentNode[n]}return this.getDeepestNode(r,t)}return o}},{key:"isElement",value:function(e){return e&&"object"===(void 0===e?"undefined":(0,s.default)(e))&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE}},{key:"isFragment",value:function(e){return e&&"object"===(void 0===e?"undefined":(0,s.default)(e))&&e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}},{key:"isNativeInput",value:function(e){return!(!e||!e.tagName)&&["INPUT","TEXTAREA"].includes(e.tagName)}},{key:"isNodeEmpty",value:function(e){return 0===(this.isElement(e)&&this.isNativeInput(e)?e.value:e.textContent.replace("​","")).trim().length}},{key:"isLeaf",value:function(e){return!!e&&0===e.childNodes.length}},{key:"isEmpty",value:function(e){var o=this,t=[],s=[];if(!e)return!0;if(!e.childNodes.length)return this.isNodeEmpty(e);for(t.push(e.firstChild);t.length>0;)if(e=t.shift()){for(this.isLeaf(e)?s.push(e):t.push(e.firstChild);e&&e.nextSibling;)(e=e.nextSibling)&&t.push(e);if(e&&!this.isNodeEmpty(e))return!1}return s.every(function(e){return o.isNodeEmpty(e)})}},{key:"isHTMLString",value:function(o){var t=e.make("div");return t.innerHTML=o,t.childElementCount>0}},{key:"getContentLength",value:function(o){return e.isNativeInput(o)?o.value.length:o.nodeType===Node.TEXT_NODE?o.length:o.textContent.length}},{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"]}}]),e}();i.displayName="Dom",o.default=i,e.exports=o.default},"./src/components/inline-tools/inline-tool-bold.ts": +/*! no static exports found */function(e,o,t){"use strict";Object.defineProperty(o,"__esModule",{value:!0});var s=u(t(/*! babel-runtime/helpers/typeof */"./node_modules/babel-runtime/helpers/typeof.js")),n=u(t(/*! babel-runtime/helpers/toConsumableArray */"./node_modules/babel-runtime/helpers/toConsumableArray.js")),r=u(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),l=u(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js"));function u(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(){(0,r.default)(this,e)}return(0,l.default)(e,null,[{key:"isSingleTag",value:function(e){return e.tagName&&["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}},{key:"make",value:function(e){var o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.createElement(e);for(var l in Array.isArray(t)?(o=r.classList).add.apply(o,(0,n.default)(t)):t&&r.classList.add(t),s)s.hasOwnProperty(l)&&(r[l]=s[l]);return r}},{key:"text",value:function(e){return document.createTextNode(e)}},{key:"svg",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:14,s=document.createElementNS("http://www.w3.org/2000/svg","svg");return s.classList.add("icon","icon--"+e),s.setAttribute("width",o+"px"),s.setAttribute("height",t+"px"),s.innerHTML='',s}},{key:"append",value:function(e,o){Array.isArray(o)?o.forEach(function(o){return e.appendChild(o)}):e.appendChild(o)}},{key:"prepend",value:function(e,o){Array.isArray(o)?(o=o.reverse()).forEach(function(o){return e.prepend(o)}):e.prepend(o)}},{key:"swap",value:function(e,o){var t=document.createElement("div"),s=e.parentNode;s.insertBefore(t,e),s.insertBefore(e,o),s.insertBefore(o,t),s.removeChild(t)}},{key:"find",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,o=arguments[1];return e.querySelector(o)}},{key:"get",value:function(e){return document.getElementById(e)}},{key:"findAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,o=arguments[1];return e.querySelectorAll(o)}},{key:"getDeepestNode",value:function(o){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=t?"lastChild":"firstChild",n=t?"previousSibling":"nextSibling";if(o&&o.nodeType===Node.ELEMENT_NODE&&o[s]){var r=o[s];if(e.isSingleTag(r)&&!e.isNativeInput(r))if(r[n])r=r[n];else{if(!r.parentNode[n])return r.parentNode;r=r.parentNode[n]}return this.getDeepestNode(r,t)}return o}},{key:"isElement",value:function(e){return e&&"object"===(void 0===e?"undefined":(0,s.default)(e))&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE}},{key:"isFragment",value:function(e){return e&&"object"===(void 0===e?"undefined":(0,s.default)(e))&&e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}},{key:"isNativeInput",value:function(e){return!(!e||!e.tagName)&&["INPUT","TEXTAREA"].includes(e.tagName)}},{key:"isNodeEmpty",value:function(e){return 0===(this.isElement(e)&&this.isNativeInput(e)?e.value:e.textContent.replace("​","")).trim().length}},{key:"isLeaf",value:function(e){return!!e&&0===e.childNodes.length}},{key:"isEmpty",value:function(e){var o=this,t=[],s=[];if(!e)return!0;if(!e.childNodes.length)return this.isNodeEmpty(e);for(t.push(e.firstChild);t.length>0;)if(e=t.shift()){for(this.isLeaf(e)?s.push(e):t.push(e.firstChild);e&&e.nextSibling;)(e=e.nextSibling)&&t.push(e);if(e&&!this.isNodeEmpty(e))return!1}return s.every(function(e){return o.isNodeEmpty(e)})}},{key:"isHTMLString",value:function(o){var t=e.make("div");return t.innerHTML=o,t.childElementCount>0}},{key:"getContentLength",value:function(o){return e.isNativeInput(o)?o.value.length:o.nodeType===Node.TEXT_NODE?o.length:o.textContent.length}},{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"]}}]),e}();i.displayName="Dom",o.default=i,e.exports=o.default},"./src/components/inline-tools/inline-tool-bold.ts": /*!*********************************************************!*\ !*** ./src/components/inline-tools/inline-tool-bold.ts ***! \*********************************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s){Object.defineProperty(o,"__esModule",{value:!0});var n=l(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(o){o.api;(0,n.default)(this,e),this.commandName="bold",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--bold"},this.nodes={button:void 0}}return(0,r.default)(e,[{key:"render",value:function(){return this.nodes.button=document.createElement("button"),this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.appendChild(s.svg("bold",13,15)),this.nodes.button}},{key:"surround",value:function(e){document.execCommand(this.commandName)}},{key:"checkState",value:function(e){var o=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,o),o}},{key:"shortcut",get:function(){return"CMD+B"}}]),e}();u.displayName="BoldInlineTool",o.default=u,e.exports=o.default}).call(this,t(/*! dom */"./src/components/dom.ts"))},"./src/components/inline-tools/inline-tool-italic.ts": +/*! no static exports found */function(e,o,t){"use strict";(function(s){Object.defineProperty(o,"__esModule",{value:!0});var n=l(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(o){o.api,(0,n.default)(this,e),this.commandName="bold",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--bold"},this.nodes={button:void 0}}return(0,r.default)(e,[{key:"render",value:function(){return this.nodes.button=document.createElement("button"),this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.appendChild(s.svg("bold",13,15)),this.nodes.button}},{key:"surround",value:function(e){document.execCommand(this.commandName)}},{key:"checkState",value:function(e){var o=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,o),o}},{key:"shortcut",get:function(){return"CMD+B"}}]),e}();u.displayName="BoldInlineTool",o.default=u,e.exports=o.default}).call(this,t(/*! dom */"./src/components/dom.ts"))},"./src/components/inline-tools/inline-tool-italic.ts": /*!***********************************************************!*\ !*** ./src/components/inline-tools/inline-tool-italic.ts ***! \***********************************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s){Object.defineProperty(o,"__esModule",{value:!0});var n=l(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(o){o.api;(0,n.default)(this,e),this.commandName="italic",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--italic"},this.nodes={button:null}}return(0,r.default)(e,[{key:"render",value:function(){return this.nodes.button=document.createElement("button"),this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.appendChild(s.svg("italic",6,15)),this.nodes.button}},{key:"surround",value:function(e){document.execCommand(this.commandName)}},{key:"checkState",value:function(e){var o=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,o),o}},{key:"shortcut",get:function(){return"CMD+I"}}]),e}();u.displayName="ItalicInlineTool",o.default=u,e.exports=o.default}).call(this,t(/*! dom */"./src/components/dom.ts"))},"./src/components/inline-tools/inline-tool-link.ts": +/*! no static exports found */function(e,o,t){"use strict";(function(s){Object.defineProperty(o,"__esModule",{value:!0});var n=l(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),r=l(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js"));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(o){o.api,(0,n.default)(this,e),this.commandName="italic",this.CSS={button:"ce-inline-tool",buttonActive:"ce-inline-tool--active",buttonModifier:"ce-inline-tool--italic"},this.nodes={button:null}}return(0,r.default)(e,[{key:"render",value:function(){return this.nodes.button=document.createElement("button"),this.nodes.button.classList.add(this.CSS.button,this.CSS.buttonModifier),this.nodes.button.appendChild(s.svg("italic",6,15)),this.nodes.button}},{key:"surround",value:function(e){document.execCommand(this.commandName)}},{key:"checkState",value:function(e){var o=document.queryCommandState(this.commandName);return this.nodes.button.classList.toggle(this.CSS.buttonActive,o),o}},{key:"shortcut",get:function(){return"CMD+I"}}]),e}();u.displayName="ItalicInlineTool",o.default=u,e.exports=o.default}).call(this,t(/*! dom */"./src/components/dom.ts"))},"./src/components/inline-tools/inline-tool-link.ts": /*!*********************************************************!*\ !*** ./src/components/inline-tools/inline-tool-link.ts ***! \*********************************************************/ @@ -2042,11 +2038,11 @@ /*!************************************************!*\ !*** ./src/components/modules/blockManager.js ***! \************************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=f(t(/*! babel-runtime/core-js/promise */"./node_modules/babel-runtime/core-js/promise.js")),u=f(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),i=f(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),d=f(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),c=f(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=f(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),m=f(t(/*! ../block */"./src/components/block.ts"));function f(e){return e&&e.__esModule?e:{default:e}}var j=function(e){function o(e){var t=e.config;(0,i.default)(this,o);var s=(0,c.default)(this,(o.__proto__||(0,u.default)(o)).call(this,{config:t}));return s._blocks=null,s.currentBlockIndex=-1,s}return(0,a.default)(o,e),(0,d.default)(o,[{key:"prepare",value:function(){var e=this;return new l.default(function(o){var t=new _(e.Editor.UI.nodes.redactor);e._blocks=new Proxy(t,{set:_.set,get:_.get}),o()})}},{key:"composeBlock",value:function(e,o,t){var s=this.Editor.Tools.construct(e,o),n=this.Editor.Tools.available[e],r=new m.default(e,s,n,t,this.Editor.API.methods);return this.bindEvents(r),r.call("appendCallback",{}),r}},{key:"bindEvents",value:function(e){var o=this;this.Editor.Listeners.on(e.holder,"keydown",function(e){return o.Editor.BlockEvents.keydown(e)},!0),this.Editor.Listeners.on(e.holder,"mouseup",function(e){return o.Editor.BlockEvents.mouseUp(e)}),this.Editor.Listeners.on(e.holder,"keyup",function(e){return o.Editor.BlockEvents.keyup(e)})}},{key:"insert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.initialBlock,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=++this.currentBlockIndex,n=this.composeBlock(e,o,t);return this._blocks[s]=n,n}},{key:"insertAtEnd",value:function(){return this.currentBlockIndex=this.blocks.length-1,this.insert()}},{key:"mergeBlocks",value:function(e,o){var t=this,s=this._blocks.indexOf(o);return l.default.resolve().then(function(){if(!o.isEmpty)return o.data.then(function(o){e.mergeWith(o.data)})}).then(function(){t.removeBlock(s),t.currentBlockIndex=t._blocks.indexOf(e)})}},{key:"removeBlock",value:function(e){e||(e=this.currentBlockIndex),this._blocks.remove(e),this.blocks.length||(this.currentBlockIndex=-1,this.insert(),this.currentBlock.firstInput.focus())}},{key:"split",value:function(){var e=this.Editor.Caret.extractFragmentFromCaretPosition(),o=n.make("div");o.append(e);var t={text:n.isEmpty(o)?"":o.innerHTML};return this.insert(this.config.initialBlock,t)}},{key:"replace",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=this.composeBlock(e,o);return this._blocks.insert(this.currentBlockIndex,t,!0),t}},{key:"getBlockByIndex",value:function(e){return this._blocks[e]}},{key:"getBlock",value:function(e){n.isElement(e)||(e=e.parentNode);var o=this._blocks.nodes,t=e.closest("."+m.default.CSS.wrapper),s=o.indexOf(t);if(s>=0)return this._blocks[s]}},{key:"highlightCurrentNode",value:function(){this.clearHighlightings(),this.currentBlock.selected=!0}},{key:"clearHighlightings",value:function(){this.blocks.forEach(function(e){return e.selected=!1})}},{key:"setCurrentBlockByChildNode",value:function(e){n.isElement(e)||(e=e.parentNode);var o=e.closest("."+m.default.CSS.wrapper);if(!o)throw new Error("Can not find a Block from this child Node");this.currentBlockIndex=this._blocks.nodes.indexOf(o),this.Editor.Caret.setToInput(e)}},{key:"swap",value:function(e,o){this._blocks.swap(e,o),this.currentBlockIndex=o}},{key:"dropPointer",value:function(){this.currentBlockIndex=-1,this.clearHighlightings()}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._blocks.removeAll(),this.dropPointer(),e&&this.insert(this.config.initialBlock)}},{key:"lastBlock",get:function(){return this._blocks[this._blocks.length-1]}},{key:"currentBlock",get:function(){return this._blocks[this.currentBlockIndex]}},{key:"nextBlock",get:function(){return this.currentBlockIndex===this._blocks.length-1?null:this._blocks[this.currentBlockIndex+1]}},{key:"nextContentfulBlock",get:function(){return this.blocks.slice(this.currentBlockIndex+1).find(function(e){return!!e.inputs.length})}},{key:"previousContentfulBlock",get:function(){return this.blocks.slice(0,this.currentBlockIndex).reverse().find(function(e){return!!e.inputs.length})}},{key:"previousBlock",get:function(){return 0===this.currentBlockIndex?null:this._blocks[this.currentBlockIndex-1]}},{key:"blocks",get:function(){return this._blocks.array}}]),o}(s);j.displayName="BlockManager",o.default=j;var _=function(){function e(o){(0,i.default)(this,e),this.blocks=[],this.workingArea=o}return(0,d.default)(e,[{key:"push",value:function(e){this.blocks.push(e),this.workingArea.appendChild(e.holder)}},{key:"swap",value:function(e,o){var t=this.blocks[o];n.swap(this.blocks[e].holder,t.holder),this.blocks[o]=this.blocks[e],this.blocks[e]=t}},{key:"insert",value:function(e,o){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.length){e>this.length&&(e=this.length),t&&this.blocks[e].holder.remove();var s=t?1:0;if(this.blocks.splice(e,s,o),e>0){this.blocks[e-1].holder.insertAdjacentElement("afterend",o.holder)}else{var n=this.blocks[e+1];n?n.holder.insertAdjacentElement("beforebegin",o.holder):this.workingArea.appendChild(o.holder)}}else this.push(o)}},{key:"remove",value:function(e){isNaN(e)&&(e=this.length-1),this.blocks[e].holder.remove(),this.blocks.splice(e,1)}},{key:"removeAll",value:function(){this.workingArea.innerHTML="",this.blocks.length=0}},{key:"insertAfter",value:function(e,o){var t=this.blocks.indexOf(e);this.insert(t+1,o)}},{key:"get",value:function(e){return this.blocks[e]}},{key:"indexOf",value:function(e){return this.blocks.indexOf(e)}},{key:"length",get:function(){return this.blocks.length}},{key:"array",get:function(){return this.blocks}},{key:"nodes",get:function(){return r.array(this.workingArea.children)}}],[{key:"set",value:function(e,o,t){return!isNaN(Number(o))&&(e.insert(o,t),!0)}},{key:"get",value:function(e,o){return isNaN(Number(o))?e[o]:e.get(o)}}]),e}();_.displayName="Blocks",e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/caret.js": +/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=f(t(/*! babel-runtime/core-js/promise */"./node_modules/babel-runtime/core-js/promise.js")),u=f(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),i=f(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),d=f(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),c=f(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),a=f(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),m=f(t(/*! ../block */"./src/components/block.ts"));function f(e){return e&&e.__esModule?e:{default:e}}var j=function(e){function o(e){var t=e.config;(0,i.default)(this,o);var s=(0,c.default)(this,(o.__proto__||(0,u.default)(o)).call(this,{config:t}));return s._blocks=null,s.currentBlockIndex=-1,s}return(0,a.default)(o,e),(0,d.default)(o,[{key:"prepare",value:function(){var e=this;return new l.default(function(o){var t=new _(e.Editor.UI.nodes.redactor);e._blocks=new Proxy(t,{set:_.set,get:_.get}),o()})}},{key:"composeBlock",value:function(e,o,t){var s=this.Editor.Tools.construct(e,o),n=this.Editor.Tools.available[e],r=new m.default(e,s,n,t,this.Editor.API.methods);return this.bindEvents(r),r.call("appendCallback",{}),r}},{key:"bindEvents",value:function(e){var o=this;this.Editor.Listeners.on(e.holder,"keydown",function(e){return o.Editor.BlockEvents.keydown(e)},!0),this.Editor.Listeners.on(e.holder,"mouseup",function(e){return o.Editor.BlockEvents.mouseUp(e)}),this.Editor.Listeners.on(e.holder,"keyup",function(e){return o.Editor.BlockEvents.keyup(e)})}},{key:"insert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.initialBlock,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=++this.currentBlockIndex,n=this.composeBlock(e,o,t);return this._blocks[s]=n,n}},{key:"insertAtEnd",value:function(){return this.currentBlockIndex=this.blocks.length-1,this.insert()}},{key:"mergeBlocks",value:function(e,o){var t=this,s=this._blocks.indexOf(o);return l.default.resolve().then(function(){if(!o.isEmpty)return o.data.then(function(o){e.mergeWith(o.data)})}).then(function(){t.removeBlock(s),t.currentBlockIndex=t._blocks.indexOf(e)})}},{key:"removeBlock",value:function(e){e||(e=this.currentBlockIndex),this._blocks.remove(e),this.blocks.length||(this.currentBlockIndex=-1,this.insert(),this.currentBlock.firstInput.focus())}},{key:"split",value:function(){var e=this.Editor.Caret.extractFragmentFromCaretPosition(),o=n.make("div");o.append(e);var t={text:n.isEmpty(o)?"":o.innerHTML};return this.insert(this.config.initialBlock,t)}},{key:"replace",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=this.composeBlock(e,o);return this._blocks.insert(this.currentBlockIndex,t,!0),t}},{key:"getBlockByIndex",value:function(e){return this._blocks[e]}},{key:"getBlock",value:function(e){n.isElement(e)||(e=e.parentNode);var o=this._blocks.nodes,t=e.closest("."+m.default.CSS.wrapper),s=o.indexOf(t);if(s>=0)return this._blocks[s]}},{key:"highlightCurrentNode",value:function(){this.clearHighlightings(),this.currentBlock.selected=!0}},{key:"clearHighlightings",value:function(){this.blocks.forEach(function(e){return e.selected=!1})}},{key:"setCurrentBlockByChildNode",value:function(e){n.isElement(e)||(e=e.parentNode);var o=e.closest("."+m.default.CSS.wrapper);if(!o)throw new Error("Can not find a Block from this child Node");this.currentBlockIndex=this._blocks.nodes.indexOf(o),this.Editor.Caret.setToInput(e)}},{key:"swap",value:function(e,o){this._blocks.swap(e,o),this.currentBlockIndex=o}},{key:"dropPointer",value:function(){this.currentBlockIndex=-1,this.clearHighlightings()}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._blocks.removeAll(),this.dropPointer(),e&&this.insert(this.config.initialBlock)}},{key:"lastBlock",get:function(){return this._blocks[this._blocks.length-1]}},{key:"currentBlock",get:function(){return this._blocks[this.currentBlockIndex]}},{key:"nextBlock",get:function(){return this.currentBlockIndex===this._blocks.length-1?null:this._blocks[this.currentBlockIndex+1]}},{key:"nextContentfulBlock",get:function(){return this.blocks.slice(this.currentBlockIndex+1).find(function(e){return!!e.inputs.length})}},{key:"previousContentfulBlock",get:function(){return this.blocks.slice(0,this.currentBlockIndex).reverse().find(function(e){return!!e.inputs.length})}},{key:"previousBlock",get:function(){return 0===this.currentBlockIndex?null:this._blocks[this.currentBlockIndex-1]}},{key:"blocks",get:function(){return this._blocks.array}}]),o}(s);j.displayName="BlockManager",o.default=j;var _=function(){function e(o){(0,i.default)(this,e),this.blocks=[],this.workingArea=o}return(0,d.default)(e,[{key:"push",value:function(e){this.blocks.push(e),this.workingArea.appendChild(e.holder)}},{key:"swap",value:function(e,o){var t=this.blocks[o];n.swap(this.blocks[e].holder,t.holder),this.blocks[o]=this.blocks[e],this.blocks[e]=t}},{key:"insert",value:function(e,o){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.length){e>this.length&&(e=this.length),t&&this.blocks[e].holder.remove();var s=t?1:0;if(this.blocks.splice(e,s,o),e>0)this.blocks[e-1].holder.insertAdjacentElement("afterend",o.holder);else{var n=this.blocks[e+1];n?n.holder.insertAdjacentElement("beforebegin",o.holder):this.workingArea.appendChild(o.holder)}}else this.push(o)}},{key:"remove",value:function(e){isNaN(e)&&(e=this.length-1),this.blocks[e].holder.remove(),this.blocks.splice(e,1)}},{key:"removeAll",value:function(){this.workingArea.innerHTML="",this.blocks.length=0}},{key:"insertAfter",value:function(e,o){var t=this.blocks.indexOf(e);this.insert(t+1,o)}},{key:"get",value:function(e){return this.blocks[e]}},{key:"indexOf",value:function(e){return this.blocks.indexOf(e)}},{key:"length",get:function(){return this.blocks.length}},{key:"array",get:function(){return this.blocks}},{key:"nodes",get:function(){return r.array(this.workingArea.children)}}],[{key:"set",value:function(e,o,t){return!isNaN(Number(o))&&(e.insert(o,t),!0)}},{key:"get",value:function(e,o){return isNaN(Number(o))?e[o]:e.get(o)}}]),e}();_.displayName="Blocks",e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/caret.js": /*!*****************************************!*\ !*** ./src/components/modules/caret.js ***! \*****************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=m(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),u=m(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),d=m(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=m(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),a=m(t(/*! ../selection */"./src/components/selection.ts"));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function o(e){var t=e.config;return(0,u.default)(this,o),(0,d.default)(this,(o.__proto__||(0,l.default)(o)).call(this,{config:t}))}return(0,c.default)(o,e),(0,i.default)(o,[{key:"setToBlock",value:function(e){var t=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.positions.DEFAULT,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=this.Editor.BlockManager,i=void 0;switch(s){case o.positions.START:i=e.firstInput;break;case o.positions.END:i=e.lastInput;break;default:i=e.currentInput}if(i){var d=n.getDeepestNode(i,s===o.positions.END),c=n.getContentLength(d);switch(!0){case s===o.positions.START:l=0;break;case s===o.positions.END:case l>c:l=c}r.delay(function(){t.set(d,l)},20)(),u.setCurrentBlockByChildNode(e.holder),u.currentBlock.currentInput=i}}},{key:"setToInput",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.positions.DEFAULT,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.Editor.BlockManager.currentBlock,l=n.getDeepestNode(e);switch(t){case o.positions.START:this.set(l,0);break;case o.positions.END:var u=n.getContentLength(l);this.set(l,u);break;default:s&&this.set(l,s)}r.currentInput=e}},{key:"set",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=document.createRange(),s=a.default.get();if(n.isNativeInput(e))return e.focus(),void(e.selectionStart=e.selectionEnd=o);t.setStart(e,o),t.setEnd(e,o),s.removeAllRanges(),s.addRange(t);var r=t.getBoundingClientRect(),l=r.top,u=r.bottom,i=window.innerHeight;l<0&&window.scrollBy(0,l),u>i&&window.scrollBy(0,u-i)}},{key:"setToTheLastBlock",value:function(){var e=this.Editor.BlockManager.lastBlock;if(e)if(e.isEmpty)this.setToBlock(e);else{var o=this.Editor.BlockManager.insertAtEnd();this.setToBlock(o)}}},{key:"extractFragmentFromCaretPosition",value:function(){var e=a.default.get();if(e.rangeCount){var o=e.getRangeAt(0),t=this.Editor.BlockManager.currentBlock.currentInput;if(o.deleteContents(),t){var s=o.cloneRange(!0);return s.selectNodeContents(t),s.setStart(o.endContainer,o.endOffset),s.extractContents()}}}},{key:"getHigherLevelSiblings",value:function(e,o){for(var t=e,s=[];t.parentNode&&"true"!==t.parentNode.contentEditable;)t=t.parentNode;for(var n="left"===o?"previousSibling":"nextSibling";t[n];)t=t[n],s.push(t);return s}},{key:"navigateNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Editor.BlockManager,s=t.currentBlock,n=t.nextContentfulBlock,r=s.nextInput;return!(!n&&!r)&&(e?(this.setToBlock(n,o.positions.START),!0):!!this.isAtEnd&&(r?this.setToInput(r,o.positions.START):this.setToBlock(n,o.positions.START),!0))}},{key:"navigatePrevious",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Editor.BlockManager,s=t.currentBlock,n=t.previousContentfulBlock,r=(s||{}).previousInput;return!(!n&&!r)&&(e&&this.setToBlock(n,o.positions.END),!!this.isAtStart&&(r?this.setToInput(r,o.positions.END):this.setToBlock(n,o.positions.END),!0))}},{key:"createShadow",value:function(e){var t=document.createElement("span");t.classList.add(o.CSS.shadowCaret),e.insertAdjacentElement("beforeEnd",t)}},{key:"restoreCaret",value:function(e){var t=e.querySelector("."+o.CSS.shadowCaret);t&&((new a.default).expandToTag(t),setTimeout(function(){var e=document.createRange();e.selectNode(t),e.extractContents()},50))}},{key:"isAtStart",get:function(){if(!a.default.isCollapsed)return!1;var e=a.default.get(),o=e.anchorNode,t=n.getDeepestNode(this.Editor.BlockManager.currentBlock.currentInput);if(n.isNativeInput(t))return 0===t.selectionEnd;var s=o.textContent.search(/\S/);if((-1===s&&(s=0),n.isEmpty(t))&&(this.getHigherLevelSiblings(o,"left").every(function(e){return n.isEmpty(e)})&&e.anchorOffset===s))return!0;return null===t||o===t&&e.anchorOffset<=s}},{key:"isAtEnd",get:function(){if(!a.default.isCollapsed)return!1;var e=a.default.get(),o=e.anchorNode,t=n.getDeepestNode(this.Editor.BlockManager.currentBlock.currentInput,!0);if(n.isNativeInput(t))return t.selectionEnd===t.value.length;if(n.isEmpty(t)&&(this.getHigherLevelSiblings(o,"right").every(function(e){return n.isEmpty(e)})&&e.anchorOffset===o.textContent.length))return!0;var s=t.textContent.replace(/\s+$/,"");return o===t&&e.anchorOffset>=s.length}}],[{key:"CSS",get:function(){return{shadowCaret:"cdx-shadow-caret"}}},{key:"positions",get:function(){return{START:"start",END:"end",DEFAULT:"default"}}}]),o}(s);f.displayName="Caret",o.default=f,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/events.js": +/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=m(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),u=m(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),i=m(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),d=m(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=m(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),a=m(t(/*! ../selection */"./src/components/selection.ts"));function m(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function o(e){var t=e.config;return(0,u.default)(this,o),(0,d.default)(this,(o.__proto__||(0,l.default)(o)).call(this,{config:t}))}return(0,c.default)(o,e),(0,i.default)(o,[{key:"setToBlock",value:function(e){var t=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.positions.DEFAULT,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=this.Editor.BlockManager,i=void 0;switch(s){case o.positions.START:i=e.firstInput;break;case o.positions.END:i=e.lastInput;break;default:i=e.currentInput}if(i){var d=n.getDeepestNode(i,s===o.positions.END),c=n.getContentLength(d);switch(!0){case s===o.positions.START:l=0;break;case s===o.positions.END:case l>c:l=c}r.delay(function(){t.set(d,l)},20)(),u.setCurrentBlockByChildNode(e.holder),u.currentBlock.currentInput=i}}},{key:"setToInput",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.positions.DEFAULT,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.Editor.BlockManager.currentBlock,l=n.getDeepestNode(e);switch(t){case o.positions.START:this.set(l,0);break;case o.positions.END:var u=n.getContentLength(l);this.set(l,u);break;default:s&&this.set(l,s)}r.currentInput=e}},{key:"set",value:function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=document.createRange(),s=a.default.get();if(n.isNativeInput(e))return e.focus(),void(e.selectionStart=e.selectionEnd=o);t.setStart(e,o),t.setEnd(e,o),s.removeAllRanges(),s.addRange(t);var r=t.getBoundingClientRect(),l=r.top,u=r.bottom,i=window.innerHeight;l<0&&window.scrollBy(0,l),u>i&&window.scrollBy(0,u-i)}},{key:"setToTheLastBlock",value:function(){var e=this.Editor.BlockManager.lastBlock;if(e)if(e.isEmpty)this.setToBlock(e);else{var o=this.Editor.BlockManager.insertAtEnd();this.setToBlock(o)}}},{key:"extractFragmentFromCaretPosition",value:function(){var e=a.default.get();if(e.rangeCount){var o=e.getRangeAt(0),t=this.Editor.BlockManager.currentBlock.currentInput;if(o.deleteContents(),t){var s=o.cloneRange(!0);return s.selectNodeContents(t),s.setStart(o.endContainer,o.endOffset),s.extractContents()}}}},{key:"getHigherLevelSiblings",value:function(e,o){for(var t=e,s=[];t.parentNode&&"true"!==t.parentNode.contentEditable;)t=t.parentNode;for(var n="left"===o?"previousSibling":"nextSibling";t[n];)t=t[n],s.push(t);return s}},{key:"navigateNext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Editor.BlockManager,s=t.currentBlock,n=t.nextContentfulBlock,r=s.nextInput;return!(!n&&!r||(e?(this.setToBlock(n,o.positions.START),0):!this.isAtEnd||(r?this.setToInput(r,o.positions.START):this.setToBlock(n,o.positions.START),0)))}},{key:"navigatePrevious",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.Editor.BlockManager,s=t.currentBlock,n=t.previousContentfulBlock,r=(s||{}).previousInput;return!(!n&&!r||(e&&this.setToBlock(n,o.positions.END),!this.isAtStart||(r?this.setToInput(r,o.positions.END):this.setToBlock(n,o.positions.END),0)))}},{key:"createShadow",value:function(e){var t=document.createElement("span");t.classList.add(o.CSS.shadowCaret),e.insertAdjacentElement("beforeEnd",t)}},{key:"restoreCaret",value:function(e){var t=e.querySelector("."+o.CSS.shadowCaret);t&&((new a.default).expandToTag(t),setTimeout(function(){var e=document.createRange();e.selectNode(t),e.extractContents()},50))}},{key:"isAtStart",get:function(){if(!a.default.isCollapsed)return!1;var e=a.default.get(),o=e.anchorNode,t=n.getDeepestNode(this.Editor.BlockManager.currentBlock.currentInput);if(n.isNativeInput(t))return 0===t.selectionEnd;var s=o.textContent.search(/\S/);return-1===s&&(s=0),!(!n.isEmpty(t)||!this.getHigherLevelSiblings(o,"left").every(function(e){return n.isEmpty(e)})||e.anchorOffset!==s)||null===t||o===t&&e.anchorOffset<=s}},{key:"isAtEnd",get:function(){if(!a.default.isCollapsed)return!1;var e=a.default.get(),o=e.anchorNode,t=n.getDeepestNode(this.Editor.BlockManager.currentBlock.currentInput,!0);if(n.isNativeInput(t))return t.selectionEnd===t.value.length;if(n.isEmpty(t)&&this.getHigherLevelSiblings(o,"right").every(function(e){return n.isEmpty(e)})&&e.anchorOffset===o.textContent.length)return!0;var s=t.textContent.replace(/\s+$/,"");return o===t&&e.anchorOffset>=s.length}}],[{key:"CSS",get:function(){return{shadowCaret:"cdx-shadow-caret"}}},{key:"positions",get:function(){return{START:"start",END:"end",DEFAULT:"default"}}}]),o}(s);f.displayName="Caret",o.default=f,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/events.js": /*!******************************************!*\ !*** ./src/components/modules/events.js ***! \******************************************/ @@ -2062,7 +2058,7 @@ /*!*****************************************!*\ !*** ./src/components/modules/paste.ts ***! \*****************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=g(t(/*! babel-runtime/helpers/toConsumableArray */"./node_modules/babel-runtime/helpers/toConsumableArray.js")),u=g(t(/*! babel-runtime/core-js/array/from */"./node_modules/babel-runtime/core-js/array/from.js")),i=g(t(/*! babel-runtime/regenerator */"./node_modules/babel-runtime/regenerator/index.js")),d=g(t(/*! babel-runtime/core-js/promise */"./node_modules/babel-runtime/core-js/promise.js")),c=g(t(/*! babel-runtime/core-js/object/assign */"./node_modules/babel-runtime/core-js/object/assign.js")),a=g(t(/*! babel-runtime/core-js/object/keys */"./node_modules/babel-runtime/core-js/object/keys.js")),m=g(t(/*! babel-runtime/helpers/asyncToGenerator */"./node_modules/babel-runtime/helpers/asyncToGenerator.js")),f=g(t(/*! babel-runtime/core-js/object/entries */"./node_modules/babel-runtime/core-js/object/entries.js")),j=g(t(/*! babel-runtime/helpers/slicedToArray */"./node_modules/babel-runtime/helpers/slicedToArray.js")),_=g(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),p=g(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),h=g(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),b=g(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),y=g(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),v=g(t(/*! ./caret */"./src/components/modules/caret.js"));function g(e){return e&&e.__esModule?e:{default:e}}var k=function(e){function o(e){var t=this,s=e.config;(0,p.default)(this,o);var l=(0,b.default)(this,(o.__proto__||(0,_.default)(o)).call(this,{config:s}));return l.toolsTags={},l.toolsPatterns=[],l.processTool=function(e){var o=(0,j.default)(e,2),t=o[0],s=o[1];try{var r=s.onPaste||{};if(l.config.initialBlock!==t||r.handler||n.log("«"+t+"» Tool must provide a paste handler.","warn"),r.handler&&"function"!=typeof r.handler)n.log("Paste handler for «"+t+"» Tool should be a function.","warn");else(r.tags||[]).forEach(function(e){l.toolsTags.hasOwnProperty(e)?n.log("Paste handler for «"+t+"» Tool on «"+e+"» tag is skipped because it is already used by «"+l.toolsTags[e].tool+"» Tool.","warn"):l.toolsTags[e]={handler:r.handler,tool:t}});if(!r.patternHandler||n.isEmpty(r.patterns))return;"function"!=typeof r.patternHandler?n.log("Pattern parser for «"+t+"» Tool should be a function.","warn"):(0,f.default)(r.patterns).forEach(function(e){var o=(0,j.default)(e,2),s=o[0],u=o[1];u instanceof RegExp||n.log("Pattern "+u+" for «"+t+"» Tool is skipped because it should be a Regexp instance.","warn"),l.toolsPatterns.push({key:s,pattern:u,handler:r.patternHandler,tool:t})})}catch(e){n.log("Paste handling for «"+t+"» Tool is not enabled because of an error ","warn",e)}},l.processPastedData=function(){var e=(0,m.default)(i.default.mark(function e(o){var s,n,u,f,j,_,p,h,b,y;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=l.Editor,s.Tools,n=s.Sanitizer,u=s.BlockManager,f=s.Caret,!l.isNativeBehaviour(o.target)){e.next=3;break}return e.abrupt("return");case 3:if(o.preventDefault(),j=o.clipboardData.getData("text/html"),_=o.clipboardData.getData("text/plain"),p=(0,a.default)(l.toolsTags).reduce(function(e,o){return e[o.toLowerCase()]={},e},{}),h={tags:(0,c.default)({},p,n.defaultConfig.tags)},b=n.clean(j,h),y=[],1!==(y=b.trim()&&b.trim()!==_&&r.isHTMLString(b)?l.processHTML(j):l.processPlain(_)).length||y[0].isBlock){e.next=13;break}return l.processSingleBlock(y.pop()),e.abrupt("return");case 13:return l.splitBlock(),e.next=16,d.default.all(y.map(function(){var e=(0,m.default)(i.default.mark(function e(o,s){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.insertBlock(o,0===s);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,t)}));return function(o,t){return e.apply(this,arguments)}}()));case 16:f.setToBlock(u.currentBlock,v.default.positions.END);case 17:case"end":return e.stop()}},e,t)}));return function(o){return e.apply(this,arguments)}}(),l}return(0,y.default)(o,e),(0,h.default)(o,[{key:"prepare",value:function(){var e=(0,m.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.setCallback(),this.processTools();case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"setCallback",value:function(){var e=this.Editor,o=e.Listeners,t=e.UI;o.on(t.nodes.redactor,"paste",this.processPastedData)}},{key:"processTools",value:function(){var e=this.Editor.Tools.blockTools;(0,f.default)(e).forEach(this.processTool)}},{key:"isNativeBehaviour",value:function(e){var o=this.Editor.BlockManager;return!!r.isNativeInput(e)||!o.getBlock(e)}},{key:"processSingleBlock",value:function(){var e=(0,m.default)(i.default.mark(function e(t){var s,n,r,l,u,d,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.config.initialBlock,n=this.Editor,r=n.BlockManager,l=n.Caret,u=t.content,!(t.tool===s&&u.textContent.length1&&void 0!==arguments[1]&&arguments[1];return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.handler(o.content);case 2:if(t=e.sent,s=this.Editor,n=s.BlockManager,r=s.Caret,l=n.currentBlock,!(d&&l&&l.isEmpty)){e.next=10;break}return n.replace(o.tool,t),e.abrupt("return");case 10:u=n.insert(o.tool,t),r.setToBlock(u);case 12:case"end":return e.stop()}},e,this)}));return function(o){return e.apply(this,arguments)}}()},{key:"splitBlock",value:function(){var e=this.Editor,o=e.BlockManager,t=e.Caret;o.currentBlock&&(o.currentBlock.isEmpty||t.isAtEnd||(o.split(),o.currentBlockIndex--))}},{key:"processHTML",value:function(e){var o=this,t=this.Editor,s=t.Tools,n=t.Sanitizer,l=this.config.initialBlock,u=r.make("DIV");return u.innerHTML=e,this.getNodes(u).map(function(e){var t=void 0,u=l,i=!1;switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:(t=r.make("div")).appendChild(e);break;case Node.ELEMENT_NODE:t=e,i=!0,o.toolsTags[t.tagName]&&(u=o.toolsTags[t.tagName].tool)}var d=s.blockTools[u].onPaste,a=d.handler,m=d.tags.reduce(function(e,o){return e[o.toLowerCase()]={},e},{}),f={tags:(0,c.default)({},m,n.defaultConfig.tags)};return t.innerHTML=n.clean(t.innerHTML,f),{content:t,isBlock:i,handler:a,tool:u}}).filter(function(e){return!r.isNodeEmpty(e.content)})}},{key:"processPlain",value:function(e){var o=this.config.initialBlock,t=this.Editor.Tools;if(!e)return[];var s=o,n=t.blockTools[s].onPaste.handler;return e.split("\n\n").map(function(e){var o=r.make("div");return o.innerHTML=e,{content:o,tool:s,isBlock:!1,handler:n}})}},{key:"getNodes",value:function(e){var o=(0,u.default)(e.childNodes),t=(0,a.default)(this.toolsTags);return o.reduce(function e(o,s){if(r.isEmpty(s))return o;var n=o[o.length-1],i=new DocumentFragment;switch(n&&r.isFragment(n)&&(i=o.pop()),s.nodeType){case Node.ELEMENT_NODE:var d=s;if(!r.blockElements.includes(d.tagName.toLowerCase())&&!t.includes(d.tagName))return i.appendChild(d),[].concat((0,l.default)(o),[i]);if(t.includes(d.tagName)||r.blockElements.includes(d.tagName.toLowerCase())&&(0,u.default)(d.children).every(function(e){var o=e.tagName;return!r.blockElements.includes(o.toLowerCase())}))return[].concat((0,l.default)(o),[d]);break;case Node.TEXT_NODE:return i.appendChild(s),[].concat((0,l.default)(o),[i]);default:return[].concat((0,l.default)(o),[i])}return[].concat((0,l.default)(o),(0,l.default)((0,u.default)(s.childNodes).reduce(e,[])))},[])}}]),o}(s);k.displayName="Paste",o.default=k,k.PATTERN_PROCESSING_MAX_LENGTH=450,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! utils */"./src/components/utils.ts"),t(/*! dom */"./src/components/dom.ts"))},"./src/components/modules/renderer.js": +/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=g(t(/*! babel-runtime/helpers/toConsumableArray */"./node_modules/babel-runtime/helpers/toConsumableArray.js")),u=g(t(/*! babel-runtime/core-js/array/from */"./node_modules/babel-runtime/core-js/array/from.js")),i=g(t(/*! babel-runtime/regenerator */"./node_modules/babel-runtime/regenerator/index.js")),d=g(t(/*! babel-runtime/core-js/promise */"./node_modules/babel-runtime/core-js/promise.js")),c=g(t(/*! babel-runtime/core-js/object/assign */"./node_modules/babel-runtime/core-js/object/assign.js")),a=g(t(/*! babel-runtime/core-js/object/keys */"./node_modules/babel-runtime/core-js/object/keys.js")),m=g(t(/*! babel-runtime/helpers/asyncToGenerator */"./node_modules/babel-runtime/helpers/asyncToGenerator.js")),f=g(t(/*! babel-runtime/core-js/object/entries */"./node_modules/babel-runtime/core-js/object/entries.js")),j=g(t(/*! babel-runtime/helpers/slicedToArray */"./node_modules/babel-runtime/helpers/slicedToArray.js")),_=g(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),p=g(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),h=g(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),b=g(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),v=g(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),y=g(t(/*! ./caret */"./src/components/modules/caret.js"));function g(e){return e&&e.__esModule?e:{default:e}}var k=function(e){function o(e){var t=this,s=e.config;(0,p.default)(this,o);var l=(0,b.default)(this,(o.__proto__||(0,_.default)(o)).call(this,{config:s}));return l.toolsTags={},l.toolsPatterns=[],l.processTool=function(e){var o=(0,j.default)(e,2),t=o[0],s=o[1];try{var r=s.onPaste||{};if(l.config.initialBlock!==t||r.handler||n.log("«"+t+"» Tool must provide a paste handler.","warn"),r.handler&&"function"!=typeof r.handler?n.log("Paste handler for «"+t+"» Tool should be a function.","warn"):(r.tags||[]).forEach(function(e){l.toolsTags.hasOwnProperty(e)?n.log("Paste handler for «"+t+"» Tool on «"+e+"» tag is skipped because it is already used by «"+l.toolsTags[e].tool+"» Tool.","warn"):l.toolsTags[e]={handler:r.handler,tool:t}}),!r.patternHandler||n.isEmpty(r.patterns))return;"function"!=typeof r.patternHandler?n.log("Pattern parser for «"+t+"» Tool should be a function.","warn"):(0,f.default)(r.patterns).forEach(function(e){var o=(0,j.default)(e,2),s=o[0],u=o[1];u instanceof RegExp||n.log("Pattern "+u+" for «"+t+"» Tool is skipped because it should be a Regexp instance.","warn"),l.toolsPatterns.push({key:s,pattern:u,handler:r.patternHandler,tool:t})})}catch(e){n.log("Paste handling for «"+t+"» Tool is not enabled because of an error ","warn",e)}},l.processPastedData=function(){var e=(0,m.default)(i.default.mark(function e(o){var s,n,u,f,j,_,p,h,b,v;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((s=l.Editor).Tools,n=s.Sanitizer,u=s.BlockManager,f=s.Caret,!l.isNativeBehaviour(o.target)){e.next=3;break}return e.abrupt("return");case 3:if(o.preventDefault(),j=o.clipboardData.getData("text/html"),_=o.clipboardData.getData("text/plain"),p=(0,a.default)(l.toolsTags).reduce(function(e,o){return e[o.toLowerCase()]={},e},{}),h={tags:(0,c.default)({},p,n.defaultConfig.tags)},b=n.clean(j,h),v=[],1!==(v=b.trim()&&b.trim()!==_&&r.isHTMLString(b)?l.processHTML(j):l.processPlain(_)).length||v[0].isBlock){e.next=13;break}return l.processSingleBlock(v.pop()),e.abrupt("return");case 13:return l.splitBlock(),e.next=16,d.default.all(v.map(function(){var e=(0,m.default)(i.default.mark(function e(o,s){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,l.insertBlock(o,0===s);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}},e,t)}));return function(o,t){return e.apply(this,arguments)}}()));case 16:f.setToBlock(u.currentBlock,y.default.positions.END);case 17:case"end":return e.stop()}},e,t)}));return function(o){return e.apply(this,arguments)}}(),l}return(0,v.default)(o,e),(0,h.default)(o,[{key:"prepare",value:function(){var e=(0,m.default)(i.default.mark(function e(){return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:this.setCallback(),this.processTools();case 2:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}()},{key:"setCallback",value:function(){var e=this.Editor,o=e.Listeners,t=e.UI;o.on(t.nodes.redactor,"paste",this.processPastedData)}},{key:"processTools",value:function(){var e=this.Editor.Tools.blockTools;(0,f.default)(e).forEach(this.processTool)}},{key:"isNativeBehaviour",value:function(e){var o=this.Editor.BlockManager;return!!r.isNativeInput(e)||!o.getBlock(e)}},{key:"processSingleBlock",value:function(){var e=(0,m.default)(i.default.mark(function e(t){var s,n,r,l,u,d,c;return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(s=this.config.initialBlock,n=this.Editor,r=n.BlockManager,l=n.Caret,u=t.content,!(t.tool===s&&u.textContent.length1&&void 0!==arguments[1]&&arguments[1];return i.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.handler(o.content);case 2:if(t=e.sent,s=this.Editor,n=s.BlockManager,r=s.Caret,l=n.currentBlock,!(d&&l&&l.isEmpty)){e.next=10;break}return n.replace(o.tool,t),e.abrupt("return");case 10:u=n.insert(o.tool,t),r.setToBlock(u);case 12:case"end":return e.stop()}},e,this)}));return function(o){return e.apply(this,arguments)}}()},{key:"splitBlock",value:function(){var e=this.Editor,o=e.BlockManager,t=e.Caret;o.currentBlock&&(o.currentBlock.isEmpty||t.isAtEnd||(o.split(),o.currentBlockIndex--))}},{key:"processHTML",value:function(e){var o=this,t=this.Editor,s=t.Tools,n=t.Sanitizer,l=this.config.initialBlock,u=r.make("DIV");return u.innerHTML=e,this.getNodes(u).map(function(e){var t=void 0,u=l,i=!1;switch(e.nodeType){case Node.DOCUMENT_FRAGMENT_NODE:(t=r.make("div")).appendChild(e);break;case Node.ELEMENT_NODE:t=e,i=!0,o.toolsTags[t.tagName]&&(u=o.toolsTags[t.tagName].tool)}var d=s.blockTools[u].onPaste,a=d.handler,m=d.tags.reduce(function(e,o){return e[o.toLowerCase()]={},e},{}),f={tags:(0,c.default)({},m,n.defaultConfig.tags)};return t.innerHTML=n.clean(t.innerHTML,f),{content:t,isBlock:i,handler:a,tool:u}}).filter(function(e){return!r.isNodeEmpty(e.content)})}},{key:"processPlain",value:function(e){var o=this.config.initialBlock,t=this.Editor.Tools;if(!e)return[];var s=o,n=t.blockTools[s].onPaste.handler;return e.split("\n\n").map(function(e){var o=r.make("div");return o.innerHTML=e,{content:o,tool:s,isBlock:!1,handler:n}})}},{key:"getNodes",value:function(e){var o=(0,u.default)(e.childNodes),t=(0,a.default)(this.toolsTags);return o.reduce(function e(o,s){if(r.isEmpty(s))return o;var n=o[o.length-1],i=new DocumentFragment;switch(n&&r.isFragment(n)&&(i=o.pop()),s.nodeType){case Node.ELEMENT_NODE:var d=s;if(!r.blockElements.includes(d.tagName.toLowerCase())&&!t.includes(d.tagName))return i.appendChild(d),[].concat((0,l.default)(o),[i]);if(t.includes(d.tagName)||r.blockElements.includes(d.tagName.toLowerCase())&&(0,u.default)(d.children).every(function(e){var o=e.tagName;return!r.blockElements.includes(o.toLowerCase())}))return[].concat((0,l.default)(o),[d]);break;case Node.TEXT_NODE:return i.appendChild(s),[].concat((0,l.default)(o),[i]);default:return[].concat((0,l.default)(o),[i])}return[].concat((0,l.default)(o),(0,l.default)((0,u.default)(s.childNodes).reduce(e,[])))},[])}}]),o}(s);k.displayName="Paste",o.default=k,k.PATTERN_PROCESSING_MAX_LENGTH=450,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! utils */"./src/components/utils.ts"),t(/*! dom */"./src/components/dom.ts"))},"./src/components/modules/renderer.js": /*!********************************************!*\ !*** ./src/components/modules/renderer.js ***! \********************************************/ @@ -2086,11 +2082,11 @@ /*!**************************************************!*\ !*** ./src/components/modules/toolbar-inline.ts ***! \**************************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s,n){Object.defineProperty(o,"__esModule",{value:!0});var r=b(t(/*! babel-runtime/core-js/map */"./node_modules/babel-runtime/core-js/map.js")),l=b(t(/*! babel-runtime/core-js/object/assign */"./node_modules/babel-runtime/core-js/object/assign.js")),u=b(t(/*! babel-runtime/core-js/array/from */"./node_modules/babel-runtime/core-js/array/from.js")),i=b(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),d=b(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),c=b(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),a=b(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=b(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),f=b(t(/*! ../inline-tools/inline-tool-bold */"./src/components/inline-tools/inline-tool-bold.ts")),j=b(t(/*! ../inline-tools/inline-tool-italic */"./src/components/inline-tools/inline-tool-italic.ts")),_=b(t(/*! ../inline-tools/inline-tool-link */"./src/components/inline-tools/inline-tool-link.ts")),p=b(t(/*! ../selection */"./src/components/selection.ts")),h=b(t(/*! ../utils */"./src/components/utils.ts"));function b(e){return e&&e.__esModule?e:{default:e}}var y=function(e){function o(e){var t=e.config;(0,d.default)(this,o);var s=(0,a.default)(this,(o.__proto__||(0,i.default)(o)).call(this,{config:t}));return s.CSS={inlineToolbar:"ce-inline-toolbar",inlineToolbarShowed:"ce-inline-toolbar--showed",buttonsWrapper:"ce-inline-toolbar__buttons",actionsWrapper:"ce-inline-toolbar__actions",inlineToolButton:"ce-inline-tool",inlineToolButtonLast:"ce-inline-tool--last"},s.nodes={wrapper:null,buttons:null,actions:null},s.toolbarVerticalMargin=20,s}return(0,m.default)(o,e),(0,c.default)(o,[{key:"make",value:function(){this.nodes.wrapper=n.make("div",this.CSS.inlineToolbar),this.nodes.buttons=n.make("div",this.CSS.buttonsWrapper),this.nodes.actions=n.make("div",this.CSS.actionsWrapper),n.append(this.nodes.wrapper,[this.nodes.buttons,this.nodes.actions]),n.append(this.Editor.UI.nodes.wrapper,this.nodes.wrapper),this.addTools()}},{key:"handleShowingEvent",value:function(e){this.allowedToShow(e)?(this.move(),this.open(),this.checkToolsState()):this.close()}},{key:"move",value:function(){var e=p.default.rect,o=this.Editor.UI.nodes.wrapper.getBoundingClientRect(),t={x:e.x-o.left,y:e.y+e.height-o.top+this.toolbarVerticalMargin};e.width&&(t.x+=Math.floor(e.width/2)),this.nodes.wrapper.style.left=Math.floor(t.x)+"px",this.nodes.wrapper.style.top=Math.floor(t.y)+"px"}},{key:"open",value:function(){this.filterTools(),this.nodes.wrapper.classList.add(this.CSS.inlineToolbarShowed),this.tools.forEach(function(e,o){"function"==typeof e.clear&&e.clear()})}},{key:"close",value:function(){this.nodes.wrapper.classList.remove(this.CSS.inlineToolbarShowed),this.tools.forEach(function(e,o){"function"==typeof e.clear&&e.clear()})}},{key:"allowedToShow",value:function(e){if(e&&["IMG","INPUT"].includes(e.target.tagName))return!1;var o=p.default.get(),t=p.default.text;if(!o||!o.anchorNode)return!1;if(o.isCollapsed||t.length<1)return!1;var s=this.Editor.BlockManager.getBlock(o.anchorNode);if(!s)return!1;var n=this.Editor.Tools.getToolSettings(s.name);return n&&n[this.Editor.Tools.apiSettings.IS_ENABLED_INLINE_TOOLBAR]}},{key:"filterTools",value:function(){var e=this,o=p.default.get(),t=this.Editor.BlockManager.getBlock(o.anchorNode),s=this.Editor.Tools.getToolSettings(t.name),n=s&&s[this.Editor.Tools.apiSettings.IS_ENABLED_INLINE_TOOLBAR],r=(0,u.default)(this.nodes.buttons.querySelectorAll("."+this.CSS.inlineToolButton));r.forEach(function(o){o.hidden=!1,o.classList.remove(e.CSS.inlineToolButtonLast)}),Array.isArray(n)&&r.forEach(function(e){e.hidden=!n.includes(e.dataset.tool)});var l=r.filter(function(e){return!e.hidden}).pop();l&&l.classList.add(this.CSS.inlineToolButtonLast)}},{key:"addTools",value:function(){var e=this;this.tools.forEach(function(o,t){e.addTool(t,o)})}},{key:"addTool",value:function(e,o){var t=this,s=o.render();if(s){if(s.dataset.tool=e,this.nodes.buttons.appendChild(s),"function"==typeof o.renderActions){var n=o.renderActions();this.nodes.actions.appendChild(n)}this.Editor.Listeners.on(s,"click",function(){t.toolClicked(o)});var r=this.Editor.Tools.getToolSettings(e),l=null;this.internalTools[e]?l=this.internalTools[e].shortcut:r&&r[this.Editor.Tools.apiSettings.SHORTCUT]&&(l=r[this.Editor.Tools.apiSettings.SHORTCUT]),l&&this.enableShortcuts(o,l)}else h.default.log("Render method must return an instance of Node","warn",e)}},{key:"enableShortcuts",value:function(e,o){var t=this;this.Editor.Shortcuts.add({name:o,handler:function(o){var s=t.Editor.BlockManager.currentBlock;if(s){var n=t.Editor.Tools.getToolSettings(s.name);n&&n[t.Editor.Tools.apiSettings.IS_ENABLED_INLINE_TOOLBAR]&&(o.preventDefault(),t.toolClicked(e))}}})}},{key:"toolClicked",value:function(e){var o=p.default.range;e.surround(o),this.checkToolsState()}},{key:"checkToolsState",value:function(){this.tools.forEach(function(e,o){e.checkState(p.default.get())})}},{key:"tools",get:function(){if(!this.toolsInstances||0===this.toolsInstances.size){var e=(0,l.default)({},this.internalTools,this.externalTools);for(var o in this.toolsInstances=new r.default,e)e.hasOwnProperty(o)&&this.toolsInstances.set(o,e[o])}return this.toolsInstances}},{key:"internalTools",get:function(){return{bold:this.Editor.Tools.constructInline(f.default),italic:this.Editor.Tools.constructInline(j.default),link:this.Editor.Tools.constructInline(_.default)}}},{key:"externalTools",get:function(){var e={};for(var o in this.Editor.Tools.inline)this.Editor.Tools.inline.hasOwnProperty(o)&&(e[o]=this.Editor.Tools.constructInline(this.Editor.Tools.inline[o]));return e}}]),o}(s);y.displayName="InlineToolbar",o.default=y,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"))},"./src/components/modules/toolbar-toolbox.js": +/*! no static exports found */function(e,o,t){"use strict";(function(s,n){Object.defineProperty(o,"__esModule",{value:!0});var r=b(t(/*! babel-runtime/core-js/map */"./node_modules/babel-runtime/core-js/map.js")),l=b(t(/*! babel-runtime/core-js/object/assign */"./node_modules/babel-runtime/core-js/object/assign.js")),u=b(t(/*! babel-runtime/core-js/array/from */"./node_modules/babel-runtime/core-js/array/from.js")),i=b(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),d=b(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),c=b(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),a=b(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),m=b(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js")),f=b(t(/*! ../inline-tools/inline-tool-bold */"./src/components/inline-tools/inline-tool-bold.ts")),j=b(t(/*! ../inline-tools/inline-tool-italic */"./src/components/inline-tools/inline-tool-italic.ts")),_=b(t(/*! ../inline-tools/inline-tool-link */"./src/components/inline-tools/inline-tool-link.ts")),p=b(t(/*! ../selection */"./src/components/selection.ts")),h=b(t(/*! ../utils */"./src/components/utils.ts"));function b(e){return e&&e.__esModule?e:{default:e}}var v=function(e){function o(e){var t=e.config;(0,d.default)(this,o);var s=(0,a.default)(this,(o.__proto__||(0,i.default)(o)).call(this,{config:t}));return s.CSS={inlineToolbar:"ce-inline-toolbar",inlineToolbarShowed:"ce-inline-toolbar--showed",buttonsWrapper:"ce-inline-toolbar__buttons",actionsWrapper:"ce-inline-toolbar__actions",inlineToolButton:"ce-inline-tool",inlineToolButtonLast:"ce-inline-tool--last"},s.nodes={wrapper:null,buttons:null,actions:null},s.toolbarVerticalMargin=20,s}return(0,m.default)(o,e),(0,c.default)(o,[{key:"make",value:function(){this.nodes.wrapper=n.make("div",this.CSS.inlineToolbar),this.nodes.buttons=n.make("div",this.CSS.buttonsWrapper),this.nodes.actions=n.make("div",this.CSS.actionsWrapper),n.append(this.nodes.wrapper,[this.nodes.buttons,this.nodes.actions]),n.append(this.Editor.UI.nodes.wrapper,this.nodes.wrapper),this.addTools()}},{key:"handleShowingEvent",value:function(e){this.allowedToShow(e)?(this.move(),this.open(),this.checkToolsState()):this.close()}},{key:"move",value:function(){var e=p.default.rect,o=this.Editor.UI.nodes.wrapper.getBoundingClientRect(),t={x:e.x-o.left,y:e.y+e.height-o.top+this.toolbarVerticalMargin};e.width&&(t.x+=Math.floor(e.width/2)),this.nodes.wrapper.style.left=Math.floor(t.x)+"px",this.nodes.wrapper.style.top=Math.floor(t.y)+"px"}},{key:"open",value:function(){this.filterTools(),this.nodes.wrapper.classList.add(this.CSS.inlineToolbarShowed),this.tools.forEach(function(e,o){"function"==typeof e.clear&&e.clear()})}},{key:"close",value:function(){this.nodes.wrapper.classList.remove(this.CSS.inlineToolbarShowed),this.tools.forEach(function(e,o){"function"==typeof e.clear&&e.clear()})}},{key:"allowedToShow",value:function(e){if(e&&["IMG","INPUT"].includes(e.target.tagName))return!1;var o=p.default.get(),t=p.default.text;if(!o||!o.anchorNode)return!1;if(o.isCollapsed||t.length<1)return!1;var s=this.Editor.BlockManager.getBlock(o.anchorNode);if(!s)return!1;var n=this.Editor.Tools.getToolSettings(s.name);return n&&n[this.Editor.Tools.apiSettings.IS_ENABLED_INLINE_TOOLBAR]}},{key:"filterTools",value:function(){var e=this,o=p.default.get(),t=this.Editor.BlockManager.getBlock(o.anchorNode),s=this.Editor.Tools.getToolSettings(t.name),n=s&&s[this.Editor.Tools.apiSettings.IS_ENABLED_INLINE_TOOLBAR],r=(0,u.default)(this.nodes.buttons.querySelectorAll("."+this.CSS.inlineToolButton));r.forEach(function(o){o.hidden=!1,o.classList.remove(e.CSS.inlineToolButtonLast)}),Array.isArray(n)&&r.forEach(function(e){e.hidden=!n.includes(e.dataset.tool)});var l=r.filter(function(e){return!e.hidden}).pop();l&&l.classList.add(this.CSS.inlineToolButtonLast)}},{key:"addTools",value:function(){var e=this;this.tools.forEach(function(o,t){e.addTool(t,o)})}},{key:"addTool",value:function(e,o){var t=this,s=o.render();if(s){if(s.dataset.tool=e,this.nodes.buttons.appendChild(s),"function"==typeof o.renderActions){var n=o.renderActions();this.nodes.actions.appendChild(n)}this.Editor.Listeners.on(s,"click",function(){t.toolClicked(o)});var r=this.Editor.Tools.getToolSettings(e),l=null;this.internalTools[e]?l=this.internalTools[e].shortcut:r&&r[this.Editor.Tools.apiSettings.SHORTCUT]&&(l=r[this.Editor.Tools.apiSettings.SHORTCUT]),l&&this.enableShortcuts(o,l)}else h.default.log("Render method must return an instance of Node","warn",e)}},{key:"enableShortcuts",value:function(e,o){var t=this;this.Editor.Shortcuts.add({name:o,handler:function(o){var s=t.Editor.BlockManager.currentBlock;if(s){var n=t.Editor.Tools.getToolSettings(s.name);n&&n[t.Editor.Tools.apiSettings.IS_ENABLED_INLINE_TOOLBAR]&&(o.preventDefault(),t.toolClicked(e))}}})}},{key:"toolClicked",value:function(e){var o=p.default.range;e.surround(o),this.checkToolsState()}},{key:"checkToolsState",value:function(){this.tools.forEach(function(e,o){e.checkState(p.default.get())})}},{key:"tools",get:function(){if(!this.toolsInstances||0===this.toolsInstances.size){var e=(0,l.default)({},this.internalTools,this.externalTools);for(var o in this.toolsInstances=new r.default,e)e.hasOwnProperty(o)&&this.toolsInstances.set(o,e[o])}return this.toolsInstances}},{key:"internalTools",get:function(){return{bold:this.Editor.Tools.constructInline(f.default),italic:this.Editor.Tools.constructInline(j.default),link:this.Editor.Tools.constructInline(_.default)}}},{key:"externalTools",get:function(){var e={};for(var o in this.Editor.Tools.inline)this.Editor.Tools.inline.hasOwnProperty(o)&&(e[o]=this.Editor.Tools.constructInline(this.Editor.Tools.inline[o]));return e}}]),o}(s);v.displayName="InlineToolbar",o.default=v,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"))},"./src/components/modules/toolbar-toolbox.js": /*!***************************************************!*\ !*** ./src/components/modules/toolbar-toolbox.js ***! \***************************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=a(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),u=a(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),i=a(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),d=a(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=a(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js"));a(t(/*! ../interfaces/editor-config */"./src/components/interfaces/editor-config.ts"));function a(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function o(e){var t=e.config;(0,u.default)(this,o);var s=(0,d.default)(this,(o.__proto__||(0,l.default)(o)).call(this,{config:t}));return s.nodes={toolbox:null,buttons:[]},s.opened=!1,s.activeButtonIndex=-1,s.displayedToolsCount=0,s}return(0,c.default)(o,e),(0,i.default)(o,[{key:"make",value:function(){this.nodes.toolbox=n.make("div",o.CSS.toolbox),n.append(this.Editor.Toolbar.nodes.content,this.nodes.toolbox),this.addTools()}},{key:"addTools",value:function(){var e=this.Editor.Tools.toolsAvailable;for(var o in e)this.addTool(o,e[o])}},{key:"addTool",value:function(e,t){var s=this,l=this.Editor.Tools.apiSettings;if(!t[l.IS_DISPLAYED_IN_TOOLBOX]||t[l.TOOLBAR_ICON]){if(t[l.IS_DISPLAYED_IN_TOOLBOX]){var u=n.make("li",[o.CSS.toolboxButton],{title:e});u.innerHTML=t.toolboxIcon,n.append(this.nodes.toolbox,u),this.nodes.toolbox.appendChild(u),this.nodes.buttons.push(u),this.Editor.Listeners.on(u,"click",function(o){s.toolButtonActivate(o,e)});var i=this.Editor.Tools.getToolSettings(e);i&&i[this.Editor.Tools.apiSettings.SHORTCUT]&&this.enableShortcut(t,e,i[this.Editor.Tools.apiSettings.SHORTCUT]),this.displayedToolsCount++}}else r.log("Toolbar icon is missed. Tool %o skipped","warn",e)}},{key:"enableShortcut",value:function(e,o,t){var s=this;this.Editor.Shortcuts.add({name:t,handler:function(t){t.preventDefault(),s.insertNewBlock(e,o)}})}},{key:"insertNewBlock",value:function(e,o){var t=this.Editor.BlockManager.currentBlock,s=void 0;s=!e[this.Editor.Tools.apiSettings.IS_IRREPLACEBLE_TOOL]&&t.isEmpty?this.Editor.BlockManager.replace(o):this.Editor.BlockManager.insert(o),this.Editor.Caret.setToBlock(s),this.Editor.Toolbar.close()}},{key:"toolButtonActivate",value:function(e,o){var t=this.Editor.Tools.toolsClasses[o];this.insertNewBlock(t,o)}},{key:"open",value:function(){this.isEmpty||(this.nodes.toolbox.classList.add(o.CSS.toolboxOpened),this.opened=!0)}},{key:"close",value:function(){this.nodes.toolbox.classList.remove(o.CSS.toolboxOpened),this.opened=!1,this.activeButtonIndex=-1;var e=this.nodes.toolbox.querySelector("."+o.CSS.toolboxButtonActive);e&&e.classList.remove(o.CSS.toolboxButtonActive)}},{key:"toggle",value:function(){this.opened?this.close():this.open()}},{key:"leaf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right",t=this.nodes.toolbox.childNodes;-1===this.activeButtonIndex?this.activeButtonIndex="right"===e?-1:0:t[this.activeButtonIndex].classList.remove(o.CSS.toolboxButtonActive),this.activeButtonIndex="right"===e?(this.activeButtonIndex+1)%t.length:(t.length+this.activeButtonIndex-1)%t.length,t[this.activeButtonIndex].classList.add(o.CSS.toolboxButtonActive)}},{key:"getActiveTool",get:function(){var e=this.nodes.toolbox.childNodes;return-1===this.activeButtonIndex?null:e[this.activeButtonIndex].title}},{key:"isEmpty",get:function(){return 0===this.displayedToolsCount}}],[{key:"CSS",get:function(){return{toolbox:"ce-toolbox",toolboxButton:"ce-toolbox__button",toolboxButtonActive:"ce-toolbox__button--active",toolboxOpened:"ce-toolbox--opened"}}}]),o}(s);m.displayName="Toolbox",o.default=m,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/toolbar.js": +/*! no static exports found */function(e,o,t){"use strict";(function(s,n,r){Object.defineProperty(o,"__esModule",{value:!0});var l=a(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),u=a(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),i=a(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),d=a(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),c=a(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js"));function a(e){return e&&e.__esModule?e:{default:e}}a(t(/*! ../interfaces/editor-config */"./src/components/interfaces/editor-config.ts"));var m=function(e){function o(e){var t=e.config;(0,u.default)(this,o);var s=(0,d.default)(this,(o.__proto__||(0,l.default)(o)).call(this,{config:t}));return s.nodes={toolbox:null,buttons:[]},s.opened=!1,s.activeButtonIndex=-1,s.displayedToolsCount=0,s}return(0,c.default)(o,e),(0,i.default)(o,[{key:"make",value:function(){this.nodes.toolbox=n.make("div",o.CSS.toolbox),n.append(this.Editor.Toolbar.nodes.content,this.nodes.toolbox),this.addTools()}},{key:"addTools",value:function(){var e=this.Editor.Tools.toolsAvailable;for(var o in e)this.addTool(o,e[o])}},{key:"addTool",value:function(e,t){var s=this,l=this.Editor.Tools.apiSettings;if(!t[l.IS_DISPLAYED_IN_TOOLBOX]||t[l.TOOLBAR_ICON]){if(t[l.IS_DISPLAYED_IN_TOOLBOX]){var u=n.make("li",[o.CSS.toolboxButton],{title:e});u.innerHTML=t.toolboxIcon,n.append(this.nodes.toolbox,u),this.nodes.toolbox.appendChild(u),this.nodes.buttons.push(u),this.Editor.Listeners.on(u,"click",function(o){s.toolButtonActivate(o,e)});var i=this.Editor.Tools.getToolSettings(e);i&&i[this.Editor.Tools.apiSettings.SHORTCUT]&&this.enableShortcut(t,e,i[this.Editor.Tools.apiSettings.SHORTCUT]),this.displayedToolsCount++}}else r.log("Toolbar icon is missed. Tool %o skipped","warn",e)}},{key:"enableShortcut",value:function(e,o,t){var s=this;this.Editor.Shortcuts.add({name:t,handler:function(t){t.preventDefault(),s.insertNewBlock(e,o)}})}},{key:"insertNewBlock",value:function(e,o){var t=this.Editor.BlockManager.currentBlock,s=void 0;s=!e[this.Editor.Tools.apiSettings.IS_IRREPLACEBLE_TOOL]&&t.isEmpty?this.Editor.BlockManager.replace(o):this.Editor.BlockManager.insert(o),this.Editor.Caret.setToBlock(s),this.Editor.Toolbar.close()}},{key:"toolButtonActivate",value:function(e,o){var t=this.Editor.Tools.toolsClasses[o];this.insertNewBlock(t,o)}},{key:"open",value:function(){this.isEmpty||(this.nodes.toolbox.classList.add(o.CSS.toolboxOpened),this.opened=!0)}},{key:"close",value:function(){this.nodes.toolbox.classList.remove(o.CSS.toolboxOpened),this.opened=!1,this.activeButtonIndex=-1;var e=this.nodes.toolbox.querySelector("."+o.CSS.toolboxButtonActive);e&&e.classList.remove(o.CSS.toolboxButtonActive)}},{key:"toggle",value:function(){this.opened?this.close():this.open()}},{key:"leaf",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"right",t=this.nodes.toolbox.childNodes;-1===this.activeButtonIndex?this.activeButtonIndex="right"===e?-1:0:t[this.activeButtonIndex].classList.remove(o.CSS.toolboxButtonActive),this.activeButtonIndex="right"===e?(this.activeButtonIndex+1)%t.length:(t.length+this.activeButtonIndex-1)%t.length,t[this.activeButtonIndex].classList.add(o.CSS.toolboxButtonActive)}},{key:"getActiveTool",get:function(){var e=this.nodes.toolbox.childNodes;return-1===this.activeButtonIndex?null:e[this.activeButtonIndex].title}},{key:"isEmpty",get:function(){return 0===this.displayedToolsCount}}],[{key:"CSS",get:function(){return{toolbox:"ce-toolbox",toolboxButton:"ce-toolbox__button",toolboxButtonActive:"ce-toolbox__button--active",toolboxOpened:"ce-toolbox--opened"}}}]),o}(s);m.displayName="Toolbox",o.default=m,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! dom */"./src/components/dom.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/toolbar.js": /*!*******************************************!*\ !*** ./src/components/modules/toolbar.js ***! \*******************************************/ @@ -2098,7 +2094,7 @@ /*!*****************************************!*\ !*** ./src/components/modules/tools.js ***! \*****************************************/ -/*! no static exports found */function(e,o,t){"use strict";(function(s,n){Object.defineProperty(o,"__esModule",{value:!0});var r=_(t(/*! babel-runtime/helpers/slicedToArray */"./node_modules/babel-runtime/helpers/slicedToArray.js")),l=_(t(/*! babel-runtime/core-js/object/entries */"./node_modules/babel-runtime/core-js/object/entries.js")),u=_(t(/*! babel-runtime/helpers/typeof */"./node_modules/babel-runtime/helpers/typeof.js")),i=_(t(/*! babel-runtime/core-js/promise */"./node_modules/babel-runtime/core-js/promise.js")),d=_(t(/*! babel-runtime/core-js/object/keys */"./node_modules/babel-runtime/core-js/object/keys.js")),c=_(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),a=_(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),m=_(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),f=_(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),j=_(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js"));function _(e){return e&&e.__esModule?e:{default:e}}var p=t(/*! ../tools/paragraph/dist/bundle */"./src/components/tools/paragraph/dist/bundle.js"),h=function(e){function o(e){var t=e.config;(0,a.default)(this,o);var s=(0,f.default)(this,(o.__proto__||(0,c.default)(o)).call(this,{config:t}));return s.toolsClasses={},s.toolsSettings={},s.toolsAvailable={},s.toolsUnavailable={},s._inlineTools=null,s}return(0,j.default)(o,e),(0,m.default)(o,[{key:"prepare",value:function(){var e=this;if(this.config.tools.paragraph={class:p,inlineToolbar:!0},!this.config.hasOwnProperty("tools")||0===(0,d.default)(this.config.tools).length)return i.default.reject("Can't start without tools");for(var o in this.config.tools)"object"===(0,u.default)(this.config.tools[o])?(this.toolsClasses[o]=this.config.tools[o].class,this.toolsSettings[o]=this.config.tools[o],delete this.toolsSettings[o].class):(this.toolsClasses[o]=this.config.tools[o],this.toolsSettings[o]={});var t=this.getListOfPrepareFunctions();return 0===t.length?i.default.resolve():n.sequence(t,function(o){e.success(o)},function(o){e.fallback(o)})}},{key:"getListOfPrepareFunctions",value:function(){var e=[];for(var o in this.toolsClasses){var t=this.toolsClasses[o];"function"==typeof t.prepare?e.push({function:t.prepare,data:{toolName:o,config:this.toolsSettings[o]}}):this.toolsAvailable[o]=t}return e}},{key:"success",value:function(e){this.toolsAvailable[e.toolName]=this.toolsClasses[e.toolName]}},{key:"fallback",value:function(e){this.toolsUnavailable[e.toolName]=this.toolsClasses[e.toolName]}},{key:"construct",value:function(e,o){var t=this.toolsClasses[e],s=this.toolsSettings[e][this.apiSettings.CONFIG];return new t({api:this.Editor.API.methods,config:s||{},data:o})}},{key:"constructInline",value:function(e){return new e({api:this.Editor.API.methods})}},{key:"isInitial",value:function(e){return e instanceof this.available[this.config.initialBlock]}},{key:"getToolSettings",value:function(e){return this.toolsSettings[e]}},{key:"available",get:function(){return this.toolsAvailable}},{key:"unavailable",get:function(){return this.toolsUnavailable}},{key:"inline",get:function(){var e=this;if(this._inlineTools)return this._inlineTools;var o={};return(0,l.default)(this.available).filter(function(o){var t=(0,r.default)(o,2),s=(t[0],t[1]);if(!s[e.apiSettings.IS_INLINE])return!1;var l=["render","surround","checkState"].filter(function(o){return!e.constructInline(s)[o]});return!l.length||(n.log("Incorrect Inline Tool: "+s.name+". Some of required methods is not implemented %o","warn",l),!1)}).forEach(function(e){var t=(0,r.default)(e,2),s=t[0],n=t[1];return o[s]=n}),this._inlineTools=o,this._inlineTools}},{key:"blockTools",get:function(){var e=this,o={};return(0,l.default)(this.available).filter(function(o){var t=(0,r.default)(o,2);t[0];return!t[1][e.apiSettings.IS_INLINE]}).forEach(function(e){var t=(0,r.default)(e,2),s=t[0],n=t[1];return o[s]=n}),o}},{key:"apiSettings",get:function(){return{CONFIG:"config",IS_CONTENTLESS:"contentless",IS_DISPLAYED_IN_TOOLBOX:"displayInToolbox",IS_ENABLED_INLINE_TOOLBAR:"inlineToolbar",IS_ENABLED_LINE_BREAKS:"enableLineBreaks",IS_INLINE:"isInline",IS_IRREPLACEBLE_TOOL:"irreplaceable",IS_PASTE_DISALLOWED:"disallowPaste",SHORTCUT:"shortcut",TOOLBAR_ICON:"toolboxIcon"}}}]),o}(s);h.displayName="Tools",o.default=h,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/ui.js": +/*! no static exports found */function(e,o,t){"use strict";(function(s,n){Object.defineProperty(o,"__esModule",{value:!0});var r=_(t(/*! babel-runtime/helpers/slicedToArray */"./node_modules/babel-runtime/helpers/slicedToArray.js")),l=_(t(/*! babel-runtime/core-js/object/entries */"./node_modules/babel-runtime/core-js/object/entries.js")),u=_(t(/*! babel-runtime/helpers/typeof */"./node_modules/babel-runtime/helpers/typeof.js")),i=_(t(/*! babel-runtime/core-js/promise */"./node_modules/babel-runtime/core-js/promise.js")),d=_(t(/*! babel-runtime/core-js/object/keys */"./node_modules/babel-runtime/core-js/object/keys.js")),c=_(t(/*! babel-runtime/core-js/object/get-prototype-of */"./node_modules/babel-runtime/core-js/object/get-prototype-of.js")),a=_(t(/*! babel-runtime/helpers/classCallCheck */"./node_modules/babel-runtime/helpers/classCallCheck.js")),m=_(t(/*! babel-runtime/helpers/createClass */"./node_modules/babel-runtime/helpers/createClass.js")),f=_(t(/*! babel-runtime/helpers/possibleConstructorReturn */"./node_modules/babel-runtime/helpers/possibleConstructorReturn.js")),j=_(t(/*! babel-runtime/helpers/inherits */"./node_modules/babel-runtime/helpers/inherits.js"));function _(e){return e&&e.__esModule?e:{default:e}}var p=t(/*! ../tools/paragraph/dist/bundle */"./src/components/tools/paragraph/dist/bundle.js"),h=function(e){function o(e){var t=e.config;(0,a.default)(this,o);var s=(0,f.default)(this,(o.__proto__||(0,c.default)(o)).call(this,{config:t}));return s.toolsClasses={},s.toolsSettings={},s.toolsAvailable={},s.toolsUnavailable={},s._inlineTools=null,s}return(0,j.default)(o,e),(0,m.default)(o,[{key:"prepare",value:function(){var e=this;if(this.config.tools.paragraph={class:p,inlineToolbar:!0},!this.config.hasOwnProperty("tools")||0===(0,d.default)(this.config.tools).length)return i.default.reject("Can't start without tools");for(var o in this.config.tools)"object"===(0,u.default)(this.config.tools[o])?(this.toolsClasses[o]=this.config.tools[o].class,this.toolsSettings[o]=this.config.tools[o],delete this.toolsSettings[o].class):(this.toolsClasses[o]=this.config.tools[o],this.toolsSettings[o]={});var t=this.getListOfPrepareFunctions();return 0===t.length?i.default.resolve():n.sequence(t,function(o){e.success(o)},function(o){e.fallback(o)})}},{key:"getListOfPrepareFunctions",value:function(){var e=[];for(var o in this.toolsClasses){var t=this.toolsClasses[o];"function"==typeof t.prepare?e.push({function:t.prepare,data:{toolName:o,config:this.toolsSettings[o]}}):this.toolsAvailable[o]=t}return e}},{key:"success",value:function(e){this.toolsAvailable[e.toolName]=this.toolsClasses[e.toolName]}},{key:"fallback",value:function(e){this.toolsUnavailable[e.toolName]=this.toolsClasses[e.toolName]}},{key:"construct",value:function(e,o){var t=this.toolsClasses[e],s=this.toolsSettings[e][this.apiSettings.CONFIG];return new t({api:this.Editor.API.methods,config:s||{},data:o})}},{key:"constructInline",value:function(e){return new e({api:this.Editor.API.methods})}},{key:"isInitial",value:function(e){return e instanceof this.available[this.config.initialBlock]}},{key:"getToolSettings",value:function(e){return this.toolsSettings[e]}},{key:"available",get:function(){return this.toolsAvailable}},{key:"unavailable",get:function(){return this.toolsUnavailable}},{key:"inline",get:function(){var e=this;if(this._inlineTools)return this._inlineTools;var o={};return(0,l.default)(this.available).filter(function(o){var t=(0,r.default)(o,2),s=(t[0],t[1]);if(!s[e.apiSettings.IS_INLINE])return!1;var l=["render","surround","checkState"].filter(function(o){return!e.constructInline(s)[o]});return!l.length||(n.log("Incorrect Inline Tool: "+s.name+". Some of required methods is not implemented %o","warn",l),!1)}).forEach(function(e){var t=(0,r.default)(e,2),s=t[0],n=t[1];return o[s]=n}),this._inlineTools=o,this._inlineTools}},{key:"blockTools",get:function(){var e=this,o={};return(0,l.default)(this.available).filter(function(o){var t=(0,r.default)(o,2);return t[0],!t[1][e.apiSettings.IS_INLINE]}).forEach(function(e){var t=(0,r.default)(e,2),s=t[0],n=t[1];return o[s]=n}),o}},{key:"apiSettings",get:function(){return{CONFIG:"config",IS_CONTENTLESS:"contentless",IS_DISPLAYED_IN_TOOLBOX:"displayInToolbox",IS_ENABLED_INLINE_TOOLBAR:"inlineToolbar",IS_ENABLED_LINE_BREAKS:"enableLineBreaks",IS_INLINE:"isInline",IS_IRREPLACEBLE_TOOL:"irreplaceable",IS_PASTE_DISALLOWED:"disallowPaste",SHORTCUT:"shortcut",TOOLBAR_ICON:"toolboxIcon"}}}]),o}(s);h.displayName="Tools",o.default=h,e.exports=o.default}).call(this,t(/*! ./../__module.ts */"./src/components/__module.ts"),t(/*! utils */"./src/components/utils.ts"))},"./src/components/modules/ui.js": /*!**************************************!*\ !*** ./src/components/modules/ui.js ***! \**************************************/ @@ -2136,8 +2132,4 @@ var n=function(){function e(o){var t=o.data,s=(o.config,o.api);!function(e,o){if /*!*************************!*\ !*** multi ./src/codex ***! \*************************/ -/*! no static exports found */function(e,o,t){e.exports=t(/*! ./src/codex */"./src/codex.js")}})}); -//# sourceMappingURL=codex-editor.js.map - -/***/ }) -]]); \ No newline at end of file +/*! no static exports found */function(e,o,t){e.exports=t(/*! ./src/codex */"./src/codex.js")}})},52:function(e,o,t){"use strict";t.r(o),t.d(o,"default",function(){return r});var s=t(51),n=t.n(s);var r=function e(){!function(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}(this,e),this.editor=new n.a}}}]); \ No newline at end of file diff --git a/public/dist/main.bundle.js b/public/dist/main.bundle.js index 44c2c6b..2404178 100644 --- a/public/dist/main.bundle.js +++ b/public/dist/main.bundle.js @@ -1,274 +1,4 @@ -var Docs = -/******/ (function(modules) { // webpackBootstrap -/******/ // install a JSONP callback for chunk loading -/******/ function webpackJsonpCallback(data) { -/******/ var chunkIds = data[0]; -/******/ var moreModules = data[1]; -/******/ -/******/ -/******/ // add "moreModules" to the modules object, -/******/ // then flag all "chunkIds" as loaded and fire callback -/******/ var moduleId, chunkId, i = 0, resolves = []; -/******/ for(;i < chunkIds.length; i++) { -/******/ chunkId = chunkIds[i]; -/******/ if(installedChunks[chunkId]) { -/******/ resolves.push(installedChunks[chunkId][0]); -/******/ } -/******/ installedChunks[chunkId] = 0; -/******/ } -/******/ for(moduleId in moreModules) { -/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) { -/******/ modules[moduleId] = moreModules[moduleId]; -/******/ } -/******/ } -/******/ if(parentJsonpFunction) parentJsonpFunction(data); -/******/ -/******/ while(resolves.length) { -/******/ resolves.shift()(); -/******/ } -/******/ -/******/ }; -/******/ -/******/ -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // object to store loaded and loading chunks -/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched -/******/ // Promise = chunk loading, 0 = chunk loaded -/******/ var installedChunks = { -/******/ 0: 0 -/******/ }; -/******/ -/******/ -/******/ -/******/ // script path function -/******/ function jsonpScriptSrc(chunkId) { -/******/ return __webpack_require__.p + "" + ({"1":"vendors~codex-editor"}[chunkId]||chunkId) + ".bundle.js" -/******/ } -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) { -/******/ return installedModules[moduleId].exports; -/******/ } -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ // This file contains only the entry chunk. -/******/ // The chunk loading function for additional chunks -/******/ __webpack_require__.e = function requireEnsure(chunkId) { -/******/ var promises = []; -/******/ -/******/ -/******/ // JSONP chunk loading for javascript -/******/ -/******/ var installedChunkData = installedChunks[chunkId]; -/******/ if(installedChunkData !== 0) { // 0 means "already installed". -/******/ -/******/ // a Promise means "currently loading". -/******/ if(installedChunkData) { -/******/ promises.push(installedChunkData[2]); -/******/ } else { -/******/ // setup Promise in chunk cache -/******/ var promise = new Promise(function(resolve, reject) { -/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject]; -/******/ }); -/******/ promises.push(installedChunkData[2] = promise); -/******/ -/******/ // start chunk loading -/******/ var head = document.getElementsByTagName('head')[0]; -/******/ var script = document.createElement('script'); -/******/ var onScriptComplete; -/******/ -/******/ script.charset = 'utf-8'; -/******/ script.timeout = 120; -/******/ if (__webpack_require__.nc) { -/******/ script.setAttribute("nonce", __webpack_require__.nc); -/******/ } -/******/ script.src = jsonpScriptSrc(chunkId); -/******/ -/******/ onScriptComplete = function (event) { -/******/ // avoid mem leaks in IE. -/******/ script.onerror = script.onload = null; -/******/ clearTimeout(timeout); -/******/ var chunk = installedChunks[chunkId]; -/******/ if(chunk !== 0) { -/******/ if(chunk) { -/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type); -/******/ var realSrc = event && event.target && event.target.src; -/******/ var error = new Error('Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')'); -/******/ error.type = errorType; -/******/ error.request = realSrc; -/******/ chunk[1](error); -/******/ } -/******/ installedChunks[chunkId] = undefined; -/******/ } -/******/ }; -/******/ var timeout = setTimeout(function(){ -/******/ onScriptComplete({ type: 'timeout', target: script }); -/******/ }, 120000); -/******/ script.onerror = script.onload = onScriptComplete; -/******/ head.appendChild(script); -/******/ } -/******/ } -/******/ return Promise.all(promises); -/******/ }; -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // define getter function for harmony exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ if(!__webpack_require__.o(exports, name)) { -/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); -/******/ } -/******/ }; -/******/ -/******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { -/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { -/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); -/******/ } -/******/ Object.defineProperty(exports, '__esModule', { value: true }); -/******/ }; -/******/ -/******/ // create a fake namespace object -/******/ // mode & 1: value is a module id, require it -/******/ // mode & 2: merge all properties of value into the ns -/******/ // mode & 4: return value when already ns object -/******/ // mode & 8|1: behave like require -/******/ __webpack_require__.t = function(value, mode) { -/******/ if(mode & 1) value = __webpack_require__(value); -/******/ if(mode & 8) return value; -/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; -/******/ var ns = Object.create(null); -/******/ __webpack_require__.r(ns); -/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); -/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); -/******/ return ns; -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "/dist/"; -/******/ -/******/ // on error function for async loading -/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; }; -/******/ -/******/ var jsonpArray = window["webpackJsonpDocs"] = window["webpackJsonpDocs"] || []; -/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray); -/******/ jsonpArray.push = webpackJsonpCallback; -/******/ jsonpArray = jsonpArray.slice(); -/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]); -/******/ var parentJsonpFunction = oldJsonpFunction; -/******/ -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */, -/* 1 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -var _main = __webpack_require__(4); - -var _main2 = _interopRequireDefault(_main); - -var _moduleDispatcher = __webpack_require__(2); - -var _moduleDispatcher2 = _interopRequireDefault(_moduleDispatcher); - -var _writing = __webpack_require__(3); - -var _writing2 = _interopRequireDefault(_writing); - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * Main app class - */ -var Docs = -/*#__PURE__*/ -function () { - /** - * @constructor - */ - function Docs() { - var _this = this; - - _classCallCheck(this, Docs); - - console.log('CodeX Docs initialized'); - this.writing = new _writing2.default(); - document.addEventListener('DOMContentLoaded', function (event) { - _this.docReady(); - }); - } - /** - * Document is ready - */ - - - _createClass(Docs, [{ - key: "docReady", - value: function docReady() { - this.moduleDispatcher = new _moduleDispatcher2.default({ - Library: window.Docs - }); - } - }]); - - return Docs; -}(); - -module.exports = new Docs(); - -/***/ }), -/* 2 */ -/***/ (function(module, exports, __webpack_require__) { - +var Docs=function(t){function e(e){for(var n,o,i=e[0],u=e[1],c=0,s=[];cn;)e.push(arguments[n++]);return m[++y]=function(){c("function"==typeof t?t:Function(t),e)},r(y),y},p=function(t){delete m[t]},"process"==n(9)(l)?r=function(t){l.nextTick(u(g,t,1))}:d&&d.now?r=function(t){d.now(u(g,t,1))}:v?(i=(o=new v).port2,o.port1.onmessage=w,r=u(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",w,!1)):r="onreadystatechange"in s("script")?function(t){a.appendChild(s("script")).onreadystatechange=function(){a.removeChild(this),g.call(t)}}:function(t){setTimeout(u(g,t,1),0)}),t.exports={set:h,clear:p}},function(t,e,n){"use strict";var r=n(8);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=r(e),this.reject=r(n)}(t)}},function(t,e,n){ /*! * CodeX Module Dispatcher — Initialize frontend Modules from the DOM without inline scripts * @@ -277,65 +7,4 @@ module.exports = new Docs(); * @author @polinashneider https://github.com/polinashneider * @version 0.0.1 */ -!function(e,t){ true?module.exports=t():undefined}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=0;r--)t.push.apply(t,o(this.extractModulesData(n[r])));return t}},{key:"extractModulesData",value:function(e){var t=this,n=[],o=e.dataset.module;return o=o.replace(/\s+/," "),o.split(" ").forEach(function(o,r){var s=new i({name:o,element:e,settings:t.getModuleSettings(e,r,o),moduleClass:t.Library[o]});n.push(s)}),n}},{key:"getModuleSettings",value:function(e,t,n){var o=e.querySelector("module-settings"),r=void 0;if(!o)return null;try{r=o.textContent.trim(),r=JSON.parse(r)}catch(e){return console.warn("Can not parse Module «"+n+"» settings bacause of: "+e),console.groupCollapsed(n+" settings"),console.log(r),console.groupEnd(),null}return Array.isArray(r)?r[t]?r[t]:null:0===t?r:(console.warn("Wrong settings format. For several Modules use an array instead of object."),null)}},{key:"initModules",value:function(){console.groupCollapsed("ModuleDispatcher"),this.modules.forEach(function(e){e.init()}),console.groupEnd()}}]),e}();t.default=u}])}); - -/***/ }), -/* 3 */ -/***/ (function(module, exports, __webpack_require__) { - -"use strict"; - - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } - -/** - * Module for pages create/edit - */ -module.exports = -/*#__PURE__*/ -function () { - function Writing() { - _classCallCheck(this, Writing); - } - /** - * Called by ModuleDispatcher to initialize module from DOM - */ - - - _createClass(Writing, [{ - key: "init", - value: function init(config, moduleEl) { - this.editorWrapper = document.createElement('div'); - this.editorWrapper.id = 'codex-editor'; - moduleEl.appendChild(this.editorWrapper); - this.loadEditor().then(function () { - console.log('Editor loaded'); - }); - } - }, { - key: "loadEditor", - value: function loadEditor() { - return __webpack_require__.e(/* import() | codex-editor */ 1).then(__webpack_require__.t.bind(null, 0, 7)).then(function (_ref) { - var CodexEditor = _ref.default; - console.log('codex-editor', new CodexEditor()); - }).catch(function (error) { - return 'An error occurred while loading CodeX Editor'; - }); - } - }]); - - return Writing; -}(); - -/***/ }), -/* 4 */ -/***/ (function(module, exports) { - -// removed by extract-text-webpack-plugin - -/***/ }) -/******/ ]); \ No newline at end of file +"undefined"!=typeof self&&self,t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";function r(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e=0;o--)e.push.apply(e,r(this.extractModulesData(n[o])));return e}},{key:"extractModulesData",value:function(t){var e=this,n=[],r=t.dataset.module;return(r=r.replace(/\s+/," ")).split(" ").forEach(function(r,o){var i=new u({name:r,element:t,settings:e.getModuleSettings(t,o,r),moduleClass:e.Library[r]});n.push(i)}),n}},{key:"getModuleSettings",value:function(t,e,n){var r=t.querySelector("module-settings"),o=void 0;if(!r)return null;try{o=r.textContent.trim(),o=JSON.parse(o)}catch(t){return console.warn("Can not parse Module «"+n+"» settings bacause of: "+t),console.groupCollapsed(n+" settings"),console.log(o),console.groupEnd(),null}return Array.isArray(o)?o[e]?o[e]:null:0===e?o:(console.warn("Wrong settings format. For several Modules use an array instead of object."),null)}},{key:"initModules",value:function(){console.groupCollapsed("ModuleDispatcher"),this.modules.forEach(function(t){t.init()}),console.groupEnd()}}]),t}();e.default=c}])},function(t,e,n){t.exports=!n(5)&&!n(13)(function(){return 7!=Object.defineProperty(n(14)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){},,function(t,e,n){"use strict";var r,o,i,u,c=n(18),a=n(0),s=n(7),f=n(19),l=n(11),h=n(4),p=n(8),v=n(31),d=n(32),y=n(38),m=n(21).set,g=n(41)(),w=n(22),x=n(42),b=n(43),_=n(44),j=a.TypeError,E=a.process,P=E&&E.versions,O=P&&P.v8||"",L=a.Promise,M="process"==f(E),S=function(){},k=o=w.f,T=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[n(1)("species")]=function(t){t(S,S)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(S)instanceof e&&0!==O.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),C=function(t){var e;return!(!h(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var n=t._c;g(function(){for(var r=t._v,o=1==t._s,i=0,u=function(e){var n,i,u,c=o?e.ok:e.fail,a=e.resolve,s=e.reject,f=e.domain;try{c?(o||(2==t._h&&D(t),t._h=1),!0===c?n=r:(f&&f.enter(),n=c(r),f&&(f.exit(),u=!0)),n===e.promise?s(j("Promise-chain cycle")):(i=C(n))?i.call(n,a,s):a(n)):s(r)}catch(t){f&&!u&&f.exit(),s(t)}};n.length>i;)u(n[i++]);t._c=[],t._n=!1,e&&!t._h&&A(t)})}},A=function(t){m.call(a,function(){var e,n,r,o=t._v,i=N(t);if(i&&(e=x(function(){M?E.emit("unhandledRejection",o,t):(n=a.onunhandledrejection)?n({promise:t,reason:o}):(r=a.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=M||N(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){m.call(a,function(){var e;M?E.emit("rejectionHandled",t):(e=a.onrejectionhandled)&&e({promise:t,reason:t._v})})},R=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},G=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw j("Promise can't be resolved itself");(e=C(t))?g(function(){var r={_w:n,_d:!1};try{e.call(t,s(G,r,1),s(R,r,1))}catch(t){R.call(r,t)}}):(n._v=t,n._s=1,F(n,!1))}catch(t){R.call({_w:n,_d:!1},t)}}};T||(L=function(t){v(this,L,"Promise","_h"),p(t),r.call(this);try{t(s(G,this,1),s(R,this,1))}catch(t){R.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(45)(L.prototype,{then:function(t,e){var n=k(y(this,L));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=M?E.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&F(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=s(G,t,1),this.reject=s(R,t,1)},w.f=k=function(t){return t===L||t===u?new i(t):o(t)}),l(l.G+l.W+l.F*!T,{Promise:L}),n(46)(L,"Promise"),n(47)("Promise"),u=n(2).Promise,l(l.S+l.F*!T,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(c||!T),"Promise",{resolve:function(t){return _(c&&this===u?L:this,t)}}),l(l.S+l.F*!(T&&n(48)(function(t){L.all(t).catch(S)})),"Promise",{all:function(t){var e=this,n=k(e),r=n.resolve,o=n.reject,i=x(function(){var n=[],i=0,u=1;d(t,!1,function(t){var c=i++,a=!1;n.push(void 0),u++,e.resolve(t).then(function(t){a||(a=!0,n[c]=t,--u||r(n))},o)}),--u||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=k(e),r=n.reject,o=x(function(){d(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){var r=n(2),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(18)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(7),o=n(33),i=n(34),u=n(3),c=n(35),a=n(37),s={},f={};(e=t.exports=function(t,e,n,l,h){var p,v,d,y,m=h?function(){return t}:a(t),g=r(n,l,e?2:1),w=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(p=c(t.length);p>w;w++)if((y=e?g(u(v=t[w])[0],v[1]):g(t[w]))===s||y===f)return y}else for(d=m.call(t);!(v=d.next()).done;)if((y=o(d,g,v.value,e))===s||y===f)return y}).BREAK=s,e.RETURN=f},function(t,e,n){var r=n(3);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(20),o=n(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(36),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e,n){var r=n(19),o=n(1)("iterator"),i=n(20);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(3),o=n(8),i=n(1)("species");t.exports=function(t,e){var n,u=r(t).constructor;return void 0===u||void 0==(n=r(u)[i])?e:o(n)}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(0),o=n(21).set,i=r.MutationObserver||r.WebKitMutationObserver,u=r.process,c=r.Promise,a="process"==n(9)(u);t.exports=function(){var t,e,n,s=function(){var r,o;for(a&&(r=u.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(a)n=function(){u.nextTick(s)};else if(!i||r.navigator&&r.navigator.standalone)if(c&&c.resolve){var f=c.resolve(void 0);n=function(){f.then(s)}}else n=function(){o.call(r,s)};else{var l=!0,h=document.createTextNode("");new i(s).observe(h,{characterData:!0}),n=function(){h.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(0).navigator;t.exports=r&&r.userAgent||""},function(t,e,n){var r=n(3),o=n(4),i=n(22);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){var r=n(15);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){var r=n(6).f,o=n(16),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";var r=n(0),o=n(6),i=n(5),u=n(1)("species");t.exports=function(t){var e=r[t];i&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(1)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],u=i[r]();u.next=function(){return{done:n=!0}},i[r]=function(){return u},t(i)}catch(t){}return n}},function(t,e){!function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag",s="object"==typeof t,f=e.regeneratorRuntime;if(f)s&&(t.exports=f);else{(f=e.regeneratorRuntime=s?t.exports:{}).wrap=x;var l="suspendedStart",h="suspendedYield",p="executing",v="completed",d={},y={};y[u]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(T([])));g&&g!==r&&o.call(g,u)&&(y=g);var w=E.prototype=_.prototype=Object.create(y);j.prototype=w.constructor=E,E.constructor=j,E[a]=j.displayName="GeneratorFunction",f.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===j||"GeneratorFunction"===(e.displayName||e.name))},f.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,E):(t.__proto__=E,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(w),t},f.awrap=function(t){return{__await:t}},P(O.prototype),O.prototype[c]=function(){return this},f.AsyncIterator=O,f.async=function(t,e,n,r){var o=new O(x(t,e,n,r));return f.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},P(w),w[a]="Generator",w[u]=function(){return this},w.toString=function(){return"[object Generator]"},f.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},f.values=T,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return c.type="throw",c.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var u=this.tryEntries[i],c=u.completion;if("root"===u.tryLoc)return r("end");if(u.tryLoc<=this.prev){var a=o.call(u,"catchLoc"),s=o.call(u,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),d}}}function x(t,e,n,r){var o=e&&e.prototype instanceof _?e:_,i=Object.create(o.prototype),u=new k(r||[]);return i._invoke=function(t,e,n){var r=l;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var u=n.delegate;if(u){var c=L(u,n);if(c){if(c===d)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===l)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var a=b(t,e,n);if("normal"===a.type){if(r=n.done?v:h,a.arg===d)continue;return{value:a.arg,done:n.done}}"throw"===a.type&&(r=v,n.method="throw",n.arg=a.arg)}}}(t,n,u),i}function b(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function _(){}function j(){}function E(){}function P(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function O(t){var e;this._invoke=function(n,r){function i(){return new Promise(function(e,i){!function e(n,r,i,u){var c=b(t[n],t,r);if("throw"!==c.type){var a=c.arg,s=a.value;return s&&"object"==typeof s&&o.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,u)},function(t){e("throw",t,i,u)}):Promise.resolve(s).then(function(t){a.value=t,i(a)},u)}u(c.arg)}(n,r,e,i)})}return e=e?e.then(i,i):i()}}function L(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,L(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=b(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function T(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r { @@ -40,4 +41,4 @@ class Docs { } } -module.exports = new Docs(); +export default new Docs(); diff --git a/src/frontend/js/classes/editor.js b/src/frontend/js/classes/editor.js new file mode 100644 index 0000000..068829a --- /dev/null +++ b/src/frontend/js/classes/editor.js @@ -0,0 +1,7 @@ +import CodeXEditor from 'codex.editor'; + +export default class Editor { + constructor() { + this.editor = new CodeXEditor(); + } +} diff --git a/src/frontend/js/modules/writing.js b/src/frontend/js/modules/writing.js index 3964a6a..91a66fb 100644 --- a/src/frontend/js/modules/writing.js +++ b/src/frontend/js/modules/writing.js @@ -1,8 +1,10 @@ /** * Module for pages create/edit */ -module.exports = class Writing { +export default class Writing { constructor(){ + this.editorWrapper = null; + this.editor = null; } /** @@ -14,15 +16,14 @@ module.exports = class Writing { moduleEl.appendChild(this.editorWrapper); - - this.loadEditor().then(() => { - console.log('Editor loaded'); + this.loadEditor().then((editor) => { + this.editor = editor; }) }; - loadEditor(){ - return import(/* webpackChunkName: "codex-editor" */ 'codex.editor').then(({ default: CodexEditor }) => { - console.log('codex-editor', new CodexEditor()); - }).catch(error => 'An error occurred while loading CodeX Editor'); + async loadEditor(){ + const {default: Editor} = await import(/* webpackChunkName: "editor" */ './../classes/editor'); + + return new Editor(); } -}; +} diff --git a/src/views/layout.twig b/src/views/layout.twig index fc5556a..798d6e7 100644 --- a/src/views/layout.twig +++ b/src/views/layout.twig @@ -2,7 +2,7 @@ {{ title }} - + {% include "components/header.twig" %} diff --git a/webpack.config.js b/webpack.config.js index 1b008dd..13c8324 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,4 @@ -const ExtractTextPlugin = require('extract-text-webpack-plugin'); +const MiniCssExtractPlugin = require('mini-css-extract-plugin'); /** * Options for the Babel @@ -8,10 +8,14 @@ const babelLoader = { options: { cacheDirectory: '.cache/babel-loader', presets: [ - '@babel/preset-env', + [ + '@babel/preset-env', + { + 'useBuiltIns': 'usage' + } + ] ], plugins: [ - 'babel-plugin-transform-es2015-modules-commonjs', '@babel/plugin-syntax-dynamic-import' ] } @@ -19,11 +23,22 @@ const babelLoader = { module.exports = (env) => { return { + output: { + libraryExport: 'default' // uses to export .default field of app.js exported class instance + }, module: { rules: [ { test: /\.p?css$/, - use: ExtractTextPlugin.extract([ + use: [ + { + loader: MiniCssExtractPlugin.loader, + options: { + // you can specify a publicPath here + // by default it use publicPath in webpackOptions.output + publicPath: '../' + } + }, { loader: 'css-loader', options: { @@ -38,7 +53,7 @@ module.exports = (env) => { } } } - ]) + ] }, { test: /\.js$/, exclude: /(node_modules|bower_components)/, @@ -49,10 +64,14 @@ module.exports = (env) => { ] }, plugins: [ - new ExtractTextPlugin('bundle.css') + new MiniCssExtractPlugin({ + // Options similar to the same options in webpackOptions.output + filename: '[name].css' + }) ], optimization: { - minimize: false + minimize: true, + splitChunks: false } }; }; diff --git a/yarn.lock b/yarn.lock index a9db4d3..235cb64 100644 --- a/yarn.lock +++ b/yarn.lock @@ -496,6 +496,13 @@ "@babel/helper-regex" "^7.0.0" regexpu-core "^4.1.3" +"@babel/polyfill@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/@babel/polyfill/-/polyfill-7.0.0.tgz#c8ff65c9ec3be6a1ba10113ebd40e8750fb90bff" + dependencies: + core-js "^2.5.7" + regenerator-runtime "^0.11.1" + "@babel/preset-env@^7.1.0": version "7.1.0" resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.1.0.tgz#e67ea5b0441cfeab1d6f41e9b5c79798800e8d11" @@ -956,7 +963,7 @@ async@0.2.10: version "0.2.10" resolved "https://registry.yarnpkg.com/async/-/async-0.2.10.tgz#b6bbe0b0674b9d719708ca38de8c237cb526c3d1" -async@^2.4.1, async@^2.5.0: +async@^2.5.0: version "2.6.1" resolved "https://registry.yarnpkg.com/async/-/async-2.6.1.tgz#b245a23ca71930044ec53fa46aa00a3e87c6a610" dependencies: @@ -998,76 +1005,17 @@ babel-loader@^8.0.2: mkdirp "^0.5.1" util.promisify "^1.0.0" -babel-messages@^6.23.0: - version "6.23.0" - resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" - dependencies: - babel-runtime "^6.22.0" - -babel-plugin-transform-es2015-modules-commonjs@^6.26.2: - version "6.26.2" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-es2015-modules-commonjs/-/babel-plugin-transform-es2015-modules-commonjs-6.26.2.tgz#58a793863a9e7ca870bdc5a881117ffac27db6f3" - dependencies: - babel-plugin-transform-strict-mode "^6.24.1" - babel-runtime "^6.26.0" - babel-template "^6.26.0" - babel-types "^6.26.0" - -babel-plugin-transform-strict-mode@^6.24.1: - version "6.24.1" - resolved "https://registry.yarnpkg.com/babel-plugin-transform-strict-mode/-/babel-plugin-transform-strict-mode-6.24.1.tgz#d5faf7aa578a65bbe591cf5edae04a0c67020758" - dependencies: - babel-runtime "^6.22.0" - babel-types "^6.24.1" - -babel-runtime@^6.22.0, babel-runtime@^6.26.0: +babel-runtime@^6.26.0: version "6.26.0" resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.26.0.tgz#965c7058668e82b55d7bfe04ff2337bc8b5647fe" dependencies: core-js "^2.4.0" regenerator-runtime "^0.11.0" -babel-template@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.26.0.tgz#de03e2d16396b069f46dd9fff8521fb1a0e35e02" - dependencies: - babel-runtime "^6.26.0" - babel-traverse "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - lodash "^4.17.4" - -babel-traverse@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.26.0.tgz#46a9cbd7edcc62c8e5c064e2d2d8d0f4035766ee" - dependencies: - babel-code-frame "^6.26.0" - babel-messages "^6.23.0" - babel-runtime "^6.26.0" - babel-types "^6.26.0" - babylon "^6.18.0" - debug "^2.6.8" - globals "^9.18.0" - invariant "^2.2.2" - lodash "^4.17.4" - -babel-types@^6.24.1, babel-types@^6.26.0: - version "6.26.0" - resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.26.0.tgz#a3b073f94ab49eb6fa55cd65227a334380632497" - dependencies: - babel-runtime "^6.26.0" - esutils "^2.0.2" - lodash "^4.17.4" - to-fast-properties "^1.0.3" - babel@^6.23.0: version "6.23.0" resolved "https://registry.yarnpkg.com/babel/-/babel-6.23.0.tgz#d0d1e7d803e974765beea3232d4e153c0efb90f4" -babylon@^6.18.0: - version "6.18.0" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" - balanced-match@^0.4.2: version "0.4.2" resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" @@ -1667,7 +1615,7 @@ copy-descriptor@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" -core-js@^2.4.0: +core-js@^2.4.0, core-js@^2.5.7: version "2.5.7" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.7.tgz#f972608ff0cead68b841a16a932d0b183791814e" @@ -2532,15 +2480,6 @@ extglob@^2.0.4: snapdragon "^0.8.1" to-regex "^3.0.1" -extract-text-webpack-plugin@^4.0.0-beta.0: - version "4.0.0-beta.0" - resolved "https://registry.yarnpkg.com/extract-text-webpack-plugin/-/extract-text-webpack-plugin-4.0.0-beta.0.tgz#f7361d7ff430b42961f8d1321ba8c1757b5d4c42" - dependencies: - async "^2.4.1" - loader-utils "^1.1.0" - schema-utils "^0.4.5" - webpack-sources "^1.1.0" - fast-deep-equal@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz#7b05218ddf9667bf7f370bf7fdb2cb15fdd0aa49" @@ -2841,10 +2780,6 @@ globals@^11.1.0, globals@^11.7.0: version "11.7.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.7.0.tgz#a583faa43055b1aca771914bf68258e2fc125673" -globals@^9.18.0: - version "9.18.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a" - globby@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" @@ -3855,6 +3790,14 @@ mimic-fn@^1.0.0: version "1.2.0" resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022" +mini-css-extract-plugin@^0.4.3: + version "0.4.3" + resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-0.4.3.tgz#98d60fcc5d228c3e36a9bd15a1d6816d6580beb8" + dependencies: + loader-utils "^1.1.0" + schema-utils "^1.0.0" + webpack-sources "^1.1.0" + minimalistic-assert@^1.0.0, minimalistic-assert@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" @@ -5256,7 +5199,7 @@ regenerate@^1.2.1, regenerate@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.0.tgz#4a856ec4b56e4077c557589cae85e7a4c8869a11" -regenerator-runtime@^0.11.0: +regenerator-runtime@^0.11.0, regenerator-runtime@^0.11.1: version "0.11.1" resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9" @@ -5970,10 +5913,6 @@ to-arraybuffer@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/to-arraybuffer/-/to-arraybuffer-1.0.1.tgz#7d229b1fcc637e466ca081180836a7aabff83f43" -to-fast-properties@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.3.tgz#b83571fa4d8c25b82e231b06e3a3055de4ca1a47" - to-fast-properties@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e"